	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_cm_shutdown
_cnic_cm_shutdown:                      ## @cnic_cm_shutdown
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_CM_SK_TBL_SZ@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.2:
	movq	_SK_F_INUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_cnic_cm_cleanup
	cmpl	$2, (%r12)
	jl	LBB0_5
## %bb.3:
	movl	$1, %r14d
	movl	$4, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	addq	%r13, %rbx
	movq	_SK_F_INUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_cnic_cm_cleanup
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cnic_cm_free_mem
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CM_SK_TBL_SZ,4,2           ## @MAX_CM_SK_TBL_SZ
	.comm	_SK_F_INUSE,4,2                 ## @SK_F_INUSE
	.no_dead_strip	_cnic_cm_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_cm_shutdown
_cnic_cm_shutdown:                      ; @cnic_cm_shutdown
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x21, [x0]
	ldr	x20, [x21]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _MAX_CM_SK_TBL_SZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_CM_SK_TBL_SZ@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
Lloh2:
	adrp	x23, _SK_F_INUSE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SK_F_INUSE@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x20
	bl	_cnic_cm_cleanup
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	mov	w24, #1
	mov	w25, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x20, x8, x25
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x20
	bl	_cnic_cm_cleanup
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x25, x25, #4
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_cnic_cm_free_mem
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CM_SK_TBL_SZ,4,2           ; @MAX_CM_SK_TBL_SZ
	.comm	_SK_F_INUSE,4,2                 ; @SK_F_INUSE
	.no_dead_strip	_cnic_cm_shutdown
.subsections_via_symbols
