	.file	"extr_tcp_inq.c_start_server.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"accept"
.LC1:
	.string	"can only send %d bytes\n"
.LC2:
	.string	"send"
	.text
	.p2align 4
	.globl	start_server
	.type	start_server, @function
start_server:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, .LC2[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR BUF_SIZE[rip]
	lea	r12, 20[rsp]
	lea	rbx, 16[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], 4
	call	malloc@PLT
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, r12
	mov	rsi, rbx
	mov	edi, r13d
	call	accept@PLT
	mov	r14d, eax
	cmp	eax, -1
	jne	.L2
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L15
.L2:
	mov	edx, DWORD PTR BUF_SIZE[rip]
	xor	ecx, ecx
	mov	rsi, rbp
	mov	edi, r14d
	call	send@PLT
	mov	edx, eax
	test	eax, eax
	js	.L16
.L3:
	cmp	DWORD PTR BUF_SIZE[rip], edx
	je	.L5
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
.L5:
	mov	edi, 1
	call	sleep@PLT
	mov	edi, r14d
	call	close@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r15
	mov	DWORD PTR 4[rsp], edx
	call	perror@PLT
	mov	edx, DWORD PTR 4[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	edi, DWORD PTR 8[rsp]
	call	close@PLT
	xor	edi, edi
	call	pthread_exit@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	start_server, .-start_server
	.comm	stderr,4,4
	.comm	errno,8,8
	.comm	EINTR,8,8
	.comm	BUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tcp_inq.c_start_server.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"accept\000"
	.align	2
.LC1:
	.ascii	"can only send %d bytes\012\000"
	.align	2
.LC2:
	.ascii	"send\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	start_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_server, %function
start_server:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #4
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L20
	ldr	r2, .L20+4
	sub	sp, sp, #28
	mov	r9, r0
	ldr	r0, [r5]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r3, [sp, #16]
	bl	malloc
	mov	r6, r0
	ldr	r8, .L20+8
	ldr	r7, .L20+12
	ldr	fp, .L20+16
	ldr	r10, .L20+20
.L6:
	mov	r0, r9
	add	r2, sp, #16
	add	r1, sp, #12
	bl	accept
	cmn	r0, #1
	mov	r4, r0
	bne	.L2
	b	.L16
.L18:
	ldr	r2, [r8]
	ldr	r3, [r7]
	cmp	r2, r3
	bne	.L17
.L2:
	mov	r3, #0
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [r5]
	bl	send
	cmp	r0, #0
	blt	.L18
	mov	r2, r0
.L3:
	ldr	r3, [r5]
	cmp	r3, r2
	beq	.L5
	mov	r1, r10
	ldr	r0, [fp]
	bl	fprintf
.L5:
	mov	r0, #1
	bl	sleep
	mov	r0, r4
	bl	close
	b	.L6
.L17:
	str	r0, [sp, #4]
	ldr	r0, .L20+24
	bl	perror
	ldr	r2, [sp, #4]
	b	.L3
.L16:
	ldr	r0, .L20+28
	bl	perror
	mov	r0, r6
	bl	free
	mov	r0, r9
	bl	close
	mov	r0, #0
	bl	pthread_exit
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	BUF_SIZE
	.word	.LC3
	.word	errno
	.word	EINTR
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	start_server, .-start_server
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	EINTR,4,4
	.comm	BUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
