static void patch_reloc(uint8_t *code_ptr, int type,

                        intptr_t value, intptr_t addend)

{

    value += addend;

    switch(type) {

    case R_386_PC32:

        value -= (uintptr_t)code_ptr;

        if (value != (int32_t)value) {

            tcg_abort();

        }

        *(uint32_t *)code_ptr = value;

        break;

    case R_386_PC8:

        value -= (uintptr_t)code_ptr;

        if (value != (int8_t)value) {

            tcg_abort();

        }

        *(uint8_t *)code_ptr = value;

        break;

    default:

        tcg_abort();

    }

}

static void patch_reloc(uint8_t *code_ptr, int type,

                        intptr_t value, intptr_t addend)

{

    value += addend;

    switch(type) {

    case R_386_PC32:

        value -= (uintptr_t)code_ptr;

        if (value != (int32_t)value) {

            tcg_abort();

        }

        *(uint32_t *)code_ptr = value;

        break;

    case R_386_PC8:

        value -= (uintptr_t)code_ptr;

        if (value != (int8_t)value) {

            tcg_abort();

        }

        *(uint8_t *)code_ptr = value;

        break;

    default:

        tcg_abort();

    }

}

        *(uint32_t *)code_ptr = value;         *(uint8_t *)code_ptr = value;
static void FUNC_0(uint8_t *VAR_0, int VAR_1,

                        intptr_t VAR_2, intptr_t VAR_3)

{

    VAR_2 += VAR_3;

    switch(VAR_1) {

    case R_386_PC32:

        VAR_2 -= (uintptr_t)VAR_0;

        if (VAR_2 != (int32_t)VAR_2) {

            tcg_abort();

        }

        *(uint32_t *)VAR_0 = VAR_2;

        break;

    case R_386_PC8:

        VAR_2 -= (uintptr_t)VAR_0;

        if (VAR_2 != (int8_t)VAR_2) {

            tcg_abort();

        }

        *(uint8_t *)VAR_0 = VAR_2;

        break;

    default:

        tcg_abort();

    }

}

static void FUNC_0(uint8_t *VAR_0, int VAR_1,
intptr_t VAR_2, intptr_t VAR_3)
{ VAR_2 += VAR_3; switch(VAR_1) { case R_386_PC32:
VAR_2 -= (uintptr_t)VAR_0; if (VAR_2 != (int32_t)VAR_2) { tcg_abort(); } *(uint32_t *)VAR_0 = VAR_2; break; case R_386_PC8:
VAR_2 -= (uintptr_t)VAR_0; if (VAR_2 != (int8_t)VAR_2) { tcg_abort(); } *(uint8_t *)VAR_0 = VAR_2; break; default:
tcg_abort(); } }