	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_dma_map_page
_iommu_dma_map_page:                    ## @iommu_dma_map_page
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_page_to_phys
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r12, %rdi
	callq	_dev_is_dma_coherent
	movl	%eax, %r15d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_dma_info_to_prot
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	___iommu_dma_map
	movq	%rax, %r14
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.1:
	movq	_DMA_ATTR_SKIP_CPU_SYNC@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_DMA_MAPPING_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_arch_sync_dma_for_device
LBB0_4:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,8,3     ## @DMA_ATTR_SKIP_CPU_SYNC
	.comm	_DMA_MAPPING_ERROR,8,3          ## @DMA_MAPPING_ERROR
	.no_dead_strip	_iommu_dma_map_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_dma_map_page
_iommu_dma_map_page:                    ; @iommu_dma_map_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_page_to_phys
	add	x22, x0, x22
	mov	x0, x21
	bl	_dev_is_dma_coherent
	mov	x25, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x23
	bl	_dma_info_to_prot
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	___iommu_dma_map
	mov	x24, x0
	cbnz	w25, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_ATTR_SKIP_CPU_SYNC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	x8, x8, x23
Lloh3:
	adrp	x9, _DMA_MAPPING_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_MAPPING_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x24, x9, #4, eq
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_arch_sync_dma_for_device
LBB0_3:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_ATTR_SKIP_CPU_SYNC,8,3     ; @DMA_ATTR_SKIP_CPU_SYNC
	.comm	_DMA_MAPPING_ERROR,8,3          ; @DMA_MAPPING_ERROR
	.no_dead_strip	_iommu_dma_map_page
.subsections_via_symbols
