	.file	"558693.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-?"
.LC1:
	.string	"-h"
	.align 8
.LC2:
	.string	"\nUsage: tcpechoserver [-p port] port is the requested  port that the server monitors.  If no port is provided, the server  listens on port 22222.\n"
.LC3:
	.string	"-p"
.LC4:
	.string	"%hu"
.LC5:
	.string	"Error parsing port option"
	.align 8
.LC6:
	.string	"tcp echo server configuring on port: %d\n"
.LC7:
	.string	"Error on socket creation"
.LC8:
	.string	"setsockopt"
.LC9:
	.string	"Problem binding"
.LC10:
	.string	"Error calling listen()"
.LC11:
	.string	"====Waiting===="
.LC12:
	.string	"ERROR on accept"
.LC13:
	.string	"ERROR on fork"
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -66[rbp], 80
	cmp	DWORD PTR -84[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
.L3:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	cmp	DWORD PTR -84[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -66[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L4
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	movzx	eax, WORD PTR -66[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L5
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	DWORD PTR -64[rbp], 1
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, WORD PTR -66[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, 15
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L8:
	mov	esi, 1
	mov	edi, 1000
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
.L12:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L9
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L10
	lea	rdi, .LC13[rip]
	call	perror@PLT
.L10:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L11
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	httpResponse
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L12
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC14:
	.string	"====Client Disconnected===="
.LC15:
	.string	"quit"
.LC16:
	.string	"====Server Disconnecting===="
.LC17:
	.string	"/"
.LC18:
	.string	"rb"
.LC19:
	.string	"index.html"
.LC20:
	.string	"error.html"
.LC21:
	.string	"Error sending echo"
.LC22:
	.string	"Bytes echoed: %d\n"
	.text
	.globl	httpResponse
	.type	httpResponse, @function
httpResponse:
.LFB7:
	.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, 200
	.cfi_offset 3, -24
	mov	DWORD PTR -180[rbp], edi
	mov	DWORD PTR -184[rbp], esi
	mov	DWORD PTR -188[rbp], edx
	mov	QWORD PTR -200[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	BYTE PTR [rax], 0
	mov	rcx, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	edx, 999
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 0
	jne	.L15
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
.L15:
	mov	eax, DWORD PTR -188[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 4
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L16
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
.L16:
	mov	WORD PTR -99[rbp], 2573
	mov	BYTE PTR -97[rbp], 0
	mov	WORD PTR -101[rbp], 32
	lea	rdx, -99[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L17
.L23:
	cmp	DWORD PTR -172[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -120[rbp], rax
	lea	rdx, -101[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -152[rbp], rax
	jmp	.L19
.L22:
	cmp	DWORD PTR -172[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -112[rbp], rax
	jmp	.L21
.L20:
	cmp	DWORD PTR -172[rbp], 1
	jne	.L21
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -168[rbp], rax
.L21:
	lea	rax, -101[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -152[rbp], rax
	add	DWORD PTR -172[rbp], 1
.L19:
	cmp	QWORD PTR -152[rbp], 0
	jne	.L22
.L18:
	lea	rax, -99[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -160[rbp], rax
	add	DWORD PTR -172[rbp], 1
.L17:
	cmp	QWORD PTR -160[rbp], 0
	jne	.L23
	movabs	rax, 3543824036068086856
	movabs	rdx, 957946345412375072
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -80[rbp], 658698
	movabs	rax, 3543824036068086856
	movabs	rdx, 8390010531036017696
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 724345540655924768
	mov	QWORD PTR -48[rbp], rax
	mov	WORD PTR -40[rbp], 2573
	mov	BYTE PTR -38[rbp], 0
	mov	esi, 1
	mov	edi, 1000
	call	calloc@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	lea	rsi, .LC18[rip]
	lea	rdi, .LC19[rip]
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	jmp	.L25
.L24:
	add	QWORD PTR -168[rbp], 1
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
.L25:
	cmp	QWORD PTR -136[rbp], 0
	je	.L26
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1000
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rcx, rdx
	mov	edx, 1000
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -96[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 1000[rax]
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -144[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, rbx
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	jmp	.L27
.L26:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1000
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -144[rbp], rax
	lea	rsi, .LC18[rip]
	lea	rdi, .LC20[rip]
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rcx, rdx
	mov	edx, 1000
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -64[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 1000[rax]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -144[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, rbx
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
.L27:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1000[rax]
	mov	rcx, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L28
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L28:
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	httpResponse, .-httpResponse
	.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	"558693.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-?\000"
	.align	2
.LC1:
	.ascii	"-h\000"
	.align	2
.LC2:
	.ascii	"\012Usage: tcpechoserver [-p port] port is the requ"
	.ascii	"ested  port that the server monitors.  If no port i"
	.ascii	"s provided, the server  listens on port 22222.\012\000"
	.align	2
.LC3:
	.ascii	"-p\000"
	.align	2
.LC4:
	.ascii	"%hu\000"
	.align	2
.LC5:
	.ascii	"Error parsing port option\000"
	.align	2
.LC6:
	.ascii	"tcp echo server configuring on port: %d\012\000"
	.align	2
.LC7:
	.ascii	"Error on socket creation\000"
	.align	2
.LC8:
	.ascii	"setsockopt\000"
	.align	2
.LC9:
	.ascii	"Problem binding\000"
	.align	2
.LC10:
	.ascii	"Error calling listen()\000"
	.align	2
.LC11:
	.ascii	"====Waiting====\000"
	.align	2
.LC12:
	.ascii	"ERROR on accept\000"
	.align	2
.LC13:
	.ascii	"ERROR on fork\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #80
	strh	r3, [fp, #-54]	@ movhi
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
.L3:
	ldr	r0, .L14+12
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-64]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #54
	ldr	r1, .L14+20
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L4
	ldr	r0, .L14+24
	bl	perror
	mov	r0, #0
	bl	exit
.L4:
	ldrh	r3, [fp, #-54]
	mov	r1, r3
	ldr	r0, .L14+28
	bl	printf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L14+32
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	mov	r3, #1
	str	r3, [fp, #-52]
	sub	r3, fp, #52
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-48]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L14+36
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-54]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L14+40
	bl	perror
	mvn	r0, #0
	bl	exit
.L7:
	mov	r1, #15
	ldr	r0, [fp, #-48]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L14+44
	bl	perror
	mvn	r0, #0
	bl	exit
.L8:
	mov	r1, #1
	mov	r0, #1000
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-44]
.L12:
	ldr	r0, .L14+48
	bl	puts
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	accept
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L14+52
	bl	perror
	mvn	r0, #0
	bl	exit
.L9:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L14+56
	bl	perror
.L10:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L11
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	httpResponse
	ldr	r0, [fp, #-40]
	bl	close
	mov	r0, #0
	bl	exit
.L11:
	ldr	r0, [fp, #-40]
	bl	close
	b	.L12
.L15:
	.align	2
.L14:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"====Client Disconnected====\000"
	.align	2
.LC16:
	.ascii	"quit\000"
	.align	2
.LC17:
	.ascii	"====Server Disconnecting====\000"
	.align	2
.LC21:
	.ascii	"/\000"
	.align	2
.LC22:
	.ascii	"rb\000"
	.align	2
.LC23:
	.ascii	"index.html\000"
	.align	2
.LC24:
	.ascii	"error.html\000"
	.align	2
.LC25:
	.ascii	"Error sending echo\000"
	.align	2
.LC26:
	.ascii	"Bytes echoed: %d\012\000"
	.align	2
.LC18:
	.ascii	"\015\012\000"
	.align	2
.LC19:
	.ascii	"HTTP/1.1 200 OK\015\012\015\012\000"
	.align	2
.LC20:
	.ascii	"HTTP/1.1 404 Not Found\015\012\015\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	httpResponse
	.syntax unified
	.arm
	.fpu softvfp
	.type	httpResponse, %function
httpResponse:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-124]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, .L32+4
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-112]
	bl	read
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L32+8
	bl	puts
	ldr	r0, [fp, #-112]
	bl	close
.L17:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r2, #4
	ldr	r1, .L32+12
	ldr	r0, [fp, #-124]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L32+16
	bl	puts
	ldr	r0, [fp, #-112]
	bl	close
.L18:
	ldr	r2, .L32+20
	sub	r3, fp, #68
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r3, #32
	strh	r3, [fp, #-72]	@ movhi
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	strtok
	str	r0, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L19
.L25:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-80]
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	strtok
	str	r0, [fp, #-96]
	b	.L21
.L24:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-76]
	b	.L23
.L22:
	ldr	r3, [fp, #-100]
	cmp	r3, #1
	bne	.L23
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-108]
.L23:
	sub	r3, fp, #72
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L21:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L24
.L20:
	sub	r3, fp, #68
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L19:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L32+24
	sub	ip, fp, #64
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L32+28
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	strh	r2, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r2, #16
	strb	r3, [ip]
	mov	r1, #1
	mov	r0, #1000
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r1, .L32+32
	ldr	r0, [fp, #-108]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r1, .L32+36
	ldr	r0, .L32+40
	bl	fopen
	str	r0, [fp, #-88]
	b	.L27
.L26:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
	ldr	r1, .L32+36
	ldr	r0, [fp, #-108]
	bl	fopen
	str	r0, [fp, #-88]
.L27:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L28
	sub	r3, fp, #64
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1000
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-88]
	mov	r2, #1000
	mov	r1, #1
	ldr	r0, [fp, #-84]
	bl	fread
	sub	r3, fp, #64
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #64
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	memcpy
	sub	r3, fp, #64
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-92]
	add	r4, r3, r2
	sub	r3, fp, #64
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1000
	mov	r2, r3
	ldr	r1, [fp, #-84]
	mov	r0, r4
	bl	memcpy
	b	.L29
.L28:
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1000
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r1, .L32+36
	ldr	r0, .L32+44
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	mov	r2, #1000
	mov	r1, #1
	ldr	r0, [fp, #-84]
	bl	fread
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	memcpy
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-92]
	add	r4, r3, r2
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1000
	mov	r2, r3
	ldr	r1, [fp, #-84]
	mov	r0, r4
	bl	memcpy
.L29:
	sub	r3, fp, #44
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1000
	mov	r2, r3
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-112]
	bl	write
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L32+48
	bl	perror
	mvn	r0, #0
	bl	exit
.L30:
	ldr	r1, [fp, #-116]
	ldr	r0, .L32+52
	bl	printf
	ldr	r0, [fp, #-92]
	bl	free
	ldr	r0, [fp, #-84]
	bl	free
	ldr	r0, [fp, #-112]
	bl	close
	mov	r0, #0
	bl	exit
.L33:
	.align	2
.L32:
	.word	.LC27
	.word	999
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	httpResponse, .-httpResponse
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
