	.file	"extr_signal_32.c_do_signal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_signal, @function
do_signal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	user_mode@PLT
	test	eax, eax
	jne	.L23
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	eax, eax
	call	try_to_freeze@PLT
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR TIF_RESTORE_SIGMASK[rip]
	call	test_thread_flag@PLT
	mov	r14, QWORD PTR current[rip]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR current[rip]
	lea	r14, 4[rax]
.L5:
	lea	r15, 4[rsp]
	mov	r13, rsp
	xor	ecx, ecx
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, r13
	call	get_signal_to_deliver@PLT
	mov	ebp, eax
	test	eax, eax
	jg	.L25
.L3:
	cmp	QWORD PTR [r12], 0
	js	.L8
	mov	rdx, QWORD PTR 8[r12]
	mov	eax, DWORD PTR [rdx]
	mov	ecx, eax
	add	ecx, DWORD PTR ERESTARTNOHAND[rip]
	je	.L9
	mov	ecx, eax
	add	ecx, DWORD PTR ERESTARTSYS[rip]
	je	.L9
	mov	ecx, eax
	add	ecx, DWORD PTR ERESTARTNOINTR[rip]
	je	.L9
	add	eax, DWORD PTR ERESTART_RESTARTBLOCK[rip]
	je	.L26
.L8:
	mov	edi, DWORD PTR TIF_RESTORE_SIGMASK[rip]
	call	test_thread_flag@PLT
	test	rax, rax
	je	.L1
.L28:
	mov	edi, DWORD PTR TIF_RESTORE_SIGMASK[rip]
	call	clear_thread_flag@PLT
	mov	rsi, QWORD PTR current[rip]
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	xor	edx, edx
	call	sigprocmask@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdx, r15
	mov	rsi, r12
	mov	edi, ebx
	call	handle_syscall_restart@PLT
	mov	r9d, ebx
	mov	r8, r12
	mov	rcx, r14
	mov	rdx, r13
	mov	rsi, r15
	mov	edi, ebp
	call	handle_signal@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR TIF_RESTORE_SIGMASK[rip]
	call	test_thread_flag@PLT
	test	rax, rax
	jne	.L27
.L6:
	mov	edi, DWORD PTR TIF_SINGLESTEP[rip]
	call	test_thread_flag@PLT
	mov	rcx, r12
	mov	rdx, r15
	mov	rsi, r13
	mov	r8, rax
	mov	edi, ebp
	call	tracehook_signal_handler@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rdx], ebx
	mov	rax, QWORD PTR 16[r12]
	lea	rdi, -4[rax]
	call	ctrl_inw@PLT
	mov	edi, eax
	call	instruction_size@PLT
	sub	QWORD PTR 16[r12], rax
	mov	edi, DWORD PTR TIF_RESTORE_SIGMASK[rip]
	call	test_thread_flag@PLT
	test	rax, rax
	je	.L1
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR 16[r12]
	lea	rdi, -4[rax]
	call	ctrl_inw@PLT
	mov	edi, eax
	call	instruction_size@PLT
	mov	edx, DWORD PTR __NR_restart_syscall[rip]
	sub	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR 12[rax], edx
	jmp	.L8
.L27:
	mov	edi, DWORD PTR TIF_RESTORE_SIGMASK[rip]
	call	clear_thread_flag@PLT
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_signal, .-do_signal
	.comm	current,8,8
	.comm	__NR_restart_syscall,4,4
	.comm	TIF_SINGLESTEP,4,4
	.comm	TIF_RESTORE_SIGMASK,4,4
	.comm	SIG_SETMASK,4,4
	.comm	ERESTART_RESTARTBLOCK,4,4
	.comm	ERESTARTSYS,4,4
	.comm	ERESTARTNOINTR,4,4
	.comm	ERESTARTNOHAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_signal_32.c_do_signal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_signal, %function
do_signal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L31
	sub	sp, sp, #24
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	bl	user_mode
	cmp	r0, #0
	bne	.L25
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	bl	try_to_freeze
	cmp	r0, #0
	ldr	r6, .L31+4
	bne	.L3
	ldr	r0, [r6]
	bl	test_thread_flag
	ldr	r3, .L31+8
	cmp	r0, #0
	ldr	r8, [r3]
	mov	r2, r4
	mov	r3, #0
	add	r1, sp, #16
	add	r0, sp, #12
	addeq	r8, r8, #4
	bl	get_signal_to_deliver
	subs	r7, r0, #0
	bgt	.L27
.L3:
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L8
	ldr	r2, [r4, #4]
	ldr	r1, .L31+12
	ldr	r3, [r2]
	ldr	r1, [r1]
	cmn	r3, r1
	beq	.L9
	ldr	r1, .L31+16
	ldr	r1, [r1]
	cmn	r3, r1
	beq	.L9
	ldr	r1, .L31+20
	ldr	r1, [r1]
	cmn	r3, r1
	beq	.L9
	ldr	r2, .L31+24
	ldr	r2, [r2]
	cmn	r3, r2
	beq	.L28
.L8:
	ldr	r0, [r6]
	bl	test_thread_flag
	cmp	r0, #0
	beq	.L1
.L30:
	ldr	r0, [r6]
	bl	clear_thread_flag
	ldr	r2, .L31+8
	ldr	r3, .L31+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	bl	sigprocmask
	b	.L1
.L27:
	mov	r1, r4
	add	r2, sp, #16
	mov	r0, r5
	bl	handle_syscall_restart
	mov	r3, r8
	mov	r0, r7
	stm	sp, {r4, r5}
	add	r2, sp, #12
	add	r1, sp, #16
	bl	handle_signal
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r6]
	bl	test_thread_flag
	cmp	r0, #0
	bne	.L29
.L6:
	ldr	r3, .L31+32
	ldr	r0, [r3]
	bl	test_thread_flag
	mov	r3, r4
	str	r0, [sp]
	add	r2, sp, #16
	mov	r0, r7
	add	r1, sp, #12
	bl	tracehook_signal_handler
	b	.L1
.L9:
	ldr	r0, [r4, #8]
	str	r5, [r2]
	sub	r0, r0, #4
	bl	ctrl_inw
	bl	instruction_size
	ldr	r3, [r4, #8]
	sub	r3, r3, r0
	str	r3, [r4, #8]
	ldr	r0, [r6]
	bl	test_thread_flag
	cmp	r0, #0
	beq	.L1
	b	.L30
.L28:
	ldr	r0, [r4, #8]
	sub	r0, r0, #4
	bl	ctrl_inw
	bl	instruction_size
	ldr	r2, .L31+36
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	sub	r3, r3, r0
	str	r3, [r4, #8]
	str	r1, [r2, #12]
	b	.L8
.L29:
	ldr	r0, [r6]
	bl	clear_thread_flag
	b	.L6
.L26:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	TIF_RESTORE_SIGMASK
	.word	current
	.word	ERESTARTNOHAND
	.word	ERESTARTSYS
	.word	ERESTARTNOINTR
	.word	ERESTART_RESTARTBLOCK
	.word	SIG_SETMASK
	.word	TIF_SINGLESTEP
	.word	__NR_restart_syscall
	.size	do_signal, .-do_signal
	.comm	current,4,4
	.comm	__NR_restart_syscall,4,4
	.comm	TIF_SINGLESTEP,4,4
	.comm	TIF_RESTORE_SIGMASK,4,4
	.comm	SIG_SETMASK,4,4
	.comm	ERESTART_RESTARTBLOCK,4,4
	.comm	ERESTARTSYS,4,4
	.comm	ERESTARTNOINTR,4,4
	.comm	ERESTARTNOHAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
