	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_qenter                    ## -- Begin function pmap_qenter
	.p2align	4, 0x90
_pmap_qenter:                           ## @pmap_qenter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_pt2map_entry
	movl	%ebx, %ecx
	testl	%ebx, %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	movq	_PTE2_AP_KRW@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_vm_page_pte2_attr
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_PTE2_KERN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pte2_store
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r13
	addq	$4, %rbx
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r14d
	movl	%r14d, %edi
	callq	_VM_PAGE_TO_PHYS
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_pte2_load
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_pte2_pa
	cmpq	%r15, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edi
	callq	_pte2_attr
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_vm_page_pte2_attr
	cmpq	%rax, %r12
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	imull	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tlb_flush_range                ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTE2_AP_KRW,4,2                ## @PTE2_AP_KRW
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_qenter                    ; -- Begin function pmap_qenter
	.p2align	2
_pmap_qenter:                           ; @pmap_qenter
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_pt2map_entry
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, x0
	mov	x22, #0
	add	x27, x0, w19, sxtw #2
Lloh0:
	adrp	x28, _PTE2_AP_KRW@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PTE2_AP_KRW@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	w26, [x28]
	mov	x0, x24
	bl	_vm_page_pte2_attr
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_PTE2_KERN
	mov	x1, x0
	mov	x0, x23
	bl	_pte2_store
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #4
	cmp	x23, x27
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x21], #4
	mov	x0, x24
	bl	_VM_PAGE_TO_PHYS
	mov	x25, x0
	mov	x0, x23
	bl	_pte2_load
	mov	x26, x0
	bl	_pte2_pa
	cmp	x0, x25
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_pte2_attr
	mov	x26, x0
	mov	x0, x24
	bl	_vm_page_pte2_attr
	cmp	x26, x0
	b.ne	LBB0_2
	b	LBB0_3
LBB0_6:
	mov	x22, #0
LBB0_7:
	mov	x0, x22
	bl	___predict_false
	cbz	x0, LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w1, w8, w19
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_tlb_flush_range
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PTE2_AP_KRW,4,2                ; @PTE2_AP_KRW
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
.subsections_via_symbols
