	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_map_page
_iommu_map_page:                        ## @iommu_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
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_PM_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_PM_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	_IOMMU_PROT_MASK@GOTPCREL(%rip), %rax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_alloc_pte
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_IOMMU_PTE_PRESENT
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_4:
	movq	_IOMMU_PTE_P@GOTPCREL(%rip), %rax
	orq	(%rax), %r12
	movq	_IOMMU_PROT_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, %eax
	movl	$0, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	andl	%esi, %edx
	je	LBB0_6
## %bb.5:
	movq	_IOMMU_PTE_IR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_6:
	orq	%rcx, %r12
	movq	_IOMMU_PROT_IW@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	je	LBB0_8
## %bb.7:
	movq	_IOMMU_PTE_IW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	orq	%rax, %r12
	movq	%r12, (%r14)
	movq	%rbx, %rdi
	callq	_update_domain
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_PROT_MASK,4,2            ## @IOMMU_PROT_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IOMMU_PTE_P,8,3                ## @IOMMU_PTE_P
	.comm	_IOMMU_PROT_IR,4,2              ## @IOMMU_PROT_IR
	.comm	_IOMMU_PTE_IR,8,3               ## @IOMMU_PTE_IR
	.comm	_IOMMU_PROT_IW,4,2              ## @IOMMU_PROT_IW
	.comm	_IOMMU_PTE_IW,8,3               ## @IOMMU_PTE_IW
	.no_dead_strip	_iommu_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_map_page
_iommu_map_page:                        ; @iommu_map_page
	.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	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_PAGE_ALIGN
	mov	x23, x0
	mov	x0, x21
	bl	_PAGE_ALIGN
	mov	x21, x0
	mov	x0, x22
	mov	x1, x23
	bl	_PM_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x22
	mov	x1, x21
	bl	_PM_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh0:
	adrp	x8, _IOMMU_PROT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_PROT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, #0
	bl	_alloc_pte
	mov	x22, x0
	ldr	x0, [x0]
	bl	_IOMMU_PTE_PRESENT
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _IOMMU_PTE_P@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IOMMU_PTE_P@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _IOMMU_PROT_IR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IOMMU_PROT_IR@GOTPAGEOFF]
	orr	x8, x8, x21
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _IOMMU_PTE_IR@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IOMMU_PTE_IR@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	tst	w9, w20
	csel	x9, xzr, x10, eq
	orr	x8, x8, x9
Lloh19:
	adrp	x9, _IOMMU_PROT_IW@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IOMMU_PROT_IW@GOTPAGEOFF]
Lloh21:
	adrp	x10, _IOMMU_PTE_IW@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IOMMU_PTE_IW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	ldr	x10, [x10]
	tst	w9, w20
	csel	x9, xzr, x10, eq
	orr	x8, x8, x9
	str	x8, [x22]
	mov	x0, x19
	bl	_update_domain
	mov	w0, #0
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_PROT_MASK,4,2            ; @IOMMU_PROT_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IOMMU_PTE_P,8,3                ; @IOMMU_PTE_P
	.comm	_IOMMU_PROT_IR,4,2              ; @IOMMU_PROT_IR
	.comm	_IOMMU_PTE_IR,8,3               ; @IOMMU_PTE_IR
	.comm	_IOMMU_PROT_IW,4,2              ; @IOMMU_PROT_IW
	.comm	_IOMMU_PTE_IW,8,3               ; @IOMMU_PTE_IW
	.no_dead_strip	_iommu_map_page
.subsections_via_symbols
