	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_free_adapter_resources
_qlcnic_free_adapter_resources:         ## @qlcnic_free_adapter_resources
	.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, %rbx
	movq	(%rdi), %r14
	movq	16(%rdi), %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_vfree
	movq	$0, (%r14)
LBB0_2:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_QLC_PEX_DMA_READ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %ecx
	callq	_dma_free_coherent
	movq	$0, 8(%r14)
LBB0_4:
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	callq	_kfree
	movq	(%rbx), %rax
	movq	$0, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_PEX_DMA_READ_SIZE,4,2      ## @QLC_PEX_DMA_READ_SIZE
	.no_dead_strip	_qlcnic_free_adapter_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_free_adapter_resources
_qlcnic_free_adapter_resources:         ; @qlcnic_free_adapter_resources
	.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	x19, x0
	ldr	x20, [x0]
	ldr	x0, [x0, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_vfree
	str	xzr, [x20]
LBB0_2:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _QLC_PEX_DMA_READ_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_PEX_DMA_READ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x20, #16]
	bl	_dma_free_coherent
	str	xzr, [x20, #8]
LBB0_4:
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_PEX_DMA_READ_SIZE,4,2      ; @QLC_PEX_DMA_READ_SIZE
	.no_dead_strip	_qlcnic_free_adapter_resources
.subsections_via_symbols
