	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_accept                     ## -- Begin function net_accept
	.p2align	4, 0x90
_net_accept:                            ## @net_accept
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	$0, -56(%rbp)
	movl	$0, -36(%rbp)
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%edi, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_LWIP_DEBUGF
	movl	%ebx, %edi
	callq	_get_socket
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %edi
	callq	_netconn_accept
	movq	%rax, %r12
	leaq	-56(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rdi
	callq	_netconn_peer
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	-36(%rbp), %edi
	callq	_htons
	movl	%eax, -44(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %edx
	cmpl	$13, %edx
	jb	LBB0_4
## %bb.3:
	movl	$12, (%r15)
	movl	$12, %edx
LBB0_4:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_memcpy
	movq	%r12, %rdi
	callq	_alloc_socket
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	_evt_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	%ebx, %edi
	callq	_get_socket
	movq	%rax, %r14
	movq	_netsocket_sem@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_LWP_SemWait
	movl	(%r12), %eax
	notl	%eax
	addl	%eax, (%r14)
	movl	%ebx, (%r12)
	movl	(%r15), %edi
	callq	_LWP_SemPost
	jmp	LBB0_7
LBB0_1:
	movq	_ENOTSOCK@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rdi
	callq	_netconn_delete
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKETS_DEBUG,4,2              ## @SOCKETS_DEBUG
	.comm	_ENOTSOCK,4,2                   ## @ENOTSOCK
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_evt_callback,4,2               ## @evt_callback
	.comm	_netsocket_sem,4,2              ## @netsocket_sem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_accept                     ; -- Begin function net_accept
	.p2align	2
_net_accept:                            ; @net_accept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
Lloh0:
	adrp	x8, _SOCKETS_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sxtw	x1, w19
	bl	_LWIP_DEBUGF
	mov	x0, x19
	bl	_get_socket
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x0, #4]
	bl	_netconn_accept
	mov	x19, x0
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_netconn_peer
	mov	w22, #12
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	w0, [sp, #20]
	bl	_htons
	ldr	w8, [sp, #24]
	stp	w8, w0, [sp, #8]
	ldr	w2, [x21]
	cmp	w2, #13
	b.lo	LBB0_3
; %bb.2:
	str	w22, [x21]
	mov	w2, #12
LBB0_3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_memcpy
	mov	x0, x19
	bl	_alloc_socket
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _evt_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _evt_callback@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_get_socket
	mov	x21, x0
Lloh9:
	adrp	x22, _netsocket_sem@GOTPAGE
Lloh10:
	ldr	x22, [x22, _netsocket_sem@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_LWP_SemWait
	ldr	w8, [x19]
	mvn	w8, w8
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	str	w20, [x19]
	ldr	w0, [x22]
	bl	_LWP_SemPost
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_netconn_delete
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKETS_DEBUG,4,2              ; @SOCKETS_DEBUG
	.comm	_ENOTSOCK,4,2                   ; @ENOTSOCK
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_evt_callback,4,2               ; @evt_callback
	.comm	_netsocket_sem,4,2              ; @netsocket_sem
.subsections_via_symbols
