	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_accept
_unix_accept:                           ## @unix_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	16(%rdi), %r15
	xorl	%ebx, %ebx
	movq	(%rdi), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	subl	(%r12), %ebx
	movl	%ebx, -36(%rbp)
	movq	(%r15), %rax
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_skb_recv_datagram
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	(%rax), %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_skb_free_datagram
	movq	%r15, %rdi
	callq	_unix_sk
	movq	%rax, %rdi
	callq	_wake_up_interruptible
	movq	%r12, %rdi
	callq	_unix_state_lock
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sock_graft
	movq	%r12, %rdi
	callq	_unix_state_unlock
	jmp	LBB0_8
LBB0_5:
	movl	-36(%rbp), %ebx
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCP_LISTEN,8,3                 ## @TCP_LISTEN
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.no_dead_strip	_unix_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_accept
_unix_accept:                           ; @unix_accept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SOCK_SEQPACKET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldr	x20, [x0, #16]
Lloh6:
	adrp	x21, _EINVAL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x21]
	neg	w0, w8
	str	w0, [sp, #12]
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x19, x1
Lloh11:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w2, w8, w2
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #0
	bl	_skb_recv_datagram
	cbz	x0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	x21, [x0]
	mov	x0, x20
	bl	_skb_free_datagram
	mov	x0, x20
	bl	_unix_sk
	bl	_wake_up_interruptible
	mov	x0, x21
	bl	_unix_state_lock
Lloh14:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_sock_graft
	mov	x0, x21
	bl	_unix_state_unlock
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
LBB0_5:
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_6
; %bb.8:
	ldr	w8, [x21]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCP_LISTEN,8,3                 ; @TCP_LISTEN
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.no_dead_strip	_unix_accept
.subsections_via_symbols
