	.file	"552843.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"error: %s: %s\n"
	.text
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC1:
	.string	"send"
	.text
	.type	echo, @function
echo:
.LFB7:
	.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, 216
	.cfi_offset 3, -24
	mov	DWORD PTR -212[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	QWORD PTR -192[rbp], 65535
	mov	rax, QWORD PTR -192[rbp]
	sub	rax, 1
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	mov	r10, rax
	mov	r11d, 0
	mov	rax, QWORD PTR -192[rbp]
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 16
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L3:
	cmp	rsp, rdx
	je	.L4
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L3
.L4:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L5
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L5:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -176[rbp], rax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -196[rbp], 128
	lea	rdi, -196[rbp]
	lea	rcx, -160[rbp]
	mov	rdx, QWORD PTR -192[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	ecx, 64
	mov	edi, eax
	call	recvfrom@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	edi, DWORD PTR -196[rbp]
	lea	rcx, -160[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 64
	mov	edi, eax
	call	sendto@PLT
	mov	rdx, QWORD PTR -168[rbp]
	cmp	rax, rdx
	je	.L6
	lea	rdi, .LC1[rip]
	call	die
.L6:
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	echo, .-echo
	.section	.rodata
.LC2:
	.string	"Echo server running ...\n"
.LC3:
	.string	"sockfd"
.LC4:
	.string	"bind"
.LC5:
	.string	"epoll_create1"
.LC6:
	.string	"epoll_ctl"
.LC7:
	.string	"epoll_wait"
.LC8:
	.string	"epoll_wait() returned\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	DWORD PTR -140[rbp], 7777
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -136[rbp], eax
	cmp	DWORD PTR -136[rbp], 0
	jns	.L9
	lea	rdi, .LC3[rip]
	call	die
.L9:
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	WORD PTR -80[rbp], 2
	mov	eax, DWORD PTR -140[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L10
	lea	rdi, .LC4[rip]
	call	die
.L10:
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jns	.L11
	lea	rdi, .LC5[rip]
	call	die
.L11:
	mov	QWORD PTR -92[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -92[rbp], 17
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR -88[rbp], eax
	lea	rcx, -92[rbp]
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	jns	.L19
	lea	rdi, .LC6[rip]
	call	die
.L19:
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -128[rbp], 64
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 96
	imul	rax, r12, 0
	lea	rcx, [rdx+rax]
	mov	eax, 96
	mul	r12
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 96
	imul	rax, r14, 0
	lea	rcx, [rdx+rax]
	mov	eax, 96
	mul	r14
	add	rcx, rdx
	mov	rdx, rcx
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L13:
	cmp	rsp, rdx
	je	.L14
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L13
.L14:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L15
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L15:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -112[rbp], rax
	mov	edx, DWORD PTR -128[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	ecx, -1
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jns	.L16
	lea	rdi, .LC7[rip]
	call	die
.L16:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR -144[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -144[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	echo
	add	DWORD PTR -144[rbp], 1
.L17:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L18
	mov	rsp, rbx
	jmp	.L19
	.cfi_endproc
.LFE8:
	.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	"552843.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: %s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L2
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+4
	mov	r0, r4
	bl	fprintf
	bl	abort
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	die, .-die
	.section	.rodata
	.align	2
.LC1:
	.ascii	"send\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	echo, %function
echo:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #172
	str	r0, [fp, #-168]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, .L7+4
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	sub	r3, r3, #1
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-160]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-160]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-160]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-152]
	sub	r3, fp, #144
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #128
	str	r3, [fp, #-164]
	sub	r3, fp, #164
	str	r3, [sp, #4]
	sub	r3, fp, #144
	str	r3, [sp]
	mov	r3, #64
	ldr	r2, [fp, #-160]
	ldr	r1, [fp, #-152]
	ldr	r0, [fp, #-168]
	bl	recvfrom
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-164]
	str	r3, [sp, #4]
	sub	r3, fp, #144
	str	r3, [sp]
	mov	r3, #64
	ldr	r2, [fp, #-148]
	ldr	r1, [fp, #-152]
	ldr	r0, [fp, #-168]
	bl	sendto
	mov	r2, r0
	ldr	r3, [fp, #-148]
	cmp	r2, r3
	beq	.L5
	ldr	r0, .L7+8
	bl	die
.L5:
	mov	sp, r4
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	65535
	.word	.LC1
	.size	echo, .-echo
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Echo server running ...\012\000"
	.align	2
.LC4:
	.ascii	"sockfd\000"
	.align	2
.LC5:
	.ascii	"bind\000"
	.align	2
.LC6:
	.ascii	"epoll_create1\000"
	.align	2
.LC7:
	.ascii	"epoll_ctl\000"
	.align	2
.LC8:
	.ascii	"epoll_wait\000"
	.align	2
.LC9:
	.ascii	"epoll_wait() returned\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	ldr	r3, .L19+12
	str	r3, [fp, #-84]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L19+16
	bl	die
.L10:
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L19+20
	bl	die
.L11:
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L19+24
	bl	die
.L12:
	sub	r3, fp, #52
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #17
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-44]
	sub	r3, fp, #52
	ldr	r2, [fp, #-80]
	mov	r1, #1
	ldr	r0, [fp, #-76]
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L19+28
	bl	die
.L17:
	mov	r3, sp
	mov	r4, r3
	mov	r3, #64
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-72]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	ldr	r3, [fp, #-72]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #7
	orr	r3, r3, r0, lsr #25
	lsl	r2, r0, #7
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #4
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-64]
	mvn	r3, #0
	ldr	r2, [fp, #-72]
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-76]
	bl	epoll_wait
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L19+32
	bl	die
.L14:
	ldr	r3, .L19+36
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L19+40
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L15
.L16:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	echo
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L15:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L16
	mov	sp, r4
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC10
	.word	stdout
	.word	.LC3
	.word	7777
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stderr
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
