	.file	"381357.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" "
.LC1:
	.string	"method: %s\n"
.LC2:
	.string	"url: %s\n"
.LC3:
	.string	"http version: %s\n"
.LC4:
	.string	"http://"
.LC5:
	.string	"no http found"
.LC6:
	.string	"https://"
.LC7:
	.string	"no https found"
.LC8:
	.string	":"
.LC9:
	.string	"hostname: %s\n"
.LC10:
	.string	"/"
.LC11:
	.string	"path is root"
.LC12:
	.string	"port: %s\n"
.LC13:
	.string	"directory: %s\n"
	.text
	.globl	parseRequest
	.type	parseRequest, @function
parseRequest:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2096
	mov	QWORD PTR -10280[rbp], rdi
	mov	QWORD PTR -10288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -10280[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -10280[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -10280[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	BYTE PTR -8208[rbp+rax], 0
	lea	rax, -8208[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -10264[rbp], rax
	cmp	QWORD PTR -10264[rbp], 0
	jne	.L2
	mov	eax, -1
	jmp	.L12
.L2:
	mov	rax, QWORD PTR -10264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10288[rbp]
	mov	rcx, QWORD PTR -10264[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -10288[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -10264[rbp], rax
	cmp	QWORD PTR -10264[rbp], 0
	jne	.L4
	mov	eax, -2
	jmp	.L12
.L4:
	mov	rax, QWORD PTR -10264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -10264[rbp]
	lea	rax, -10256[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -10256[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -10264[rbp], rax
	cmp	QWORD PTR -10264[rbp], 0
	jne	.L5
	mov	eax, -3
	jmp	.L12
.L5:
	mov	rax, QWORD PTR -10264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10288[rbp]
	lea	rcx, 50[rax]
	mov	rax, QWORD PTR -10264[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 50
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -10256[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -10272[rbp], rax
	cmp	QWORD PTR -10272[rbp], 0
	jne	.L6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -10256[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -10272[rbp], rax
	cmp	QWORD PTR -10272[rbp], 0
	jne	.L7
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 70
	movabs	rcx, 3400000511170344040
	mov	QWORD PTR [rax], rcx
	add	QWORD PTR -10272[rbp], 8
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 70
	mov	DWORD PTR [rax], 1886680168
	mov	WORD PTR 4[rax], 12090
	mov	BYTE PTR 6[rax], 47
	add	QWORD PTR -10272[rbp], 7
.L8:
	mov	rax, QWORD PTR -10272[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -10272[rbp], rax
	cmp	QWORD PTR -10272[rbp], 0
	jne	.L9
	mov	eax, -4
	jmp	.L12
.L9:
	mov	rax, QWORD PTR -10272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10288[rbp]
	lea	rcx, 90[rax]
	mov	rax, QWORD PTR -10272[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 90
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -10272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	add	QWORD PTR -10272[rbp], rax
	mov	rax, QWORD PTR -10272[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -10272[rbp], rax
	cmp	QWORD PTR -10272[rbp], 0
	jne	.L10
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -10272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10288[rbp]
	lea	rcx, 590[rax]
	mov	rax, QWORD PTR -10272[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 600
	mov	BYTE PTR [rax], 47
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 590
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -10272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10288[rbp]
	lea	rcx, 590[rax]
	mov	rax, QWORD PTR -10272[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 590
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -10272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -10272[rbp], rax
	mov	rax, QWORD PTR -10272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -10288[rbp]
	lea	rcx, 600[rax]
	mov	rax, QWORD PTR -10272[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -10288[rbp]
	add	rax, 600
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parseRequest, .-parseRequest
	.section	.rodata
.LC14:
	.string	"httpver: %s\n"
.LC15:
	.string	"protocol: %s\n"
	.text
	.globl	printRequest
	.type	printRequest, @function
printRequest:
.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
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 50
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 70
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 90
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 590
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 600
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printRequest, .-printRequest
	.section	.rodata
.LC16:
	.string	"GET"
.LC17:
	.string	"%s %s %s\r\nHost: %s\r\n\r\n"
.LC18:
	.string	"HEAD"
.LC19:
	.string	"CONNECT"
.LC20:
	.string	"%s %s %s\r\n"
.LC21:
	.string	"OPTIONS"
.LC22:
	.string	"TRACE"
	.text
	.globl	formatRequest
	.type	formatRequest, @function
formatRequest:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 90[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 50[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 600[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L21
.L16:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 90[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 50[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 600[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L21
.L18:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 50[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 90[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, rsi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L21
.L19:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 50[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 90[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r8, rsi
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 90[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 50[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 600[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	formatRequest, .-formatRequest
	.section	.rodata
	.align 8
.LC23:
	.string	"GET http://www.ics.uci.edu:80/~harris/test.html HTTP/1.1"
.LC24:
	.string	"Success!"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1152
	mov	DWORD PTR -9332[rbp], edi
	mov	QWORD PTR -9344[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC23[rip]
	mov	QWORD PTR -9320[rbp], rax
	lea	rdx, -9312[rbp]
	mov	rax, QWORD PTR -9320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	parseRequest
	mov	DWORD PTR -9324[rbp], eax
	cmp	DWORD PTR -9324[rbp], 0
	jne	.L23
	lea	rdi, .LC24[rip]
	call	puts@PLT
.L23:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"381357.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"method: %s\012\000"
	.align	2
.LC2:
	.ascii	"url: %s\012\000"
	.align	2
.LC3:
	.ascii	"http version: %s\012\000"
	.align	2
.LC4:
	.ascii	"http://\000"
	.align	2
.LC5:
	.ascii	"no http found\000"
	.align	2
.LC6:
	.ascii	"https://\000"
	.align	2
.LC7:
	.ascii	"no https found\000"
	.align	2
.LC8:
	.ascii	":\000"
	.align	2
.LC9:
	.ascii	"hostname: %s\012\000"
	.align	2
.LC10:
	.ascii	"/\000"
	.align	2
.LC11:
	.ascii	"path is root\000"
	.align	2
.LC12:
	.ascii	"port: %s\012\000"
	.align	2
.LC13:
	.ascii	"directory: %s\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseRequest
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseRequest, %function
parseRequest:
	@ args = 0, pretend = 0, frame = 10264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10240
	sub	sp, sp, #28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-2068]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-2072]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2068]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r1, #-2068]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2068]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L14+4
	mov	r0, r3
	bl	strtok
	str	r0, [r4, #-2056]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2056]
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L12
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r4, [r3, #-2072]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2056]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2056]
	mov	r0, r4
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L14+4
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-2056]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2056]
	cmp	r3, #0
	bne	.L4
	mvn	r3, #1
	b	.L12
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2056]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r1, #-2056]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L14+4
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-2056]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2056]
	cmp	r3, #0
	bne	.L5
	mvn	r3, #2
	b	.L12
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r4, r3, #50
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2056]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2056]
	mov	r0, r4
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #50
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L14+20
	mov	r0, r3
	bl	strstr
	str	r0, [r4, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L14+24
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L14+28
	mov	r0, r3
	bl	strstr
	str	r0, [r4, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L14+32
	bl	puts
	b	.L8
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #70
	ldr	r2, .L14+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	add	r3, r3, #8
	str	r3, [r2, #-2060]
	b	.L8
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #70
	ldr	r2, .L14+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	add	r3, r3, #7
	str	r3, [r2, #-2060]
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L14+36
	ldr	r0, [r3, #-2060]
	bl	strtok
	str	r0, [r4, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	cmp	r3, #0
	bne	.L9
	mvn	r3, #3
	b	.L12
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r4, r3, #90
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2060]
	mov	r0, r4
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #90
	mov	r1, r3
	ldr	r0, .L14+40
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-2060]
	add	r3, r2, r3
	str	r3, [r1, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L14+44
	ldr	r0, [r3, #-2060]
	bl	strtok
	str	r0, [r4, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L14+48
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r4, r3, #588
	add	r4, r4, #2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2060]
	mov	r0, r4
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #600
	mov	r2, #47
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #588
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L14+52
	bl	printf
	b	.L11
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r4, r3, #588
	add	r4, r4, #2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2060]
	mov	r0, r4
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #588
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L14+52
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2060]
	add	r3, r3, r2
	str	r3, [r1, #-2060]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r4, r3, #600
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2060]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-2060]
	mov	r0, r4
	bl	strncpy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2072]
	add	r3, r3, #600
	mov	r1, r3
	ldr	r0, .L14+56
	bl	printf
.L11:
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.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	parseRequest, .-parseRequest
	.section	.rodata
	.align	2
.LC15:
	.ascii	"httpver: %s\012\000"
	.align	2
.LC16:
	.ascii	"protocol: %s\012\000"
	.text
	.align	2
	.global	printRequest
	.syntax unified
	.arm
	.fpu softvfp
	.type	printRequest, %function
printRequest:
	@ 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]
	mov	r1, r3
	ldr	r0, .L17
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #50
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #70
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #90
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #588
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #600
	mov	r1, r3
	ldr	r0, .L17+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	.LC15
	.word	.LC16
	.word	.LC9
	.word	.LC12
	.word	.LC13
	.size	printRequest, .-printRequest
	.section	.rodata
	.align	2
.LC17:
	.ascii	"GET\000"
	.align	2
.LC18:
	.ascii	"%s %s %s\015\012Host: %s\015\012\015\012\000"
	.align	2
.LC19:
	.ascii	"HEAD\000"
	.align	2
.LC20:
	.ascii	"CONNECT\000"
	.align	2
.LC21:
	.ascii	"%s %s %s\015\012\000"
	.align	2
.LC22:
	.ascii	"OPTIONS\000"
	.align	2
.LC23:
	.ascii	"TRACE\000"
	.text
	.align	2
	.global	formatRequest
	.syntax unified
	.arm
	.fpu softvfp
	.type	formatRequest, %function
formatRequest:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r1, .L26
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r0, r3, #600
	ldr	r3, [fp, #-8]
	add	r3, r3, #50
	ldr	r2, [fp, #-8]
	add	r2, r2, #90
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L26+4
	ldr	r0, [fp, #-12]
	bl	sprintf
	b	.L25
.L20:
	ldr	r3, [fp, #-8]
	ldr	r1, .L26+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r0, r3, #600
	ldr	r3, [fp, #-8]
	add	r3, r3, #50
	ldr	r2, [fp, #-8]
	add	r2, r2, #90
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L26+4
	ldr	r0, [fp, #-12]
	bl	sprintf
	b	.L25
.L22:
	ldr	r3, [fp, #-8]
	ldr	r1, .L26+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r1, r3, #90
	ldr	r3, [fp, #-8]
	add	r3, r3, #50
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L26+16
	ldr	r0, [fp, #-12]
	bl	sprintf
	b	.L25
.L23:
	ldr	r3, [fp, #-8]
	ldr	r1, .L26+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r1, r3, #90
	ldr	r3, [fp, #-8]
	add	r3, r3, #50
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L26+16
	ldr	r0, [fp, #-12]
	bl	sprintf
	b	.L25
.L24:
	ldr	r3, [fp, #-8]
	ldr	r1, .L26+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r0, r3, #600
	ldr	r3, [fp, #-8]
	add	r3, r3, #50
	ldr	r2, [fp, #-8]
	add	r2, r2, #90
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, .L26+4
	ldr	r0, [fp, #-12]
	bl	sprintf
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	formatRequest, .-formatRequest
	.section	.rodata
	.align	2
.LC24:
	.ascii	"GET http://www.ics.uci.edu:80/~harris/test.html HTT"
	.ascii	"P/1.1\000"
	.align	2
.LC25:
	.ascii	"Success!\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 9312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #9280
	sub	sp, sp, #36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-1116]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-1120]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L32+4
	str	r3, [r2, #-1112]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #9280
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-1112]
	bl	parseRequest
	str	r0, [r4, #-1108]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1108]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L32+8
	bl	puts
.L29:
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC26
	.word	.LC24
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
