	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speedstep_cpu_init
_speedstep_cpu_init:                    ## @speedstep_cpu_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpumask_any_and
	movl	%eax, %ebx
	movq	%r15, -32(%rbp)
	movq	_get_freqs_on_cpu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_smp_call_function_single
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %edi
	callq	_speedstep_get
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movq	_speedstep_freqs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_SPEEDSTEP_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rax,%rcx,4), %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	%r14d, %eax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dprintk
	movl	%r14d, (%r15)
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_cpufreq_frequency_table_cpuinfo
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movl	4(%r15), %esi
	callq	_cpufreq_frequency_table_get_attr
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_get_freqs_on_cpu,4,2           ## @get_freqs_on_cpu
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"currently at %s speed setting - %i MHz\n"

	.comm	_speedstep_freqs,8,3            ## @speedstep_freqs
	.comm	_SPEEDSTEP_LOW,8,3              ## @SPEEDSTEP_LOW
L_.str.1:                               ## @.str.1
	.asciz	"low"

L_.str.2:                               ## @.str.2
	.asciz	"high"

	.no_dead_strip	_speedstep_cpu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speedstep_cpu_init
_speedstep_cpu_init:                    ; @speedstep_cpu_init
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cpumask_any_and
	mov	x20, x0
	str	x19, [sp, #8]
Lloh3:
	adrp	x8, _get_freqs_on_cpu@GOTPAGE
Lloh4:
	ldr	x8, [x8, _get_freqs_on_cpu@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #1
	bl	_smp_call_function_single
	ldr	w0, [sp]
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x0, x20
	bl	_speedstep_get
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x21, _speedstep_freqs@GOTPAGE
Lloh7:
	ldr	x21, [x21, _speedstep_freqs@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _SPEEDSTEP_LOW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPEEDSTEP_LOW@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	adrp	x10, l_.str.1@PAGE
Lloh14:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w0, w8
	csel	x1, x10, x9, eq
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w0, w8
	lsr	x2, x8, #38
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dprintk
	str	w20, [x19]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_cpufreq_frequency_table_cpuinfo
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	x0, [x21]
	ldr	w1, [x19, #4]
	bl	_cpufreq_frequency_table_get_attr
	mov	w0, #0
	b	LBB0_1
LBB0_5:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_get_freqs_on_cpu,4,2           ; @get_freqs_on_cpu
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"currently at %s speed setting - %i MHz\n"

	.comm	_speedstep_freqs,8,3            ; @speedstep_freqs
	.comm	_SPEEDSTEP_LOW,8,3              ; @SPEEDSTEP_LOW
l_.str.1:                               ; @.str.1
	.asciz	"low"

l_.str.2:                               ; @.str.2
	.asciz	"high"

	.no_dead_strip	_speedstep_cpu_init
.subsections_via_symbols
