	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_mtrr_prepare_save          ## -- Begin function set_mtrr_prepare_save
	.p2align	4, 0x90
_set_mtrr_prepare_save:                 ## @set_mtrr_prepare_save
	.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	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_local_irq_save
	xorl	%eax, %eax
	callq	_use_intel
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_CYRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_is_cpu
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	_cpu_has_pge@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_read_cr4
	movl	%eax, (%r14)
	movq	_X86_CR4_PGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	callq	_write_cr4
LBB0_4:
	xorl	%eax, %eax
	callq	_read_cr0
	movl	%eax, %ebx
	movq	_X86_CR0_CD@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_wbinvd
	movl	%ebx, %edi
	callq	_write_cr0
	xorl	%eax, %eax
	callq	_wbinvd
	xorl	%eax, %eax
	callq	_use_intel
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	_MSR_MTRRdefType@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rdmsr                          ## TAILCALL
LBB0_5:
	movq	_CX86_CCR3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_getCx86
	movl	%eax, 4(%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYRIX,4,2                      ## @CYRIX
	.comm	_cpu_has_pge,8,3                ## @cpu_has_pge
	.comm	_X86_CR4_PGE,4,2                ## @X86_CR4_PGE
	.comm	_X86_CR0_CD,4,2                 ## @X86_CR0_CD
	.comm	_MSR_MTRRdefType,4,2            ## @MSR_MTRRdefType
	.comm	_CX86_CCR3,4,2                  ## @CX86_CCR3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_mtrr_prepare_save          ; -- Begin function set_mtrr_prepare_save
	.p2align	2
_set_mtrr_prepare_save:                 ; @set_mtrr_prepare_save
	.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
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_local_irq_save
	bl	_use_intel
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CYRIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CYRIX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_is_cpu
	cbz	x0, LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _cpu_has_pge@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_has_pge@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_read_cr4
	str	w0, [x19]
Lloh6:
	adrp	x8, _X86_CR4_PGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _X86_CR4_PGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w0, w0, w8
	bl	_write_cr4
LBB0_4:
	bl	_read_cr0
Lloh9:
	adrp	x8, _X86_CR0_CD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86_CR0_CD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w20, w8, w0
	bl	_wbinvd
	mov	x0, x20
	bl	_write_cr0
	bl	_wbinvd
	bl	_use_intel
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _MSR_MTRRdefType@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSR_MTRRdefType@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	w2, w1, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rdmsr
LBB0_6:
Lloh15:
	adrp	x8, _CX86_CCR3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CX86_CCR3@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_getCx86
	str	w0, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CYRIX,4,2                      ; @CYRIX
	.comm	_cpu_has_pge,8,3                ; @cpu_has_pge
	.comm	_X86_CR4_PGE,4,2                ; @X86_CR4_PGE
	.comm	_X86_CR0_CD,4,2                 ; @X86_CR0_CD
	.comm	_MSR_MTRRdefType,4,2            ; @MSR_MTRRdefType
	.comm	_CX86_CCR3,4,2                  ; @CX86_CCR3
.subsections_via_symbols
