	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restart_accept
_restart_accept:                        ## @restart_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rsi), %rax
	movq	(%rax), %r14
	movl	16(%rdi), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movq	%rax, %r12
	movq	(%r14), %rdi
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movq	_ISC_R_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	callq	_closesocket
	movq	%r12, (%r14)
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r15), %rdi
	movq	(%r14), %rsi
	movl	4(%rbx), %edx
	xorl	%ecx, %ecx
	movl	$20, %r8d
	movl	$20, %r9d
	pushq	%rbx
	pushq	%rbx
	callq	_ISCAcceptEx
	addq	$16, %rsp
	movq	8(%r14), %rdi
	callq	_InterlockedDecrement
	movq	%r14, %rdi
	callq	_iocompletionport_update
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_ISC_R_FAILURE,4,2              ## @ISC_R_FAILURE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.no_dead_strip	_restart_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restart_accept
_restart_accept:                        ; @restart_accept
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x1, #16]
	ldr	x19, [x8]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_socket
	mov	x22, x0
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _INVALID_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INVALID_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ISC_R_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISC_R_FAILURE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	bl	_closesocket
	str	x22, [x19]
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x21]
	ldr	x1, [x19]
	ldr	w2, [x20, #4]
	mov	w3, #0
	mov	w4, #20
	mov	w5, #20
	mov	x6, x20
	mov	x7, x20
	bl	_ISCAcceptEx
	ldr	x0, [x19, #8]
	bl	_InterlockedDecrement
	mov	x0, x19
	bl	_iocompletionport_update
Lloh11:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_ISC_R_FAILURE,4,2              ; @ISC_R_FAILURE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.no_dead_strip	_restart_accept
.subsections_via_symbols
