	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_enter_1mpage
_pmap_enter_1mpage:                     ## @pmap_enter_1mpage
	.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	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	movl	%r15d, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %ebx
	movq	_PTE1_NM@GOTPCREL(%rip), %rax
	movq	_PTE1_RO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_vm_page_pte2_attr
	movl	%eax, %edi
	callq	_ATTR_TO_L1
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_PTE1
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$0, %edx
	andl	(%rcx), %r13d
	jne	LBB0_2
## %bb.1:
	movq	_PTE1_NX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rdi
	movl	$0, %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, (%rdi)
	jle	LBB0_4
## %bb.3:
	movq	_PTE1_U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ecx, %eax
	orl	%eax, %edx
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_PTE1_NG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movq	_PMAP_ENTER_NOSLEEP@GOTPCREL(%rip), %rax
	movq	_PMAP_ENTER_NOREPLACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ebx, %edx
	movq	_PMAP_ENTER_NORECLAIM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r15d, %r8d
	callq	_pmap_enter_pte1
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	sete	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_PTE1_NM,4,2                    ## @PTE1_NM
	.comm	_PTE1_RO,4,2                    ## @PTE1_RO
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_PTE1_NX,4,2                    ## @PTE1_NX
	.comm	_VM_MAXUSER_ADDRESS,8,3         ## @VM_MAXUSER_ADDRESS
	.comm	_PTE1_U,4,2                     ## @PTE1_U
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_PTE1_NG,4,2                    ## @PTE1_NG
	.comm	_PMAP_ENTER_NOSLEEP,4,2         ## @PMAP_ENTER_NOSLEEP
	.comm	_PMAP_ENTER_NOREPLACE,4,2       ## @PMAP_ENTER_NOREPLACE
	.comm	_PMAP_ENTER_NORECLAIM,4,2       ## @PMAP_ENTER_NORECLAIM
	.comm	_KERN_SUCCESS,8,3               ## @KERN_SUCCESS
	.no_dead_strip	_pmap_enter_1mpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_enter_1mpage
_pmap_enter_1mpage:                     ; @pmap_enter_1mpage
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
	mov	x0, x19
	bl	_VM_PAGE_TO_PHYS
	mov	x23, x0
Lloh3:
	adrp	x8, _PTE1_NM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTE1_NM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PTE1_RO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PTE1_RO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w24, w9, w8
	mov	x0, x19
	bl	_vm_page_pte2_attr
	bl	_ATTR_TO_L1
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_PTE1
Lloh9:
	adrp	x8, _VM_PROT_EXECUTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PTE1_NX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PTE1_NX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w8, w22
	csel	w8, w9, wzr, eq
	orr	w8, w8, w0
Lloh15:
	adrp	x9, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _PTE1_U@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PTE1_U@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	x9, x20
	csel	w9, w10, wzr, gt
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _kernel_pmap@GOTPAGE
Lloh22:
	ldr	x9, [x9, _kernel_pmap@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _PTE1_NG@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PTE1_NG@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	cmp	x9, x21
	csel	w9, wzr, w10, eq
	orr	w2, w8, w9
Lloh27:
	adrp	x8, _PMAP_ENTER_NOSLEEP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PMAP_ENTER_NOSLEEP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _PMAP_ENTER_NOREPLACE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PMAP_ENTER_NOREPLACE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _PMAP_ENTER_NORECLAIM@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PMAP_ENTER_NORECLAIM@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_pmap_enter_pte1
Lloh36:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	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	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_PTE1_NM,4,2                    ; @PTE1_NM
	.comm	_PTE1_RO,4,2                    ; @PTE1_RO
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_PTE1_NX,4,2                    ; @PTE1_NX
	.comm	_VM_MAXUSER_ADDRESS,8,3         ; @VM_MAXUSER_ADDRESS
	.comm	_PTE1_U,4,2                     ; @PTE1_U
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_PTE1_NG,4,2                    ; @PTE1_NG
	.comm	_PMAP_ENTER_NOSLEEP,4,2         ; @PMAP_ENTER_NOSLEEP
	.comm	_PMAP_ENTER_NOREPLACE,4,2       ; @PMAP_ENTER_NOREPLACE
	.comm	_PMAP_ENTER_NORECLAIM,4,2       ; @PMAP_ENTER_NORECLAIM
	.comm	_KERN_SUCCESS,8,3               ; @KERN_SUCCESS
	.no_dead_strip	_pmap_enter_1mpage
.subsections_via_symbols
