	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_powerplay_table_information
_init_powerplay_table_information:      ## @init_powerplay_table_information
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	40(%rdi), %r13
	movq	(%rsi), %rax
	movq	%rax, 16(%rdi)
	movq	%rax, (%r13)
	movq	$0, 32(%rdi)
	movl	8(%rsi), %ecx
	movl	%ecx, 24(%rdi)
	movq	_ATOM_VEGA20_PP_THERMALCONTROLLER_NONE@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	%rax, (%rcx)
	setne	%sil
	movq	_PHM_PlatformCaps_ThermalController@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_set_hw_cap
	movl	(%r14), %edi
	movq	_PHM_PlatformCaps_MicrocodeFanControl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
	cmpl	$1, 32(%rbx)
	jne	LBB0_6
## %bb.1:
	movl	64(%rbx), %edi
	callq	_le32_to_cpu
	movq	_ATOM_VEGA20_ODFEATURE_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	%r15, %rax
	jg	LBB0_3
## %bb.2:
	movl	64(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r15
LBB0_3:
	movl	60(%rbx), %edi
	callq	_le32_to_cpu
	movq	_ATOM_VEGA20_ODSETTING_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	cmpq	%r12, %rax
	jg	LBB0_5
## %bb.4:
	movl	60(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r12
LBB0_5:
	leaq	80(%r13), %rsi
	movl	56(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_copy_overdrive_feature_capabilities_array
	leaq	76(%r13), %rsi
	movq	40(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_phm_copy_overdrive_settings_limits_array
	leaq	72(%r13), %rsi
	movq	48(%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_phm_copy_overdrive_settings_limits_array
LBB0_6:
	movl	92(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 64(%r13)
	movl	88(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%r13)
	movl	84(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r13)
	movl	80(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r13)
	movl	76(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r13)
	movl	72(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r13)
	movq	40(%rbx), %rax
	movq	_ATOM_VEGA20_ODSETTING_POWERPERCENTAGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	movq	_PHM_PlatformCaps_PowerControl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_8:
	cmpl	$1, 12(%rbx)
	jne	LBB0_12
## %bb.9:
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movq	_ATOM_VEGA20_PPCLOCK_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	%r15, %rax
	jge	LBB0_11
## %bb.10:
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r15
LBB0_11:
	leaq	20(%r13), %rsi
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_phm_copy_clock_limits_array
	leaq	16(%r13), %rsi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_phm_copy_clock_limits_array
LBB0_12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	addq	$8, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_append_vbios_pptable
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_override_powerplay_table_fantargettemperature ## TAILCALL
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_VEGA20_PP_THERMALCONTROLLER_NONE,8,3 ## @ATOM_VEGA20_PP_THERMALCONTROLLER_NONE
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ## @PHM_PlatformCaps_ThermalController
	.comm	_PHM_PlatformCaps_MicrocodeFanControl,4,2 ## @PHM_PlatformCaps_MicrocodeFanControl
	.comm	_ATOM_VEGA20_ODFEATURE_COUNT,8,3 ## @ATOM_VEGA20_ODFEATURE_COUNT
	.comm	_ATOM_VEGA20_ODSETTING_COUNT,8,3 ## @ATOM_VEGA20_ODSETTING_COUNT
	.comm	_ATOM_VEGA20_ODSETTING_POWERPERCENTAGE,8,3 ## @ATOM_VEGA20_ODSETTING_POWERPERCENTAGE
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ## @PHM_PlatformCaps_PowerControl
	.comm	_ATOM_VEGA20_PPCLOCK_COUNT,8,3  ## @ATOM_VEGA20_PPCLOCK_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_init_powerplay_table_information
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_powerplay_table_information
_init_powerplay_table_information:      ; @init_powerplay_table_information
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0, #40]
	ldr	x8, [x1]
	str	x8, [x0, #16]
	str	x8, [x24]
	str	xzr, [x0, #32]
	mov	x20, x1
	ldr	w9, [x20, #8]!
	str	w9, [x0, #24]
Lloh0:
	adrp	x9, _ATOM_VEGA20_PP_THERMALCONTROLLER_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATOM_VEGA20_PP_THERMALCONTROLLER_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	cset	w1, ne
Lloh3:
	adrp	x8, _PHM_PlatformCaps_ThermalController@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHM_PlatformCaps_ThermalController@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_set_hw_cap
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _PHM_PlatformCaps_MicrocodeFanControl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHM_PlatformCaps_MicrocodeFanControl@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_phm_cap_set
	ldr	w8, [x21, #32]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [x21, #64]
	bl	_le32_to_cpu
Lloh9:
	adrp	x8, _ATOM_VEGA20_ODFEATURE_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_VEGA20_ODFEATURE_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	cmp	x0, x22
	b.gt	LBB0_3
; %bb.2:
	ldr	w0, [x21, #64]
	bl	_le32_to_cpu
	mov	x22, x0
LBB0_3:
	ldr	w0, [x21, #60]
	bl	_le32_to_cpu
Lloh12:
	adrp	x8, _ATOM_VEGA20_ODSETTING_COUNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATOM_VEGA20_ODSETTING_COUNT@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
	cmp	x0, x23
	b.gt	LBB0_5
; %bb.4:
	ldr	w0, [x21, #60]
	bl	_le32_to_cpu
	mov	x23, x0
LBB0_5:
	add	x1, x24, #80
	ldr	w2, [x21, #56]
	mov	x0, x19
	mov	x3, x22
	bl	_copy_overdrive_feature_capabilities_array
	add	x1, x24, #76
	ldr	x2, [x21, #40]
	mov	x0, x19
	mov	x3, x23
	bl	_phm_copy_overdrive_settings_limits_array
	add	x1, x24, #72
	ldr	x2, [x21, #48]
	mov	x0, x19
	mov	x3, x23
	bl	_phm_copy_overdrive_settings_limits_array
LBB0_6:
	ldr	w0, [x21, #92]
	bl	_le16_to_cpu
	str	x0, [x24, #64]
	ldr	w0, [x21, #88]
	bl	_le16_to_cpu
	str	x0, [x24, #56]
	ldr	w0, [x21, #84]
	bl	_le16_to_cpu
	str	x0, [x24, #48]
	ldr	w0, [x21, #80]
	bl	_le16_to_cpu
	str	x0, [x24, #40]
	ldr	w0, [x21, #76]
	bl	_le16_to_cpu
	str	x0, [x24, #32]
	ldr	w0, [x21, #72]
	bl	_le16_to_cpu
	str	x0, [x24, #24]
	ldr	x8, [x21, #40]
Lloh15:
	adrp	x9, _ATOM_VEGA20_ODSETTING_POWERPERCENTAGE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATOM_VEGA20_ODSETTING_POWERPERCENTAGE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _PHM_PlatformCaps_PowerControl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHM_PlatformCaps_PowerControl@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_8:
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.9:
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
Lloh21:
	adrp	x8, _ATOM_VEGA20_PPCLOCK_COUNT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATOM_VEGA20_PPCLOCK_COUNT@GOTPAGEOFF]
Lloh23:
	ldr	x22, [x8]
	cmp	x0, x22
	b.ge	LBB0_11
; %bb.10:
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
	mov	x22, x0
LBB0_11:
	add	x1, x24, #20
	ldr	w2, [x21, #20]
	mov	x0, x19
	mov	x3, x22
	bl	_phm_copy_clock_limits_array
	add	x1, x24, #16
	ldr	w2, [x21, #16]
	mov	x0, x19
	mov	x3, x22
	bl	_phm_copy_clock_limits_array
LBB0_12:
Lloh24:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x24, #8]
	cbz	x0, LBB0_15
; %bb.13:
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x24, #8]
	mov	x0, x19
	bl	_append_vbios_pptable
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_override_powerplay_table_fantargettemperature
LBB0_15:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_VEGA20_PP_THERMALCONTROLLER_NONE,8,3 ; @ATOM_VEGA20_PP_THERMALCONTROLLER_NONE
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ; @PHM_PlatformCaps_ThermalController
	.comm	_PHM_PlatformCaps_MicrocodeFanControl,4,2 ; @PHM_PlatformCaps_MicrocodeFanControl
	.comm	_ATOM_VEGA20_ODFEATURE_COUNT,8,3 ; @ATOM_VEGA20_ODFEATURE_COUNT
	.comm	_ATOM_VEGA20_ODSETTING_COUNT,8,3 ; @ATOM_VEGA20_ODSETTING_COUNT
	.comm	_ATOM_VEGA20_ODSETTING_POWERPERCENTAGE,8,3 ; @ATOM_VEGA20_ODSETTING_POWERPERCENTAGE
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ; @PHM_PlatformCaps_PowerControl
	.comm	_ATOM_VEGA20_PPCLOCK_COUNT,8,3  ; @ATOM_VEGA20_PPCLOCK_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_powerplay_table_information
.subsections_via_symbols
