	.file	"179829769.c"
	.intel_syntax noprefix
	.text
	.globl	serv_accept
	.type	serv_accept, @function
serv_accept:
.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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L2
	mov	eax, -1
	jmp	.L13
.L2:
	mov	DWORD PTR -304[rbp], 110
	lea	rdx, -304[rbp]
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -2
	jmp	.L13
.L4:
	mov	eax, DWORD PTR -304[rbp]
	sub	eax, 2
	mov	DWORD PTR -304[rbp], eax
	mov	eax, DWORD PTR -304[rbp]
	mov	edx, eax
	lea	rax, -272[rbp]
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -304[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L5
	mov	DWORD PTR -296[rbp], -3
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 49152
	je	.L7
	mov	DWORD PTR -296[rbp], -4
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 63
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 448
	cmp	eax, 448
	je	.L9
.L8:
	mov	DWORD PTR -296[rbp], -5
	jmp	.L6
.L9:
	mov	edi, 0
	call	time@PLT
	sub	rax, 30
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	cmp	QWORD PTR -280[rbp], rax
	jg	.L10
	mov	rax, QWORD PTR -56[rbp]
	cmp	QWORD PTR -280[rbp], rax
	jg	.L10
	mov	rax, QWORD PTR -72[rbp]
	cmp	QWORD PTR -280[rbp], rax
	jle	.L11
.L10:
	mov	DWORD PTR -296[rbp], -6
	jmp	.L6
.L11:
	cmp	QWORD PTR -320[rbp], 0
	je	.L12
	mov	edx, DWORD PTR -132[rbp]
	mov	rax, QWORD PTR -320[rbp]
	mov	DWORD PTR [rax], edx
.L12:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	unlink@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -300[rbp]
	jmp	.L13
.L6:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -292[rbp], eax
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	serv_accept, .-serv_accept
	.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	"179829769.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	serv_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	serv_accept, %function
serv_accept:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-240]
	str	r1, [fp, #-244]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L13
.L2:
	mov	r3, #110
	str	r3, [fp, #-236]
	sub	r2, fp, #236
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, [fp, #-240]
	bl	accept
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmp	r3, #0
	bge	.L4
	ldr	r0, [fp, #-232]
	bl	free
	mvn	r3, #1
	b	.L13
.L4:
	ldr	r3, [fp, #-236]
	sub	r3, r3, #2
	str	r3, [fp, #-236]
	ldr	r2, [fp, #-236]
	sub	r3, fp, #120
	add	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-232]
	bl	memcpy
	ldr	r3, [fp, #-236]
	ldr	r2, [fp, #-232]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #212
	mov	r1, r3
	ldr	r0, [fp, #-232]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	mvn	r3, #2
	str	r3, [fp, #-220]
	b	.L6
.L5:
	ldr	r3, [fp, #-196]
	and	r3, r3, #61440
	cmp	r3, #49152
	beq	.L7
	mvn	r3, #3
	str	r3, [fp, #-220]
	b	.L6
.L7:
	ldr	r3, [fp, #-196]
	and	r3, r3, #63
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-196]
	and	r3, r3, #448
	cmp	r3, #448
	beq	.L9
.L8:
	mvn	r3, #4
	str	r3, [fp, #-220]
	b	.L6
.L9:
	mov	r0, #0
	bl	time
	mov	r3, r0
	sub	r3, r3, #30
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-224]
	cmp	r2, r3
	bgt	.L10
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-224]
	cmp	r2, r3
	bgt	.L10
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-224]
	cmp	r2, r3
	ble	.L11
.L10:
	mvn	r3, #5
	str	r3, [fp, #-220]
	b	.L6
.L11:
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	beq	.L12
	ldr	r2, [fp, #-188]
	ldr	r3, [fp, #-244]
	str	r2, [r3]
.L12:
	ldr	r0, [fp, #-232]
	bl	unlink
	ldr	r0, [fp, #-232]
	bl	free
	ldr	r3, [fp, #-228]
	b	.L13
.L6:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-216]
	ldr	r0, [fp, #-228]
	bl	close
	ldr	r0, [fp, #-232]
	bl	free
	mov	r0, #1
	bl	exit
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	serv_accept, .-serv_accept
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
