static long do_rt_sigreturn_v2(CPUARMState *env)

{

    abi_ulong frame_addr;

    struct rt_sigframe_v2 *frame = NULL;



    /*

     * Since we stacked the signal on a 64-bit boundary,

     * then 'sp' should be word aligned here.  If it's

     * not, then the user is trying to mess with us.

     */

    frame_addr = env->regs[13];

    trace_user_do_rt_sigreturn(env, frame_addr);

    if (frame_addr & 7) {

        goto badframe;

    }



    if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) {

        goto badframe;

    }



    if (do_sigframe_return_v2(env, frame_addr, &frame->uc)) {

        goto badframe;

    }



    unlock_user_struct(frame, frame_addr, 0);

    return -TARGET_QEMU_ESIGRETURN;



badframe:

    unlock_user_struct(frame, frame_addr, 0);

    force_sig(TARGET_SIGSEGV /* , current */);

    return 0;

}

static long do_rt_sigreturn_v2(CPUARMState *env)

{

    abi_ulong frame_addr;

    struct rt_sigframe_v2 *frame = NULL;



    









    frame_addr = env->regs[13];

    trace_user_do_rt_sigreturn(env, frame_addr);

    if (frame_addr & 7) {

        goto badframe;

    }



    if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) {

        goto badframe;

    }



    if (do_sigframe_return_v2(env, frame_addr, &frame->uc)) {

        goto badframe;

    }



    unlock_user_struct(frame, frame_addr, 0);

    return -TARGET_QEMU_ESIGRETURN;



badframe:

    unlock_user_struct(frame, frame_addr, 0);

    force_sig(TARGET_SIGSEGV );

    return 0;

}

    return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;     return 0;
static long FUNC_0(CPUARMState *VAR_0)

{

    abi_ulong frame_addr;

    struct rt_sigframe_v2 *VAR_1 = NULL;



    









    frame_addr = VAR_0->regs[13];

    trace_user_do_rt_sigreturn(VAR_0, frame_addr);

    if (frame_addr & 7) {

        goto badframe;

    }



    if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) {

        goto badframe;

    }



    if (do_sigframe_return_v2(VAR_0, frame_addr, &VAR_1->uc)) {

        goto badframe;

    }



    unlock_user_struct(VAR_1, frame_addr, 0);

    return -TARGET_QEMU_ESIGRETURN;



badframe:

    unlock_user_struct(VAR_1, frame_addr, 0);

    force_sig(TARGET_SIGSEGV );

    return 0;

}

static long FUNC_0(CPUARMState *VAR_0)
{ abi_ulong frame_addr; struct rt_sigframe_v2 *VAR_1 = NULL; frame_addr = VAR_0->regs[13]; trace_user_do_rt_sigreturn(VAR_0, frame_addr); if (frame_addr & 7) { goto badframe; } if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) { goto badframe; } if (do_sigframe_return_v2(VAR_0, frame_addr, &VAR_1->uc)) { goto badframe; } unlock_user_struct(VAR_1, frame_addr, 0); return -TARGET_QEMU_ESIGRETURN; badframe:
unlock_user_struct(VAR_1, frame_addr, 0); force_sig(TARGET_SIGSEGV ); return 0; }