	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_pstate_init_cpu
_intel_pstate_init_cpu:                 ## @intel_pstate_init_cpu
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_intel_pstate_cpu_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_x86_match_cpu
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	_all_cpu_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%r14d, %esi
	movq	%rax, (%rdx,%rsi,8)
	movq	(%rcx), %rax
	movq	(%rax,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_intel_pstate_get_cpu_pstates
	movl	%r14d, (%rbx)
	movq	(%r15), %rax
	movq	%rax, 40(%rbx)
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_init_timer_deferrable
	movq	_intel_pstate_timer_func@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, 8(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rbx, %rdi
	callq	_intel_pstate_busy_pid_reset
	movq	%rbx, %rdi
	callq	_intel_pstate_idle_pid_reset
	movq	%rbx, %rdi
	callq	_intel_pstate_sample
	movl	32(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_pstate_set_pstate
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_add_timer_on
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_info
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_pstate_cpu_ids,4,2       ## @intel_pstate_cpu_ids
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_all_cpu_data,8,3               ## @all_cpu_data
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_intel_pstate_timer_func,4,2    ## @intel_pstate_timer_func
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Intel pstate controlling: cpu %d\n"

	.no_dead_strip	_intel_pstate_init_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pstate_init_cpu
_intel_pstate_init_cpu:                 ; @intel_pstate_init_cpu
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _intel_pstate_cpu_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intel_pstate_cpu_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_x86_match_cpu
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
Lloh6:
	adrp	x8, _all_cpu_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _all_cpu_data@GOTPAGEOFF]
	ldr	x9, [x8]
	mov	w10, w19
	lsl	x10, x10, #3
	str	x0, [x9, x10]
	ldr	x8, [x8]
	ldr	x20, [x8, x10]
	cbz	x20, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_intel_pstate_get_cpu_pstates
	str	w19, [x20]
	ldr	x8, [x21]
	str	x8, [x20, #40]
	add	x21, x20, #8
	mov	x0, x21
	bl	_init_timer_deferrable
Lloh8:
	adrp	x8, _intel_pstate_timer_func@GOTPAGE
Lloh9:
	ldr	x8, [x8, _intel_pstate_timer_func@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh11:
	adrp	x8, _jiffies@GOTPAGE
Lloh12:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _HZ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #5
	add	x8, x8, w9, sxtw
	stp	x20, x8, [x20, #8]
	mov	x0, x20
	bl	_intel_pstate_busy_pid_reset
	mov	x0, x20
	bl	_intel_pstate_idle_pid_reset
	mov	x0, x20
	bl	_intel_pstate_sample
	ldr	w1, [x20, #32]
	mov	x0, x20
	bl	_intel_pstate_set_pstate
	mov	x0, x21
	mov	x1, x19
	bl	_add_timer_on
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_info
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_pstate_cpu_ids,4,2       ; @intel_pstate_cpu_ids
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_all_cpu_data,8,3               ; @all_cpu_data
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_intel_pstate_timer_func,4,2    ; @intel_pstate_timer_func
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Intel pstate controlling: cpu %d\n"

	.no_dead_strip	_intel_pstate_init_cpu
.subsections_via_symbols
