	.file	"448357.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Create Socket Failed!"
.LC1:
	.string	"Server Bind Port : %d Failed!"
.LC2:
	.string	"Server Listen Failed!"
.LC3:
	.string	"Server Accept Failed!"
.LC4:
	.string	"Send Data Fail"
.LC5:
	.string	"%ld rounds\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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -48[rbp], 2
	mov	edi, 0
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -44[rbp], eax
	mov	edi, 6666
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	DWORD PTR -56[rbp], 1
	lea	rdx, -56[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L3
	mov	esi, 6666
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, 20
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	DWORD PTR -68[rbp], 16
	lea	rdx, -68[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L5:
	mov	QWORD PTR -56[rbp], 0
	lea	rsi, -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	mov	QWORD PTR -56[rbp], rax
	lea	rsi, -56[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L6
.L7:
	mov	rcx, QWORD PTR -56[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	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	"448357.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Create Socket Failed!\000"
	.align	2
.LC1:
	.ascii	"Server Bind Port : %d Failed!\000"
	.align	2
.LC2:
	.ascii	"Server Listen Failed!\000"
	.align	2
.LC3:
	.ascii	"Server Accept Failed!\000"
	.align	2
.LC4:
	.ascii	"Send Data Fail\000"
	.global	__aeabi_ldivmod
	.align	2
.LC5:
	.ascii	"%ld rounds\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-48]	@ movhi
	mov	r0, #0
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, .L11+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L11+8
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #1
	str	r3, [fp, #-60]
	sub	r3, fp, #60
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-68]
	bl	setsockopt
	sub	r3, fp, #48
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r1, .L11+4
	ldr	r0, .L11+12
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #20
	ldr	r0, [fp, #-68]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L11+16
	bl	printf
	mov	r0, #1
	bl	exit
.L4:
	mov	r3, #16
	str	r3, [fp, #-72]
	sub	r2, fp, #72
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	accept
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L11+20
	bl	puts
	b	.L6
.L5:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r1, fp, #60
	mov	r3, #0
	mov	r2, #8
	ldr	r0, [fp, #-64]
	bl	recv
	mov	r3, r0
	str	r3, [fp, #-72]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
	sub	r1, fp, #60
	mov	r3, #0
	mov	r2, #8
	ldr	r0, [fp, #-64]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L11+24
	bl	puts
	b	.L6
.L7:
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	bne	.L8
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L11+28
	bl	printf
.L8:
	ldr	r0, [fp, #-64]
	bl	close
	b	.L4
.L6:
	ldr	r0, [fp, #-68]
	bl	close
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	6666
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
