	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fidvid_msr_init
_fidvid_msr_init:                       ## @fidvid_msr_init
	.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	_MSR_FIDVID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	_MSR_C_HI_STP_GNT_BENIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_smp_processor_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_dprintk
	movq	_MSR_FIDVID_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wrmsr                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSR_FIDVID_STATUS,4,2          ## @MSR_FIDVID_STATUS
	.comm	_MSR_S_HI_CURRENT_VID,4,2       ## @MSR_S_HI_CURRENT_VID
	.comm	_MSR_S_LO_CURRENT_FID,4,2       ## @MSR_S_LO_CURRENT_FID
	.comm	_MSR_C_LO_VID_SHIFT,4,2         ## @MSR_C_LO_VID_SHIFT
	.comm	_MSR_C_HI_STP_GNT_BENIGN,4,2    ## @MSR_C_HI_STP_GNT_BENIGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu%d, init lo 0x%x, hi 0x%x\n"

	.comm	_MSR_FIDVID_CTL,4,2             ## @MSR_FIDVID_CTL
	.no_dead_strip	_fidvid_msr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fidvid_msr_init
_fidvid_msr_init:                       ; @fidvid_msr_init
	.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	x8, _MSR_FIDVID_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSR_FIDVID_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rdmsr
Lloh3:
	adrp	x8, _MSR_C_HI_STP_GNT_BENIGN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSR_C_HI_STP_GNT_BENIGN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_smp_processor_id
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	mov	x3, x19
	bl	_dprintk
Lloh8:
	adrp	x8, _MSR_FIDVID_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSR_FIDVID_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsr
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSR_FIDVID_STATUS,4,2          ; @MSR_FIDVID_STATUS
	.comm	_MSR_S_HI_CURRENT_VID,4,2       ; @MSR_S_HI_CURRENT_VID
	.comm	_MSR_S_LO_CURRENT_FID,4,2       ; @MSR_S_LO_CURRENT_FID
	.comm	_MSR_C_LO_VID_SHIFT,4,2         ; @MSR_C_LO_VID_SHIFT
	.comm	_MSR_C_HI_STP_GNT_BENIGN,4,2    ; @MSR_C_HI_STP_GNT_BENIGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu%d, init lo 0x%x, hi 0x%x\n"

	.comm	_MSR_FIDVID_CTL,4,2             ; @MSR_FIDVID_CTL
	.no_dead_strip	_fidvid_msr_init
.subsections_via_symbols
