	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_iommu_iova_to_phys
_omap_iommu_iova_to_phys:               ## @omap_iommu_iova_to_phys
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_to_omap_domain
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %r14
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_iopgtable_lookup_entry
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	(%rax), %edi
	callq	_iopte_is_small
	movq	-24(%rbp), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_IOPTE_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	callq	_iopgd_is_section
	movq	-32(%rbp), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_IOSECTION_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	jmp	LBB0_4
LBB0_5:
	callq	_iopte_is_large
	movq	-24(%rbp), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_IOLARGE_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	callq	_iopgd_is_super
	movq	-32(%rbp), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_IOSUPER_MASK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movl	%ecx, %edi
LBB0_4:
	movq	%rbx, %rsi
	callq	_omap_iommu_translate
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	movl	%ecx, %edx
	movq	%rbx, %rcx
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IOPTE_MASK,4,2                 ## @IOPTE_MASK
	.comm	_IOLARGE_MASK,4,2               ## @IOLARGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bogus pte 0x%x, da 0x%llx"

	.comm	_IOSECTION_MASK,4,2             ## @IOSECTION_MASK
	.comm	_IOSUPER_MASK,4,2               ## @IOSUPER_MASK
L_.str.1:                               ## @.str.1
	.asciz	"bogus pgd 0x%x, da 0x%llx"

	.no_dead_strip	_omap_iommu_iova_to_phys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_iommu_iova_to_phys
_omap_iommu_iova_to_phys:               ; @omap_iommu_iova_to_phys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_omap_domain
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	x20, [x0]
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x19
	bl	_iopgtable_lookup_entry
	ldr	x8, [sp]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x8]
	bl	_iopte_is_small
	mov	x8, x0
	ldr	x9, [sp]
	ldr	w0, [x9]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _IOPTE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOPTE_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_iopgd_is_section
	mov	x8, x0
	ldr	x9, [sp, #8]
	ldr	w0, [x9]
	cbz	x8, LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _IOSECTION_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOSECTION_MASK@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
	b	LBB0_11
LBB0_6:
	bl	_iopte_is_large
	ldr	x8, [sp]
	ldr	w8, [x8]
	cbz	x0, LBB0_13
; %bb.7:
Lloh4:
	adrp	x9, _IOLARGE_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IOLARGE_MASK@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	bl	_iopgd_is_super
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cbz	x0, LBB0_14
; %bb.9:
Lloh6:
	adrp	x9, _IOSUPER_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IOSUPER_MASK@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x9]
	mov	x0, x8
LBB0_11:
	mov	x1, x19
	bl	_omap_iommu_translate
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x20
	mov	x2, x8
	mov	x3, x19
	bl	_dev_err
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IOPTE_MASK,4,2                 ; @IOPTE_MASK
	.comm	_IOLARGE_MASK,4,2               ; @IOLARGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bogus pte 0x%x, da 0x%llx"

	.comm	_IOSECTION_MASK,4,2             ; @IOSECTION_MASK
	.comm	_IOSUPER_MASK,4,2               ; @IOSUPER_MASK
l_.str.1:                               ; @.str.1
	.asciz	"bogus pgd 0x%x, da 0x%llx"

	.no_dead_strip	_omap_iommu_iova_to_phys
.subsections_via_symbols
