	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_speed
_change_speed:                          ## @change_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_powernow_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%edi, %ebx
	movl	(%rax,%rbx,8), %eax
	movl	%eax, %r12d
	movzbl	%ah, %eax
	movl	%eax, %r15d
	movq	$0, -40(%rbp)
	movq	_MSR_K7_FID_VID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsrl
	movq	_fsb@GOTPCREL(%rip), %rax
	movq	_fid_codes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, -48(%rbp)
	movq	(%r14), %rax
	movl	4(%rax,%rbx,8), %eax
	movl	%eax, -44(%rbp)
	movq	_CPUFREQ_PRECHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_cpufreq_notify_transition
	movq	_have_a0@GOTPCREL(%rip), %r14
	cmpl	$1, (%r14)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_local_irq_disable
LBB0_2:
	movzbl	%r12b, %ebx
	movl	-48(%rbp), %eax
	cmpl	-44(%rbp), %eax
	jle	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_change_FID
	movl	%r15d, %edi
	callq	_change_VID
	cmpl	$1, (%r14)
	je	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movl	%r15d, %edi
	callq	_change_VID
	movl	%ebx, %edi
	callq	_change_FID
	cmpl	$1, (%r14)
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_local_irq_enable
LBB0_7:
	movq	_CPUFREQ_POSTCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_cpufreq_notify_transition
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_powernow_table,8,3             ## @powernow_table
	.comm	_MSR_K7_FID_VID_STATUS,4,2      ## @MSR_K7_FID_VID_STATUS
	.comm	_fsb,4,2                        ## @fsb
	.comm	_fid_codes,8,3                  ## @fid_codes
	.comm	_CPUFREQ_PRECHANGE,4,2          ## @CPUFREQ_PRECHANGE
	.comm	_have_a0,4,2                    ## @have_a0
	.comm	_CPUFREQ_POSTCHANGE,4,2         ## @CPUFREQ_POSTCHANGE
	.no_dead_strip	_change_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_speed
_change_speed:                          ; @change_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, _powernow_table@GOTPAGE
Lloh1:
	ldr	x21, [x21, _powernow_table@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, w0
	lsl	x22, x9, #3
	ldr	w8, [x8, x22]
	and	w19, w8, #0xff
	ubfx	w20, w8, #8, #8
	str	xzr, [sp, #8]
Lloh2:
	adrp	x8, _MSR_K7_FID_VID_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSR_K7_FID_VID_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_rdmsrl
Lloh5:
	adrp	x8, _fsb@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fsb@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _fid_codes@GOTPAGE
Lloh9:
	ldr	x9, [x9, _fid_codes@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [sp]
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #4]
	str	w8, [sp, #4]
Lloh11:
	adrp	x8, _CPUFREQ_PRECHANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CPUFREQ_PRECHANGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_cpufreq_notify_transition
Lloh14:
	adrp	x21, _have_a0@GOTPAGE
Lloh15:
	ldr	x21, [x21, _have_a0@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_local_irq_disable
LBB0_2:
	ldp	w8, w9, [sp]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_change_FID
	mov	x0, x20
	bl	_change_VID
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_change_VID
	mov	x0, x19
	bl	_change_FID
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.6:
	bl	_local_irq_enable
LBB0_7:
Lloh16:
	adrp	x8, _CPUFREQ_POSTCHANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CPUFREQ_POSTCHANGE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_cpufreq_notify_transition
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_powernow_table,8,3             ; @powernow_table
	.comm	_MSR_K7_FID_VID_STATUS,4,2      ; @MSR_K7_FID_VID_STATUS
	.comm	_fsb,4,2                        ; @fsb
	.comm	_fid_codes,8,3                  ; @fid_codes
	.comm	_CPUFREQ_PRECHANGE,4,2          ; @CPUFREQ_PRECHANGE
	.comm	_have_a0,4,2                    ; @have_a0
	.comm	_CPUFREQ_POSTCHANGE,4,2         ; @CPUFREQ_POSTCHANGE
	.no_dead_strip	_change_speed
.subsections_via_symbols
