	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_mtrr_done                  ## -- Begin function set_mtrr_done
	.p2align	4, 0x90
_set_mtrr_done:                         ## @set_mtrr_done
	.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
	movq	%rdi, %rbx
	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_7
LBB0_2:
	xorl	%eax, %eax
	callq	_wbinvd
	xorl	%eax, %eax
	callq	_use_intel
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MSR_MTRRdefType@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_mtrr_wrmsr
	jmp	LBB0_5
LBB0_4:
	movq	_CX86_CCR3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_setCx86
LBB0_5:
	xorl	%eax, %eax
	callq	_read_cr0
	andl	$-1073741825, %eax              ## imm = 0xBFFFFFFF
	movl	%eax, %edi
	callq	_write_cr0
	movq	_cpu_has_pge@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %edi
	callq	_write_cr4
LBB0_7:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CYRIX,4,2                      ## @CYRIX
	.comm	_MSR_MTRRdefType,4,2            ## @MSR_MTRRdefType
	.comm	_CX86_CCR3,4,2                  ## @CX86_CCR3
	.comm	_cpu_has_pge,8,3                ## @cpu_has_pge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_mtrr_done                  ; -- Begin function set_mtrr_done
	.p2align	2
_set_mtrr_done:                         ; @set_mtrr_done
	.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
	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:
	bl	_wbinvd
	bl	_use_intel
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _MSR_MTRRdefType@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_MTRRdefType@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	w2, w1, [x19, #12]
	bl	_mtrr_wrmsr
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _CX86_CCR3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX86_CCR3@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_setCx86
LBB0_5:
	bl	_read_cr0
	and	w0, w0, #0xbfffffff
	bl	_write_cr0
Lloh9:
	adrp	x8, _cpu_has_pge@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cpu_has_pge@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_write_cr4
LBB0_7:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_local_irq_restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CYRIX,4,2                      ; @CYRIX
	.comm	_MSR_MTRRdefType,4,2            ; @MSR_MTRRdefType
	.comm	_CX86_CCR3,4,2                  ; @CX86_CCR3
	.comm	_cpu_has_pge,8,3                ; @cpu_has_pge
.subsections_via_symbols
