	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iopte_free
_iopte_free:                            ## @iopte_free
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	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	%rsi, %rbx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_virt_to_phys
	movl	(%r14), %edi
	movq	_IOPTE_TABLE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_single
LBB0_3:
	movq	_iopte_cachep@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kmem_cache_free                ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOPTE_TABLE_SIZE,4,2           ## @IOPTE_TABLE_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_iopte_cachep,4,2               ## @iopte_cachep
	.no_dead_strip	_iopte_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iopte_free
_iopte_free:                            ; @iopte_free
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	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, x1
	cbz	w2, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_virt_to_phys
	mov	x1, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _IOPTE_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOPTE_TABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_dma_unmap_single
LBB0_3:
Lloh6:
	adrp	x8, _iopte_cachep@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iopte_cachep@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kmem_cache_free
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IOPTE_TABLE_SIZE,4,2           ; @IOPTE_TABLE_SIZE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_iopte_cachep,4,2               ; @iopte_cachep
	.no_dead_strip	_iopte_free
.subsections_via_symbols
