	.file	"884341.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/sim_socket"
.LC1:
	.string	"sim server started..."
.LC2:
	.string	"sim server accept conn..."
	.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, 704
	mov	DWORD PTR -692[rbp], edi
	mov	QWORD PTR -704[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -688[rbp], 0
	mov	DWORD PTR -680[rbp], 0
	mov	DWORD PTR -676[rbp], 0
	mov	DWORD PTR -684[rbp], 0
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	lea	rdx, -512[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -672[rbp], 0
	mov	QWORD PTR -664[rbp], 0
	mov	QWORD PTR -656[rbp], 0
	mov	QWORD PTR -648[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -680[rbp], eax
	mov	eax, DWORD PTR -680[rbp]
	mov	DWORD PTR -688[rbp], eax
	mov	eax, DWORD PTR -688[rbp]
	shr	eax, 31
	and	eax, 1
	test	al, al
	jne	.L17
	lea	rax, -640[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -640[rbp], 1
	lea	rax, -640[rbp]
	add	rax, 2
	movabs	rdx, 7883959270275642415
	movabs	rcx, 32762609202590559
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	esi, 0
	lea	rdi, .LC0[rip]
	call	access@PLT
	cmp	eax, -1
	je	.L4
	lea	rdi, .LC0[rip]
	call	remove@PLT
	mov	DWORD PTR -688[rbp], eax
	mov	eax, DWORD PTR -688[rbp]
	shr	eax, 31
	and	eax, 1
	test	al, al
	jne	.L18
.L4:
	lea	rcx, -640[rbp]
	mov	eax, DWORD PTR -680[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -688[rbp], eax
	mov	eax, DWORD PTR -688[rbp]
	shr	eax, 31
	and	eax, 1
	test	al, al
	jne	.L19
	mov	eax, DWORD PTR -680[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -688[rbp], eax
	mov	eax, DWORD PTR -688[rbp]
	shr	eax, 31
	and	eax, 1
	test	al, al
	jne	.L20
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L12:
	mov	eax, DWORD PTR -680[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -676[rbp], eax
	mov	eax, DWORD PTR -676[rbp]
	mov	DWORD PTR -688[rbp], eax
	mov	eax, DWORD PTR -688[rbp]
	shr	eax, 31
	and	eax, 1
	test	al, al
	jne	.L21
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -684[rbp], 0
	jmp	.L8
.L11:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -684[rbp]
	movsd	QWORD PTR -672[rbp], xmm0
	mov	eax, DWORD PTR -684[rbp]
	add	eax, eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC3[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -664[rbp], xmm0
	mov	eax, DWORD PTR -684[rbp]
	imul	eax, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -656[rbp], xmm0
	mov	edi, 0
	call	time@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -648[rbp], xmm0
	mov	edi, 200000
	call	usleep@PLT
	lea	rcx, -672[rbp]
	mov	eax, DWORD PTR -676[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	js	.L22
	add	DWORD PTR -684[rbp], 1
.L8:
	cmp	DWORD PTR -684[rbp], 9
	jle	.L11
	jmp	.L10
.L22:
	nop
.L10:
	mov	eax, DWORD PTR -676[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L12
.L17:
	nop
	jmp	.L3
.L18:
	nop
	jmp	.L3
.L19:
	nop
	jmp	.L3
.L20:
	nop
	jmp	.L3
.L21:
	nop
.L3:
	cmp	DWORD PTR -680[rbp], 0
	jle	.L13
	mov	eax, DWORD PTR -680[rbp]
	mov	edi, eax
	call	close@PLT
.L13:
	cmp	DWORD PTR -688[rbp], 0
	jns	.L14
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	puts@PLT
.L14:
	mov	eax, DWORD PTR -688[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.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	"884341.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/sim_socket\000"
	.align	2
.LC1:
	.ascii	"sim server started...\000"
	.align	2
.LC2:
	.ascii	"sim server accept conn...\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.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 = 688
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #688
	str	r0, [fp, #-688]
	str	r1, [fp, #-692]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-684]
	mov	r3, #0
	str	r3, [fp, #-676]
	mov	r3, #0
	str	r3, [fp, #-672]
	mov	r3, #0
	str	r3, [fp, #-680]
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #668
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-676]
	ldr	r3, [fp, #-676]
	str	r3, [fp, #-684]
	ldr	r3, [fp, #-684]
	lsr	r3, r3, #31
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L17
	sub	r3, fp, #632
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #628
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #632
	add	r3, r3, #2
	ldr	r2, .L23+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	mov	r1, #0
	ldr	r0, .L23+4
	bl	access
	mov	r3, r0
	cmn	r3, #1
	beq	.L4
	ldr	r0, .L23+4
	bl	remove
	str	r0, [fp, #-684]
	ldr	r3, [fp, #-684]
	lsr	r3, r3, #31
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L18
.L4:
	sub	r3, fp, #632
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-676]
	bl	bind
	str	r0, [fp, #-684]
	ldr	r3, [fp, #-684]
	lsr	r3, r3, #31
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L19
	mov	r1, #1
	ldr	r0, [fp, #-676]
	bl	listen
	str	r0, [fp, #-684]
	ldr	r3, [fp, #-684]
	lsr	r3, r3, #31
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L23+8
	bl	puts
.L12:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-676]
	bl	accept
	str	r0, [fp, #-672]
	ldr	r3, [fp, #-672]
	str	r3, [fp, #-684]
	ldr	r3, [fp, #-684]
	lsr	r3, r3, #31
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L23+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-680]
	b	.L8
.L11:
	ldr	r0, [fp, #-680]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-668]
	str	r3, [fp, #-664]
	ldr	r3, [fp, #-680]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L23+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-660]
	str	r3, [fp, #-656]
	ldr	r3, [fp, #-680]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-652]
	str	r3, [fp, #-648]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-644]
	str	r3, [fp, #-640]
	ldr	r0, .L23+20
	bl	usleep
	sub	r3, fp, #668
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-672]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	blt	.L22
	ldr	r3, [fp, #-680]
	add	r3, r3, #1
	str	r3, [fp, #-680]
.L8:
	ldr	r3, [fp, #-680]
	cmp	r3, #9
	ble	.L11
	b	.L10
.L22:
	nop
.L10:
	ldr	r0, [fp, #-672]
	bl	close
	b	.L12
.L17:
	nop
	b	.L3
.L18:
	nop
	b	.L3
.L19:
	nop
	b	.L3
.L20:
	nop
	b	.L3
.L21:
	nop
.L3:
	ldr	r3, [fp, #-676]
	cmp	r3, #0
	ble	.L13
	ldr	r0, [fp, #-676]
	bl	close
.L13:
	ldr	r3, [fp, #-684]
	cmp	r3, #0
	bge	.L14
	sub	r3, fp, #520
	mov	r0, r3
	bl	puts
.L14:
	ldr	r3, [fp, #-684]
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1071644672
	.word	200000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
