	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_accept                     ## -- Begin function sys_accept
	.p2align	4, 0x90
_sys_accept:                            ## @sys_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_STRACE
	movq	%rbx, %rdi
	callq	_sock_getfd
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	$0, -52(%rbp)
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_user_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.24:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_1:
	movq	__EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r13
LBB0_6:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	leaq	-48(%rbp), %r15
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	cmoveq	%r12, %r15
	movq	_errno@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_sockrestart_begin_listen_wait
	movq	$0, (%r12)
	movl	40(%r14), %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_accept
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_sockrestart_end_listen_wait
	xorl	%eax, %eax
	callq	_sockrestart_should_restart_listen_wait
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r12)
	je	LBB0_7
LBB0_9:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.11:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.12:
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rcx
	xorl	%edx, %edx
	callq	_sockaddr_write
	testl	%eax, %eax
	js	LBB0_22
## %bb.13:
	movl	-52(%rbp), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_user_put
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_10:
	xorl	%eax, %eax
	callq	_errno_map
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_15:
	movq	(%r14), %rsi
	movl	32(%r14), %edx
	movl	28(%r14), %ecx
	movl	%ebx, %edi
	callq	_sock_fd_create
	movq	%rax, %r15
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movl	%ebx, %edi
	callq	_close
LBB0_17:
	movq	(%r14), %rax
	movq	_AF_LOCAL_@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.18:
	movq	_peer_lock@GOTPCREL(%rip), %rdi
	callq	_lock
	movq	%r15, %rdi
	callq	_f_get
	movq	%rax, %r14
	leaq	24(%rax), %rdi
	callq	_fill_cred
	leaq	-88(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	callq	_read
	cmpl	$8, %eax
	jne	LBB0_20
## %bb.19:
	movq	-88(%rbp), %rdi
	movq	%rdi, 16(%r14)
	movq	%r14, 16(%rdi)
	addq	$8, %rdi
	callq	_notify
LBB0_20:
	movq	_peer_lock@GOTPCREL(%rip), %rdi
	callq	_unlock
LBB0_21:
	movl	%r15d, %ebx
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rsp
LBB0_23:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accept(%d, 0x%x, 0x%x)"

	.comm	__EBADF,4,2                     ## @_EBADF
	.comm	__EFAULT,4,2                    ## @_EFAULT
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_AF_LOCAL_,8,3                  ## @AF_LOCAL_
	.comm	_peer_lock,4,2                  ## @peer_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_accept                     ; -- Begin function sys_accept
	.p2align	2
_sys_accept:                            ; @sys_accept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_STRACE
	mov	x0, x19
	bl	_sock_getfd
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	wzr, [sp, #8]
	cbz	x22, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	w1, #0
	bl	_user_get
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, __EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_24
LBB0_4:
Lloh5:
	adrp	x8, __EBADF@GOTPAGE
Lloh6:
	ldr	x8, [x8, __EBADF@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_24
LBB0_5:
	mov	x23, #0
	b	LBB0_7
LBB0_6:
	add	x23, sp, #8
LBB0_7:
	mov	x25, sp
	add	x8, sp, #15
	cmp	x22, #0
	csel	x24, xzr, x8, eq
Lloh8:
	adrp	x26, _errno@GOTPAGE
Lloh9:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x27, _EINTR@GOTPAGE
Lloh11:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sockrestart_begin_listen_wait
	str	xzr, [x26]
	ldr	w0, [x20, #40]
	mov	x1, x24
	mov	x2, x23
	bl	_accept
	mov	x19, x0
	mov	x0, x20
	bl	_sockrestart_end_listen_wait
	bl	_sockrestart_should_restart_listen_wait
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_10:
	tbnz	w19, #31, LBB0_15
; %bb.11:
	cbz	x22, LBB0_16
; %bb.12:
	add	x1, sp, #15
	add	x3, sp, #8
	mov	x0, x22
	mov	w2, #0
	bl	_sockaddr_write
	tbnz	w0, #31, LBB0_23
; %bb.13:
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_user_put
	cbz	x0, LBB0_16
; %bb.14:
Lloh12:
	adrp	x8, __EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	b	LBB0_23
LBB0_15:
	bl	_errno_map
	mov	x19, x0
	b	LBB0_23
LBB0_16:
	ldr	x1, [x20]
	ldp	w3, w2, [x20, #28]
	mov	x0, x19
	bl	_sock_fd_create
	mov	x21, x0
	tbz	x0, #63, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_close
LBB0_18:
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _AF_LOCAL_@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AF_LOCAL_@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.19:
Lloh18:
	adrp	x0, _peer_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _peer_lock@GOTPAGEOFF]
	bl	_lock
	mov	x0, x21
	bl	_f_get
	mov	x20, x0
	add	x0, x0, #24
	bl	_fill_cred
	mov	x1, sp
	mov	x0, x19
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_21
; %bb.20:
	ldr	x8, [sp]
	str	x8, [x20, #16]
	str	x20, [x8, #16]
	add	x0, x8, #8
	bl	_notify
LBB0_21:
Lloh20:
	adrp	x0, _peer_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _peer_lock@GOTPAGEOFF]
	bl	_unlock
LBB0_22:
	mov	x19, x21
LBB0_23:
	mov	sp, x25
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accept(%d, 0x%x, 0x%x)"

	.comm	__EBADF,4,2                     ; @_EBADF
	.comm	__EFAULT,4,2                    ; @_EFAULT
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_AF_LOCAL_,8,3                  ; @AF_LOCAL_
	.comm	_peer_lock,4,2                  ; @peer_lock
.subsections_via_symbols
