	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_iommu_iova_to_phys
_exynos_iommu_iova_to_phys:             ## @exynos_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_to_exynos_domain
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r15), %edi
	movl	%r14d, %esi
	callq	_section_entry
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lv1ent_section
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_section_phys
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_section_offs
LBB0_2:
	movq	%rax, %rbx
	addq	%r12, %rbx
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_lv1ent_page
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_page_entry
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lv2ent_large
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_lpage_phys
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_lpage_offs
	jmp	LBB0_2
LBB0_8:
	movq	%rbx, %rdi
	callq	_lv2ent_small
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	callq	_spage_phys
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_spage_offs
	jmp	LBB0_2
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exynos_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 exynos_iommu_iova_to_phys
_exynos_iommu_iova_to_phys:             ; @exynos_iommu_iova_to_phys
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_to_exynos_domain
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_section_entry
	mov	x21, x0
	bl	_lv1ent_section
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_section_phys
	mov	x21, x0
	mov	x0, x20
	bl	_section_offs
LBB0_2:
	add	x20, x0, x21
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x21
	bl	_lv1ent_page
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	_page_entry
	mov	x21, x0
	bl	_lv2ent_large
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_lpage_phys
	mov	x21, x0
	mov	x0, x20
	bl	_lpage_offs
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	bl	_lv2ent_small
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_spage_phys
	mov	x21, x0
	mov	x0, x20
	bl	_spage_offs
	b	LBB0_2
LBB0_9:
	mov	x20, #0
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exynos_iommu_iova_to_phys
.subsections_via_symbols
