	.file	"extr_wsocket.c_socket_accept.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	socket_accept
	.type	socket_accept, @function
socket_accept:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	eax, DWORD PTR IO_CLOSED[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, QWORD PTR [rdi]
	cmp	rdi, QWORD PTR SOCKET_INVALID[rip]
	je	.L1
	mov	r13, rsi
	mov	r12, rdx
	mov	rbp, rcx
	mov	r14d, r8d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	WSAGetLastError@PLT
	cmp	DWORD PTR WSAEWOULDBLOCK[rip], eax
	je	.L5
	cmp	DWORD PTR WSAECONNABORTED[rip], eax
	jne	.L1
.L5:
	mov	esi, DWORD PTR WAITFD_R[rip]
	mov	edx, r14d
	mov	rdi, rbx
	call	socket_waitfd@PLT
	cmp	DWORD PTR IO_DONE[rip], eax
	jne	.L1
	mov	rdi, QWORD PTR [rbx]
.L2:
	mov	rdx, rbp
	mov	rsi, r12
	call	accept@PLT
	mov	QWORD PTR 0[r13], rax
	cmp	rax, QWORD PTR SOCKET_INVALID[rip]
	je	.L4
	mov	eax, DWORD PTR IO_DONE[rip]
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	socket_accept, .-socket_accept
	.comm	WSAEWOULDBLOCK,4,4
	.comm	WSAECONNABORTED,4,4
	.comm	WAITFD_R,4,4
	.comm	SOCKET_INVALID,8,8
	.comm	IO_DONE,4,4
	.comm	IO_CLOSED,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_wsocket.c_socket_accept.c"
	.text
	.align	2
	.global	socket_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_accept, %function
socket_accept:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L12
	mov	r4, r0
	ldr	ip, [r7]
	ldr	r0, [r0]
	sub	sp, sp, #12
	cmp	r0, ip
	ldr	r9, [sp, #48]
	str	r1, [sp, #4]
	beq	.L7
	mov	r5, r2
	mov	r6, r3
	ldr	r8, .L12+4
	ldr	fp, .L12+8
	ldr	r10, .L12+12
	b	.L2
.L4:
	bl	WSAGetLastError
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L5
	ldr	r3, [fp]
	cmp	r3, r0
	bne	.L1
.L5:
	ldr	r3, .L12+16
	mov	r2, r9
	ldr	r1, [r3]
	mov	r0, r4
	bl	socket_waitfd
	ldr	r3, [r10]
	cmp	r3, r0
	bne	.L1
	ldr	r0, [r4]
.L2:
	mov	r2, r6
	mov	r1, r5
	bl	accept
	ldr	r3, [sp, #4]
	str	r0, [r3]
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L4
	ldr	r3, .L12+12
	ldr	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	SOCKET_INVALID
	.word	WSAEWOULDBLOCK
	.word	WSAECONNABORTED
	.word	IO_DONE
	.word	WAITFD_R
	.word	IO_CLOSED
	.size	socket_accept, .-socket_accept
	.comm	WSAEWOULDBLOCK,4,4
	.comm	WSAECONNABORTED,4,4
	.comm	WAITFD_R,4,4
	.comm	SOCKET_INVALID,4,4
	.comm	IO_DONE,4,4
	.comm	IO_CLOSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
