	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_v7s_iova_to_phys
_arm_v7s_iova_to_phys:                  ## @arm_v7s_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	%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	%rsi, %r14
	callq	_io_pgtable_ops_to_data
	movq	%rax, %r15
	movq	8(%rax), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ARM_V7S_LVL_IDX
	cltq
	movl	(%r13,%rax,4), %edi
	callq	_READ_ONCE
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_iopte_deref
	movq	%rax, %r13
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_ARM_V7S_PTE_IS_TABLE
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	%r12d, %edi
	callq	_ARM_V7S_PTE_IS_VALID
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%ebx, %edi
	callq	_ARM_V7S_LVL_MASK
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_arm_v7s_pte_is_cont
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ARM_V7S_CONT_PAGES@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_6:
	imulq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_iopte_to_paddr
	notq	%r13
	andq	%r14, %r13
	orq	%rax, %r13
	jmp	LBB0_7
LBB0_3:
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_V7S_CONT_PAGES,8,3         ## @ARM_V7S_CONT_PAGES
	.no_dead_strip	_arm_v7s_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 arm_v7s_iova_to_phys
_arm_v7s_iova_to_phys:                  ; @arm_v7s_iova_to_phys
	.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	x19, x1
	bl	_io_pgtable_ops_to_data
	mov	x20, x0
	mov	w21, #0
	ldr	x23, [x0, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x19
	mov	x1, x21
	bl	_ARM_V7S_LVL_IDX
	ldr	w0, [x23, w0, sxtw #2]
	bl	_READ_ONCE
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_iopte_deref
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_ARM_V7S_PTE_IS_TABLE
	cbnz	x0, LBB0_1
; %bb.2:
	mov	x0, x22
	bl	_ARM_V7S_PTE_IS_VALID
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_ARM_V7S_LVL_MASK
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_arm_v7s_pte_is_cont
Lloh0:
	adrp	x8, _ARM_V7S_CONT_PAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_V7S_CONT_PAGES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csinc	x8, x8, xzr, ne
	mul	x23, x8, x23
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_iopte_to_paddr
	bic	x8, x19, x23
	orr	x0, x8, x0
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_V7S_CONT_PAGES,8,3         ; @ARM_V7S_CONT_PAGES
	.no_dead_strip	_arm_v7s_iova_to_phys
.subsections_via_symbols
