	.file	"665343.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[getHostInfo:21:getaddrinfo] %s\n"
	.text
	.globl	getHostInfo
	.type	getHostInfo, @function
getHostInfo:
.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	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 2
	mov	DWORD PTR -56[rbp], 1
	lea	rcx, -72[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L2
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -72[rbp]
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getHostInfo, .-getHostInfo
	.section	.rodata
	.align 8
.LC1:
	.string	"[establishConnection:35:socket]"
	.align 8
.LC2:
	.string	"[establishConnection:42:connect]"
	.text
	.globl	establishConnection
	.type	establishConnection, @function
establishConnection:
.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	eax, -1
	jmp	.L8
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L10
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L12
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L8
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
.L9:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, -1
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	establishConnection, .-establishConnection
	.section	.rodata
	.align 8
.LC3:
	.string	"POST %s HTTP/1.0\r\n\r\n <body><name>amlendra</name><age>25</age></body>"
	.text
	.globl	GET
	.type	GET, @function
GET:
.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1008[rbp], 0
	mov	QWORD PTR -1000[rbp], 0
	lea	rdx, -992[rbp]
	mov	eax, 0
	mov	ecx, 123
	mov	rdi, rdx
	rep stosq
	movabs	rax, 7943292533871698492
	movabs	rdx, 7308336559741562209
	mov	QWORD PTR -1056[rbp], rax
	mov	QWORD PTR -1048[rbp], rdx
	movabs	rax, 7020600805496611950
	movabs	rdx, 4496113470319519085
	mov	QWORD PTR -1040[rbp], rax
	mov	QWORD PTR -1032[rbp], rdx
	movabs	rax, 4496113470101271858
	movabs	rdx, 17584920828456764
	mov	QWORD PTR -1024[rbp], rax
	mov	QWORD PTR -1016[rbp], rdx
	mov	rdx, QWORD PTR -1072[rbp]
	lea	rax, -1008[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1008[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	GET, .-GET
	.section	.rodata
	.align 8
.LC4:
	.string	"USAGE: ./httpclient <hostname> <port> <request path>\n"
	.align 8
.LC5:
	.string	"[main:73] Failed to connect to: %s:%s%s \n"
	.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -132[rbp], 4
	je	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L22
.L17:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	getHostInfo
	mov	rdi, rax
	call	establishConnection
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	jne	.L19
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 24
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 3
	jmp	.L22
.L19:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	GET
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rax, -112[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L20:
	lea	rsi, -112[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jg	.L21
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
.L22:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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	"665343.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[getHostInfo:21:getaddrinfo] %s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getHostInfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	getHostInfo, %function
getHostInfo:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	sub	r3, fp, #56
	sub	r2, fp, #48
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-64]
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L6+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L6+8
	mov	r0, r4
	bl	fprintf
	mov	r3, #0
	b	.L4
.L2:
	ldr	r3, [fp, #-56]
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	getHostInfo, .-getHostInfo
	.section	.rodata
	.align	2
.LC2:
	.ascii	"[establishConnection:35:socket]\000"
	.align	2
.LC3:
	.ascii	"[establishConnection:42:connect]\000"
	.text
	.align	2
	.global	establishConnection
	.syntax unified
	.arm
	.fpu softvfp
	.type	establishConnection, %function
establishConnection:
	@ 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	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	mvn	r3, #0
	b	.L10
.L15:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L16
	bl	perror
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r0, .L16+4
	bl	perror
	b	.L13
.L14:
	ldr	r0, [fp, #-16]
	bl	freeaddrinfo
	ldr	r3, [fp, #-8]
	b	.L10
.L13:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-16]
	bl	freeaddrinfo
	mvn	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC3
	.size	establishConnection, .-establishConnection
	.section	.rodata
	.align	2
.LC5:
	.ascii	"POST %s HTTP/1.0\015\012\015\012 <body><name>amlend"
	.ascii	"ra</name><age>25</age></body>\000"
	.align	2
.LC4:
	.ascii	"<body><name>amlendra</name><age>25</age></body>\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GET
	.syntax unified
	.arm
	.fpu softvfp
	.type	GET, %function
GET:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1008]
	sub	r3, fp, #1004
	mov	r2, #996
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L20+4
	sub	ip, fp, #1040
	sub	ip, ip, #4
	sub	ip, ip, #12
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #1008
	ldr	r2, [fp, #-1068]
	ldr	r1, .L20+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1008
	mov	r3, #0
	ldr	r0, [fp, #-1064]
	bl	send
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	GET, .-GET
	.section	.rodata
	.align	2
.LC7:
	.ascii	"USAGE: ./httpclient <hostname> <port> <request path"
	.ascii	">\012\000"
	.align	2
.LC8:
	.ascii	"[main:73] Failed to connect to: %s:%s%s \012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-120]
	cmp	r3, #4
	beq	.L23
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L30+8
	bl	fwrite
	mov	r3, #1
	b	.L28
.L23:
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	getHostInfo
	mov	r3, r0
	mov	r0, r3
	bl	establishConnection
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L25
	ldr	r3, .L30+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r3, [fp, #-124]
	add	r3, r3, #12
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L30+12
	bl	fprintf
	mov	r3, #3
	b	.L28
.L25:
	ldr	r3, [fp, #-124]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	GET
	b	.L26
.L27:
	ldr	r3, .L30+16
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L26:
	sub	r1, fp, #108
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-112]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	bgt	.L27
	ldr	r0, [fp, #-112]
	bl	close
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC9
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
