	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function socket_early_resume
_socket_early_resume:                   ## @socket_early_resume
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_dead_socket@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	12(%rbx), %r15
	movl	%eax, 12(%rbx)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	(%rbx), %eax
	movq	_SOCKET_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_resume_delay@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_socket_setup
	movl	%eax, 8(%rbx)
	movl	(%rbx), %eax
LBB0_2:
	movq	_SOCKET_IN_RESUME@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dead_socket,4,2                ## @dead_socket
	.comm	_SOCKET_PRESENT,4,2             ## @SOCKET_PRESENT
	.comm	_resume_delay,4,2               ## @resume_delay
	.comm	_SOCKET_IN_RESUME,4,2           ## @SOCKET_IN_RESUME
	.no_dead_strip	_socket_early_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function socket_early_resume
_socket_early_resume:                   ; @socket_early_resume
	.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, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _dead_socket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dead_socket@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #12]!
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _SOCKET_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCKET_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _resume_delay@GOTPAGE
Lloh7:
	ldr	x8, [x8, _resume_delay@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_socket_setup
	str	w0, [x20, #8]
	ldr	w8, [x20]
LBB0_2:
Lloh9:
	adrp	x9, _SOCKET_IN_RESUME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCKET_IN_RESUME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_dead_socket,4,2                ; @dead_socket
	.comm	_SOCKET_PRESENT,4,2             ; @SOCKET_PRESENT
	.comm	_resume_delay,4,2               ; @resume_delay
	.comm	_SOCKET_IN_RESUME,4,2           ; @SOCKET_IN_RESUME
	.no_dead_strip	_socket_early_resume
.subsections_via_symbols
