	.file	"974754.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"8080"
.LC1:
	.string	"127.0.0.1"
.LC2:
	.string	"Error getaddrinfo\n"
.LC3:
	.string	"Error socket \n"
.LC4:
	.string	"Error connect \n"
.LC5:
	.string	"Error receive \n"
.LC6:
	.string	"Received %s \n"
	.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, 1136
	mov	DWORD PTR -1124[rbp], edi
	mov	QWORD PTR -1136[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1088[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1084[rbp], 0
	mov	DWORD PTR -1080[rbp], 1
	mov	DWORD PTR -1088[rbp], 1
	lea	rdx, -1096[rbp]
	lea	rax, -1088[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	getaddrinfo@PLT
	mov	DWORD PTR -1108[rbp], eax
	cmp	DWORD PTR -1108[rbp], 0
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -1096[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -1104[rbp], eax
	cmp	DWORD PTR -1104[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -1096[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1104[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -1108[rbp], eax
	cmp	DWORD PTR -1108[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 3
	call	exit@PLT
.L4:
	mov	DWORD PTR -1100[rbp], 0
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1104[rbp]
	mov	ecx, 0
	mov	edx, 1025
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1100[rbp], eax
	cmp	DWORD PTR -1100[rbp], -1
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 4
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -1100[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, DWORD PTR -1104[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"974754.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"8080\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"Error getaddrinfo\012\000"
	.align	2
.LC3:
	.ascii	"Error socket \012\000"
	.align	2
.LC4:
	.ascii	"Error connect \012\000"
	.align	2
.LC5:
	.ascii	"Error receive \012\000"
	.align	2
.LC6:
	.ascii	"Received %s \012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	str	r0, [fp, #-1088]
	str	r1, [fp, #-1092]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1064]
	mov	r3, #1
	str	r3, [fp, #-1060]
	mov	r3, #1
	str	r3, [fp, #-1068]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r2, fp, #1056
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	getaddrinfo
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L8+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-1084]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1084]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-1084]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L8+20
	bl	fwrite
	mov	r0, #2
	bl	exit
.L3:
	ldr	r3, [fp, #-1084]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-1084]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-1076]
	bl	connect
	str	r0, [fp, #-1080]
	ldr	r3, [fp, #-1080]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L8+24
	bl	fwrite
	mov	r0, #3
	bl	exit
.L4:
	mov	r3, #0
	str	r3, [fp, #-1072]
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #8
	mov	r3, #0
	ldr	r2, .L8+28
	ldr	r0, [fp, #-1076]
	bl	recv
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L8+12
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L8+32
	bl	fwrite
	mov	r0, #4
	bl	exit
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1072]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L8+36
	bl	printf
	ldr	r3, [fp, #-1084]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r0, [fp, #-1076]
	bl	close
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1025
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
