	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmu_booke_kextract
_mmu_booke_kextract:                    ## @mmu_booke_kextract
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_VM_MIN_KERNEL_ADDRESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%rsi, (%rcx)
	jg	LBB0_3
## %bb.1:
	movq	_VM_MAX_KERNEL_ADDRESS@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jl	LBB0_3
## %bb.2:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_pte_vatopa
LBB0_3:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	_TLB1_ENTRIES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.5:
	leaq	-72(%rbp), %r15
	movq	_MAS1_VALID@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tlb1_read_entry
	movl	(%r14), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax
	cmpq	%r12, %rax
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	cmpq	%r12, %rcx
	jle	LBB0_10
## %bb.9:
	subq	%rax, %r12
	addq	-48(%rbp), %r12
	movq	%r12, %rax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_MIN_KERNEL_ADDRESS,8,3      ## @VM_MIN_KERNEL_ADDRESS
	.comm	_VM_MAX_KERNEL_ADDRESS,8,3      ## @VM_MAX_KERNEL_ADDRESS
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_TLB1_ENTRIES,4,2               ## @TLB1_ENTRIES
	.comm	_MAS1_VALID,4,2                 ## @MAS1_VALID
	.comm	_DMAP_BASE_ADDRESS,8,3          ## @DMAP_BASE_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,8,3           ## @DMAP_MAX_ADDRESS
	.no_dead_strip	_mmu_booke_kextract
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmu_booke_kextract
_mmu_booke_kextract:                    ; @mmu_booke_kextract
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
Lloh0:
	adrp	x8, _VM_MIN_KERNEL_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_MIN_KERNEL_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VM_MAX_KERNEL_ADDRESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VM_MAX_KERNEL_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #8, le
	b.ge	LBB0_2
; %bb.1:
	mov	x0, #0
	cbz	x0, LBB0_3
	b	LBB0_11
LBB0_2:
Lloh6:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_pte_vatopa
	cbnz	x0, LBB0_11
LBB0_3:
Lloh9:
	adrp	x21, _TLB1_ENTRIES@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TLB1_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w20, #0
Lloh11:
	adrp	x22, _MAS1_VALID@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MAS1_VALID@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x20
	bl	_tlb1_read_entry
	ldr	w8, [sp]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x19
	b.gt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [sp, #16]
	add	x9, x9, x8
	cmp	x9, x19
	b.le	LBB0_5
; %bb.9:
	ldr	x9, [sp, #24]
	sub	x8, x19, x8
	add	x0, x8, x9
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_MIN_KERNEL_ADDRESS,8,3      ; @VM_MIN_KERNEL_ADDRESS
	.comm	_VM_MAX_KERNEL_ADDRESS,8,3      ; @VM_MAX_KERNEL_ADDRESS
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_TLB1_ENTRIES,4,2               ; @TLB1_ENTRIES
	.comm	_MAS1_VALID,4,2                 ; @MAS1_VALID
	.comm	_DMAP_BASE_ADDRESS,8,3          ; @DMAP_BASE_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,8,3           ; @DMAP_MAX_ADDRESS
	.no_dead_strip	_mmu_booke_kextract
.subsections_via_symbols
