	.file	"extr_regress.c_test_signal_restore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	test_signal_restore, @function
test_signal_restore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	event_init@PLT
	mov	esi, DWORD PTR signal_cb_sa[rip]
	mov	edi, DWORD PTR SIGUSR1[rip]
	mov	DWORD PTR test_ok[rip], 0
	mov	rbp, rax
	call	signal@PLT
	cmp	rax, QWORD PTR SIG_ERR[rip]
	je	.L3
	mov	edx, DWORD PTR signal_cb[rip]
	lea	r12, 4[rsp]
	mov	esi, DWORD PTR SIGUSR1[rip]
	mov	rcx, r12
	mov	rdi, r12
	call	evsignal_set@PLT
	xor	esi, esi
	mov	rdi, r12
	call	evsignal_add@PLT
	mov	rdi, r12
	call	evsignal_del@PLT
	mov	r12d, DWORD PTR SIGUSR1[rip]
	xor	eax, eax
	call	getpid@PLT
	mov	edi, eax
	mov	esi, r12d
	call	kill@PLT
	cmp	DWORD PTR test_ok[rip], 2
	je	.L3
	mov	DWORD PTR test_ok[rip], 0
.L3:
	mov	rdi, rbp
	call	event_base_free@PLT
	xor	eax, eax
	call	cleanup_test@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_signal_restore, .-test_signal_restore
	.comm	test_ok,4,4
	.comm	signal_cb_sa,4,4
	.comm	signal_cb,4,4
	.comm	SIG_ERR,8,8
	.comm	SIGUSR1,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_regress.c_test_signal_restore.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_signal_restore, %function
test_signal_restore:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L12
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	event_init
	mov	r7, #0
	ldr	r3, .L12+4
	ldr	r5, .L12+8
	ldr	r6, .L12+12
	ldr	r1, [r3]
	mov	r4, r0
	ldr	r0, [r5]
	str	r7, [r6]
	bl	signal
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
	ldr	r3, .L12+20
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, sp
	mov	r3, sp
	bl	evsignal_set
	mov	r1, r7
	mov	r0, sp
	bl	evsignal_add
	mov	r0, sp
	bl	evsignal_del
	bl	getpid
	ldr	r1, [r5]
	bl	kill
	ldr	r3, [r6]
	cmp	r3, #2
	strne	r7, [r6]
.L3:
	mov	r0, r4
	bl	event_base_free
	bl	cleanup_test
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	signal_cb_sa
	.word	SIGUSR1
	.word	test_ok
	.word	SIG_ERR
	.word	signal_cb
	.size	test_signal_restore, .-test_signal_restore
	.comm	test_ok,4,4
	.comm	signal_cb_sa,4,4
	.comm	signal_cb,4,4
	.comm	SIG_ERR,4,4
	.comm	SIGUSR1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
