	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fv_dma_free
_fv_dma_free:                           ## @fv_dma_free
	.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	%rdi, %r15
	movq	64(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	cmpq	$0, 96(%r15)
	je	LBB0_3
## %bb.2:
	movl	72(%r15), %esi
	callq	_bus_dmamap_unload
LBB0_3:
	leaq	96(%r15), %rbx
	movq	104(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	64(%r15), %rdi
	movl	72(%r15), %edx
	callq	_bus_dmamem_free
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	64(%r15), %rdi
	callq	_bus_dma_tag_destroy
	movq	$0, 64(%r15)
LBB0_6:
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.7:
	cmpq	$0, 80(%r15)
	je	LBB0_9
## %bb.8:
	movl	56(%r15), %esi
	callq	_bus_dmamap_unload
LBB0_9:
	leaq	80(%r15), %rbx
	movq	88(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	48(%r15), %rdi
	movl	56(%r15), %edx
	callq	_bus_dmamem_free
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	48(%r15), %rdi
	callq	_bus_dma_tag_destroy
	movq	$0, 48(%r15)
LBB0_12:
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.13:
	movq	_FV_TX_RING_CNT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r12
	movq	(%r12,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	32(%r15), %rdi
	callq	_bus_dmamap_destroy
	movq	$0, (%r12,%rbx,8)
	movl	(%r14), %eax
	jmp	LBB0_17
LBB0_18:
	movq	32(%r15), %rdi
LBB0_19:
	callq	_bus_dma_tag_destroy
	movq	$0, 32(%r15)
LBB0_20:
	cmpq	$0, 8(%r15)
	je	LBB0_29
## %bb.21:
	movq	_FV_RX_RING_CNT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.22:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r12
	movq	(%r12,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%r15), %rdi
	callq	_bus_dmamap_destroy
	movq	$0, (%r12,%rbx,8)
	movl	(%r14), %eax
	jmp	LBB0_25
LBB0_26:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.27:
	movq	8(%r15), %rdi
	callq	_bus_dmamap_destroy
	movq	$0, 16(%r15)
LBB0_28:
	movq	8(%r15), %rdi
	callq	_bus_dma_tag_destroy
	movq	$0, 8(%r15)
LBB0_29:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_bus_dma_tag_destroy
	movq	$0, (%r15)
LBB0_31:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FV_TX_RING_CNT,4,2             ## @FV_TX_RING_CNT
	.comm	_FV_RX_RING_CNT,4,2             ## @FV_RX_RING_CNT
	.no_dead_strip	_fv_dma_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fv_dma_free
_fv_dma_free:                           ; @fv_dma_free
	.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
	ldr	x0, [x0, #64]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x19
	ldr	x8, [x20, #96]!
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19, #72]
	bl	_bus_dmamap_unload
LBB0_3:
	ldr	x1, [x19, #104]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	x0, [x19, #64]
	ldr	w2, [x19, #72]
	bl	_bus_dmamem_free
LBB0_5:
	stp	xzr, xzr, [x20]
	ldr	x0, [x19, #64]
	bl	_bus_dma_tag_destroy
	str	xzr, [x19, #64]
LBB0_6:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x20, x19
	ldr	x8, [x20, #80]!
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x19, #56]
	bl	_bus_dmamap_unload
LBB0_9:
	ldr	x1, [x19, #88]
	cbz	x1, LBB0_11
; %bb.10:
	ldr	x0, [x19, #48]
	ldr	w2, [x19, #56]
	bl	_bus_dmamem_free
LBB0_11:
	stp	xzr, xzr, [x20]
	ldr	x0, [x19, #48]
	bl	_bus_dma_tag_destroy
	str	xzr, [x19, #48]
LBB0_12:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_20
; %bb.13:
Lloh0:
	adrp	x20, _FV_TX_RING_CNT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FV_TX_RING_CNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.14:
	mov	x21, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #40]
	ldr	x1, [x22, x21, lsl #3]
	cbz	x1, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x0, [x19, #32]
	bl	_bus_dmamap_destroy
	str	xzr, [x22, x21, lsl #3]
	ldr	w8, [x20]
	b	LBB0_15
LBB0_18:
	ldr	x0, [x19, #32]
LBB0_19:
	bl	_bus_dma_tag_destroy
	str	xzr, [x19, #32]
LBB0_20:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_29
; %bb.21:
Lloh2:
	adrp	x20, _FV_RX_RING_CNT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FV_RX_RING_CNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.22:
	mov	x21, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #24]
	ldr	x1, [x22, x21, lsl #3]
	cbz	x1, LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x0, [x19, #8]
	bl	_bus_dmamap_destroy
	str	xzr, [x22, x21, lsl #3]
	ldr	w8, [x20]
	b	LBB0_23
LBB0_26:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_28
; %bb.27:
	ldr	x0, [x19, #8]
	bl	_bus_dmamap_destroy
	str	xzr, [x19, #16]
LBB0_28:
	ldr	x0, [x19, #8]
	bl	_bus_dma_tag_destroy
	str	xzr, [x19, #8]
LBB0_29:
	ldr	x0, [x19]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_bus_dma_tag_destroy
	str	xzr, [x19]
LBB0_31:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FV_TX_RING_CNT,4,2             ; @FV_TX_RING_CNT
	.comm	_FV_RX_RING_CNT,4,2             ; @FV_RX_RING_CNT
	.no_dead_strip	_fv_dma_free
.subsections_via_symbols
