	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_ready_to_close
_cnic_ready_to_close:                   ## @cnic_ready_to_close
	.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, %r14
	movq	%rdi, %rbx
	movq	_SK_F_OFFLD_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_L4_KCQE_OPCODE_VALUE_RESET_RECEIVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rax, %r14
	jmp	LBB0_3
LBB0_1:
	movq	(%rbx), %rax
LBB0_3:
	xorl	%r12d, %r12d
	cmpq	%rax, %r14
	je	LBB0_7
## %bb.4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_L4_KCQE_OPCODE_VALUE_CLOSE_COMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_L4_KCQE_OPCODE_VALUE_RESET_COMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_7:
	movq	_SK_F_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	$1, %r12d
	cmpq	$0, (%rbx)
	jne	LBB0_10
## %bb.9:
	movq	%r14, (%rbx)
LBB0_10:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SK_F_OFFLD_COMPLETE,4,2        ## @SK_F_OFFLD_COMPLETE
	.comm	_L4_KCQE_OPCODE_VALUE_RESET_RECEIVED,8,3 ## @L4_KCQE_OPCODE_VALUE_RESET_RECEIVED
	.comm	_L4_KCQE_OPCODE_VALUE_CLOSE_COMP,8,3 ## @L4_KCQE_OPCODE_VALUE_CLOSE_COMP
	.comm	_L4_KCQE_OPCODE_VALUE_RESET_COMP,8,3 ## @L4_KCQE_OPCODE_VALUE_RESET_COMP
	.comm	_SK_F_CLOSING,4,2               ## @SK_F_CLOSING
	.no_dead_strip	_cnic_ready_to_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_ready_to_close
_cnic_ready_to_close:                   ; @cnic_ready_to_close
	.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	x19, x0
Lloh0:
	adrp	x8, _SK_F_OFFLD_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SK_F_OFFLD_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #8
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _L4_KCQE_OPCODE_VALUE_RESET_RECEIVED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _L4_KCQE_OPCODE_VALUE_RESET_RECEIVED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x20, x8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
LBB0_3:
Lloh6:
	adrp	x9, _L4_KCQE_OPCODE_VALUE_CLOSE_COMP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _L4_KCQE_OPCODE_VALUE_CLOSE_COMP@GOTPAGEOFF]
Lloh8:
	adrp	x10, _L4_KCQE_OPCODE_VALUE_RESET_COMP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _L4_KCQE_OPCODE_VALUE_RESET_COMP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
	cmp	x20, x8
	ccmp	x8, #0, #4, ne
	ccmp	x8, x9, #4, ne
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _SK_F_CLOSING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SK_F_CLOSING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	w0, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.8:
	str	x20, [x19]
LBB0_9:
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SK_F_OFFLD_COMPLETE,4,2        ; @SK_F_OFFLD_COMPLETE
	.comm	_L4_KCQE_OPCODE_VALUE_RESET_RECEIVED,8,3 ; @L4_KCQE_OPCODE_VALUE_RESET_RECEIVED
	.comm	_L4_KCQE_OPCODE_VALUE_CLOSE_COMP,8,3 ; @L4_KCQE_OPCODE_VALUE_CLOSE_COMP
	.comm	_L4_KCQE_OPCODE_VALUE_RESET_COMP,8,3 ; @L4_KCQE_OPCODE_VALUE_RESET_COMP
	.comm	_SK_F_CLOSING,4,2               ; @SK_F_CLOSING
	.no_dead_strip	_cnic_ready_to_close
.subsections_via_symbols
