	.file	"891351.c"
	.intel_syntax noprefix
	.text
	.globl	time_task_ev
	.bss
	.align 8
	.type	time_task_ev, @object
	.size	time_task_ev, 8
time_task_ev:
	.zero	8
	.text
	.globl	readcb
	.type	readcb, @function
readcb:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L6:
	lea	rcx, -144[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	rdi, rax
	call	bufferevent_read@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	je	.L9
	mov	DWORD PTR -156[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	movzx	eax, BYTE PTR -144[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -156[rbp], 1
.L4:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	cmp	QWORD PTR -152[rbp], rax
	ja	.L5
	jmp	.L6
.L9:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readcb, .-readcb
	.section	.rodata
.LC0:
	.string	"hello world: %ld.%06ld\n"
	.text
	.globl	cb_func
	.type	cb_func, @function
cb_func:
.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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -320[rbp], rdx
	mov	WORD PTR -312[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -288[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	jne	.L13
	mov	rcx, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	QWORD PTR -296[rbp], rax
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	bufferevent_write@PLT
.L13:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cb_func, .-cb_func
	.section	.rodata
.LC1:
	.string	"connected"
	.align 8
.LC2:
	.string	"failed create time task event\n"
	.align 8
.LC3:
	.string	"failed event_add time_task_ev\n"
.LC4:
	.string	"event eof"
.LC5:
	.string	"event error"
.LC6:
	.string	"event timeout"
	.text
	.globl	eventcb
	.type	eventcb, @function
eventcb:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -72[rbp], rdx
	mov	WORD PTR -60[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movsx	eax, WORD PTR -60[rbp]
	and	eax, 128
	test	eax, eax
	je	.L15
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 500000
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	bufferevent_get_base@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rdx
	lea	rcx, cb_func[rip]
	mov	edx, 16
	mov	esi, -1
	mov	rdi, rax
	call	event_new@PLT
	mov	QWORD PTR time_task_ev[rip], rax
	mov	rax, QWORD PTR time_task_ev[rip]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L14
.L16:
	mov	rax, QWORD PTR time_task_ev[rip]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	event_add@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L14
.L15:
	movsx	eax, WORD PTR -60[rbp]
	and	eax, 16
	test	eax, eax
	je	.L20
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L14
.L20:
	movsx	eax, WORD PTR -60[rbp]
	and	eax, 32
	test	eax, eax
	je	.L21
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR time_task_ev[rip]
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR time_task_ev[rip]
	mov	rdi, rax
	call	event_free@PLT
.L22:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	bufferevent_free@PLT
	jmp	.L14
.L21:
	movsx	eax, WORD PTR -60[rbp]
	and	eax, 64
	test	eax, eax
	je	.L14
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L14:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	eventcb, .-eventcb
	.section	.rodata
.LC7:
	.string	"127.0.0.1:40713"
	.text
	.globl	run
	.type	run, @function
run:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -164[rbp], 128
	lea	rax, -144[rbp]
	mov	edx, 128
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	event_base_new@PLT
	mov	QWORD PTR -160[rbp], rax
	lea	rdx, -164[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	evutil_parse_sockaddr_port@PLT
	test	eax, eax
	js	.L31
	mov	rax, QWORD PTR -160[rbp]
	mov	edx, 1
	mov	esi, -1
	mov	rdi, rax
	call	bufferevent_socket_new@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -152[rbp]
	mov	r8d, 0
	lea	rcx, eventcb[rip]
	mov	edx, 0
	lea	rsi, readcb[rip]
	mov	rdi, rax
	call	bufferevent_setcb@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	bufferevent_enable@PLT
	mov	edx, DWORD PTR -164[rbp]
	lea	rcx, -144[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	bufferevent_socket_connect@PLT
	test	eax, eax
	jns	.L28
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	bufferevent_free@PLT
	jmp	.L24
.L28:
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	event_base_loop@PLT
	jmp	.L24
.L31:
	nop
	jmp	.L24
.L32:
	nop
.L24:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	eax, 0
	call	run
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"891351.c"
	.text
	.global	time_task_ev
	.bss
	.align	2
	.type	time_task_ev, %object
	.size	time_task_ev, 4
time_task_ev:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readcb
	.syntax unified
	.arm
	.fpu softvfp
	.type	readcb, %function
readcb:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L6:
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	bufferevent_read
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L9
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L4
.L5:
	sub	r2, fp, #136
	ldr	r3, [fp, #-144]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L4:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-140]
	cmp	r2, r3
	bhi	.L5
	b	.L6
.L9:
	nop
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	readcb, .-readcb
	.section	.rodata
	.align	2
.LC1:
	.ascii	"hello world: %ld.%06ld\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cb_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	cb_func, %function
cb_func:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-280]
	str	r2, [fp, #-288]
	sub	r3, fp, #4
	sub	r3, r3, #276
	sub	r3, r3, #2
	mov	r2, r1	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #272
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-268]
	sub	r0, fp, #264
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L16+4
	mov	r1, #256
	bl	snprintf
	ldr	r3, [fp, #-288]
	str	r3, [fp, #-276]
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	bufferevent_write
.L15:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC1
	.size	cb_func, .-cb_func
	.section	.rodata
	.align	2
.LC3:
	.ascii	"connected\000"
	.align	2
.LC4:
	.ascii	"failed create time task event\012\000"
	.align	2
.LC5:
	.ascii	"failed event_add time_task_ev\012\000"
	.align	2
.LC6:
	.ascii	"event eof\000"
	.align	2
.LC7:
	.ascii	"event error\000"
	.align	2
.LC8:
	.ascii	"event timeout\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	eventcb
	.syntax unified
	.arm
	.fpu softvfp
	.type	eventcb, %function
eventcb:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	mov	r3, r1
	str	r2, [fp, #-40]
	strh	r3, [fp, #-34]	@ movhi
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrh	r3, [fp, #-34]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L28+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L28+8
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-32]
	bl	bufferevent_get_base
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, .L28+12
	mov	r2, #16
	mvn	r1, #0
	ldr	r0, [fp, #-24]
	bl	event_new
	mov	r3, r0
	ldr	r2, .L28+16
	str	r3, [r2]
	ldr	r3, .L28+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L28+20
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L28+24
	bl	fwrite
	b	.L18
.L20:
	ldr	r3, .L28+16
	ldr	r3, [r3]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	event_add
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L28+20
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L28+28
	bl	fwrite
	b	.L18
.L19:
	ldrh	r3, [fp, #-34]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L28+32
	bl	puts
	b	.L18
.L24:
	ldrh	r3, [fp, #-34]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L28+36
	bl	puts
	ldr	r3, .L28+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L28+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	event_free
.L26:
	ldr	r0, [fp, #-32]
	bl	bufferevent_free
	b	.L18
.L25:
	ldrh	r3, [fp, #-34]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L28+40
	bl	puts
.L18:
	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	.LC9
	.word	.LC3
	.word	500000
	.word	cb_func
	.word	time_task_ev
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	eventcb, .-eventcb
	.section	.rodata
	.align	2
.LC10:
	.ascii	"127.0.0.1:40713\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	mov	r3, #128
	str	r3, [fp, #-148]
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	event_base_new
	str	r0, [fp, #-144]
	sub	r2, fp, #148
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L39+4
	bl	evutil_parse_sockaddr_port
	mov	r3, r0
	cmp	r3, #0
	blt	.L37
	mov	r2, #1
	mvn	r1, #0
	ldr	r0, [fp, #-144]
	bl	bufferevent_socket_new
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L38
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L39+8
	mov	r2, #0
	ldr	r1, .L39+12
	ldr	r0, [fp, #-140]
	bl	bufferevent_setcb
	mov	r1, #6
	ldr	r0, [fp, #-140]
	bl	bufferevent_enable
	ldr	r2, [fp, #-148]
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-140]
	bl	bufferevent_socket_connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L34
	ldr	r0, [fp, #-140]
	bl	bufferevent_free
	b	.L30
.L34:
	mov	r1, #4
	ldr	r0, [fp, #-144]
	bl	event_base_loop
	b	.L30
.L37:
	nop
	b	.L30
.L38:
	nop
.L30:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC11
	.word	.LC10
	.word	eventcb
	.word	readcb
	.size	run, .-run
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L43
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	bl	run
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
