	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_preboot_map_attr          ## -- Begin function pmap_preboot_map_attr
	.p2align	4, 0x90
_pmap_preboot_map_attr:                 ## @pmap_preboot_map_attr
	.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
	movl	%edx, %r13d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	jne	LBB0_1
## %bb.2:
	movq	_PTE2_AP_KR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PTE2_AP_KRW@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_4
## %bb.5:
	movq	_PTE2_NX@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_PTE2_X@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %r15
	orq	(%rax), %r15
	movl	%r8d, %edi
	callq	_vm_memattr_to_pte2
	movq	%rax, %r12
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_ATTR_TO_L1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ATTR_TO_L1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_round_page
	testq	%rax, %rax
	jle	LBB0_13
## %bb.7:
	movq	%rax, %r13
	movq	_PTE1_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %edi
	callq	_pmap_preboot_vtopte2
	movq	%rax, %r12
	movl	%ebx, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_PTE2_KERN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pte2_store
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rax), %rax
	addl	%eax, %ebx
	addl	%eax, %r14d
	subq	%rax, %r13
	jle	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	orl	%r14d, %eax
	movq	_PTE1_OFFSET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	(%r15), %r13
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %edi
	callq	_kern_pte1
	movq	%rax, %r12
	movl	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_PTE1_KERN
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pte1_store
	movq	%r15, %rax
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_PTE2_AP_KRW,8,3                ## @PTE2_AP_KRW
	.comm	_PTE2_AP_KR,8,3                 ## @PTE2_AP_KR
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.comm	_PTE2_X,8,3                     ## @PTE2_X
	.comm	_PTE2_NX,8,3                    ## @PTE2_NX
	.comm	_PTE1_OFFSET,4,2                ## @PTE1_OFFSET
	.comm	_PTE1_SIZE,8,3                  ## @PTE1_SIZE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_preboot_map_attr          ; -- Begin function pmap_preboot_map_attr
	.p2align	2
_pmap_preboot_map_attr:                 ; @pmap_preboot_map_attr
	.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	x25, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PTE2_AP_KRW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PTE2_AP_KRW@GOTPAGEOFF]
Lloh5:
	adrp	x10, _PTE2_AP_KR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PTE2_AP_KR@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _VM_PROT_EXECUTE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _PTE2_X@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PTE2_X@GOTPAGEOFF]
Lloh12:
	adrp	x11, _PTE2_NX@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PTE2_NX@GOTPAGEOFF]
	tst	w9, w3
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
	orr	x21, x9, x8
	mov	x0, x4
	bl	_vm_memattr_to_pte2
	mov	x22, x0
	mov	x0, x21
	bl	_ATTR_TO_L1
	mov	x23, x0
	mov	x0, x22
	bl	_ATTR_TO_L1
	mov	x24, x0
	mov	x0, x25
	bl	_round_page
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x25, x0
Lloh14:
	adrp	x27, _PTE1_OFFSET@GOTPAGE
Lloh15:
	ldr	x27, [x27, _PTE1_OFFSET@GOTPAGEOFF]
Lloh16:
	adrp	x28, _PTE1_SIZE@GOTPAGE
Lloh17:
	ldr	x28, [x28, _PTE1_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_pmap_preboot_vtopte2
	mov	x26, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_PTE2_KERN
	mov	x1, x0
	mov	x0, x26
	bl	_pte2_store
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	add	w20, w20, w8
	add	w19, w19, w8
	sub	x25, x25, x8
	cmp	x25, #0
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	orr	w8, w20, w19
	ldr	w9, [x27]
	and	w8, w9, w8
	ldr	x9, [x28]
	cmp	w8, #0
	mov	x0, x19
	ccmp	x25, x9, #8, eq
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_kern_pte1
	mov	x26, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_PTE1_KERN
	mov	x1, x0
	mov	x0, x26
	bl	_pte1_store
	mov	x8, x28
	b	LBB0_3
LBB0_6:
	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	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_PTE2_AP_KRW,8,3                ; @PTE2_AP_KRW
	.comm	_PTE2_AP_KR,8,3                 ; @PTE2_AP_KR
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.comm	_PTE2_X,8,3                     ; @PTE2_X
	.comm	_PTE2_NX,8,3                    ; @PTE2_NX
	.comm	_PTE1_OFFSET,4,2                ; @PTE1_OFFSET
	.comm	_PTE1_SIZE,8,3                  ; @PTE1_SIZE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
