	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WinLdrSetProcessorContext      ## -- Begin function WinLdrSetProcessorContext
	.p2align	4, 0x90
_WinLdrSetProcessorContext:             ## @WinLdrSetProcessorContext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	xorl	%eax, %eax
	callq	__disable
	xorl	%edi, %edi
	callq	___writeeflags
	movq	_PxeBase@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	___writecr3
	movq	_GdtIdt@GOTPCREL(%rip), %rbx
	movq	_KSEG0_BASE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	_TssBasePage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MM_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edi, %esi
	addq	(%rbx), %rdi
	movq	%rdi, (%rbx)
	callq	_Amd64SetupGdt
	movq	_NUM_GDT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_Amd64SetupIdt
	movq	_KGDT64_SYS_TSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___ltr
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WinLdrSetProcessorContext\n"

	.comm	_PxeBase,8,3                    ## @PxeBase
	.comm	_GdtIdt,8,3                     ## @GdtIdt
	.comm	_KSEG0_BASE,4,2                 ## @KSEG0_BASE
	.comm	_TssBasePage,4,2                ## @TssBasePage
	.comm	_MM_PAGE_SHIFT,4,2              ## @MM_PAGE_SHIFT
	.comm	_NUM_GDT,4,2                    ## @NUM_GDT
	.comm	_KGDT64_SYS_TSS,4,2             ## @KGDT64_SYS_TSS
L_.str.1:                               ## @.str.1
	.asciz	"leave WinLdrSetProcessorContext\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WinLdrSetProcessorContext      ; -- Begin function WinLdrSetProcessorContext
	.p2align	2
_WinLdrSetProcessorContext:             ; @WinLdrSetProcessorContext
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	bl	__disable
	mov	w0, #0
	bl	___writeeflags
Lloh2:
	adrp	x8, _PxeBase@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PxeBase@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	___writecr3
Lloh5:
	adrp	x19, _GdtIdt@GOTPAGE
Lloh6:
	ldr	x19, [x19, _GdtIdt@GOTPAGEOFF]
Lloh7:
	adrp	x8, _KSEG0_BASE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KSEG0_BASE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh9:
	ldrsw	x8, [x8]
	add	x0, x9, x8
	str	x0, [x19]
Lloh10:
	adrp	x9, _TssBasePage@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TssBasePage@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _MM_PAGE_SHIFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MM_PAGE_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w9, w8
	bl	_Amd64SetupGdt
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _NUM_GDT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NUM_GDT@GOTPAGEOFF]
Lloh18:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_Amd64SetupIdt
Lloh19:
	adrp	x8, _KGDT64_SYS_TSS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KGDT64_SYS_TSS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	___ltr
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TRACE
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WinLdrSetProcessorContext\n"

	.comm	_PxeBase,8,3                    ; @PxeBase
	.comm	_GdtIdt,8,3                     ; @GdtIdt
	.comm	_KSEG0_BASE,4,2                 ; @KSEG0_BASE
	.comm	_TssBasePage,4,2                ; @TssBasePage
	.comm	_MM_PAGE_SHIFT,4,2              ; @MM_PAGE_SHIFT
	.comm	_NUM_GDT,4,2                    ; @NUM_GDT
	.comm	_KGDT64_SYS_TSS,4,2             ; @KGDT64_SYS_TSS
l_.str.1:                               ; @.str.1
	.asciz	"leave WinLdrSetProcessorContext\n"

.subsections_via_symbols
