	.file	"176706336.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"maastricht.lcs.mit.edu"
.LC1:
	.string	"-exec"
.LC2:
	.string	"-go"
.LC3:
	.string	"Using TCP"
	.align 8
.LC4:
	.string	"client can't open stream socket"
.LC5:
	.string	"got sockfd: %d\n"
.LC6:
	.string	"binding..."
.LC7:
	.string	"unable to bind"
.LC8:
	.string	"done"
.LC9:
	.string	"gethostbyname failed for: %s\n"
.LC10:
	.string	"connecting..."
	.align 8
.LC11:
	.string	"problems connecting, errno: %d\n"
.LC12:
	.string	"execing"
.LC13:
	.string	"could not find it"
.LC14:
	.string	"the_stack_data/176706336.c"
.LC15:
	.string	"0"
.LC16:
	.string	"child"
.LC17:
	.string	"hello"
	.align 8
.LC18:
	.string	"problems writing, write returned: %d (expected 5), errno: %d\n"
.LC19:
	.string	"reading..."
.LC20:
	.string	"done read status: %d\n"
.LC21:
	.string	"closing..."
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -96[rbp], rax
	cmp	DWORD PTR -116[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	DWORD PTR -108[rbp], 4
	jmp	.L3
.L2:
	cmp	DWORD PTR -116[rbp], 2
	jne	.L4
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR -108[rbp], 5
	jmp	.L3
.L4:
	mov	DWORD PTR -108[rbp], 3
.L3:
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 1
	test	eax, eax
	je	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jns	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -80[rbp], 2
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -64[rbp], 2
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -64[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edi, 13
	call	htons@PLT
	mov	WORD PTR -62[rbp], ax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, 10
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
.L5:
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 2
	test	eax, eax
	je	.L10
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, 0
	lea	rdx, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	execlp@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 84
	lea	rsi, .LC14[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L10:
	mov	eax, DWORD PTR -108[rbp]
	and	eax, 4
	test	eax, eax
	je	.L11
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	DWORD PTR -104[rbp], 10
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 5
	lea	rsi, .LC17[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 5
	je	.L12
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L12:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 27
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -22[rbp], 0
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L11:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"176706336.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"maastricht.lcs.mit.edu\000"
	.align	2
.LC1:
	.ascii	"-exec\000"
	.align	2
.LC2:
	.ascii	"-go\000"
	.align	2
.LC3:
	.ascii	"Using TCP\000"
	.align	2
.LC4:
	.ascii	"client can't open stream socket\000"
	.align	2
.LC5:
	.ascii	"got sockfd: %d\012\000"
	.align	2
.LC6:
	.ascii	"binding...\000"
	.align	2
.LC7:
	.ascii	"unable to bind\000"
	.align	2
.LC8:
	.ascii	"done\000"
	.align	2
.LC9:
	.ascii	"gethostbyname failed for: %s\012\000"
	.align	2
.LC10:
	.ascii	"connecting...\000"
	.align	2
.LC11:
	.ascii	"problems connecting, errno: %d\012\000"
	.align	2
.LC12:
	.ascii	"execing\000"
	.align	2
.LC13:
	.ascii	"could not find it\000"
	.align	2
.LC14:
	.ascii	"the_stack_data/176706336.c\000"
	.align	2
.LC15:
	.ascii	"0\000"
	.align	2
.LC16:
	.ascii	"child\000"
	.align	2
.LC17:
	.ascii	"hello\000"
	.align	2
.LC18:
	.ascii	"problems writing, write returned: %d (expected 5), "
	.ascii	"errno: %d\012\000"
	.align	2
.LC19:
	.ascii	"reading...\000"
	.align	2
.LC20:
	.ascii	"done read status: %d\012\000"
	.align	2
.LC21:
	.ascii	"closing...\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #4
	str	r3, [fp, #-88]
	b	.L3
.L2:
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	bne	.L4
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L14+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #5
	str	r3, [fp, #-88]
	b	.L3
.L4:
	mov	r3, #3
	str	r3, [fp, #-88]
.L3:
	ldr	r3, [fp, #-88]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L14+16
	bl	puts
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L14+20
	bl	puts
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r1, [fp, #-80]
	ldr	r0, .L14+24
	bl	printf
	sub	r3, fp, #68
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-68]	@ movhi
	ldr	r0, .L14+28
	bl	printf
	sub	r3, fp, #68
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L14+32
	bl	printf
	mvn	r0, #0
	bl	exit
.L7:
	ldr	r0, .L14+36
	bl	puts
	sub	r3, fp, #52
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-52]	@ movhi
	ldr	r0, [fp, #-84]
	bl	gethostbyname
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L8
	ldr	r1, [fp, #-84]
	ldr	r0, .L14+40
	bl	printf
	mvn	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #52
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	mov	r0, #13
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-50]	@ movhi
	ldr	r0, .L14+44
	bl	printf
	sub	r3, fp, #52
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+48
	bl	printf
	mvn	r0, #0
	bl	exit
.L9:
	mov	r1, #10
	ldr	r0, [fp, #-80]
	bl	dup2
	ldr	r0, [fp, #-80]
	bl	close
.L5:
	ldr	r3, [fp, #-88]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L14+52
	bl	puts
	ldr	r3, [fp, #-100]
	ldr	r0, [r3]
	ldr	r3, [fp, #-100]
	ldr	r1, [r3]
	mov	r3, #0
	ldr	r2, .L14+8
	bl	execlp
	ldr	r0, .L14+56
	bl	puts
	ldr	r3, .L14+60
	mov	r2, #84
	ldr	r1, .L14+64
	ldr	r0, .L14+68
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-88]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L14+72
	bl	puts
	mov	r3, #10
	str	r3, [fp, #-80]
	ldr	r0, .L14+36
	bl	puts
	mov	r2, #5
	ldr	r1, .L14+76
	ldr	r0, [fp, #-80]
	bl	write
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	beq	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-72]
	ldr	r0, .L14+80
	bl	printf
	mvn	r0, #0
	bl	exit
.L12:
	ldr	r0, .L14+84
	bl	printf
	sub	r3, fp, #36
	mov	r2, #27
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	read
	str	r0, [fp, #-72]
	ldr	r1, [fp, #-72]
	ldr	r0, .L14+88
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-10]
	sub	r3, fp, #36
	mov	r0, r3
	bl	puts
	ldr	r0, .L14+92
	bl	printf
	ldr	r0, [fp, #-80]
	bl	close
	ldr	r0, .L14+36
	bl	puts
.L11:
	mov	r0, #0
	bl	exit
.L15:
	.align	2
.L14:
	.word	.LC22
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	__PRETTY_FUNCTION__.6225
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6225, %object
	.size	__PRETTY_FUNCTION__.6225, 5
__PRETTY_FUNCTION__.6225:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
