	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_pte
_fetch_pte:                             ## @fetch_pte
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	(%rdi), %r13d
	leal	-1(%r13), %eax
	movq	8(%rdi), %rbx
	movl	%eax, %edi
	callq	_PM_LEVEL_INDEX
	leaq	(%rbx,%rax,4), %r12
	addl	$-2, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %ebx
	leal	1(%rbx), %eax
	cmpl	%r15d, %eax
	jle	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_IOMMU_PTE_PRESENT
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_IOMMU_PTE_PAGE
	movq	%rax, %r13
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_PM_LEVEL_INDEX
	leaq	(,%rax,4), %r12
	addq	%r13, %r12
	movl	(%r13,%rax,4), %edi
	callq	_PM_PTE_LEVEL
	leal	-1(%rbx), %r13d
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%ebx, %r15d
	je	LBB0_1
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fetch_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_pte
_fetch_pte:                             ; @fetch_pte
	.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	x19, x2
	mov	x20, x1
	ldr	w21, [x0]
	sub	w8, w21, #1
	ldr	x22, [x0, #8]
	mov	x0, x8
	bl	_PM_LEVEL_INDEX
	add	x22, x22, x0, lsl #2
	sub	w21, w21, #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, #1
	cmp	w8, w19
	b.le	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	bl	_IOMMU_PTE_PRESENT
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	bl	_IOMMU_PTE_PAGE
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_PM_LEVEL_INDEX
	add	x22, x22, x0, lsl #2
	ldr	w0, [x22]
	bl	_PM_PTE_LEVEL
	cmp	x0, #0
	ccmp	w19, w21, #4, eq
	sub	w21, w21, #1
	b.eq	LBB0_1
LBB0_4:
	mov	x22, #0
LBB0_5:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fetch_pte
.subsections_via_symbols
