	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_kextract                  ## -- Begin function pmap_kextract
	.p2align	4, 0x90
_pmap_kextract:                         ## @pmap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_DMAP_MIN_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_DMAP_MAX_ADDRESS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_2
## %bb.10:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DMAP_TO_PHYS                   ## TAILCALL
LBB0_2:
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_pmap_l2
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_4:
	movq	%r14, %rdi
	callq	_pmap_load
	movq	_PTE_RX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_pmap_load
	movq	_PTE_PPN1_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_L2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_L2_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pmap_l2_to_l3
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_8:
	movq	%r14, %rdi
	callq	_pmap_load
	movl	%eax, %edi
	callq	_PTE_TO_PHYS
	movq	_PAGE_MASK@GOTPCREL(%rip), %rcx
LBB0_9:
	andl	(%rcx), %ebx
	orl	%eax, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAP_MIN_ADDRESS,4,2           ## @DMAP_MIN_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,4,2           ## @DMAP_MAX_ADDRESS
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_kextract: No l2"

	.comm	_PTE_RX,4,2                     ## @PTE_RX
	.comm	_PTE_PPN1_S,4,2                 ## @PTE_PPN1_S
	.comm	_L2_SHIFT,4,2                   ## @L2_SHIFT
	.comm	_L2_OFFSET,4,2                  ## @L2_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"pmap_kextract: No l3..."

	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_kextract                  ; -- Begin function pmap_kextract
	.p2align	2
_pmap_kextract:                         ; @pmap_kextract
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DMAP_MIN_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAP_MIN_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DMAP_MAX_ADDRESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMAP_MAX_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, le
	b.gt	LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pmap_l2
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_3:
	mov	x0, x20
	bl	_pmap_load
Lloh11:
	adrp	x8, _PTE_RX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PTE_RX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_pmap_load
Lloh14:
	adrp	x8, _PTE_PPN1_S@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PTE_PPN1_S@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh17:
	adrp	x9, _L2_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _L2_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh20:
	adrp	x9, _L2_OFFSET@GOTPAGE
Lloh21:
	ldr	x9, [x9, _L2_OFFSET@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w9, w9, w19
	orr	w0, w9, w8
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DMAP_TO_PHYS
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_pmap_l2_to_l3
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_8:
	mov	x0, x20
	bl	_pmap_load
	bl	_PTE_TO_PHYS
Lloh25:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w19
	orr	w0, w8, w0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAP_MIN_ADDRESS,4,2           ; @DMAP_MIN_ADDRESS
	.comm	_DMAP_MAX_ADDRESS,4,2           ; @DMAP_MAX_ADDRESS
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_kextract: No l2"

	.comm	_PTE_RX,4,2                     ; @PTE_RX
	.comm	_PTE_PPN1_S,4,2                 ; @PTE_PPN1_S
	.comm	_L2_SHIFT,4,2                   ; @L2_SHIFT
	.comm	_L2_OFFSET,4,2                  ; @L2_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"pmap_kextract: No l3..."

	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
.subsections_via_symbols
