	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_free_resc
_cnic_free_resc:                        ## @cnic_free_resc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	$0, 8(%rdi)
	movq	$0, 64(%rbx)
	cmpl	$-1, (%rdi)
	jne	LBB0_3
## %bb.2:
	callq	___cnic_free_uio_rings
LBB0_3:
	movq	%r14, %rdi
	callq	_cnic_free_context
	movq	56(%rbx), %rdi
	callq	_kfree
	leaq	40(%rbx), %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	%r14, %rdi
	callq	_cnic_free_dma
	leaq	36(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cnic_free_dma
	leaq	32(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cnic_free_dma
	leaq	28(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cnic_free_dma
	leaq	24(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cnic_free_dma
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	leaq	4(%rbx), %rdi
	callq	_cnic_free_id_tbl
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cnic_free_id_tbl               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cnic_free_resc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_free_resc
_cnic_free_resc:                        ; @cnic_free_resc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_3
; %bb.1:
	str	xzr, [x0, #8]
	str	xzr, [x19, #64]
	ldr	w8, [x0]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	bl	___cnic_free_uio_rings
LBB0_3:
	mov	x0, x20
	bl	_cnic_free_context
	ldr	x0, [x19, #56]
	bl	_kfree
	add	x1, x19, #40
	stp	xzr, xzr, [x19, #48]
	mov	x0, x20
	bl	_cnic_free_dma
	add	x1, x19, #36
	mov	x0, x20
	bl	_cnic_free_dma
	add	x1, x19, #32
	mov	x0, x20
	bl	_cnic_free_dma
	add	x1, x19, #28
	mov	x0, x20
	bl	_cnic_free_dma
	add	x1, x19, #24
	mov	x0, x20
	bl	_cnic_free_dma
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	add	x0, x19, #4
	bl	_cnic_free_id_tbl
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cnic_free_id_tbl
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cnic_free_resc
.subsections_via_symbols
