	.file	"731242.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Could not create socket"
.LC1:
	.string	"reuse port failed"
.LC2:
	.string	"bind failed"
.LC3:
	.string	"accept failed"
	.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, 2080
	mov	DWORD PTR -2068[rbp], edi
	mov	QWORD PTR -2080[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2060[rbp], eax
	cmp	DWORD PTR -2060[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L2:
	mov	WORD PTR -2048[rbp], 2
	mov	DWORD PTR -2044[rbp], 0
	mov	rax, QWORD PTR -2080[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -2046[rbp], ax
	mov	DWORD PTR -2064[rbp], 1
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -2060[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L3:
	lea	rcx, -2048[rbp]
	mov	eax, DWORD PTR -2060[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L4:
	mov	eax, DWORD PTR -2060[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -2064[rbp], 16
	lea	rdx, -2064[rbp]
	lea	rcx, -2032[rbp]
	mov	eax, DWORD PTR -2060[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -2056[rbp], eax
	cmp	DWORD PTR -2056[rbp], 0
	jns	.L8
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L8:
	lea	rsi, -2016[rbp]
	mov	eax, DWORD PTR -2056[rbp]
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -2052[rbp], eax
	cmp	DWORD PTR -2052[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -2052[rbp]
	movsx	rdx, eax
	lea	rsi, -2016[rbp]
	mov	eax, DWORD PTR -2056[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	jmp	.L8
.L12:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"731242.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Could not create socket\000"
	.align	2
.LC1:
	.ascii	"reuse port failed\000"
	.align	2
.LC2:
	.ascii	"bind failed\000"
	.align	2
.LC3:
	.ascii	"accept failed\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 = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2064]
	str	r1, [fp, #-2068]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2052]
	ldr	r3, [fp, #-2052]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L13+4
	bl	perror
.L2:
	sub	r3, fp, #4
	sub	r3, r3, #2032
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-2036]
	ldr	r3, [fp, #-2068]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #2032
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #1
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-2052]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L13+8
	bl	perror
.L3:
	sub	r3, fp, #2032
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-2052]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L13+12
	bl	perror
.L4:
	mov	r1, #3
	ldr	r0, [fp, #-2052]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-2056]
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2016
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2052]
	bl	accept
	str	r0, [fp, #-2048]
	ldr	r3, [fp, #-2048]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L13+16
	bl	perror
.L8:
	sub	r1, fp, #2000
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [fp, #-2048]
	bl	recv
	str	r0, [fp, #-2044]
	ldr	r3, [fp, #-2044]
	cmp	r3, #0
	ble	.L12
	ldr	r2, [fp, #-2044]
	sub	r1, fp, #2000
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	ldr	r0, [fp, #-2048]
	bl	send
	b	.L8
.L12:
	nop
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.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
