	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_close_prep
_cnic_close_prep:                       ## @cnic_close_prep
	.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, %r14
	movq	_SK_F_CONNECT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_mb__after_clear_bit
	movq	_SK_F_OFFLD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_SK_F_OFFLD_SCHED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_msleep
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SK_F_CONNECT_START,4,2         ## @SK_F_CONNECT_START
	.comm	_SK_F_OFFLD_COMPLETE,4,2        ## @SK_F_OFFLD_COMPLETE
	.comm	_SK_F_OFFLD_SCHED,4,2           ## @SK_F_OFFLD_SCHED
	.no_dead_strip	_cnic_close_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_close_prep
_cnic_close_prep:                       ; @cnic_close_prep
	.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	x19, x0
Lloh0:
	adrp	x8, _SK_F_CONNECT_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SK_F_CONNECT_START@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	bl	_smp_mb__after_clear_bit
Lloh3:
	adrp	x8, _SK_F_OFFLD_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SK_F_OFFLD_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x21, _SK_F_OFFLD_SCHED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SK_F_OFFLD_SCHED@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_and_set_bit
	mov	w20, #1
	cbz	x0, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_and_set_bit
	cbnz	x0, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SK_F_CONNECT_START,4,2         ; @SK_F_CONNECT_START
	.comm	_SK_F_OFFLD_COMPLETE,4,2        ; @SK_F_OFFLD_COMPLETE
	.comm	_SK_F_OFFLD_SCHED,4,2           ; @SK_F_OFFLD_SCHED
	.no_dead_strip	_cnic_close_prep
.subsections_via_symbols
