	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function centaur_set_mcr
_centaur_set_mcr:                       ## @centaur_set_mcr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r8
	movq	%rsi, %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	%cl, %rax
	movq	_centaur_mcr_type@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.4:
	negq	%rdx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	movq	_MTRR_TYPE_UNCACHABLE@GOTPCREL(%rip), %rcx
	cmpq	%r8, (%rcx)
	jne	LBB0_6
## %bb.5:
	orq	$2, %rdx
	jmp	LBB0_7
LBB0_1:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	negq	%rdx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	orq	$31, %rdx
	jmp	LBB0_7
LBB0_6:
	orq	$9, %rdx
LBB0_7:
	movq	_centaur_mcr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edi
	movq	%rdi, %rsi
	shlq	$4, %rsi
	movq	%rax, (%rcx,%rsi)
	movq	%rdx, 8(%rcx,%rsi)
	movq	_MSR_IDT_MCR0@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_centaur_mcr_type,8,3           ## @centaur_mcr_type
	.comm	_MTRR_TYPE_UNCACHABLE,8,3       ## @MTRR_TYPE_UNCACHABLE
	.comm	_centaur_mcr,8,3                ## @centaur_mcr
	.comm	_MSR_IDT_MCR0,8,3               ## @MSR_IDT_MCR0
	.no_dead_strip	_centaur_set_mcr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function centaur_set_mcr
_centaur_set_mcr:                       ; @centaur_set_mcr
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_3
; %bb.1:
	mov	x8, x2
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x2, x1, x9
Lloh3:
	adrp	x10, _centaur_mcr_type@GOTPAGE
Lloh4:
	ldr	x10, [x10, _centaur_mcr_type@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cbz	x10, LBB0_4
; %bb.2:
Lloh6:
	adrp	x10, _MTRR_TYPE_UNCACHABLE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MTRR_TYPE_UNCACHABLE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	neg	x8, x8
	lsl	x8, x8, x9
	mov	w9, #9
	orr	x9, x8, x9
	orr	x8, x8, #0x2
	cmp	x10, x3
	csel	x1, x9, x8, ne
	b	LBB0_5
LBB0_3:
	mov	x1, #0
	b	LBB0_5
LBB0_4:
	neg	x8, x8
	lsl	x8, x8, x9
	orr	x1, x8, #0x1f
LBB0_5:
Lloh9:
	adrp	x8, _centaur_mcr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _centaur_mcr@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, w0
	add	x8, x8, w0, uxtw #4
Lloh12:
	adrp	x10, _MSR_IDT_MCR0@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MSR_IDT_MCR0@GOTPAGEOFF]
	stp	x2, x1, [x8]
Lloh14:
	ldr	x8, [x10]
	add	x0, x8, x9
	b	_wrmsr
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_centaur_mcr_type,8,3           ; @centaur_mcr_type
	.comm	_MTRR_TYPE_UNCACHABLE,8,3       ; @MTRR_TYPE_UNCACHABLE
	.comm	_centaur_mcr,8,3                ; @centaur_mcr
	.comm	_MSR_IDT_MCR0,8,3               ; @MSR_IDT_MCR0
	.no_dead_strip	_centaur_set_mcr
.subsections_via_symbols
