	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iommu_dma_free
___iommu_dma_free:                      ## @__iommu_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r15
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r15, %rbx
	shrq	%cl, %rbx
	movq	_CONFIG_DMA_DIRECT_REMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dma_free_from_pool
	testq	%rax, %rax
	jne	LBB0_9
LBB0_2:
	movq	_CONFIG_DMA_REMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	callq	_is_vmalloc_addr
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_dma_common_find_pages
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dma_common_free_remap
	movq	%r13, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___iommu_dma_free_pages         ## TAILCALL
LBB0_7:
	movq	%r12, %rdi
	callq	_virt_to_page
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_contiguous            ## TAILCALL
LBB0_5:
	movq	%r12, %rdi
	callq	_vmalloc_to_page
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dma_common_free_remap
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_CONFIG_DMA_DIRECT_REMAP,4,2    ## @CONFIG_DMA_DIRECT_REMAP
	.comm	_CONFIG_DMA_REMAP,4,2           ## @CONFIG_DMA_REMAP
	.no_dead_strip	___iommu_dma_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iommu_dma_free
___iommu_dma_free:                      ; @__iommu_dma_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_PAGE_ALIGN
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _CONFIG_DMA_DIRECT_REMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG_DMA_DIRECT_REMAP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_dma_free_from_pool
	cbnz	x0, LBB0_9
LBB0_2:
Lloh6:
	adrp	x8, _CONFIG_DMA_REMAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG_DMA_REMAP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_is_vmalloc_addr
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_dma_common_find_pages
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	lsr	x20, x19, x23
	mov	x0, x21
	mov	x1, x19
	bl	_dma_common_free_remap
	mov	x0, x22
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	___iommu_dma_free_pages
LBB0_6:
	mov	x0, x21
	bl	_virt_to_page
	mov	x22, x0
	cbz	x22, LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dma_free_contiguous
LBB0_8:
	mov	x0, x21
	bl	_vmalloc_to_page
	mov	x22, x0
	mov	x0, x21
	mov	x1, x19
	bl	_dma_common_free_remap
	cbnz	x22, LBB0_7
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_CONFIG_DMA_DIRECT_REMAP,4,2    ; @CONFIG_DMA_DIRECT_REMAP
	.comm	_CONFIG_DMA_REMAP,4,2           ; @CONFIG_DMA_REMAP
	.no_dead_strip	___iommu_dma_free
.subsections_via_symbols
