	.file	"119086.c"
	.intel_syntax noprefix
	.text
	.globl	called
	.bss
	.align 4
	.type	called, @object
	.size	called, 4
called:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s: got signal %d\n"
	.text
	.type	signal_cb, @function
signal_cb:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -32[rbp], rdx
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	event_get_fd@PLT
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR called[rip]
	cmp	eax, 1
	jle	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	event_del@PLT
.L2:
	mov	eax, DWORD PTR called[rip]
	add	eax, 1
	mov	DWORD PTR called[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_cb, .-signal_cb
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	call	event_base_new@PLT
	mov	QWORD PTR -16[rbp], rax
	call	event_self_cbarg@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, rdx
	lea	rcx, signal_cb[rip]
	mov	edx, 24
	mov	esi, 2
	mov	rdi, rax
	call	event_new@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	event_add@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	event_base_dispatch@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	event_free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	event_base_free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__func__.0, @object
	.size	__func__.0, 10
__func__.0:
	.string	"signal_cb"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"119086.c"
	.text
	.global	called
	.bss
	.align	2
	.type	called, %object
	.size	called, 4
called:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: got signal %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_cb, %function
signal_cb:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, r1
	str	r2, [fp, #-24]
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	event_get_fd
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L3
	ldr	r0, .L3+4
	bl	printf
	ldr	r3, .L3+8
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L2
	ldr	r0, [fp, #-8]
	bl	event_del
.L2:
	ldr	r3, .L3+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L3+8
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	__func__.7504
	.word	.LC0
	.word	called
	.size	signal_cb, .-signal_cb
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	event_base_new
	str	r0, [fp, #-12]
	bl	event_self_cbarg
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, .L7
	mov	r2, #24
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	event_new
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	event_add
	ldr	r0, [fp, #-12]
	bl	event_base_dispatch
	ldr	r0, [fp, #-8]
	bl	event_free
	ldr	r0, [fp, #-12]
	bl	event_base_free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	signal_cb
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.7504, %object
	.size	__func__.7504, 10
__func__.7504:
	.ascii	"signal_cb\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
