	.file	"757100.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
	.align 8
.LC1:
	.string	"[Error] Cannot connect to the server"
	.align 8
.LC2:
	.string	"[Client] Connected to %s:%d (sockfd=%d)\n"
	.align 8
.LC3:
	.string	"[Error] Failed to receive a message"
.LC4:
	.string	"[Client] Received: %s\n"
	.align 8
.LC5:
	.string	"[Error] Failed to send a message"
	.align 8
.LC6:
	.string	"[Client] Sent a message to the server."
	.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
	push	rbx
	sub	rsp, 1112
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1056[rbp], 0
	mov	QWORD PTR -1048[rbp], 0
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	movabs	rax, 8243311830880773448
	movabs	rdx, 7142820508308893039
	mov	QWORD PTR -1088[rbp], rax
	mov	QWORD PTR -1080[rbp], rdx
	mov	DWORD PTR -1072[rbp], 1852139884
	mov	WORD PTR -1068[rbp], 32372
	mov	BYTE PTR -1066[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1108[rbp], eax
	lea	rax, -1104[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1104[rbp], 2
	mov	edi, 55555
	call	htons@PLT
	mov	WORD PTR -1102[rbp], ax
	lea	rdi, .LC0[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -1100[rbp], eax
	lea	rcx, -1104[rbp]
	mov	eax, DWORD PTR -1108[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L6
.L2:
	movzx	eax, WORD PTR -1102[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -1100[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -1108[rbp]
	mov	ecx, eax
	mov	edx, ebx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -1056[rbp]
	mov	eax, DWORD PTR -1108[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	cmp	rax, -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -1108[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L6
.L4:
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1088[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rsi, -1088[rbp]
	mov	eax, DWORD PTR -1108[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -1108[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L6
.L5:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1108[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L6:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	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	"757100.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"[Error] Cannot connect to the server\000"
	.align	2
.LC3:
	.ascii	"[Client] Connected to %s:%d (sockfd=%d)\012\000"
	.align	2
.LC4:
	.ascii	"[Error] Failed to receive a message\000"
	.align	2
.LC5:
	.ascii	"[Client] Received: %s\012\000"
	.align	2
.LC6:
	.ascii	"[Error] Failed to send a message\000"
	.align	2
.LC7:
	.ascii	"[Client] Sent a message to the server.\000"
	.align	2
.LC0:
	.ascii	"Hello from the client~\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1072
	sub	sp, sp, #4
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L8+4
	sub	ip, fp, #1040
	sub	ip, ip, #12
	sub	ip, ip, #12
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r1, #16
	strb	r3, [ip]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1084]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #12
	sub	r3, r3, #1056
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L8+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1056
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L8+12
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1076]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1084]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L8+16
	bl	perror
	mov	r3, #1
	b	.L6
.L2:
	ldr	r0, [fp, #-1076]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #1056
	sub	r3, r3, #12
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1084]
	mov	r1, r4
	ldr	r0, .L8+20
	bl	printf
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1084]
	bl	recv
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L8+24
	bl	perror
	ldr	r0, [fp, #-1084]
	bl	close
	mov	r3, #1
	b	.L6
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L8+28
	bl	printf
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #1040
	sub	r1, r1, #12
	sub	r1, r1, #12
	mov	r3, #0
	ldr	r0, [fp, #-1084]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L8+32
	bl	perror
	ldr	r0, [fp, #-1084]
	bl	close
	mov	r3, #1
	b	.L6
.L5:
	ldr	r0, .L8+36
	bl	puts
	ldr	r0, [fp, #-1084]
	bl	close
	mov	r3, #0
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC8
	.word	.LC0
	.word	55555
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
