	.file	"785471.c"
	.intel_syntax noprefix
	.text
	.globl	notfound_message
	.section	.rodata
	.align 32
	.type	notfound_message, @object
	.size	notfound_message, 61
notfound_message:
	.string	"HTTP/1.1 404 Not Found\r\nContent-Type:text/plain\r\n\r\nNot Found"
	.globl	ok_message
	.align 16
	.type	ok_message, @object
	.size	ok_message, 31
ok_message:
	.string	"HTTP/1.1 200 OK\r\nContent-Type:"
	.text
	.globl	gnu_getcwd
	.type	gnu_getcwd, @function
gnu_getcwd:
.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	QWORD PTR -16[rbp], 100
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getcwd@PLT
	cmp	QWORD PTR -8[rbp], rax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L4
	mov	eax, 0
	jmp	.L3
.L4:
	sal	QWORD PTR -16[rbp]
	jmp	.L5
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gnu_getcwd, .-gnu_getcwd
	.section	.rodata
.LC0:
	.string	"text/plain"
.LC1:
	.string	".html"
.LC2:
	.string	"text/html"
.LC3:
	.string	".css"
.LC4:
	.string	"text/css"
.LC5:
	.string	".js"
.LC6:
	.string	"application/javascript"
	.text
	.globl	get_mime_type
	.type	get_mime_type, @function
get_mime_type:
.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	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L7
	lea	rax, .LC0[rip]
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	lea	rax, .LC2[rip]
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	lea	rax, .LC4[rip]
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	lea	rax, .LC6[rip]
	jmp	.L8
.L11:
	lea	rax, .LC0[rip]
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_mime_type, .-get_mime_type
	.section	.rodata
.LC7:
	.string	"r+"
.LC8:
	.string	"%s"
.LC9:
	.string	" "
.LC10:
	.string	"GET"
.LC11:
	.string	"Reading %s\n"
.LC12:
	.string	"r"
.LC13:
	.string	"\r\n\r\n"
	.text
	.globl	accept_client
	.type	accept_client, @function
accept_client:
.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, 2176
	mov	DWORD PTR -2164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -2164[rbp]
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -2120[rbp], rax
	mov	QWORD PTR -2160[rbp], 0
	mov	QWORD PTR -2152[rbp], 0
	mov	rdx, QWORD PTR -2120[rbp]
	lea	rcx, -2152[rbp]
	lea	rax, -2160[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rax, QWORD PTR -2160[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2160[rbp]
	lea	rdx, -2144[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -2112[rbp], rax
	lea	rax, -2144[rbp]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -2104[rbp], rax
	lea	rax, -2144[rbp]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -2136[rbp], rax
	jmp	.L13
.L14:
	lea	rax, -2144[rbp]
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	mov	edi, 0
	call	strtok_r@PLT
	mov	QWORD PTR -2136[rbp], rax
.L13:
	cmp	QWORD PTR -2136[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -2112[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	eax, 0
	call	gnu_getcwd
	mov	QWORD PTR -2096[rbp], rax
	mov	rax, QWORD PTR -2096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -2088[rbp], rax
	mov	rax, QWORD PTR -2104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -2088[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2096[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -2096[rbp], rax
	mov	rdx, QWORD PTR -2096[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -2104[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2096[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2080[rbp], rax
	cmp	QWORD PTR -2080[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -2164[rbp]
	mov	edx, 60
	lea	rsi, notfound_message[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -2164[rbp]
	mov	edx, 30
	lea	rsi, ok_message[rip]
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strchr@PLT
	mov	rdi, rax
	call	get_mime_type
	mov	QWORD PTR -2072[rbp], rax
	mov	rax, QWORD PTR -2072[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -2072[rbp]
	mov	eax, DWORD PTR -2164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -2164[rbp]
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR -2080[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	mov	edx, 2048
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -2128[rbp], rax
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR -2128[rbp]
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR -2080[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	mov	edx, 2048
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -2128[rbp], rax
.L18:
	cmp	QWORD PTR -2128[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L17:
	mov	rax, QWORD PTR -2096[rbp]
	mov	rdi, rax
	call	free@PLT
.L15:
	mov	rax, QWORD PTR -2160[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -2120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	accept_client, .-accept_client
	.section	.rodata
.LC14:
	.string	"8080"
.LC15:
	.string	"Can't get address %s."
.LC16:
	.string	"Can't bind to %s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -192[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -188[rbp], 2
	mov	DWORD PTR -184[rbp], 1
	mov	DWORD PTR -192[rbp], 1
	lea	rdx, -200[rbp]
	lea	rax, -192[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC14[rip]
	mov	edi, 0
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC14[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -208[rbp], eax
	mov	DWORD PTR -216[rbp], 1
	lea	rdx, -216[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -208[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC14[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
.L24:
	mov	DWORD PTR -212[rbp], 128
	lea	rdx, -212[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -208[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	accept_client
	jmp	.L24
	.cfi_endproc
.LFE9:
	.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	"785471.c"
	.text
	.global	notfound_message
	.section	.rodata
	.align	2
	.type	notfound_message, %object
	.size	notfound_message, 61
notfound_message:
	.ascii	"HTTP/1.1 404 Not Found\015\012Content-Type:text/pla"
	.ascii	"in\015\012\015\012Not Found\000"
	.global	ok_message
	.align	2
	.type	ok_message, %object
	.size	ok_message, 31
ok_message:
	.ascii	"HTTP/1.1 200 OK\015\012Content-Type:\000"
	.text
	.align	2
	.global	gnu_getcwd
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_getcwd, %function
gnu_getcwd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #100
	str	r3, [fp, #-12]
.L5:
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	getcwd
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	ldr	r0, [fp, #-8]
	bl	free
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L4
	mov	r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gnu_getcwd, .-gnu_getcwd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"text/plain\000"
	.align	2
.LC1:
	.ascii	".html\000"
	.align	2
.LC2:
	.ascii	"text/html\000"
	.align	2
.LC3:
	.ascii	".css\000"
	.align	2
.LC4:
	.ascii	"text/css\000"
	.align	2
.LC5:
	.ascii	".js\000"
	.align	2
.LC6:
	.ascii	"application/javascript\000"
	.text
	.align	2
	.global	get_mime_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_mime_type, %function
get_mime_type:
	@ 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, #0
	bne	.L7
	ldr	r3, .L12
	b	.L8
.L7:
	ldr	r1, .L12+4
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L12+8
	b	.L8
.L9:
	ldr	r1, .L12+12
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L12+16
	b	.L8
.L10:
	ldr	r1, .L12+20
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L12+24
	b	.L8
.L11:
	ldr	r3, .L12
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	get_mime_type, .-get_mime_type
	.section	.rodata
	.align	2
.LC7:
	.ascii	"r+\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.ascii	" \000"
	.align	2
.LC10:
	.ascii	"GET\000"
	.align	2
.LC11:
	.ascii	"Reading %s\012\000"
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	accept_client
	.syntax unified
	.arm
	.fpu softvfp
	.type	accept_client, %function
accept_client:
	@ args = 0, pretend = 0, frame = 2112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2112
	str	r0, [fp, #-2112]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L23+4
	ldr	r0, [fp, #-2112]
	bl	fdopen
	str	r0, [fp, #-2084]
	mov	r3, #0
	str	r3, [fp, #-2104]
	mov	r3, #0
	str	r3, [fp, #-2100]
	sub	r1, fp, #2096
	sub	r1, r1, #4
	sub	r3, fp, #2096
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2084]
	mov	r0, r3
	bl	getline
	ldr	r3, [fp, #-2104]
	mov	r1, r3
	ldr	r0, .L23+8
	bl	printf
	ldr	r0, [fp, #-2104]
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L23+12
	bl	strtok_r
	str	r0, [fp, #-2080]
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L23+12
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-2076]
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L23+12
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-2092]
	b	.L15
.L16:
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L23+12
	mov	r0, #0
	bl	strtok_r
	str	r0, [fp, #-2092]
.L15:
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	bne	.L16
	ldr	r1, .L23+16
	ldr	r0, [fp, #-2080]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	bl	gnu_getcwd
	str	r0, [fp, #-2072]
	ldr	r0, [fp, #-2072]
	bl	strlen
	str	r0, [fp, #-2068]
	ldr	r0, [fp, #-2076]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-2068]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-2072]
	bl	realloc
	str	r0, [fp, #-2072]
	ldr	r2, [fp, #-2072]
	ldr	r3, [fp, #-2068]
	add	r3, r2, r3
	ldr	r1, [fp, #-2076]
	mov	r0, r3
	bl	strcpy
	ldr	r1, [fp, #-2072]
	ldr	r0, .L23+20
	bl	printf
	ldr	r1, .L23+24
	ldr	r0, [fp, #-2072]
	bl	fopen
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bne	.L18
	mov	r2, #60
	ldr	r1, .L23+28
	ldr	r0, [fp, #-2112]
	bl	write
	b	.L19
.L18:
	mov	r2, #30
	ldr	r1, .L23+32
	ldr	r0, [fp, #-2112]
	bl	write
	mov	r1, #46
	ldr	r0, [fp, #-2072]
	bl	strchr
	mov	r3, r0
	mov	r0, r3
	bl	get_mime_type
	str	r0, [fp, #-2060]
	ldr	r0, [fp, #-2060]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-2060]
	ldr	r0, [fp, #-2112]
	bl	write
	mov	r2, #4
	ldr	r1, .L23+36
	ldr	r0, [fp, #-2112]
	bl	write
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2064]
	mov	r2, #2048
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-2088]
	b	.L20
.L21:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2088]
	mov	r1, r3
	ldr	r0, [fp, #-2112]
	bl	write
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2064]
	mov	r2, #2048
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-2088]
.L20:
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-2064]
	bl	fclose
.L19:
	ldr	r0, [fp, #-2072]
	bl	free
.L17:
	ldr	r3, [fp, #-2104]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-2084]
	bl	fclose
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC14
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	notfound_message
	.word	ok_message
	.word	.LC13
	.size	accept_client, .-accept_client
	.section	.rodata
	.align	2
.LC15:
	.ascii	"8080\000"
	.align	2
.LC16:
	.ascii	"Can't get address %s.\000"
	.align	2
.LC17:
	.ascii	"Can't bind to %s\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #168
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-164]
	mov	r3, #1
	str	r3, [fp, #-160]
	mov	r3, #1
	str	r3, [fp, #-168]
	sub	r3, fp, #188
	sub	r2, fp, #168
	ldr	r1, .L30+4
	mov	r0, #0
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L30+8
	ldr	r3, [r3]
	ldr	r2, .L30+4
	ldr	r1, .L30+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, [fp, #-188]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-188]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-188]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-176]
	mov	r3, #1
	str	r3, [fp, #-184]
	sub	r3, fp, #184
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-176]
	bl	setsockopt
	ldr	r3, [fp, #-188]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-188]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-176]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L30+8
	ldr	r3, [r3]
	ldr	r2, .L30+4
	ldr	r1, .L30+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L27:
	mov	r1, #3
	ldr	r0, [fp, #-176]
	bl	listen
.L28:
	mov	r3, #128
	str	r3, [fp, #-180]
	sub	r2, fp, #180
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-176]
	bl	accept
	str	r0, [fp, #-172]
	ldr	r0, [fp, #-172]
	bl	accept_client
	b	.L28
.L31:
	.align	2
.L30:
	.word	.LC18
	.word	.LC15
	.word	stderr
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
