	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WinLdrMapSpecialPages
_WinLdrMapSpecialPages:                 ## @WinLdrMapSpecialPages
	.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
	movq	_HalPageTable@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_PcrBasePage@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	incq	%rdi
	movq	_KI_USER_SHARED_DATA@GOTPCREL(%rip), %rdx
	movl	$4194304, %eax                  ## imm = 0x400000
	movl	(%rdx), %ebx
	addl	%eax, %ebx
	movq	_MM_PAGE_SHIFT@GOTPCREL(%rip), %rsi
	movb	(%rsi), %cl
	shrq	%cl, %rbx
	movq	(%r14), %rcx
	shlq	$4, %rbx
	movq	%rdi, 8(%rcx,%rbx)
	movq	(%r14), %rdi
	movl	$1, (%rdi,%rbx)
	movl	(%rdx), %edx
	addl	%eax, %edx
	movb	(%rsi), %cl
	shrq	%cl, %rdx
	shlq	$4, %rdx
	movl	$1, 4(%rdi,%rdx)
	movq	_KIP0PCRADDRESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	addl	%eax, %ebx
	movb	(%rsi), %cl
	shrq	%cl, %rbx
	movq	(%r8), %rcx
	shlq	$4, %rbx
	movq	%rcx, 8(%rdi,%rbx)
	movq	(%r14), %rdi
	movl	$1, (%rdi,%rbx)
	addl	(%rdx), %eax
	movb	(%rsi), %cl
	shrq	%cl, %rax
	shlq	$4, %rax
	movl	$1, 4(%rdi,%rax)
	xorl	%eax, %eax
	callq	_WinLdrpMapApic
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HalPageTable: 0x%X\n"

	.comm	_HalPageTable,8,3               ## @HalPageTable
	.comm	_PcrBasePage,8,3                ## @PcrBasePage
	.comm	_KI_USER_SHARED_DATA,4,2        ## @KI_USER_SHARED_DATA
	.comm	_MM_PAGE_SHIFT,4,2              ## @MM_PAGE_SHIFT
	.comm	_KIP0PCRADDRESS,4,2             ## @KIP0PCRADDRESS
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_WinLdrMapSpecialPages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WinLdrMapSpecialPages
_WinLdrMapSpecialPages:                 ; @WinLdrMapSpecialPages
	.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
Lloh0:
	adrp	x19, _HalPageTable@GOTPAGE
Lloh1:
	ldr	x19, [x19, _HalPageTable@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh4:
	adrp	x8, _PcrBasePage@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PcrBasePage@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	ldr	x10, [x19]
Lloh6:
	adrp	x11, _KI_USER_SHARED_DATA@GOTPAGE
Lloh7:
	ldr	x11, [x11, _KI_USER_SHARED_DATA@GOTPAGEOFF]
	ldr	w12, [x11]
	add	w12, w12, #1024, lsl #12        ; =4194304
Lloh8:
	adrp	x13, _MM_PAGE_SHIFT@GOTPAGE
Lloh9:
	ldr	x13, [x13, _MM_PAGE_SHIFT@GOTPAGEOFF]
	ldr	w14, [x13]
	lsr	x12, x12, x14
	lsl	x12, x12, #4
	add	x10, x10, x12
	str	x9, [x10, #8]
	ldr	x9, [x19]
	mov	w10, #1
	str	w10, [x9, x12]
	ldr	w11, [x11]
	add	w11, w11, #1024, lsl #12        ; =4194304
	ldr	w12, [x13]
	lsr	x11, x11, x12
	add	x11, x9, x11, lsl #4
	str	w10, [x11, #4]
	ldr	x8, [x8]
Lloh10:
	adrp	x11, _KIP0PCRADDRESS@GOTPAGE
Lloh11:
	ldr	x11, [x11, _KIP0PCRADDRESS@GOTPAGEOFF]
	ldr	w12, [x11]
	add	w12, w12, #1024, lsl #12        ; =4194304
	ldr	w14, [x13]
	lsr	x12, x12, x14
	lsl	x12, x12, #4
	add	x9, x9, x12
	str	x8, [x9, #8]
	ldr	x8, [x19]
	str	w10, [x8, x12]
	ldr	w9, [x11]
	add	w9, w9, #1024, lsl #12          ; =4194304
	ldr	w11, [x13]
	lsr	x9, x9, x11
	add	x8, x8, x9, lsl #4
	str	w10, [x8, #4]
	bl	_WinLdrpMapApic
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HalPageTable: 0x%X\n"

	.comm	_HalPageTable,8,3               ; @HalPageTable
	.comm	_PcrBasePage,8,3                ; @PcrBasePage
	.comm	_KI_USER_SHARED_DATA,4,2        ; @KI_USER_SHARED_DATA
	.comm	_MM_PAGE_SHIFT,4,2              ; @MM_PAGE_SHIFT
	.comm	_KIP0PCRADDRESS,4,2             ; @KIP0PCRADDRESS
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_WinLdrMapSpecialPages
.subsections_via_symbols
