	.file	"435796.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"%s %s:%d\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
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -8340[rbp], edi
	mov	QWORD PTR -8352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movabs	rax, 8243311830880773480
	movabs	rdx, 7311156825131347311
	mov	QWORD PTR -8256[rbp], rax
	mov	QWORD PTR -8248[rbp], rdx
	mov	WORD PTR -8240[rbp], 114
	lea	rax, -8256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8328[rbp], eax
	lea	rax, -8288[rbp]
	mov	QWORD PTR -8312[rbp], rax
	lea	rax, -8272[rbp]
	mov	QWORD PTR -8304[rbp], rax
	mov	DWORD PTR -8332[rbp], 16
	mov	QWORD PTR -8296[rbp], 16
	lea	rax, -8288[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -8288[rbp], 2
	lea	rdi, .LC0[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -8284[rbp], eax
	mov	edi, 8000
	call	htons@PLT
	mov	WORD PTR -8286[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8324[rbp], eax
	mov	rax, QWORD PTR -8296[rbp]
	mov	edx, eax
	mov	rcx, QWORD PTR -8312[rbp]
	mov	eax, DWORD PTR -8324[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -8324[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	lea	rdx, -8332[rbp]
	mov	rcx, QWORD PTR -8304[rbp]
	mov	eax, DWORD PTR -8324[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8320[rbp], eax
	lea	rsi, -8224[rbp]
	mov	eax, DWORD PTR -8320[rbp]
	mov	ecx, 0
	mov	edx, 8192
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -8316[rbp], eax
	mov	eax, DWORD PTR -8316[rbp]
	cdqe
	mov	BYTE PTR -8224[rbp+rax], 0
	movzx	eax, WORD PTR -8270[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -8268[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -8224[rbp]
	mov	ecx, ebx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8328[rbp]
	movsx	rdx, eax
	lea	rsi, -8256[rbp]
	mov	eax, DWORD PTR -8320[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -8320[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	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	"435796.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"%s %s:%d\012\000"
	.align	2
.LC0:
	.ascii	"hello from server\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #36
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-96]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L4+4
	sub	ip, r3, #24
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #24
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-84]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #56
	str	r3, [r2, #-80]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #40
	str	r3, [r2, #-76]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-88]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-72]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #56
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-56]	@ movhi
	ldr	r0, .L4+8
	bl	inet_addr
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-52]
	mov	r0, #8000
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	strh	r2, [r3, #-54]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-72]
	ldr	r1, [r1, #-80]
	ldr	r0, [r3, #-68]
	bl	bind
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #5
	ldr	r0, [r3, #-68]
	bl	listen
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #24
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-76]
	ldr	r0, [r0, #-68]
	bl	accept
	str	r0, [r4, #-64]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #8192
	ldr	r0, [r0, #-64]
	bl	recv
	str	r0, [r4, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrh	r3, [r3, #-38]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r2, r4
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-84]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #24
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-64]
	bl	send
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-64]
	bl	close
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
