	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_init_pat                  ## -- Begin function pmap_init_pat
	.p2align	4, 0x90
_pmap_init_pat:                         ## @pmap_init_pat
	.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
	movq	_cpu_feature@GOTPCREL(%rip), %rax
	movq	_CPUID_PAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	_PAT_INDEX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movq	_pat_index@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jle	LBB0_5
## %bb.3:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_4
LBB0_5:
	movq	_PAT_WRITE_BACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	$0, (%rax,%rsi,4)
	movq	_PAT_WRITE_THROUGH@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_PAT_UNCACHEABLE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	$3, (%rax,%rcx,4)
	movq	_PAT_WRITE_COMBINING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$6, (%rax,%rcx,4)
	movq	_PAT_WRITE_PROTECTED@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	$5, (%rax,%rcx,4)
	movq	_PAT_UNCACHED@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	$2, (%rax,%rcx,4)
	xorl	%edi, %edi
	callq	_PAT_VALUE
	movl	%eax, %ebx
	movq	(%r14), %rsi
	movl	$1, %edi
	callq	_PAT_VALUE
	orl	%eax, %ebx
	movq	(%r13), %rsi
	movl	$2, %edi
	callq	_PAT_VALUE
	movl	%eax, %r14d
	movq	(%r15), %rsi
	movl	$3, %edi
	callq	_PAT_VALUE
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movq	_PAT_WRITE_BACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$4, %edi
	callq	_PAT_VALUE
	movl	%eax, %ebx
	movq	(%r12), %rsi
	movl	$5, %edi
	callq	_PAT_VALUE
	orl	%eax, %ebx
	movq	_PAT_WRITE_COMBINING@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$6, %edi
	callq	_PAT_VALUE
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	(%r15), %rsi
	movl	$7, %edi
	callq	_PAT_VALUE
	orl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rcr4
	movl	%eax, %r14d
	movq	_CR4_PGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r14d, %edi
	callq	_load_cr4
	xorl	%eax, %eax
	callq	_rcr0
	movl	%eax, %r15d
	movq	_CR0_NW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	%r15d, %edi
	movq	_CR0_CD@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_load_cr0
	xorl	%eax, %eax
	callq	_wbinvd
	xorl	%eax, %eax
	callq	_invltlb
	movq	_MSR_PAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_wrmsr
	xorl	%eax, %eax
	callq	_wbinvd
	xorl	%eax, %eax
	callq	_invltlb
	movl	%r15d, %edi
	callq	_load_cr0
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_load_cr4                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_feature,4,2                ## @cpu_feature
	.comm	_CPUID_PAT,4,2                  ## @CPUID_PAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no PAT??"

	.comm	_PAT_INDEX_SIZE,4,2             ## @PAT_INDEX_SIZE
	.comm	_pat_index,8,3                  ## @pat_index
	.comm	_PAT_WRITE_BACK,8,3             ## @PAT_WRITE_BACK
	.comm	_PAT_WRITE_THROUGH,8,3          ## @PAT_WRITE_THROUGH
	.comm	_PAT_UNCACHEABLE,8,3            ## @PAT_UNCACHEABLE
	.comm	_PAT_WRITE_COMBINING,8,3        ## @PAT_WRITE_COMBINING
	.comm	_PAT_WRITE_PROTECTED,8,3        ## @PAT_WRITE_PROTECTED
	.comm	_PAT_UNCACHED,8,3               ## @PAT_UNCACHED
	.comm	_CR4_PGE,4,2                    ## @CR4_PGE
	.comm	_CR0_NW,4,2                     ## @CR0_NW
	.comm	_CR0_CD,4,2                     ## @CR0_CD
	.comm	_MSR_PAT,4,2                    ## @MSR_PAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_init_pat                  ; -- Begin function pmap_init_pat
	.p2align	2
_pmap_init_pat:                         ; @pmap_init_pat
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _cpu_feature@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_feature@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CPUID_PAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPUID_PAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
Lloh8:
	adrp	x9, _PAT_INDEX_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PAT_INDEX_SIZE@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh10:
	adrp	x8, _pat_index@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pat_index@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x10, #0
	mov	w11, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x8, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x12, [x9]
	cmp	x10, x12
	b.lt	LBB0_4
LBB0_5:
Lloh13:
	adrp	x22, _PAT_WRITE_BACK@GOTPAGE
Lloh14:
	ldr	x22, [x22, _PAT_WRITE_BACK@GOTPAGEOFF]
	ldr	x1, [x22]
	str	wzr, [x8, x1, lsl #2]
Lloh15:
	adrp	x23, _PAT_WRITE_THROUGH@GOTPAGE
Lloh16:
	ldr	x23, [x23, _PAT_WRITE_THROUGH@GOTPAGEOFF]
	ldr	x9, [x23]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh17:
	adrp	x20, _PAT_UNCACHEABLE@GOTPAGE
Lloh18:
	ldr	x20, [x20, _PAT_UNCACHEABLE@GOTPAGEOFF]
	ldr	x9, [x20]
	mov	w10, #3
	str	w10, [x8, x9, lsl #2]
Lloh19:
	adrp	x21, _PAT_WRITE_COMBINING@GOTPAGE
Lloh20:
	ldr	x21, [x21, _PAT_WRITE_COMBINING@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, #6
	str	w10, [x8, x9, lsl #2]
Lloh21:
	adrp	x24, _PAT_WRITE_PROTECTED@GOTPAGE
Lloh22:
	ldr	x24, [x24, _PAT_WRITE_PROTECTED@GOTPAGEOFF]
	ldr	x9, [x24]
	mov	w10, #5
	str	w10, [x8, x9, lsl #2]
Lloh23:
	adrp	x25, _PAT_UNCACHED@GOTPAGE
Lloh24:
	ldr	x25, [x25, _PAT_UNCACHED@GOTPAGEOFF]
	ldr	x9, [x25]
	mov	w10, #2
	str	w10, [x8, x9, lsl #2]
	mov	w0, #0
	bl	_PAT_VALUE
	mov	x19, x0
	ldr	x1, [x23]
	mov	w0, #1
	bl	_PAT_VALUE
	orr	w19, w0, w19
	ldr	x1, [x25]
	mov	w0, #2
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	x1, [x20]
	mov	w0, #3
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	x1, [x22]
	mov	w0, #4
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	x1, [x24]
	mov	w0, #5
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	x1, [x21]
	mov	w0, #6
	bl	_PAT_VALUE
	orr	w19, w19, w0
	ldr	x1, [x20]
	mov	w0, #7
	bl	_PAT_VALUE
	orr	w19, w19, w0
	bl	_rcr4
	mov	x20, x0
Lloh25:
	adrp	x8, _CR4_PGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CR4_PGE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	bic	w0, w0, w8
	bl	_load_cr4
	bl	_rcr0
	mov	x21, x0
Lloh28:
	adrp	x8, _CR0_NW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CR0_NW@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh31:
	adrp	x9, _CR0_CD@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CR0_CD@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_load_cr0
	bl	_wbinvd
	bl	_invltlb
Lloh34:
	adrp	x8, _MSR_PAT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSR_PAT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_wrmsr
	bl	_wbinvd
	bl	_invltlb
	mov	x0, x21
	bl	_load_cr0
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_load_cr4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_feature,4,2                ; @cpu_feature
	.comm	_CPUID_PAT,4,2                  ; @CPUID_PAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no PAT??"

	.comm	_PAT_INDEX_SIZE,4,2             ; @PAT_INDEX_SIZE
	.comm	_pat_index,8,3                  ; @pat_index
	.comm	_PAT_WRITE_BACK,8,3             ; @PAT_WRITE_BACK
	.comm	_PAT_WRITE_THROUGH,8,3          ; @PAT_WRITE_THROUGH
	.comm	_PAT_UNCACHEABLE,8,3            ; @PAT_UNCACHEABLE
	.comm	_PAT_WRITE_COMBINING,8,3        ; @PAT_WRITE_COMBINING
	.comm	_PAT_WRITE_PROTECTED,8,3        ; @PAT_WRITE_PROTECTED
	.comm	_PAT_UNCACHED,8,3               ; @PAT_UNCACHED
	.comm	_CR4_PGE,4,2                    ; @CR4_PGE
	.comm	_CR0_NW,4,2                     ; @CR0_NW
	.comm	_CR0_CD,4,2                     ; @CR0_CD
	.comm	_MSR_PAT,4,2                    ; @MSR_PAT
.subsections_via_symbols
