	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, (%rdx)
	movl	(%rdi), %edi
	callq	_PM_LEVEL_SIZE
	cmpq	%r15, %rax
	jae	LBB0_2
LBB0_12:
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_2:
	movq	%r15, %rsi
	movl	(%rbx), %r15d
	leal	-1(%r15), %r12d
	movq	8(%rbx), %rbx
	movl	%r12d, %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_PM_LEVEL_INDEX
	leaq	(%rbx,%rax,4), %r13
	movl	%r12d, %edi
	callq	_PTE_LEVEL_PAGE_SIZE
	movq	%r14, %rcx
	movq	%rax, (%r14)
	cmpl	$2, %r15d
	jl	LBB0_9
## %bb.3:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_IOMMU_PTE_PRESENT
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_PM_PTE_LEVEL
	cmpl	$7, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_PM_PTE_LEVEL
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_PM_PTE_LEVEL
	cmpl	%eax, %r12d
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_IOMMU_PTE_PAGE
	movq	%rax, %r13
	leal	-1(%r12), %ebx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_PM_LEVEL_INDEX
	leaq	(%r13,%rax,4), %r13
	movl	%ebx, %edi
	callq	_PTE_LEVEL_PAGE_SIZE
	movq	%rax, (%r14)
	cmpl	$1, %r12d
	movl	%ebx, %r12d
	jg	LBB0_4
LBB0_9:
	movl	(%r13), %edi
	callq	_PM_PTE_LEVEL
	movq	_PAGE_MODE_7_LEVEL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_first_pte_l7                   ## TAILCALL
LBB0_13:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MODE_7_LEVEL,4,2          ## @PAGE_MODE_7_LEVEL
	.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	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, x2
	mov	x20, x1
	mov	x23, x0
	str	xzr, [x2]
	ldr	w0, [x0]
	bl	_PM_LEVEL_SIZE
	mov	x21, #0
	cmp	x0, x20
	b.lo	LBB0_10
; %bb.1:
	ldr	w24, [x23]
	sub	w22, w24, #1
	ldr	x21, [x23, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_PM_LEVEL_INDEX
	add	x21, x21, x0, lsl #2
	mov	x0, x22
	bl	_PTE_LEVEL_PAGE_SIZE
	str	x0, [x19]
	cmp	w24, #2
	b.lt	LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_IOMMU_PTE_PRESENT
	cbz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	bl	_PM_PTE_LEVEL
	cmp	w0, #7
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	bl	_PM_PTE_LEVEL
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	bl	_PM_PTE_LEVEL
	cmp	w22, w0
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	bl	_IOMMU_PTE_PAGE
	mov	x21, x0
	subs	w23, w22, #1
	mov	x0, x23
	mov	x1, x20
	bl	_PM_LEVEL_INDEX
	mov	x24, x0
	mov	x0, x23
	bl	_PTE_LEVEL_PAGE_SIZE
	add	x21, x21, x24, lsl #2
	str	x0, [x19]
	subs	w22, w22, #1
	b.gt	LBB0_2
LBB0_7:
	ldr	w0, [x21]
	bl	_PM_PTE_LEVEL
Lloh0:
	adrp	x8, _PAGE_MODE_7_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MODE_7_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	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
	b	_first_pte_l7
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	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	_PAGE_MODE_7_LEVEL,4,2          ; @PAGE_MODE_7_LEVEL
	.no_dead_strip	_fetch_pte
.subsections_via_symbols
