	.file	"40763549.c"
	.intel_syntax noprefix
	.text
	.globl	rot13_char
	.type	rot13_char, @function
rot13_char:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 96
	jle	.L2
	cmp	BYTE PTR -4[rbp], 109
	jle	.L3
.L2:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L4
	cmp	BYTE PTR -4[rbp], 77
	jg	.L4
.L3:
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 13
	jmp	.L5
.L4:
	cmp	BYTE PTR -4[rbp], 109
	jle	.L6
	cmp	BYTE PTR -4[rbp], 122
	jle	.L7
.L6:
	cmp	BYTE PTR -4[rbp], 77
	jle	.L8
	cmp	BYTE PTR -4[rbp], 90
	jg	.L8
.L7:
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 13
	jmp	.L5
.L8:
	movzx	eax, BYTE PTR -4[rbp]
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rot13_char, .-rot13_char
	.section	.rodata
.LC0:
	.string	"xsw  malloc state fail ! "
	.align 8
.LC1:
	.string	"xsw event_new read_event fail ! "
	.align 8
.LC2:
	.string	"xsw event_new write_event fail ! "
.LC3:
	.string	"the_stack_data/40763549.c"
.LC4:
	.string	"state->write_event"
	.text
	.globl	alloc_fd_state
	.type	alloc_fd_state, @function
alloc_fd_state:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edi, 120
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L11
.L10:
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdx
	lea	rcx, do_read[rip]
	mov	edx, 18
	mov	rdi, rax
	call	event_new@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 104[rax]
	test	rax, rax
	jne	.L12
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L11
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdx
	lea	rcx, do_write[rip]
	mov	edx, 20
	mov	rdi, rax
	call	event_new@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 112[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	jne	.L13
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rdi, rax
	call	event_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 96[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	jne	.L14
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 73
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L14:
	mov	rax, QWORD PTR -8[rbp]
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	alloc_fd_state, .-alloc_fd_state
	.globl	free_fd_state
	.type	free_fd_state, @function
free_fd_state:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rdi, rax
	call	event_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	event_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	free_fd_state, .-free_fd_state
	.section	.rodata
.LC5:
	.string	"recv"
	.text
	.globl	do_read
	.type	do_read, @function
do_read:
.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, 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
	mov	rax, QWORD PTR -320[rbp]
	mov	QWORD PTR -288[rbp], rax
.L25:
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	jne	.L17
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 93
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L17:
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jle	.L32
	mov	DWORD PTR -292[rbp], 0
	jmp	.L20
.L24:
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 80[rax]
	cmp	rax, 79
	ja	.L21
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -288[rbp]
	mov	QWORD PTR 80[rdx], rcx
	mov	edx, DWORD PTR -292[rbp]
	movsx	rdx, edx
	movzx	ecx, BYTE PTR -272[rbp+rdx]
	mov	rdx, QWORD PTR -288[rbp]
	mov	BYTE PTR [rdx+rax], cl
.L21:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	cmp	al, 10
	jne	.L22
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	jne	.L23
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 110
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L23:
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	esi, 0
	mov	rdi, rax
	call	event_add@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	QWORD PTR 96[rax], rdx
.L22:
	add	DWORD PTR -292[rbp], 1
.L20:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	cmp	QWORD PTR -280[rbp], rax
	jg	.L24
	jmp	.L25
.L32:
	nop
	cmp	QWORD PTR -280[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free_fd_state
	jmp	.L16
.L26:
	cmp	QWORD PTR -280[rbp], 0
	jns	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L33
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free_fd_state
	jmp	.L16
.L33:
	nop
.L16:
	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	do_read, .-do_read
	.section	.rodata
.LC6:
	.string	"result != 0"
	.text
	.globl	do_write
	.type	do_write, @function
do_write:
.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, 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 -16[rbp], rax
	jmp	.L35
.L40:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 88[rax]
	sub	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L42
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free_fd_state
	jmp	.L34
.L36:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L39
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 146
	lea	rsi, .LC3[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L39:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 88[rax], rdx
.L35:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 96[rax]
	cmp	rdx, rax
	jb	.L40
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 80[rax]
	cmp	rdx, rax
	jne	.L41
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 80[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 88[rax], rdx
.L41:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	event_del@PLT
	jmp	.L34
.L42:
	nop
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do_write, .-do_write
	.section	.rodata
.LC7:
	.string	"accept"
.LC8:
	.string	"state"
	.text
	.globl	do_accept
	.type	do_accept, @function
do_accept:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -192[rbp], rdx
	mov	WORD PTR -184[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -168[rbp], 128
	lea	rdx, -168[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L44
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L49
.L44:
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	evutil_make_socket_nonblocking@PLT
	mov	edx, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	alloc_fd_state
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 0
	jne	.L46
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 184
	lea	rsi, .LC3[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L46:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	jne	.L47
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 185
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L47:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	esi, 0
	mov	rdi, rax
	call	event_add@PLT
.L49:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do_accept, .-do_accept
	.section	.rodata
.LC9:
	.string	"bind"
.LC10:
	.string	"listen"
	.text
	.globl	run
	.type	run, @function
run:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	event_base_new@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L57
	mov	WORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	mov	edi, 15000
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	evutil_make_socket_nonblocking@PLT
	mov	DWORD PTR -60[rbp], 1
	lea	rdx, -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L53
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L50
.L53:
	mov	DWORD PTR -52[rbp], 1000
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, edx
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L54
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L50
.L54:
	mov	rdx, QWORD PTR -48[rbp]
	mov	esi, DWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	r8, rdx
	lea	rcx, do_accept[rip]
	mov	edx, 18
	mov	rdi, rax
	call	event_new@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	event_add@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	event_base_dispatch@PLT
	jmp	.L50
.L57:
	nop
.L50:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	run, .-run
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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
	call	run
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 15
__PRETTY_FUNCTION__.3:
	.string	"alloc_fd_state"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 8
__PRETTY_FUNCTION__.2:
	.string	"do_read"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 9
__PRETTY_FUNCTION__.1:
	.string	"do_write"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 10
__PRETTY_FUNCTION__.0:
	.string	"do_accept"
	.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	"40763549.c"
	.text
	.align	2
	.global	rot13_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	rot13_char, %function
rot13_char:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #109
	bls	.L3
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L4
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #77
	bhi	.L4
.L3:
	ldrb	r3, [fp, #-5]
	add	r3, r3, #13
	and	r3, r3, #255
	b	.L5
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #109
	bls	.L6
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L7
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #77
	bls	.L8
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L8
.L7:
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #13
	and	r3, r3, #255
	b	.L5
.L8:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rot13_char, .-rot13_char
	.section	.rodata
	.align	2
.LC0:
	.ascii	"xsw  malloc state fail ! \000"
	.align	2
.LC1:
	.ascii	"xsw event_new read_event fail ! \000"
	.align	2
.LC2:
	.ascii	"xsw event_new write_event fail ! \000"
	.align	2
.LC3:
	.ascii	"the_stack_data/40763549.c\000"
	.align	2
.LC4:
	.ascii	"state->write_event\000"
	.text
	.align	2
	.global	alloc_fd_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_fd_state, %function
alloc_fd_state:
	@ 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]
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L15
	bl	puts
	mov	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, .L15+4
	mov	r2, #18
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	event_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #92]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #92]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L11
.L12:
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, .L15+12
	mov	r2, #20
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	event_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #96]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #96]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L15+16
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	event_free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L11
.L13:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #88]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #84]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #96]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L15+20
	mov	r2, #73
	ldr	r1, .L15+24
	ldr	r0, .L15+28
	bl	__assert_fail
.L14:
	ldr	r3, [fp, #-8]
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	do_read
	.word	.LC1
	.word	do_write
	.word	.LC2
	.word	__PRETTY_FUNCTION__.7102
	.word	.LC3
	.word	.LC4
	.size	alloc_fd_state, .-alloc_fd_state
	.align	2
	.global	free_fd_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_fd_state, %function
free_fd_state:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	event_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #96]
	mov	r0, r3
	bl	event_free
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_fd_state, .-free_fd_state
	.section	.rodata
	.align	2
.LC5:
	.ascii	"recv\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_read, %function
do_read:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	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, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-288]
	str	r3, [fp, #-272]
.L27:
	ldr	r3, [fp, #-272]
	ldr	r3, [r3, #96]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L36+4
	mov	r2, #93
	ldr	r1, .L36+8
	ldr	r0, .L36+12
	bl	__assert_fail
.L19:
	sub	r1, fp, #264
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-280]
	bl	recv
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	ble	.L34
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L22
.L26:
	ldr	r3, [fp, #-272]
	ldr	r3, [r3, #80]
	cmp	r3, #79
	bhi	.L23
	ldr	r3, [fp, #-272]
	ldr	r3, [r3, #80]
	add	r1, r3, #1
	ldr	r2, [fp, #-272]
	str	r1, [r2, #80]
	sub	r1, fp, #264
	ldr	r2, [fp, #-276]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-272]
	strb	r1, [r2, r3]
.L23:
	sub	r2, fp, #264
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L24
	ldr	r3, [fp, #-272]
	ldr	r3, [r3, #96]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L36+4
	mov	r2, #110
	ldr	r1, .L36+8
	ldr	r0, .L36+12
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-272]
	ldr	r3, [r3, #96]
	mov	r1, #0
	mov	r0, r3
	bl	event_add
	ldr	r3, [fp, #-272]
	ldr	r2, [r3, #80]
	ldr	r3, [fp, #-272]
	str	r2, [r3, #88]
.L24:
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L22:
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-268]
	cmp	r2, r3
	blt	.L26
	b	.L27
.L34:
	nop
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L28
	ldr	r0, [fp, #-272]
	bl	free_fd_state
	b	.L18
.L28:
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L35
	ldr	r0, .L36+16
	bl	perror
	ldr	r0, [fp, #-272]
	bl	free_fd_state
	b	.L18
.L35:
	nop
.L18:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.7115
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	do_read, .-do_read
	.section	.rodata
	.align	2
.LC7:
	.ascii	"result != 0\000"
	.text
	.align	2
	.global	do_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_write, %function
do_write:
	@ 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, #-12]
	b	.L39
.L44:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	add	r1, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	sub	r2, r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-16]
	bl	send
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L46
	ldr	r0, [fp, #-12]
	bl	free_fd_state
	b	.L38
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L47
	mov	r2, #146
	ldr	r1, .L47+4
	ldr	r0, .L47+8
	bl	__assert_fail
.L43:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #84]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #84]
.L39:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #84]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	cmp	r2, r3
	bcc	.L44
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #84]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	cmp	r2, r3
	bne	.L45
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #88]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #84]
.L45:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #96]
	mov	r0, r3
	bl	event_del
	b	.L38
.L46:
	nop
.L38:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	__PRETTY_FUNCTION__.7128
	.word	.LC3
	.word	.LC7
	.size	do_write, .-do_write
	.section	.rodata
	.align	2
.LC8:
	.ascii	"accept\000"
	.align	2
.LC9:
	.ascii	"state\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_accept, %function
do_accept:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	mov	r3, r1
	str	r2, [fp, #-168]
	strh	r3, [fp, #-162]	@ movhi
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-148]
	mov	r3, #128
	str	r3, [fp, #-152]
	sub	r2, fp, #152
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	accept
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bge	.L50
	ldr	r0, .L56+4
	bl	perror
	b	.L55
.L50:
	ldr	r0, [fp, #-144]
	bl	evutil_make_socket_nonblocking
	ldr	r1, [fp, #-144]
	ldr	r0, [fp, #-148]
	bl	alloc_fd_state
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L52
	ldr	r3, .L56+8
	mov	r2, #184
	ldr	r1, .L56+12
	ldr	r0, .L56+16
	bl	__assert_fail
.L52:
	ldr	r3, [fp, #-140]
	ldr	r3, [r3, #96]
	cmp	r3, #0
	bne	.L53
	ldr	r3, .L56+8
	mov	r2, #185
	ldr	r1, .L56+12
	ldr	r0, .L56+20
	bl	__assert_fail
.L53:
	ldr	r3, [fp, #-140]
	ldr	r3, [r3, #92]
	mov	r1, #0
	mov	r0, r3
	bl	event_add
.L55:
	nop
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC10
	.word	.LC8
	.word	__PRETTY_FUNCTION__.7142
	.word	.LC3
	.word	.LC9
	.word	.LC4
	.size	do_accept, .-do_accept
	.section	.rodata
	.align	2
.LC11:
	.ascii	"bind\000"
	.align	2
.LC12:
	.ascii	"listen\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	event_base_new
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L65
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L66+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-36]
	bl	evutil_make_socket_nonblocking
	mov	r3, #1
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	setsockopt
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L61
	ldr	r0, .L66+8
	bl	perror
	b	.L58
.L61:
	mov	r3, #1000
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L62
	ldr	r0, .L66+12
	bl	perror
	b	.L58
.L62:
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	ldr	r3, .L66+16
	mov	r2, #18
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	event_new
	str	r0, [fp, #-28]
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	event_add
	ldr	r0, [fp, #-40]
	bl	event_base_dispatch
	b	.L58
.L65:
	nop
.L58:
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC13
	.word	15000
	.word	.LC11
	.word	.LC12
	.word	do_accept
	.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]
	bl	run
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7102, %object
	.size	__PRETTY_FUNCTION__.7102, 15
__PRETTY_FUNCTION__.7102:
	.ascii	"alloc_fd_state\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7115, %object
	.size	__PRETTY_FUNCTION__.7115, 8
__PRETTY_FUNCTION__.7115:
	.ascii	"do_read\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7128, %object
	.size	__PRETTY_FUNCTION__.7128, 9
__PRETTY_FUNCTION__.7128:
	.ascii	"do_write\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7142, %object
	.size	__PRETTY_FUNCTION__.7142, 10
__PRETTY_FUNCTION__.7142:
	.ascii	"do_accept\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
