void helper_mtc0_index(CPUMIPSState *env, target_ulong arg1)

{

    int num = 1;

    unsigned int tmp = env->tlb->nb_tlb;



    do {

        tmp >>= 1;

        num <<= 1;

    } while (tmp);

    env->CP0_Index = (env->CP0_Index & 0x80000000) | (arg1 & (num - 1));

}

void helper_mtc0_index(CPUMIPSState *env, target_ulong arg1)

{

    int num = 1;

    unsigned int tmp = env->tlb->nb_tlb;



    do {

        tmp >>= 1;

        num <<= 1;

    } while (tmp);

    env->CP0_Index = (env->CP0_Index & 0x80000000) | (arg1 & (num - 1));

}

void FUNC_0(CPUMIPSState *VAR_0, target_ulong VAR_1)

{

    int VAR_2 = 1;

    unsigned int VAR_3 = VAR_0->tlb->nb_tlb;



    do {

        VAR_3 >>= 1;

        VAR_2 <<= 1;

    } while (VAR_3);

    VAR_0->CP0_Index = (VAR_0->CP0_Index & 0x80000000) | (VAR_1 & (VAR_2 - 1));

}

void FUNC_0(CPUMIPSState *VAR_0, target_ulong VAR_1)
{ int VAR_2 = 1; unsigned int VAR_3 = VAR_0->tlb->nb_tlb; do { VAR_3 >>= 1; VAR_2 <<= 1; } while (VAR_3); VAR_0->CP0_Index = (VAR_0->CP0_Index & 0x80000000) | (VAR_1 & (VAR_2 - 1)); }