	.file	"292864.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s: %s\n"
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
.LC1:
	.string	"Can't resolve the address"
.LC2:
	.string	"Can't open socket"
.LC3:
	.string	"Can't connect to the socket"
	.text
	.globl	open_socket
	.type	open_socket, @function
open_socket:
.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, 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], 0
	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
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	error
.L3:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	error
.L4:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	DWORD PTR -76[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	error
.L5:
	mov	eax, DWORD PTR -80[rbp]
	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
.LFE7:
	.size	open_socket, .-open_socket
	.section	.rodata
.LC4:
	.string	"Can't talk to the server"
	.text
	.globl	say
	.type	say, @function
say:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	error
.L9:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	say, .-say
	.section	.rodata
.LC5:
	.string	"30000"
.LC6:
	.string	"127.0.0.1"
.LC7:
	.string	"GET / \r\n"
.LC8:
	.string	"Bytes Received: %d\n"
.LC9:
	.string	"can't read from server"
.LC10:
	.string	"String: %s"
	.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	open_socket
	mov	DWORD PTR -532[rbp], eax
	lea	rax, -528[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -528[rbp]
	mov	eax, DWORD PTR -532[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	say
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -532[rbp]
	mov	ecx, 0
	mov	edx, 255
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -536[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L14:
	cmp	DWORD PTR -536[rbp], -1
	jne	.L13
	lea	rdi, .LC9[rip]
	call	error
.L13:
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -532[rbp]
	mov	ecx, 0
	mov	edx, 255
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -536[rbp], eax
.L12:
	cmp	DWORD PTR -536[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -532[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"292864.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L2
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	error, .-error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Can't resolve the address\000"
	.align	2
.LC2:
	.ascii	"Can't open socket\000"
	.align	2
.LC3:
	.ascii	"Can't connect to the socket\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_socket, %function
open_socket:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #52
	sub	r2, fp, #40
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getaddrinfo
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+4
	bl	error
.L5:
	ldr	r3, [fp, #-52]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+8
	bl	error
.L6:
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	connect
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+12
	bl	error
.L7:
	ldr	r3, [fp, #-48]
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	open_socket, .-open_socket
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Can't talk to the server\000"
	.text
	.align	2
	.global	say
	.syntax unified
	.arm
	.fpu softvfp
	.type	say, %function
say:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	send
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L15
	bl	error
.L13:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.size	say, .-say
	.section	.rodata
	.align	2
.LC6:
	.ascii	"30000\000"
	.align	2
.LC7:
	.ascii	"127.0.0.1\000"
	.align	2
.LC8:
	.ascii	"GET / \015\012\000"
	.align	2
.LC9:
	.ascii	"Bytes Received: %d\012\000"
	.align	2
.LC10:
	.ascii	"can't read from server\000"
	.align	2
.LC11:
	.ascii	"String: %s\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	open_socket
	str	r0, [fp, #-524]
	sub	r3, fp, #520
	ldr	r1, .L23+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, [fp, #-524]
	bl	say
	sub	r1, fp, #264
	mov	r3, #0
	mov	r2, #255
	ldr	r0, [fp, #-524]
	bl	recv
	str	r0, [fp, #-528]
	ldr	r1, [fp, #-528]
	ldr	r0, .L23+16
	bl	printf
	b	.L18
.L20:
	ldr	r3, [fp, #-528]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L23+20
	bl	error
.L19:
	sub	r2, fp, #264
	ldr	r3, [fp, #-528]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L23+24
	bl	printf
	sub	r1, fp, #264
	mov	r3, #0
	mov	r2, #255
	ldr	r0, [fp, #-524]
	bl	recv
	str	r0, [fp, #-528]
.L18:
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bne	.L20
	ldr	r0, [fp, #-524]
	bl	close
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC12
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
