	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_lpae_iova_to_phys
_arm_lpae_iova_to_phys:                 ## @arm_lpae_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, %r12
	movq	8(%rax), %r13
	movq	%rax, %rdi
	callq	_ARM_LPAE_START_LVL
	movl	%eax, %ebx
	movq	_ARM_LPAE_MAX_LEVELS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_ARM_LPAE_LVL_IDX
	cltq
	movl	(%r13,%rax,4), %edi
	callq	_READ_ONCE
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_iopte_leaf
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_iopte_deref
	movq	%rax, %r13
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_1
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_ARM_LPAE_BLOCK_SIZE
	decl	%eax
	movslq	%eax, %rbx
	andq	%r14, %rbx
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_iopte_to_paddr
	orq	%rbx, %rax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ## @ARM_LPAE_MAX_LEVELS
	.no_dead_strip	_arm_lpae_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_lpae_iova_to_phys
_arm_lpae_iova_to_phys:                 ; @arm_lpae_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
	ldr	x22, [x0, #8]
	bl	_ARM_LPAE_START_LVL
	mov	x21, x0
Lloh0:
	adrp	x23, _ARM_LPAE_MAX_LEVELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ARM_LPAE_MAX_LEVELS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ARM_LPAE_LVL_IDX
	ldr	w0, [x22, w0, sxtw #2]
	bl	_READ_ONCE
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x0
	ldr	w2, [x20]
	mov	x1, x21
	bl	_iopte_leaf
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_iopte_deref
	mov	x22, x0
	add	w21, w21, #1
	ldr	w8, [x23]
	cmp	w21, w8
	b.lt	LBB0_1
LBB0_5:
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_ARM_LPAE_BLOCK_SIZE
	sub	w8, w0, #1
	sxtw	x8, w8
	and	x19, x8, x19
	mov	x0, x22
	mov	x1, x20
	bl	_iopte_to_paddr
	orr	x0, x19, x0
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ; @ARM_LPAE_MAX_LEVELS
	.no_dead_strip	_arm_lpae_iova_to_phys
.subsections_via_symbols
