	.file	"98644.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
	.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, 16
	mov	edi, 16416
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	eax, 0
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16408[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 16392[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16392[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16400[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16400[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16384[rax], rdx
	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	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	free_fd_state, .-free_fd_state
	.globl	make_nonblocking
	.type	make_nonblocking, @function
make_nonblocking:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	make_nonblocking, .-make_nonblocking
	.globl	do_read
	.type	do_read, @function
do_read:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1080
	.cfi_offset 3, -24
	mov	DWORD PTR -1076[rbp], edi
	mov	QWORD PTR -1088[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
.L21:
	lea	rsi, -1056[rbp]
	mov	eax, DWORD PTR -1076[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jle	.L29
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L17
.L20:
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 16384[rax]
	cmp	rax, 16383
	ja	.L18
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	movzx	eax, BYTE PTR -1056[rbp+rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -1088[rbp]
	mov	rbx, QWORD PTR 16384[rdx]
	lea	rcx, 1[rbx]
	mov	rdx, QWORD PTR -1088[rbp]
	mov	QWORD PTR 16384[rdx], rcx
	mov	edi, eax
	call	rot13_char
	mov	rdx, QWORD PTR -1088[rbp]
	mov	BYTE PTR [rdx+rbx], al
.L18:
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	movzx	eax, BYTE PTR -1056[rbp+rax]
	cmp	al, 10
	jne	.L19
	mov	rax, QWORD PTR -1088[rbp]
	mov	DWORD PTR 16392[rax], 1
	mov	rax, QWORD PTR -1088[rbp]
	mov	rdx, QWORD PTR 16384[rax]
	mov	rax, QWORD PTR -1088[rbp]
	mov	QWORD PTR 16408[rax], rdx
.L19:
	add	DWORD PTR -1068[rbp], 1
.L17:
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	cmp	QWORD PTR -1064[rbp], rax
	jg	.L20
	jmp	.L21
.L29:
	nop
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L22
	mov	eax, 1
	jmp	.L26
.L22:
	cmp	QWORD PTR -1064[rbp], 0
	jns	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L25
	mov	eax, 0
	jmp	.L26
.L25:
	mov	eax, -1
	jmp	.L26
.L24:
	mov	eax, 0
.L26:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do_read, .-do_read
	.section	.rodata
.LC0:
	.string	"the_stack_data/98644.c"
.LC1:
	.string	"result != 0"
	.text
	.globl	do_write
	.type	do_write, @function
do_write:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L31
.L36:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16408[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16400[rax]
	sub	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16400[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	.L32
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L33
	mov	eax, 0
	jmp	.L34
.L33:
	mov	eax, -1
	jmp	.L34
.L32:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L35
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 99
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L35:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16400[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16400[rax], rdx
.L31:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16400[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16408[rax]
	cmp	rdx, rax
	jb	.L36
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16400[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16384[rax]
	cmp	rdx, rax
	jne	.L37
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16384[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16384[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16408[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 16408[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16400[rax], rdx
.L37:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 16392[rax], 0
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	do_write, .-do_write
	.section	.rodata
.LC2:
	.string	"bind"
.LC3:
	.string	"listen"
.LC4:
	.string	"select"
.LC5:
	.string	"accept"
.LC6:
	.string	"state[fd]"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 624
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -8736[rbp], 2
	mov	DWORD PTR -8732[rbp], 0
	mov	edi, 40713
	call	htons@PLT
	mov	WORD PTR -8734[rbp], ax
	mov	DWORD PTR -8804[rbp], 0
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	QWORD PTR -8208[rbp+rax*8], 0
	add	DWORD PTR -8804[rbp], 1
.L39:
	cmp	DWORD PTR -8804[rbp], 1023
	jle	.L40
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8792[rbp], eax
	mov	eax, DWORD PTR -8792[rbp]
	mov	edi, eax
	call	make_nonblocking
	lea	rcx, -8736[rbp]
	mov	eax, DWORD PTR -8792[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L41
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -8792[rbp]
	mov	esi, 16
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L43
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L38
.L43:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8720[rbp]
	mov	rdi, rdx
#APP
# 151 "the_stack_data/98644.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8788[rbp], edx
	mov	DWORD PTR -8784[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8592[rbp]
	mov	rdi, rdx
#APP
# 152 "the_stack_data/98644.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8780[rbp], edx
	mov	DWORD PTR -8776[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8464[rbp]
	mov	rdi, rdx
#APP
# 153 "the_stack_data/98644.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8772[rbp], edx
	mov	DWORD PTR -8768[rbp], eax
.L59:
	mov	eax, DWORD PTR -8792[rbp]
	mov	DWORD PTR -8800[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8720[rbp]
	mov	rdi, rdx
#APP
# 158 "the_stack_data/98644.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8764[rbp], edx
	mov	DWORD PTR -8760[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8592[rbp]
	mov	rdi, rdx
#APP
# 159 "the_stack_data/98644.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8756[rbp], edx
	mov	DWORD PTR -8752[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8464[rbp]
	mov	rdi, rdx
#APP
# 160 "the_stack_data/98644.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8748[rbp], edx
	mov	DWORD PTR -8744[rbp], eax
	mov	eax, DWORD PTR -8792[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8720[rbp+rax*8]
	mov	eax, DWORD PTR -8792[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -8720[rbp+rax*8], rdx
	mov	DWORD PTR -8804[rbp], 0
	jmp	.L44
.L47:
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	rax, QWORD PTR -8208[rbp+rax*8]
	test	rax, rax
	je	.L45
	mov	eax, DWORD PTR -8804[rbp]
	cmp	eax, DWORD PTR -8800[rbp]
	jle	.L46
	mov	eax, DWORD PTR -8804[rbp]
	mov	DWORD PTR -8800[rbp], eax
.L46:
	mov	eax, DWORD PTR -8804[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8720[rbp+rax*8]
	mov	eax, DWORD PTR -8804[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -8720[rbp+rax*8], rdx
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	rax, QWORD PTR -8208[rbp+rax*8]
	mov	eax, DWORD PTR 16392[rax]
	test	eax, eax
	je	.L45
	mov	eax, DWORD PTR -8804[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8592[rbp+rax*8]
	mov	eax, DWORD PTR -8804[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -8592[rbp+rax*8], rdx
.L45:
	add	DWORD PTR -8804[rbp], 1
.L44:
	cmp	DWORD PTR -8804[rbp], 1023
	jle	.L47
	mov	eax, DWORD PTR -8800[rbp]
	lea	edi, 1[rax]
	lea	rcx, -8464[rbp]
	lea	rdx, -8592[rbp]
	lea	rax, -8720[rbp]
	mov	r8d, 0
	mov	rsi, rax
	call	select@PLT
	test	eax, eax
	jns	.L48
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L38
.L48:
	mov	eax, DWORD PTR -8792[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8720[rbp+rax*8]
	mov	eax, DWORD PTR -8792[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L49
	mov	DWORD PTR -8808[rbp], 128
	lea	rdx, -8808[rbp]
	lea	rcx, -8336[rbp]
	mov	eax, DWORD PTR -8792[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8740[rbp], eax
	cmp	DWORD PTR -8740[rbp], 0
	jns	.L50
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L49
.L50:
	cmp	DWORD PTR -8740[rbp], 1024
	jle	.L52
	mov	eax, DWORD PTR -8740[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L49
.L52:
	mov	eax, DWORD PTR -8740[rbp]
	mov	edi, eax
	call	make_nonblocking
	call	alloc_fd_state
	mov	edx, DWORD PTR -8740[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -8208[rbp+rdx*8], rax
	mov	eax, DWORD PTR -8740[rbp]
	cdqe
	mov	rax, QWORD PTR -8208[rbp+rax*8]
	test	rax, rax
	jne	.L49
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 207
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L49:
	mov	DWORD PTR -8804[rbp], 0
	jmp	.L53
.L58:
	mov	DWORD PTR -8796[rbp], 0
	mov	eax, DWORD PTR -8804[rbp]
	cmp	eax, DWORD PTR -8792[rbp]
	je	.L62
	mov	eax, DWORD PTR -8804[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8720[rbp+rax*8]
	mov	eax, DWORD PTR -8804[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L56
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	rdx, QWORD PTR -8208[rbp+rax*8]
	mov	eax, DWORD PTR -8804[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	do_read
	mov	DWORD PTR -8796[rbp], eax
.L56:
	cmp	DWORD PTR -8796[rbp], 0
	jne	.L57
	mov	eax, DWORD PTR -8804[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8592[rbp+rax*8]
	mov	eax, DWORD PTR -8804[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L57
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	rdx, QWORD PTR -8208[rbp+rax*8]
	mov	eax, DWORD PTR -8804[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	do_write
	mov	DWORD PTR -8796[rbp], eax
.L57:
	cmp	DWORD PTR -8796[rbp], 0
	je	.L55
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	rax, QWORD PTR -8208[rbp+rax*8]
	mov	rdi, rax
	call	free_fd_state
	mov	eax, DWORD PTR -8804[rbp]
	cdqe
	mov	QWORD PTR -8208[rbp+rax*8], 0
	mov	eax, DWORD PTR -8804[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L55
.L62:
	nop
.L55:
	add	DWORD PTR -8804[rbp], 1
.L53:
	mov	eax, DWORD PTR -8800[rbp]
	cmp	eax, DWORD PTR -8804[rbp]
	jge	.L58
	jmp	.L59
.L38:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	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
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	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__.1, @object
	.size	__PRETTY_FUNCTION__.1, 9
__PRETTY_FUNCTION__.1:
	.string	"do_write"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 4
__PRETTY_FUNCTION__.0:
	.string	"run"
	.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	"98644.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
	.align	2
	.global	alloc_fd_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_fd_state, %function
alloc_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
	ldr	r0, .L12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #16384
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #16384
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #16384
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	add	r2, r2, #16384
	str	r3, [r2]
	ldr	r3, [fp, #-8]
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	16400
	.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	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_fd_state, .-free_fd_state
	.align	2
	.global	make_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_nonblocking, %function
make_nonblocking:
	@ 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]
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	fcntl
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	make_nonblocking, .-make_nonblocking
	.section	.rodata
	.align	2
.LC0:
	.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 = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L23:
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1056]
	bl	recv
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	ble	.L31
	mov	r3, #0
	str	r3, [fp, #-1048]
	b	.L19
.L22:
	ldr	r3, [fp, #-1060]
	add	r3, r3, #16384
	ldr	r3, [r3]
	cmp	r3, #16384
	bcs	.L20
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1048]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1060]
	add	r3, r3, #16384
	ldr	r4, [r3]
	add	r3, r4, #1
	ldr	r2, [fp, #-1060]
	add	r2, r2, #16384
	str	r3, [r2]
	mov	r0, r1
	bl	rot13_char
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1060]
	strb	r2, [r3, r4]
.L20:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1048]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L21
	ldr	r3, [fp, #-1060]
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4]
	ldr	r3, [fp, #-1060]
	add	r3, r3, #16384
	ldr	r3, [r3]
	ldr	r2, [fp, #-1060]
	add	r2, r2, #16384
	str	r3, [r2, #12]
.L21:
	ldr	r3, [fp, #-1048]
	add	r3, r3, #1
	str	r3, [fp, #-1048]
.L19:
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	cmp	r2, r3
	blt	.L22
	b	.L23
.L31:
	nop
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bne	.L24
	mov	r3, #1
	b	.L28
.L24:
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bge	.L26
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	mvn	r3, #0
	b	.L28
.L26:
	mov	r3, #0
.L28:
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.size	do_read, .-do_read
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/98644.c\000"
	.align	2
.LC2:
	.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 = 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]
	b	.L35
.L40:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r3, [r3, #8]
	add	r1, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r3, [r3, #8]
	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	.L36
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L37
	mov	r3, #0
	b	.L38
.L37:
	mvn	r3, #0
	b	.L38
.L36:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L42
	mov	r2, #99
	ldr	r1, .L42+4
	ldr	r0, .L42+8
	bl	__assert_fail
.L39:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	add	r2, r2, #16384
	str	r3, [r2, #8]
.L35:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bcc	.L40
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L41
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #16384
	str	r3, [r2, #12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-20]
	add	r2, r2, #16384
	str	r3, [r2, #8]
.L41:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16384
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4]
	mov	r3, #0
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	__PRETTY_FUNCTION__.6335
	.word	.LC1
	.word	.LC2
	.size	do_write, .-do_write
	.section	.rodata
	.align	2
.LC3:
	.ascii	"bind\000"
	.align	2
.LC4:
	.ascii	"listen\000"
	.align	2
.LC5:
	.ascii	"select\000"
	.align	2
.LC6:
	.ascii	"accept\000"
	.align	2
.LC7:
	.ascii	"state[fd]\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 4704
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4672
	sub	sp, sp, #44
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #532
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-528]
	ldr	r0, .L81+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #532
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-600]
	b	.L45
.L46:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r3, r3, #1
	str	r3, [r2, #-600]
.L45:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	cmp	r3, #1024
	blt	.L46
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-564]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-564]
	bl	make_nonblocking
	sub	r3, fp, #4608
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-564]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L47
	ldr	r0, .L81+8
	bl	perror
	b	.L44
.L47:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #16
	ldr	r0, [r3, #-564]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L49
	ldr	r0, .L81+12
	bl	perror
	b	.L44
.L49:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4608
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-560]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-592]
	b	.L50
.L51:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-560]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-592]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-592]
	add	r3, r3, #1
	str	r3, [r2, #-592]
.L50:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-592]
	cmp	r3, #31
	bls	.L51
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-556]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-588]
	b	.L52
.L53:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-556]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-588]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-588]
	add	r3, r3, #1
	str	r3, [r2, #-588]
.L52:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-588]
	cmp	r3, #31
	bls	.L53
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-552]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-584]
	b	.L54
.L55:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-552]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-584]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-584]
	add	r3, r3, #1
	str	r3, [r2, #-584]
.L54:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-584]
	cmp	r3, #31
	bls	.L55
.L77:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-564]
	str	r3, [r2, #-596]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4608
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-548]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-580]
	b	.L56
.L57:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-548]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-580]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-580]
	add	r3, r3, #1
	str	r3, [r2, #-580]
.L56:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-580]
	cmp	r3, #31
	bls	.L57
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-544]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-576]
	b	.L58
.L59:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-544]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-576]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-576]
	add	r3, r3, #1
	str	r3, [r2, #-576]
.L58:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-576]
	cmp	r3, #31
	bls	.L59
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-540]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-572]
	b	.L60
.L61:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-540]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-572]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-572]
	add	r3, r3, #1
	str	r3, [r2, #-572]
.L60:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-572]
	cmp	r3, #31
	bls	.L61
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-564]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-564]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-600]
	b	.L62
.L65:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	cmp	r3, #0
	beq	.L63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-600]
	ldr	r3, [r3, #-596]
	cmp	r2, r3
	ble	.L64
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	str	r3, [r2, #-596]
.L64:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	add	r3, r3, #16384
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-388]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-388]
.L63:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r3, r3, #1
	str	r3, [r2, #-600]
.L62:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	cmp	r3, #1024
	blt	.L65
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-596]
	add	r0, r3, #1
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4480
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #4608
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	ip, #0
	str	ip, [sp]
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bge	.L66
	ldr	r0, .L81+16
	bl	perror
	b	.L44
.L66:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-564]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-564]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L67
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #128
	str	r3, [r2, #-604]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #4672
	sub	r2, r2, #12
	sub	r2, r2, #28
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-564]
	bl	accept
	str	r0, [r4, #-536]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-536]
	cmp	r3, #0
	bge	.L68
	ldr	r0, .L81+20
	bl	perror
	b	.L67
.L68:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-536]
	cmp	r3, #1024
	ble	.L70
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-536]
	bl	close
	b	.L67
.L70:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-536]
	bl	make_nonblocking
	bl	alloc_fd_state
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-536]
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-536]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L81+24
	mov	r2, #207
	ldr	r1, .L81+28
	ldr	r0, .L81+32
	bl	__assert_fail
.L67:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-600]
	b	.L71
.L76:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-568]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-600]
	ldr	r3, [r3, #-564]
	cmp	r2, r3
	beq	.L80
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-516]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L74
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-600]
	bl	do_read
	str	r0, [r4, #-568]
.L74:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-568]
	cmp	r3, #0
	bne	.L75
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-388]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-600]
	bl	do_write
	str	r0, [r4, #-568]
.L75:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-568]
	cmp	r3, #0
	beq	.L73
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	mov	r0, r3
	bl	free_fd_state
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-600]
	bl	close
	b	.L73
.L80:
	nop
.L73:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-600]
	add	r3, r3, #1
	str	r3, [r2, #-600]
.L71:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-596]
	ldr	r3, [r3, #-600]
	cmp	r2, r3
	bge	.L76
	b	.L77
.L44:
	ldr	r3, .L81
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC8
	.word	40713
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	__PRETTY_FUNCTION__.6389
	.word	.LC1
	.word	.LC7
	.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, .L85
	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}
.L86:
	.align	2
.L85:
	.word	stdout
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6335, %object
	.size	__PRETTY_FUNCTION__.6335, 9
__PRETTY_FUNCTION__.6335:
	.ascii	"do_write\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6389, %object
	.size	__PRETTY_FUNCTION__.6389, 4
__PRETTY_FUNCTION__.6389:
	.ascii	"run\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
