	.file	"1067175.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
	.type	MESSAGE, @object
	.size	MESSAGE, 15
MESSAGE:
	.string	"Hello, World!\n"
	.align 2
	.type	PORT, @object
	.size	PORT, 2
PORT:
	.value	9995
	.align 8
.LC0:
	.string	"Could not initialize libevent!\n"
.LC1:
	.string	"Could not create a listener!\n"
	.align 8
.LC2:
	.string	"Could not create/add a signal event!\n"
.LC3:
	.string	"done"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	call	event_base_new@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	mov	WORD PTR -32[rbp], 2
	mov	eax, 9995
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	16
	mov	r9, rcx
	mov	r8d, -1
	mov	ecx, 10
	lea	rsi, listener_cb[rip]
	mov	rdi, rax
	call	evconnlistener_new_bind@PLT
	add	rsp, 16
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[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 -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	event_add@PLT
	test	eax, eax
	jns	.L6
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	event_base_dispatch@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	evconnlistener_free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	event_free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	event_base_free@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.string	"Error constructing bufferevent!"
	.text
	.type	listener_cb, @function
listener_cb:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	rdi, rax
	call	bufferevent_socket_new@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	event_base_loopbreak@PLT
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, 0
	lea	rcx, conn_eventcb[rip]
	lea	rdx, conn_writecb[rip]
	mov	esi, 0
	mov	rdi, rax
	call	bufferevent_setcb@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	bufferevent_enable@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	bufferevent_disable@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 14
	lea	rsi, MESSAGE[rip]
	mov	rdi, rax
	call	bufferevent_write@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	listener_cb, .-listener_cb
	.section	.rodata
.LC5:
	.string	"flushed answer"
	.text
	.type	conn_writecb, @function
conn_writecb:
.LFB8:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	bufferevent_get_output@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	evbuffer_get_length@PLT
	test	rax, rax
	jne	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	bufferevent_free@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	conn_writecb, .-conn_writecb
	.section	.rodata
.LC6:
	.string	"Connection closed."
	.align 8
.LC7:
	.string	"Got an error on the connection: %s\n"
	.text
	.type	conn_eventcb, @function
conn_eventcb:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	WORD PTR -12[rbp], ax
	movsx	eax, WORD PTR -12[rbp]
	and	eax, 16
	test	eax, eax
	je	.L16
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L17
.L16:
	movsx	eax, WORD PTR -12[rbp]
	and	eax, 32
	test	eax, eax
	je	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	bufferevent_free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	conn_eventcb, .-conn_eventcb
	.section	.rodata
	.align 8
.LC8:
	.string	"Caught an interrupt signal; exiting cleanly in two seconds."
	.text
	.type	signal_cb, @function
signal_cb:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -64[rbp], rdx
	mov	WORD PTR -56[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 2
	mov	QWORD PTR -24[rbp], 0
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	event_base_loopexit@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	signal_cb, .-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	"1067175.c"
	.text
	.section	.rodata
	.align	2
	.type	MESSAGE, %object
	.size	MESSAGE, 15
MESSAGE:
	.ascii	"Hello, World!\012\000"
	.align	1
	.type	PORT, %object
	.size	PORT, 2
PORT:
	.short	9995
	.align	2
.LC0:
	.ascii	"Could not initialize libevent!\012\000"
	.align	2
.LC1:
	.ascii	"Could not create a listener!\012\000"
	.align	2
.LC2:
	.ascii	"Could not create/add a signal event!\012\000"
	.align	2
.LC3:
	.ascii	"done\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	bl	event_base_new
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	mov	r3, #1
	b	.L7
.L2:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L9+12
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #16
	str	r3, [sp, #8]
	sub	r3, fp, #24
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #10
	ldr	r2, [fp, #-36]
	ldr	r1, .L9+16
	ldr	r0, [fp, #-36]
	bl	evconnlistener_new_bind
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L9+20
	bl	fwrite
	mov	r3, #1
	b	.L7
.L4:
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, .L9+24
	mov	r2, #24
	mov	r1, #2
	ldr	r0, [fp, #-36]
	bl	event_new
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L5
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	event_add
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
.L5:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L9+28
	bl	fwrite
	mov	r3, #1
	b	.L7
.L6:
	ldr	r0, [fp, #-36]
	bl	event_base_dispatch
	ldr	r0, [fp, #-32]
	bl	evconnlistener_free
	ldr	r0, [fp, #-28]
	bl	event_free
	ldr	r0, [fp, #-36]
	bl	event_base_free
	ldr	r0, .L9+32
	bl	puts
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	9995
	.word	listener_cb
	.word	.LC1
	.word	signal_cb
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Error constructing bufferevent!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	listener_cb, %function
listener_cb:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-12]
	mov	r2, #1
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	bufferevent_socket_new
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L14+4
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	event_base_loopbreak
	b	.L11
.L12:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L14+8
	ldr	r2, .L14+12
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	bufferevent_setcb
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	bufferevent_enable
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	bufferevent_disable
	mov	r2, #14
	ldr	r1, .L14+16
	ldr	r0, [fp, #-8]
	bl	bufferevent_write
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stderr
	.word	.LC5
	.word	conn_eventcb
	.word	conn_writecb
	.word	MESSAGE
	.size	listener_cb, .-listener_cb
	.section	.rodata
	.align	2
.LC6:
	.ascii	"flushed answer\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	conn_writecb, %function
conn_writecb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	bufferevent_get_output
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	evbuffer_get_length
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L19
	bl	puts
	ldr	r0, [fp, #-16]
	bl	bufferevent_free
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.size	conn_writecb, .-conn_writecb
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Connection closed.\000"
	.align	2
.LC8:
	.ascii	"Got an error on the connection: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	conn_eventcb, %function
conn_eventcb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, r1
	str	r2, [fp, #-16]
	strh	r3, [fp, #-10]	@ movhi
	ldrh	r3, [fp, #-10]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L24
	bl	puts
	b	.L23
.L22:
	ldrh	r3, [fp, #-10]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
.L23:
	ldr	r0, [fp, #-8]
	bl	bufferevent_free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC7
	.word	.LC8
	.size	conn_eventcb, .-conn_eventcb
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Caught an interrupt signal; exiting cleanly in two "
	.ascii	"seconds.\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_cb, %function
signal_cb:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	mov	r3, r1
	str	r2, [fp, #-32]
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r3, #2
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L28+4
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	event_base_loopexit
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC10
	.word	.LC9
	.size	signal_cb, .-signal_cb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
