	.file	"371756.c"
	.intel_syntax noprefix
	.text
	.globl	HOST
	.bss
	.align 32
	.type	HOST, @object
	.size	HOST, 1024
HOST:
	.zero	1024
	.globl	PORT
	.align 4
	.type	PORT, @object
	.size	PORT, 4
PORT:
	.zero	4
	.globl	PREFERRED
	.align 4
	.type	PREFERRED, @object
	.size	PREFERRED, 4
PREFERRED:
	.zero	4
	.section	.rodata
.LC0:
	.string	"ens192"
	.text
	.globl	gethostip
	.type	gethostip, @function
gethostip:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	WORD PTR -32[rbp], 2
	lea	rax, -48[rbp]
	mov	edx, 15
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	memcpy@PLT
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 35093
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -48[rbp]
	add	rax, 16
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gethostip, .-gethostip
	.globl	parse
	.type	parse, @function
parse:
.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L6:
	sub	QWORD PTR -8[rbp], 1
.L5:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parse, .-parse
	.section	.rodata
.LC2:
	.string	"ERROR IN READING FROM SOCKET"
.LC3:
	.string	"\nREQ:%s"
.LC4:
	.string	"REQ:"
.LC5:
	.string	" / RESP: ERROR"
	.align 8
.LC6:
	.string	"This website can not be found.   "
.LC7:
	.string	" / RESP:%s\n"
	.text
	.globl	dns
	.type	dns, @function
dns:
.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, 464
	mov	DWORD PTR -452[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -437[rbp], 10
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -408[rbp], xmm0
	lea	rax, -336[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -336[rbp], 2
	mov	DWORD PTR -332[rbp], 0
	mov	DWORD PTR -328[rbp], 1
	lea	rdx, HOST[rip]
	mov	eax, 0
	mov	ecx, 128
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 1024
	lea	rsi, HOST[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -400[rbp], rax
	cmp	QWORD PTR -400[rbp], 0
	jns	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdi, HOST[rip]
	call	parse
	lea	rsi, HOST[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 4
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 1024
	lea	rsi, HOST[rip]
	mov	edi, eax
	call	write@PLT
	lea	rcx, -437[rbp]
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rdx, -432[rbp]
	lea	rax, -336[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	lea	rdi, HOST[rip]
	call	getaddrinfo@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	je	.L10
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 33
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	lea	rcx, -437[rbp]
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -432[rbp]
	mov	QWORD PTR -424[rbp], rax
	jmp	.L11
.L15:
	mov	rax, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jne	.L12
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -392[rbp], rax
	mov	rax, QWORD PTR -392[rbp]
	add	rax, 4
	mov	QWORD PTR -384[rbp], rax
	lea	rdx, -288[rbp]
	mov	rax, QWORD PTR -384[rbp]
	mov	ecx, 16
	mov	rsi, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	QWORD PTR -416[rbp], rax
.L12:
	mov	rcx, QWORD PTR -416[rbp]
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -437[rbp]
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 24[rax]
	sub	rsp, 8
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 1025
	lea	rdx, HOST[rip]
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	lea	rax, -352[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -344[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -352[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -376[rbp], xmm0
	movsd	xmm0, QWORD PTR -408[rbp]
	comisd	xmm0, QWORD PTR -376[rbp]
	jbe	.L13
	movsd	xmm0, QWORD PTR -376[rbp]
	movsd	QWORD PTR -408[rbp], xmm0
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -416[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L13:
	mov	QWORD PTR -416[rbp], 0
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -424[rbp], rax
.L11:
	cmp	QWORD PTR -424[rbp], 0
	jne	.L15
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	add	rax, rdx
	movabs	rcx, 8243107282946248744
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 2712677
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -437[rbp]
	mov	eax, DWORD PTR -452[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dns, .-dns
	.section	.rodata
.LC8:
	.string	"\nNO PORT NUMBER PROVIDED\n"
.LC9:
	.string	"\nUNABLE TO OPEN SOCKET\n"
.LC10:
	.string	"\nBINDING UNSUCCESSFUL\n"
.LC11:
	.string	"\nLISTENING FAILED\n"
	.align 8
.LC12:
	.string	"\nApache server running on port:%i\n"
.LC13:
	.string	"\nSERVER UNABLE TO ACCEPT\n"
	.align 8
.LC14:
	.string	"\n(%d)Incoming client connection from [%s:%d] to me [%s:%d]."
	.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
	push	r12
	push	rbx
	sub	rsp, 352
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -332[rbp], 1
	mov	DWORD PTR -340[rbp], 1
	cmp	DWORD PTR -356[rbp], 1
	jg	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -328[rbp], eax
	lea	rdx, -340[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	DWORD PTR -328[rbp], 0
	jns	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	lea	rax, -320[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR PORT[rip], eax
	mov	WORD PTR -320[rbp], 2
	mov	eax, DWORD PTR PORT[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -318[rbp], ax
	mov	DWORD PTR -316[rbp], 0
	lea	rcx, -320[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L21
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	eax, DWORD PTR -328[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L22
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	eax, DWORD PTR PORT[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -336[rbp], 16
	lea	rdx, -336[rbp]
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -324[rbp], eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	gethostip
	cmp	DWORD PTR -324[rbp], 0
	jns	.L23
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	r12d, DWORD PTR PORT[rip]
	movzx	eax, WORD PTR -302[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	r9d, r12d
	mov	r8, rcx
	mov	ecx, ebx
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -324[rbp]
	mov	edi, eax
	call	dns
	add	DWORD PTR -332[rbp], 1
	mov	eax, DWORD PTR -324[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -328[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L19
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1093567616
	.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	"371756.c"
	.text
	.comm	HOST,1024,4
	.comm	PORT,4,4
	.comm	PREFERRED,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ens192\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gethostip
	.syntax unified
	.arm
	.fpu softvfp
	.type	gethostip, %function
gethostip:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-44]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	sub	r3, fp, #40
	mov	r2, #15
	ldr	r1, .L4+4
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L4+8
	ldr	r0, [fp, #-44]
	bl	ioctl
	ldr	r0, [fp, #-44]
	bl	close
	sub	r3, fp, #40
	add	r3, r3, #16
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	strcpy
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	.LC0
	.word	35093
	.size	gethostip, .-gethostip
	.align	2
	.global	parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse, %function
parse:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parse, .-parse
	.section	.rodata
	.align	2
.LC2:
	.ascii	"ERROR IN READING FROM SOCKET\000"
	.align	2
.LC3:
	.ascii	"\012REQ:%s\000"
	.align	2
.LC4:
	.ascii	"REQ:\000"
	.align	2
.LC5:
	.ascii	" / RESP: ERROR\000"
	.align	2
.LC6:
	.ascii	"This website can not be found.   \000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dcmplt
	.align	2
.LC7:
	.ascii	" / RESP:%s\012\000"
	.align	2
.LC8:
	.ascii	"(Preffered)\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dns
	.syntax unified
	.arm
	.fpu softvfp
	.type	dns, %function
dns:
	@ args = 0, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #400
	str	r0, [fp, #-392]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #10
	strb	r3, [fp, #-385]
	mov	r2, #0
	ldr	r3, .L20+4
	str	r2, [fp, #-356]
	str	r3, [fp, #-352]
	sub	r3, fp, #320
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-316]
	mov	r3, #1
	str	r3, [fp, #-312]
	ldr	r3, .L20+8
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r2, #1024
	ldr	r1, .L20+8
	ldr	r0, [fp, #-392]
	bl	read
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L20+12
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r0, .L20+8
	bl	parse
	ldr	r1, .L20+8
	ldr	r0, .L20+16
	bl	printf
	mov	r2, #4
	ldr	r1, .L20+20
	ldr	r0, [fp, #-392]
	bl	write
	mov	r2, #1024
	ldr	r1, .L20+8
	ldr	r0, [fp, #-392]
	bl	write
	sub	r3, fp, #384
	sub	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-392]
	bl	write
	sub	r3, fp, #384
	sub	r2, fp, #320
	mov	r1, #0
	ldr	r0, .L20+8
	bl	getaddrinfo
	str	r0, [fp, #-368]
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L20+24
	bl	puts
	mov	r2, #33
	ldr	r1, .L20+28
	ldr	r0, [fp, #-392]
	bl	write
	sub	r3, fp, #384
	sub	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-392]
	bl	write
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-384]
	str	r3, [fp, #-380]
	b	.L13
.L17:
	ldr	r3, [fp, #-380]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L14
	ldr	r3, [fp, #-380]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-364]
	ldr	r3, [fp, #-364]
	add	r3, r3, #4
	str	r3, [fp, #-360]
	sub	r2, fp, #288
	mov	r3, #16
	ldr	r1, [fp, #-360]
	mov	r0, #2
	bl	inet_ntop
	str	r0, [fp, #-376]
.L14:
	mov	r2, #16
	ldr	r1, [fp, #-376]
	ldr	r0, [fp, #-392]
	bl	write
	sub	r3, fp, #384
	sub	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-392]
	bl	write
	sub	r3, fp, #336
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-380]
	ldr	r0, [r3, #20]
	ldr	r3, [fp, #-380]
	ldr	r1, [r3, #16]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L20+32
	ldr	r2, .L20+8
	bl	getnameinfo
	sub	r3, fp, #328
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-324]
	ldr	r3, [fp, #-332]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, [fp, #-336]
	ldr	r3, [fp, #-328]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-348]
	str	r3, [fp, #-344]
	sub	r3, fp, #356
	ldmia	r3, {r2-r3}
	sub	r1, fp, #348
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #348
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-356]
	str	r3, [fp, #-352]
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #272
	ldr	r1, [fp, #-376]
	mov	r0, r3
	bl	strcpy
.L15:
	mov	r3, #0
	str	r3, [fp, #-376]
	ldr	r3, [fp, #-380]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-380]
.L13:
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	bne	.L17
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L20+36
	bl	printf
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #272
	add	r3, r3, r2
	ldr	r2, .L20+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-392]
	bl	write
	sub	r3, fp, #384
	sub	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-392]
	bl	write
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	1093567616
	.word	HOST
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1025
	.word	.LC7
	.word	.LC8
	.size	dns, .-dns
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012NO PORT NUMBER PROVIDED\012\000"
	.align	2
.LC11:
	.ascii	"\012UNABLE TO OPEN SOCKET\012\000"
	.align	2
.LC12:
	.ascii	"\012BINDING UNSUCCESSFUL\012\000"
	.align	2
.LC13:
	.ascii	"\012LISTENING FAILED\012\000"
	.align	2
.LC14:
	.ascii	"\012Apache server running on port:%i\012\000"
	.align	2
.LC15:
	.ascii	"\012SERVER UNABLE TO ACCEPT\012\000"
	.align	2
.LC16:
	.ascii	"\012(%d)Incoming client connection from [%s:%d] to "
	.ascii	"me [%s:%d].\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #332
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-316]
	mov	r3, #1
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-328]
	cmp	r3, #1
	bgt	.L23
	ldr	r3, .L29+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L29+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L23:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-312]
	sub	r3, fp, #324
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-312]
	bl	setsockopt
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bge	.L24
	ldr	r3, .L29+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L29+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L24:
	sub	r3, fp, #304
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r3, [fp, #-332]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L29+16
	str	r3, [r2]
	sub	r3, fp, #12
	sub	r3, r3, #292
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L29+16
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #292
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-300]
	sub	r3, fp, #304
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L29+20
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	mov	r1, #5
	ldr	r0, [fp, #-312]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L29+24
	bl	perror
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, .L29+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+28
	bl	printf
	mov	r3, #16
	str	r3, [fp, #-320]
	sub	r2, fp, #320
	sub	r3, fp, #288
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	accept
	str	r0, [fp, #-308]
	sub	r3, fp, #272
	mov	r0, r3
	bl	gethostip
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bge	.L27
	ldr	r0, .L29+32
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	ldr	r0, [fp, #-284]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #276
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L29+16
	ldr	r3, [r3]
	str	r3, [sp, #4]
	sub	r3, fp, #272
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r4
	ldr	r1, [fp, #-316]
	ldr	r0, .L29+36
	bl	printf
	ldr	r0, [fp, #-308]
	bl	dns
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
	ldr	r0, [fp, #-308]
	bl	close
	ldr	r0, [fp, #-312]
	bl	close
	b	.L23
.L30:
	.align	2
.L29:
	.word	.LC17
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	PORT
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
