	.file	"729054.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: client hostname\n"
.LC1:
	.string	"gethostbyname"
.LC2:
	.string	"socket"
.LC3:
	.string	"connect"
.LC4:
	.string	"Hello, world!\n"
.LC5:
	.string	"send"
.LC6:
	.string	"After the send function "
.LC7:
	.string	"recv"
	.align 8
.LC8:
	.string	"Received in pid=%d, text=: %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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -136[rbp], rax
	cmp	QWORD PTR -136[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	herror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -144[rbp], eax
	cmp	DWORD PTR -144[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	WORD PTR -128[rbp], 2
	mov	edi, 9999
	call	htons@PLT
	mov	WORD PTR -126[rbp], ax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -124[rbp], eax
	lea	rax, -128[rbp]
	add	rax, 8
	mov	QWORD PTR [rax], 0
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -144[rbp]
	mov	ecx, 0
	mov	edx, 14
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rsi, -112[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], -1
	jne	.L7
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	call	getpid@PLT
	mov	ecx, eax
	lea	rax, -112[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L5
	.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	"729054.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: client hostname\012\000"
	.align	2
.LC1:
	.ascii	"gethostbyname\000"
	.align	2
.LC2:
	.ascii	"socket\000"
	.align	2
.LC3:
	.ascii	"connect\000"
	.align	2
.LC4:
	.ascii	"Hello, world!\012\000"
	.align	2
.LC5:
	.ascii	"send\000"
	.align	2
.LC6:
	.ascii	"After the send function \000"
	.align	2
.LC7:
	.ascii	"recv\000"
	.align	2
.LC8:
	.ascii	"Received in pid=%d, text=: %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 = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L9+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L9+12
	bl	herror
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L9+16
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	mov	r3, #2
	strh	r3, [fp, #-124]	@ movhi
	ldr	r0, .L9+20
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-122]	@ movhi
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-120]
	sub	r3, fp, #124
	add	r3, r3, #8
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	sub	r3, fp, #124
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L9+24
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	mov	r3, #0
	mov	r2, #14
	ldr	r1, .L9+28
	ldr	r0, [fp, #-132]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L9+32
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L9+36
	bl	puts
	sub	r1, fp, #108
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-132]
	bl	recv
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L9+40
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r2, fp, #108
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	bl	getpid
	mov	r1, r0
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r0, .L9+44
	bl	printf
	mov	r0, #1
	bl	sleep
	b	.L5
.L10:
	.align	2
.L9:
	.word	.LC9
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	9999
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
