	.file	"643137.c"
	.intel_syntax noprefix
	.text
	.globl	quit
	.bss
	.align 4
	.type	quit, @object
	.size	quit, 4
quit:
	.zero	4
	.globl	loglevel
	.data
	.align 4
	.type	loglevel, @object
	.size	loglevel, 4
loglevel:
	.long	8
	.section	.rodata
.LC0:
	.string	"TRACE: Received SIGURS1\n"
	.text
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 10
	jne	.L4
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
.L3:
	mov	DWORD PTR quit[rip], 1
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_handler, .-signal_handler
	.section	.rodata
.LC1:
	.string	"Found"
	.align 8
.LC2:
	.string	"https://github.com/ChristopherSchultz/redirectd"
.LC7:
	.string	"malloc"
	.align 8
.LC8:
	.string	"TRACE: Allocated %d bytes for response\n"
	.align 8
.LC9:
	.string	"HTTP/1.0 %d %s\nLocation: %s\nContent-Length: 0\nConnection: close\n\n"
	.align 8
.LC10:
	.string	"Message overflowed by %d characters\n"
.LC11:
	.string	"TRACE: Built stock response\n"
.LC12:
	.string	"socket"
	.align 8
.LC13:
	.string	"TRACE: Created socket on fd %d\n"
.LC14:
	.string	"setsockopt"
.LC15:
	.string	"bind"
.LC16:
	.string	"TRACE: Bound fd %d to socket\n"
.LC17:
	.string	"listen"
.LC18:
	.string	"TRACE: Listening on port %d\n"
	.align 8
.LC19:
	.string	"TRACE: Installed signal handler for SIGUSR1\n"
.LC20:
	.string	"TRACE: poll timeout is %d\n"
	.align 8
.LC21:
	.string	"TRACE: poll was interrupted, quit=%d\n"
.LC22:
	.string	"poll"
.LC23:
	.string	"TRACE: poll() returned %d\n"
	.align 8
.LC24:
	.string	"TRACE: accept() returned client fd %d\n"
.LC25:
	.string	"accept"
	.align 8
.LC26:
	.string	"TRACE: Wrote %d bytes to response\n"
.LC27:
	.string	"TRACE: Closing fd %d\n"
	.text
	.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, 160
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -120[rbp], 1
	mov	DWORD PTR -112[rbp], 8080
	mov	DWORD PTR -108[rbp], 100
	mov	DWORD PTR -116[rbp], 16
	mov	DWORD PTR -104[rbp], 10000
	mov	DWORD PTR -100[rbp], 302
	lea	rax, .LC1[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -72[rbp], rax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -100[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	log10@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	ceil@PLT
	movsd	xmm1, QWORD PTR .LC3[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm1, xmm0
	movsd	QWORD PTR -160[rbp], xmm1
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	test	rax, rax
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L7
.L6:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L7:
	movsd	xmm1, QWORD PTR -160[rbp]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm1, xmm0
	movsd	QWORD PTR -160[rbp], xmm1
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	test	rax, rax
	js	.L8
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L9
.L8:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L9:
	movsd	xmm1, QWORD PTR -160[rbp]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L10
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L10:
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -96[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L12:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rsi, eax
	mov	rdi, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -100[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jge	.L13
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, DWORD PTR -96[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L33
.L13:
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
.L14:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L15
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L33
.L15:
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -88[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L16:
	lea	rdx, -120[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jns	.L17
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L33
.L17:
	lea	rax, -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -48[rbp], 2
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -112[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L18
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L33
.L18:
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -88[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L19:
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, edx
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L20
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L33
.L20:
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -112[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L21:
	lea	rsi, signal_handler[rip]
	mov	edi, 10
	call	signal@PLT
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
.L22:
	lea	rax, -56[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	WORD PTR -52[rbp], 1
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -104[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L24
.L31:
	mov	edx, DWORD PTR -104[rbp]
	lea	rax, -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L26
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L25
	mov	edx, DWORD PTR quit[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L25
.L26:
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 2
	jmp	.L33
.L25:
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L27:
	cmp	DWORD PTR -92[rbp], 0
	jle	.L24
	lea	rdx, -116[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -84[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L28:
	cmp	DWORD PTR -84[rbp], -1
	jne	.L29
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L33
.L29:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L30:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
.L24:
	mov	eax, DWORD PTR quit[rip]
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR loglevel[rip]
	cmp	eax, 7
	jle	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -88[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L32:
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1075970048
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.align 8
.LC5:
	.long	0
	.long	1076101120
	.align 8
.LC6:
	.long	0
	.long	1077018624
	.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	"643137.c"
	.text
	.global	quit
	.bss
	.align	2
	.type	quit, %object
	.size	quit, 4
quit:
	.space	4
	.global	loglevel
	.data
	.align	2
	.type	loglevel, %object
	.size	loglevel, 4
loglevel:
	.word	8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"TRACE: Received SIGURS1\012\000"
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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]
	cmp	r3, #10
	bne	.L4
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L3
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L5+8
	bl	fwrite
.L3:
	ldr	r3, .L5+12
	mov	r2, #1
	str	r2, [r3]
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	loglevel
	.word	stderr
	.word	.LC0
	.word	quit
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Found\000"
	.align	2
.LC2:
	.ascii	"https://github.com/ChristopherSchultz/redirectd\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ui2d
	.global	__aeabi_d2iz
	.align	2
.LC3:
	.ascii	"malloc\000"
	.align	2
.LC4:
	.ascii	"TRACE: Allocated %d bytes for response\012\000"
	.align	2
.LC5:
	.ascii	"HTTP/1.0 %d %s\012Location: %s\012Content-Length: 0"
	.ascii	"\012Connection: close\012\012\000"
	.align	2
.LC6:
	.ascii	"Message overflowed by %d characters\012\000"
	.align	2
.LC7:
	.ascii	"TRACE: Built stock response\012\000"
	.align	2
.LC8:
	.ascii	"socket\000"
	.align	2
.LC9:
	.ascii	"TRACE: Created socket on fd %d\012\000"
	.align	2
.LC10:
	.ascii	"setsockopt\000"
	.align	2
.LC11:
	.ascii	"bind\000"
	.align	2
.LC12:
	.ascii	"TRACE: Bound fd %d to socket\012\000"
	.align	2
.LC13:
	.ascii	"listen\000"
	.align	2
.LC14:
	.ascii	"TRACE: Listening on port %d\012\000"
	.align	2
.LC15:
	.ascii	"TRACE: Installed signal handler for SIGUSR1\012\000"
	.align	2
.LC16:
	.ascii	"TRACE: poll timeout is %d\012\000"
	.align	2
.LC17:
	.ascii	"TRACE: poll was interrupted, quit=%d\012\000"
	.align	2
.LC18:
	.ascii	"poll\000"
	.align	2
.LC19:
	.ascii	"TRACE: poll() returned %d\012\000"
	.align	2
.LC20:
	.ascii	"TRACE: accept() returned client fd %d\012\000"
	.align	2
.LC21:
	.ascii	"accept\000"
	.align	2
.LC22:
	.ascii	"TRACE: Wrote %d bytes to response\012\000"
	.align	2
.LC23:
	.ascii	"TRACE: Closing fd %d\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-108]
	ldr	r3, .L33+4
	str	r3, [fp, #-100]
	mov	r3, #100
	str	r3, [fp, #-96]
	mov	r3, #16
	str	r3, [fp, #-104]
	ldr	r3, .L33+8
	str	r3, [fp, #-92]
	ldr	r3, .L33+12
	str	r3, [fp, #-88]
	ldr	r3, .L33+16
	str	r3, [fp, #-84]
	ldr	r3, .L33+20
	str	r3, [fp, #-80]
	ldr	r0, [fp, #-88]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log10
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, #0
	ldr	r3, .L33+24
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+28
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-84]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+28
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+32
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-80]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+28
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+36
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+36
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+28
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L33+28
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L33+40
	bl	perror
	mov	r3, #1
	b	.L31
.L8:
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L10
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	ldr	r1, .L33+52
	mov	r0, r3
	bl	fprintf
.L10:
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-80]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-84]
	str	r3, [sp]
	ldr	r3, [fp, #-88]
	ldr	r2, .L33+56
	ldr	r0, [fp, #-72]
	bl	snprintf
	str	r0, [fp, #-68]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-68]
	cmp	r2, r3
	bge	.L11
	ldr	r3, .L33+48
	ldr	r0, [r3]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L33+60
	bl	fprintf
	mov	r3, #1
	b	.L31
.L11:
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L12
	ldr	r3, .L33+48
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L33+64
	bl	fwrite
.L12:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L33+68
	bl	perror
	mov	r3, #1
	b	.L31
.L13:
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L14
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L33+72
	mov	r0, r3
	bl	fprintf
.L14:
	sub	r3, fp, #108
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-64]
	bl	setsockopt
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L33+76
	bl	perror
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #1
	b	.L31
.L15:
	sub	r3, fp, #48
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-48]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	sub	r3, fp, #48
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L33+80
	bl	perror
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #1
	b	.L31
.L16:
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L17
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L33+84
	mov	r0, r3
	bl	fprintf
.L17:
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-64]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L33+88
	bl	perror
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #1
	b	.L31
.L18:
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L19
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	ldr	r1, .L33+92
	mov	r0, r3
	bl	fprintf
.L19:
	ldr	r1, .L33+96
	mov	r0, #10
	bl	signal
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L20
	ldr	r3, .L33+48
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L33+100
	bl	fwrite
.L20:
	sub	r3, fp, #56
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-56]
	mov	r3, #1
	strh	r3, [fp, #-52]	@ movhi
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L22
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-92]
	ldr	r1, .L33+104
	mov	r0, r3
	bl	fprintf
	b	.L22
.L29:
	sub	r3, fp, #56
	ldr	r2, [fp, #-92]
	mov	r1, #1
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L24
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L23
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, .L33+108
	ldr	r2, [r2]
	ldr	r1, .L33+112
	mov	r0, r3
	bl	fprintf
	b	.L23
.L24:
	ldr	r0, .L33+116
	bl	perror
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #2
	b	.L31
.L23:
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L25
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	ldr	r1, .L33+120
	mov	r0, r3
	bl	fprintf
.L25:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L22
	sub	r2, fp, #104
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	accept
	str	r0, [fp, #-60]
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L26
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	ldr	r1, .L33+124
	mov	r0, r3
	bl	fprintf
.L26:
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L33+128
	bl	perror
	mov	r3, #2
	b	.L31
.L27:
	ldr	r3, [fp, #-76]
	mov	r2, r3
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-60]
	bl	write
	str	r0, [fp, #-68]
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L28
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	ldr	r1, .L33+132
	mov	r0, r3
	bl	fprintf
.L28:
	ldr	r0, [fp, #-60]
	bl	close
.L22:
	ldr	r3, .L33+108
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L33+44
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L30
	ldr	r3, .L33+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L33+136
	mov	r0, r3
	bl	fprintf
.L30:
	ldr	r0, [fp, #-64]
	bl	close
	mov	r3, #0
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC24
	.word	8080
	.word	10000
	.word	302
	.word	.LC1
	.word	.LC2
	.word	1075970048
	.word	1072693248
	.word	1076101120
	.word	1077018624
	.word	.LC3
	.word	loglevel
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	signal_handler
	.word	.LC15
	.word	.LC16
	.word	quit
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
