static void setup_frame_v1(int usig, struct target_sigaction *ka,

                           target_sigset_t *set, CPUARMState *regs)

{

	struct sigframe_v1 *frame;

	abi_ulong frame_addr = get_sigframe(ka, regs, sizeof(*frame));

	int i;



	if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0))

		return;



	setup_sigcontext(&frame->sc, regs, set->sig[0]);



        for(i = 1; i < TARGET_NSIG_WORDS; i++) {

            if (__put_user(set->sig[i], &frame->extramask[i - 1]))

                goto end;

	}



        setup_return(regs, ka, &frame->retcode, frame_addr, usig,

                     frame_addr + offsetof(struct sigframe_v1, retcode));



end:

	unlock_user_struct(frame, frame_addr, 1);

}

static void setup_frame_v1(int usig, struct target_sigaction *ka,

                           target_sigset_t *set, CPUARMState *regs)

{

	struct sigframe_v1 *frame;

	abi_ulong frame_addr = get_sigframe(ka, regs, sizeof(*frame));

	int i;



	if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0))

		return;



	setup_sigcontext(&frame->sc, regs, set->sig[0]);



        for(i = 1; i < TARGET_NSIG_WORDS; i++) {

            if (__put_user(set->sig[i], &frame->extramask[i - 1]))

                goto end;

	}



        setup_return(regs, ka, &frame->retcode, frame_addr, usig,

                     frame_addr + offsetof(struct sigframe_v1, retcode));



end:

	unlock_user_struct(frame, frame_addr, 1);

}

	unlock_user_struct(frame, frame_addr, 1);         for(i = 1; i < TARGET_NSIG_WORDS; i++) {             if (__put_user(set->sig[i], &frame->extramask[i - 1]))                 goto end; end:                 goto end; end: 	unlock_user_struct(frame, frame_addr, 1);
static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,

                           target_sigset_t *VAR_2, CPUARMState *VAR_3)

{

	struct sigframe_v1 *VAR_4;

	abi_ulong frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4));

	int VAR_5;



	if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame_addr, 0))

		return;



	setup_sigcontext(&VAR_4->sc, VAR_3, VAR_2->sig[0]);



        for(VAR_5 = 1; VAR_5 < TARGET_NSIG_WORDS; VAR_5++) {

            if (__put_user(VAR_2->sig[VAR_5], &VAR_4->extramask[VAR_5 - 1]))

                goto end;

	}



        setup_return(VAR_3, VAR_1, &VAR_4->retcode, frame_addr, VAR_0,

                     frame_addr + offsetof(struct sigframe_v1, retcode));



end:

	unlock_user_struct(VAR_4, frame_addr, 1);

}

static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,
target_sigset_t *VAR_2, CPUARMState *VAR_3)
{ struct sigframe_v1 *VAR_4; abi_ulong frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4)); int VAR_5; if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame_addr, 0))
return; setup_sigcontext(&VAR_4->sc, VAR_3, VAR_2->sig[0]); for(VAR_5 = 1; VAR_5 < TARGET_NSIG_WORDS; VAR_5++) { if (__put_user(VAR_2->sig[VAR_5], &VAR_4->extramask[VAR_5 - 1]))
goto end; } setup_return(VAR_3, VAR_1, &VAR_4->retcode, frame_addr, VAR_0,
frame_addr + offsetof(struct sigframe_v1, retcode)); end:
unlock_user_struct(VAR_4, frame_addr, 1); }