	.file	"395670.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"0.0.0.0"
.LC1:
	.string	"Connection start %s:%s\n"
.LC2:
	.string	"%s"
.LC3:
	.string	"Connection end %s:%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, 1776
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1744[rbp], 0
	mov	QWORD PTR -1736[rbp], 0
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1760[rbp], eax
	mov	WORD PTR -1744[rbp], 2
	mov	edi, 9000
	call	htons@PLT
	mov	WORD PTR -1742[rbp], ax
	lea	rdi, .LC0[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -1740[rbp], eax
	lea	rcx, -1744[rbp]
	mov	eax, DWORD PTR -1760[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -1760[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
.L8:
	mov	DWORD PTR -1764[rbp], 16
	lea	rdx, -1764[rbp]
	lea	rcx, -1728[rbp]
	mov	eax, DWORD PTR -1760[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1756[rbp], eax
	cmp	DWORD PTR -1756[rbp], 0
	js	.L10
	mov	QWORD PTR -1712[rbp], 1
	mov	DWORD PTR -1576[rbp], 2
	lea	rax, -1712[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L4
	mov	edi, 1
	call	exit@PLT
.L4:
	call	fork@PLT
	mov	DWORD PTR -1752[rbp], eax
	cmp	DWORD PTR -1752[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -1756[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L8
.L5:
	lea	rcx, -1296[rbp]
	lea	rdx, -1552[rbp]
	lea	rax, -1728[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 256
	mov	r8, rcx
	mov	ecx, 256
	mov	esi, 16
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	lea	rdx, -1296[rbp]
	lea	rax, -1552[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L7:
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1748[rbp]
	movsx	rdx, eax
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1756[rbp]
	mov	ecx, 16384
	mov	edi, eax
	call	send@PLT
.L6:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1756[rbp]
	mov	ecx, 16384
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1748[rbp], eax
	cmp	DWORD PTR -1748[rbp], 0
	jg	.L7
	lea	rdx, -1296[rbp]
	lea	rax, -1552[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1756[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	nop
	jmp	.L8
	.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	"395670.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0.0.0.0\000"
	.align	2
.LC1:
	.ascii	"Connection start %s:%s\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"Connection end %s:%s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1736
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1744
	sub	sp, sp, #8
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1712
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1732]
	sub	r3, fp, #4
	sub	r3, r3, #1712
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L11+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1712
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L11+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1712]
	sub	r3, fp, #1712
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1732]
	bl	bind
	mov	r1, #4096
	ldr	r0, [fp, #-1732]
	bl	listen
.L8:
	mov	r3, #16
	str	r3, [fp, #-1736]
	sub	r3, fp, #1728
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r1, fp, #1696
	sub	r1, r1, #4
	mov	r2, r3
	ldr	r0, [fp, #-1732]
	bl	accept
	str	r0, [fp, #-1728]
	ldr	r3, [fp, #-1728]
	cmp	r3, #0
	blt	.L10
	mov	r3, #1
	str	r3, [fp, #-1684]
	mov	r3, #2
	str	r3, [fp, #-1552]
	sub	r3, fp, #1680
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	mov	r0, #1
	bl	exit
.L4:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1724]
	ldr	r3, [fp, #-1724]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-1728]
	bl	close
	b	.L8
.L5:
	sub	r2, fp, #1536
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r0, fp, #1696
	sub	r0, r0, #4
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #256
	str	r3, [sp, #4]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #256
	mov	r1, #16
	bl	getnameinfo
	sub	r2, fp, #1280
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	b	.L6
.L7:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	ldr	r2, [fp, #-1720]
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #16384
	ldr	r0, [fp, #-1728]
	bl	send
.L6:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #16384
	mov	r2, #1024
	ldr	r0, [fp, #-1728]
	bl	recv
	str	r0, [fp, #-1720]
	ldr	r3, [fp, #-1720]
	cmp	r3, #0
	bgt	.L7
	sub	r2, fp, #1280
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+20
	bl	printf
	ldr	r0, [fp, #-1728]
	bl	close
	mov	r0, #0
	bl	exit
.L10:
	nop
	b	.L8
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	9000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
