	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iflib_dma_free                 ## -- Begin function iflib_dma_free
	.p2align	4, 0x90
_iflib_dma_free:                        ## @iflib_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_IF_BAD_DMA@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_3
## %bb.2:
	movl	24(%rbx), %esi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_bus_dmamap_sync
	movq	8(%rbx), %rdi
	movl	24(%rbx), %esi
	callq	_bus_dmamap_unload
	movq	(%r14), %rax
	movq	%rax, (%rbx)
LBB0_3:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	movl	24(%rbx), %edx
	callq	_bus_dmamem_free
	movq	$0, 16(%rbx)
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_bus_dma_tag_destroy
	movq	$0, 8(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_BAD_DMA,8,3                 ## @IF_BAD_DMA
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ## @BUS_DMASYNC_POSTWRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iflib_dma_free                 ; -- Begin function iflib_dma_free
	.p2align	2
_iflib_dma_free:                        ; @iflib_dma_free
	.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	x0, [x0, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _IF_BAD_DMA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IF_BAD_DMA@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
	ldr	w1, [x19, #24]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #24]
	bl	_bus_dmamap_unload
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_3:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	ldr	w2, [x19, #24]
	bl	_bus_dmamem_free
	str	xzr, [x19, #16]
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_bus_dma_tag_destroy
	str	xzr, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_BAD_DMA,8,3                 ; @IF_BAD_DMA
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ; @BUS_DMASYNC_POSTWRITE
.subsections_via_symbols
