long do_rt_sigreturn(CPUARMState *env)

{

    struct target_rt_sigframe *frame = NULL;

    abi_ulong frame_addr = env->xregs[31];



    trace_user_do_rt_sigreturn(env, frame_addr);

    if (frame_addr & 15) {

        goto badframe;

    }



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

        goto badframe;

    }



    if (target_restore_sigframe(env, frame)) {

        goto badframe;

    }



    if (do_sigaltstack(frame_addr +

            offsetof(struct target_rt_sigframe, uc.tuc_stack),

            0, get_sp_from_cpustate(env)) == -EFAULT) {

        goto badframe;

    }



    unlock_user_struct(frame, frame_addr, 0);

    return env->xregs[0];



 badframe:

    unlock_user_struct(frame, frame_addr, 0);

    force_sig(TARGET_SIGSEGV);

    return 0;

}

long do_rt_sigreturn(CPUARMState *env)

{

    struct target_rt_sigframe *frame = NULL;

    abi_ulong frame_addr = env->xregs[31];



    trace_user_do_rt_sigreturn(env, frame_addr);

    if (frame_addr & 15) {

        goto badframe;

    }



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

        goto badframe;

    }



    if (target_restore_sigframe(env, frame)) {

        goto badframe;

    }



    if (do_sigaltstack(frame_addr +

            offsetof(struct target_rt_sigframe, uc.tuc_stack),

            0, get_sp_from_cpustate(env)) == -EFAULT) {

        goto badframe;

    }



    unlock_user_struct(frame, frame_addr, 0);

    return env->xregs[0];



 badframe:

    unlock_user_struct(frame, frame_addr, 0);

    force_sig(TARGET_SIGSEGV);

    return 0;

}

long FUNC_0(CPUARMState *VAR_0)

{

    struct target_rt_sigframe *VAR_1 = NULL;

    abi_ulong frame_addr = VAR_0->xregs[31];



    trace_user_do_rt_sigreturn(VAR_0, frame_addr);

    if (frame_addr & 15) {

        goto badframe;

    }



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

        goto badframe;

    }



    if (target_restore_sigframe(VAR_0, VAR_1)) {

        goto badframe;

    }



    if (do_sigaltstack(frame_addr +

            offsetof(struct target_rt_sigframe, uc.tuc_stack),

            0, get_sp_from_cpustate(VAR_0)) == -EFAULT) {

        goto badframe;

    }



    unlock_user_struct(VAR_1, frame_addr, 0);

    return VAR_0->xregs[0];



 badframe:

    unlock_user_struct(VAR_1, frame_addr, 0);

    force_sig(TARGET_SIGSEGV);

    return 0;

}

long FUNC_0(CPUARMState *VAR_0)
{ struct target_rt_sigframe *VAR_1 = NULL; abi_ulong frame_addr = VAR_0->xregs[31]; trace_user_do_rt_sigreturn(VAR_0, frame_addr); if (frame_addr & 15) { goto badframe; } if  (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) { goto badframe; } if (target_restore_sigframe(VAR_0, VAR_1)) { goto badframe; } if (do_sigaltstack(frame_addr +
offsetof(struct target_rt_sigframe, uc.tuc_stack),
0, get_sp_from_cpustate(VAR_0)) == -EFAULT) { goto badframe; } unlock_user_struct(VAR_1, frame_addr, 0); return VAR_0->xregs[0]; badframe:
unlock_user_struct(VAR_1, frame_addr, 0); force_sig(TARGET_SIGSEGV); return 0; }