	.file	"237643209.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Configuring local addr.."
.LC1:
	.string	"8080"
.LC2:
	.string	"Configuring socket.."
	.align 8
.LC3:
	.string	"Call to socket() failed. (%d)\n"
	.align 8
.LC4:
	.string	"Call to setsockopt() failed. (%d)\n"
	.align 8
.LC5:
	.string	"Binding socket to local addr.."
.LC6:
	.string	"Call to bind() failed. (%d)\n"
.LC7:
	.string	"Listening.."
	.align 8
.LC8:
	.string	"Call to listen() failed. (%d)\n"
.LC9:
	.string	"Waiting for client.."
	.align 8
.LC10:
	.string	"Call to accept() failed. (%d)\n"
.LC11:
	.string	"Client connected.."
.LC12:
	.string	"Reading request.."
.LC13:
	.string	"%d bytes received.\n"
.LC14:
	.string	"Sending response.."
	.align 8
.LC15:
	.string	"HTTP/1.1 200 OK\r\nConnection: close\r\nContent-type: text/plain\r\n\r\nLocal time: "
.LC16:
	.string	"%d of %d bytes sent.\n"
.LC17:
	.string	"Closing connection.."
.LC18:
	.string	"Closing socket.."
.LC19:
	.string	"Done."
	.text
	.globl	main
	.type	main, @function
main:
.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, 1392
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -1328[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1324[rbp], 10
	mov	DWORD PTR -1320[rbp], 1
	mov	DWORD PTR -1328[rbp], 1
	lea	rdx, -1360[rbp]
	lea	rax, -1328[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	getaddrinfo@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1360[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1360[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1360[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -1376[rbp], eax
	cmp	DWORD PTR -1376[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L8
.L2:
	mov	DWORD PTR -1384[rbp], 0
	lea	rdx, -1384[rbp]
	mov	eax, DWORD PTR -1376[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 41
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L8
.L4:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1360[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1360[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1376[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L5
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L8
.L5:
	mov	rax, QWORD PTR -1360[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1376[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L6
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L8
.L6:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -1380[rbp], 128
	lea	rdx, -1380[rbp]
	lea	rcx, -1280[rbp]
	mov	eax, DWORD PTR -1376[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1372[rbp], eax
	cmp	DWORD PTR -1372[rbp], 0
	jns	.L7
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L8
.L7:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	esi, DWORD PTR -1380[rbp]
	lea	rdx, -1152[rbp]
	lea	rax, -1280[rbp]
	sub	rsp, 8
	push	1
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 100
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	lea	rax, -1152[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1372[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1368[rbp], eax
	mov	eax, DWORD PTR -1368[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rax, .LC15[rip]
	mov	QWORD PTR -1344[rbp], rax
	mov	rax, QWORD PTR -1344[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -1344[rbp]
	mov	eax, DWORD PTR -1372[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -1364[rbp], eax
	mov	rax, QWORD PTR -1344[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -1364[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1352[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -1352[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	QWORD PTR -1336[rbp], rax
	mov	rax, QWORD PTR -1336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -1336[rbp]
	mov	eax, DWORD PTR -1372[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -1364[rbp], eax
	mov	rax, QWORD PTR -1336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -1364[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1372[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1376[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"237643209.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Configuring local addr..\000"
	.align	2
.LC1:
	.ascii	"8080\000"
	.align	2
.LC2:
	.ascii	"Configuring socket..\000"
	.align	2
.LC3:
	.ascii	"Call to socket() failed. (%d)\012\000"
	.align	2
.LC4:
	.ascii	"Call to setsockopt() failed. (%d)\012\000"
	.align	2
.LC5:
	.ascii	"Binding socket to local addr..\000"
	.align	2
.LC6:
	.ascii	"Call to bind() failed. (%d)\012\000"
	.align	2
.LC7:
	.ascii	"Listening..\000"
	.align	2
.LC8:
	.ascii	"Call to listen() failed. (%d)\012\000"
	.align	2
.LC9:
	.ascii	"Waiting for client..\000"
	.align	2
.LC10:
	.ascii	"Call to accept() failed. (%d)\012\000"
	.align	2
.LC11:
	.ascii	"Client connected..\000"
	.align	2
.LC12:
	.ascii	"Reading request..\000"
	.align	2
.LC13:
	.ascii	"%d bytes received.\012\000"
	.align	2
.LC14:
	.ascii	"Sending response..\000"
	.align	2
.LC15:
	.ascii	"HTTP/1.1 200 OK\015\012Connection: close\015\012Con"
	.ascii	"tent-type: text/plain\015\012\015\012Local time: \000"
	.align	2
.LC16:
	.ascii	"%d of %d bytes sent.\012\000"
	.align	2
.LC17:
	.ascii	"Closing connection..\000"
	.align	2
.LC18:
	.ascii	"Closing socket..\000"
	.align	2
.LC19:
	.ascii	"Done.\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1344
	sub	sp, sp, #4
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #10
	str	r3, [fp, #-1296]
	mov	r3, #1
	str	r3, [fp, #-1292]
	mov	r3, #1
	str	r3, [fp, #-1300]
	sub	r3, fp, #1328
	sub	r3, r3, #12
	sub	r2, fp, #1280
	sub	r2, r2, #12
	sub	r2, r2, #8
	ldr	r1, .L10+8
	mov	r0, #0
	bl	getaddrinfo
	ldr	r0, .L10+12
	bl	puts
	ldr	r3, [fp, #-1340]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1340]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-1340]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-1324]
	ldr	r3, [fp, #-1324]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L10+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L8
.L2:
	mov	r3, #0
	str	r3, [fp, #-1336]
	sub	r3, fp, #1312
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #41
	ldr	r0, [fp, #-1324]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L10+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+24
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L8
.L4:
	ldr	r0, .L10+28
	bl	puts
	ldr	r3, [fp, #-1340]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-1340]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-1324]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L10+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+32
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L8
.L5:
	ldr	r3, [fp, #-1340]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r0, .L10+36
	bl	puts
	mov	r1, #10
	ldr	r0, [fp, #-1324]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r3, .L10+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+40
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L8
.L6:
	ldr	r0, .L10+44
	bl	puts
	mov	r3, #128
	str	r3, [fp, #-1332]
	sub	r2, fp, #1312
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #1248
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1324]
	bl	accept
	str	r0, [fp, #-1320]
	ldr	r3, [fp, #-1320]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L10+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+48
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L8
.L7:
	ldr	r0, .L10+52
	bl	puts
	ldr	r1, [fp, #-1332]
	sub	r2, fp, #1120
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r0, fp, #1248
	sub	r0, r0, #12
	sub	r0, r0, #8
	mov	r3, #1
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #100
	bl	getnameinfo
	sub	r3, fp, #1120
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	puts
	ldr	r0, .L10+56
	bl	puts
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1320]
	bl	recv
	str	r0, [fp, #-1316]
	ldr	r1, [fp, #-1316]
	ldr	r0, .L10+60
	bl	printf
	ldr	r0, .L10+64
	bl	puts
	ldr	r3, .L10+68
	str	r3, [fp, #-1312]
	ldr	r0, [fp, #-1312]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-1312]
	ldr	r0, [fp, #-1320]
	bl	send
	str	r0, [fp, #-1308]
	ldr	r0, [fp, #-1312]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1308]
	ldr	r0, .L10+72
	bl	printf
	sub	r3, fp, #1312
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	time
	sub	r3, fp, #1312
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	ctime
	str	r0, [fp, #-1304]
	ldr	r0, [fp, #-1304]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-1304]
	ldr	r0, [fp, #-1320]
	bl	send
	str	r0, [fp, #-1308]
	ldr	r0, [fp, #-1304]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1308]
	ldr	r0, .L10+72
	bl	printf
	ldr	r0, .L10+76
	bl	puts
	ldr	r0, [fp, #-1320]
	bl	close
	ldr	r0, .L10+80
	bl	puts
	ldr	r0, [fp, #-1324]
	bl	close
	ldr	r0, .L10+84
	bl	puts
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC20
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
