	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_amd
_init_amd:                              ## @init_amd
	.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	_cpu_id@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_CPUID_TO_FAMILY
	orl	$2, %eax
	cmpl	$18, %eax
	jne	LBB0_3
## %bb.1:
	movq	_cpu_feature2@GOTPCREL(%rip), %rax
	movq	_CPUID2_HV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	$-1073672151, %edi              ## imm = 0xC0011029
	callq	_rdmsr
	orl	$1, %eax
	movl	$-1073672151, %edi              ## imm = 0xC0011029
	movl	%eax, %esi
	callq	_wrmsr
LBB0_3:
	movl	(%rbx), %edi
	callq	_CPUID_TO_FAMILY
	cmpl	$16, %eax
	jne	LBB0_6
## %bb.4:
	movq	_cpu_feature2@GOTPCREL(%rip), %rax
	movq	_CPUID2_HV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_MSR_NB_CFG1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_rdmsr
	movl	(%r14), %edi
	callq	_wrmsr
LBB0_6:
	movl	(%rbx), %edi
	callq	_CPUID_TO_FAMILY
	cmpl	$16, %eax
	jne	LBB0_9
## %bb.7:
	movq	_cpu_feature2@GOTPCREL(%rip), %rax
	movq	_CPUID2_HV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_9
## %bb.8:
	movl	$-1073672150, %edi              ## imm = 0xC001102A
	callq	_rdmsr
	andl	$-16777217, %eax                ## imm = 0xFEFFFFFF
	movl	$-1073672150, %edi              ## imm = 0xC001102A
	movl	%eax, %esi
	callq	_wrmsr
LBB0_9:
	movl	(%rbx), %edi
	callq	_CPUID_TO_FAMILY
	cmpl	$22, %eax
	jne	LBB0_13
## %bb.10:
	movl	(%rbx), %edi
	callq	_CPUID_TO_MODEL
	cmpl	$15, %eax
	jg	LBB0_13
## %bb.11:
	movq	_cpu_feature2@GOTPCREL(%rip), %rax
	movq	_CPUID2_HV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	_MSR_LS_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_rdmsr
	orl	$32768, %eax                    ## imm = 0x8000
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_wrmsr
LBB0_13:
	movl	(%rbx), %edi
	callq	_CPUID_TO_FAMILY
	cmpl	$23, %eax
	jne	LBB0_17
## %bb.14:
	movl	(%rbx), %edi
	callq	_CPUID_TO_MODEL
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.15:
	movq	_cpu_feature2@GOTPCREL(%rip), %rax
	movq	_CPUID2_HV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_17
## %bb.16:
	movl	$-1073672151, %edi              ## imm = 0xC0011029
	callq	_rdmsr
	orl	$8192, %eax                     ## imm = 0x2000
	movl	$-1073672151, %edi              ## imm = 0xC0011029
	movl	%eax, %esi
	callq	_wrmsr
	movq	_MSR_LS_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_rdmsr
	orl	$16, %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_wrmsr
	movl	$-1073672152, %edi              ## imm = 0xC0011028
	callq	_rdmsr
	orl	$16, %eax
	movl	$-1073672152, %edi              ## imm = 0xC0011028
	movl	%eax, %esi
	callq	_wrmsr
	movl	(%r14), %edi
	callq	_rdmsr
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_wrmsr
LBB0_17:
	movq	_lower_sharedpage_init@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_20
## %bb.18:
	movl	$1, (%rax)
	movl	(%rbx), %edi
	callq	_CPUID_TO_FAMILY
	cmpl	$23, %eax
	jne	LBB0_20
## %bb.19:
	movq	_hw_lower_amd64_sharedpage@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_id,4,2                     ## @cpu_id
	.comm	_cpu_feature2,4,2               ## @cpu_feature2
	.comm	_CPUID2_HV,4,2                  ## @CPUID2_HV
	.comm	_MSR_NB_CFG1,4,2                ## @MSR_NB_CFG1
	.comm	_MSR_LS_CFG,4,2                 ## @MSR_LS_CFG
	.comm	_lower_sharedpage_init,4,2      ## @lower_sharedpage_init
	.comm	_hw_lower_amd64_sharedpage,4,2  ## @hw_lower_amd64_sharedpage
	.no_dead_strip	_init_amd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_amd
_init_amd:                              ; @init_amd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _cpu_id@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cpu_id@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_CPUID_TO_FAMILY
	orr	w8, w0, #0x2
	cmp	w8, #18
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _cpu_feature2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cpu_feature2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CPUID2_HV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CPUID2_HV@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #4137
	movk	w0, #49153, lsl #16
	bl	_rdmsr
	orr	w1, w0, #0x1
	mov	w0, #4137
	movk	w0, #49153, lsl #16
	bl	_wrmsr
LBB0_3:
	ldr	w0, [x20]
	bl	_CPUID_TO_FAMILY
	cmp	w0, #16
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _cpu_feature2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cpu_feature2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _CPUID2_HV@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CPUID2_HV@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
Lloh14:
	adrp	x19, _MSR_NB_CFG1@GOTPAGE
Lloh15:
	ldr	x19, [x19, _MSR_NB_CFG1@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rdmsr
	ldr	w0, [x19]
	bl	_wrmsr
LBB0_6:
	ldr	w0, [x20]
	bl	_CPUID_TO_FAMILY
	cmp	w0, #16
	b.ne	LBB0_9
; %bb.7:
Lloh16:
	adrp	x8, _cpu_feature2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cpu_feature2@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _CPUID2_HV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CPUID2_HV@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #4137
	movk	w8, #49153, lsl #16
	add	w19, w8, #1
	mov	x0, x19
	bl	_rdmsr
	and	w1, w0, #0xfeffffff
	mov	x0, x19
	bl	_wrmsr
LBB0_9:
	ldr	w0, [x20]
	bl	_CPUID_TO_FAMILY
	cmp	w0, #22
	b.ne	LBB0_13
; %bb.10:
	ldr	w0, [x20]
	bl	_CPUID_TO_MODEL
	cmp	w0, #15
	b.gt	LBB0_13
; %bb.11:
Lloh22:
	adrp	x8, _cpu_feature2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cpu_feature2@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _CPUID2_HV@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CPUID2_HV@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.12:
Lloh28:
	adrp	x19, _MSR_LS_CFG@GOTPAGE
Lloh29:
	ldr	x19, [x19, _MSR_LS_CFG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_rdmsr
	orr	w1, w0, #0x8000
	ldr	w0, [x19]
	bl	_wrmsr
LBB0_13:
	ldr	w0, [x20]
	bl	_CPUID_TO_FAMILY
	cmp	w0, #23
	b.ne	LBB0_17
; %bb.14:
	ldr	w0, [x20]
	bl	_CPUID_TO_MODEL
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.15:
Lloh30:
	adrp	x8, _cpu_feature2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cpu_feature2@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _CPUID2_HV@GOTPAGE
Lloh34:
	ldr	x9, [x9, _CPUID2_HV@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:
	mov	w19, #4137
	movk	w19, #49153, lsl #16
	mov	w0, #4137
	movk	w0, #49153, lsl #16
	bl	_rdmsr
	orr	w1, w0, #0x2000
	mov	w0, #4137
	movk	w0, #49153, lsl #16
	bl	_wrmsr
Lloh36:
	adrp	x21, _MSR_LS_CFG@GOTPAGE
Lloh37:
	ldr	x21, [x21, _MSR_LS_CFG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_rdmsr
	orr	w1, w0, #0x10
	ldr	w0, [x21]
	bl	_wrmsr
	sub	w19, w19, #1
	mov	x0, x19
	bl	_rdmsr
	orr	w1, w0, #0x10
	mov	x0, x19
	bl	_wrmsr
	ldr	w0, [x21]
	bl	_rdmsr
	mov	x1, x0
	ldr	w0, [x21]
	bl	_wrmsr
LBB0_17:
Lloh38:
	adrp	x8, _lower_sharedpage_init@GOTPAGE
Lloh39:
	ldr	x8, [x8, _lower_sharedpage_init@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_20
; %bb.18:
	mov	w19, #1
	str	w19, [x8]
	ldr	w0, [x20]
	bl	_CPUID_TO_FAMILY
	cmp	w0, #23
	b.ne	LBB0_20
; %bb.19:
Lloh40:
	adrp	x8, _hw_lower_amd64_sharedpage@GOTPAGE
Lloh41:
	ldr	x8, [x8, _hw_lower_amd64_sharedpage@GOTPAGEOFF]
Lloh42:
	str	w19, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_id,4,2                     ; @cpu_id
	.comm	_cpu_feature2,4,2               ; @cpu_feature2
	.comm	_CPUID2_HV,4,2                  ; @CPUID2_HV
	.comm	_MSR_NB_CFG1,4,2                ; @MSR_NB_CFG1
	.comm	_MSR_LS_CFG,4,2                 ; @MSR_LS_CFG
	.comm	_lower_sharedpage_init,4,2      ; @lower_sharedpage_init
	.comm	_hw_lower_amd64_sharedpage,4,2  ; @hw_lower_amd64_sharedpage
	.no_dead_strip	_init_amd
.subsections_via_symbols
