	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	40(%rdi), %r15
	movq	(%rsi), %rax
	movq	%rax, 32(%rdi)
	movq	%rax, (%r15)
	movq	_ATOM_VEGA12_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
	movq	24(%rbx), %rax
	movq	_ATOM_VEGA12_ODSETTING_GFXCLKFMAX@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, %rcx
	movq	_VEGA12_ENGINECLOCK_HARDMAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
LBB0_2:
	movq	%rax, 16(%r14)
	movq	24(%rbx), %rax
	movq	_ATOM_VEGA12_ODSETTING_UCLKFMAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, 24(%r14)
	leaq	76(%r15), %rsi
	movq	24(%rbx), %rdx
	movq	_ATOM_VEGA12_ODSETTING_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_phm_copy_overdrive_settings_limits_array
	leaq	72(%r15), %rsi
	movq	56(%rbx), %rdx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_phm_copy_overdrive_settings_limits_array
	cmpq	$0, 16(%r14)
	jle	LBB0_5
## %bb.3:
	cmpq	$0, 24(%r14)
	jle	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	movq	_PHM_PlatformCaps_ACOverdriveSupport@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_5:
	movl	52(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 64(%r15)
	movl	48(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 56(%r15)
	movl	44(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r15)
	movl	40(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r15)
	movl	36(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r15)
	movl	32(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r15)
	movq	24(%rbx), %rax
	movq	_ATOM_VEGA12_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_7
## %bb.6:
	movl	(%r14), %edi
	movq	_PHM_PlatformCaps_PowerControl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_7:
	leaq	20(%r15), %rsi
	movl	16(%rbx), %edx
	movq	_ATOM_VEGA12_PPCLOCK_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_phm_copy_clock_limits_array
	leaq	16(%r15), %rsi
	movl	12(%rbx), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_phm_copy_clock_limits_array
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	addq	$8, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r15), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_append_vbios_pptable           ## TAILCALL
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_VEGA12_PP_THERMALCONTROLLER_NONE,8,3 ## @ATOM_VEGA12_PP_THERMALCONTROLLER_NONE
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ## @PHM_PlatformCaps_ThermalController
	.comm	_PHM_PlatformCaps_MicrocodeFanControl,4,2 ## @PHM_PlatformCaps_MicrocodeFanControl
	.comm	_ATOM_VEGA12_ODSETTING_GFXCLKFMAX,8,3 ## @ATOM_VEGA12_ODSETTING_GFXCLKFMAX
	.comm	_VEGA12_ENGINECLOCK_HARDMAX,8,3 ## @VEGA12_ENGINECLOCK_HARDMAX
	.comm	_ATOM_VEGA12_ODSETTING_UCLKFMAX,8,3 ## @ATOM_VEGA12_ODSETTING_UCLKFMAX
	.comm	_ATOM_VEGA12_ODSETTING_COUNT,4,2 ## @ATOM_VEGA12_ODSETTING_COUNT
	.comm	_PHM_PlatformCaps_ACOverdriveSupport,4,2 ## @PHM_PlatformCaps_ACOverdriveSupport
	.comm	_ATOM_VEGA12_ODSETTING_POWERPERCENTAGE,8,3 ## @ATOM_VEGA12_ODSETTING_POWERPERCENTAGE
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ## @PHM_PlatformCaps_PowerControl
	.comm	_ATOM_VEGA12_PPCLOCK_COUNT,4,2  ## @ATOM_VEGA12_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	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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldr	x8, [x1]
	str	x8, [x0, #32]
	str	x8, [x21]
Lloh0:
	adrp	x9, _ATOM_VEGA12_PP_THERMALCONTROLLER_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATOM_VEGA12_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	x8, [x20, #24]
Lloh9:
	adrp	x22, _ATOM_VEGA12_ODSETTING_GFXCLKFMAX@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ATOM_VEGA12_ODSETTING_GFXCLKFMAX@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	mov	x8, x0
Lloh11:
	adrp	x9, _VEGA12_ENGINECLOCK_HARDMAX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VEGA12_ENGINECLOCK_HARDMAX@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x9]
	cmp	x8, x0
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
LBB0_2:
	str	x0, [x19, #16]
	ldr	x8, [x20, #24]
Lloh14:
	adrp	x9, _ATOM_VEGA12_ODSETTING_UCLKFMAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATOM_VEGA12_ODSETTING_UCLKFMAX@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	str	x0, [x19, #24]
	add	x1, x21, #76
	ldr	x2, [x20, #24]
Lloh17:
	adrp	x22, _ATOM_VEGA12_ODSETTING_COUNT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ATOM_VEGA12_ODSETTING_COUNT@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_phm_copy_overdrive_settings_limits_array
	add	x1, x21, #72
	ldr	x2, [x20, #56]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_phm_copy_overdrive_settings_limits_array
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _PHM_PlatformCaps_ACOverdriveSupport@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PHM_PlatformCaps_ACOverdriveSupport@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_5:
	ldr	w0, [x20, #52]
	bl	_le16_to_cpu
	str	x0, [x21, #64]
	ldr	w0, [x20, #48]
	bl	_le16_to_cpu
	str	x0, [x21, #56]
	ldr	w0, [x20, #44]
	bl	_le16_to_cpu
	str	x0, [x21, #48]
	ldr	w0, [x20, #40]
	bl	_le16_to_cpu
	str	x0, [x21, #40]
	ldr	w0, [x20, #36]
	bl	_le16_to_cpu
	str	x0, [x21, #32]
	ldr	w0, [x20, #32]
	bl	_le16_to_cpu
	str	x0, [x21, #24]
	ldr	x8, [x20, #24]
Lloh22:
	adrp	x9, _ATOM_VEGA12_ODSETTING_POWERPERCENTAGE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ATOM_VEGA12_ODSETTING_POWERPERCENTAGE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh25:
	adrp	x8, _PHM_PlatformCaps_PowerControl@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PHM_PlatformCaps_PowerControl@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_7:
	add	x1, x21, #20
	ldr	w2, [x20, #16]
Lloh28:
	adrp	x22, _ATOM_VEGA12_PPCLOCK_COUNT@GOTPAGE
Lloh29:
	ldr	x22, [x22, _ATOM_VEGA12_PPCLOCK_COUNT@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_phm_copy_clock_limits_array
	add	x1, x21, #16
	ldr	w2, [x20, #12]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_phm_copy_clock_limits_array
Lloh30:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.8:
	add	x1, x20, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x1, [x21, #8]
	mov	x0, x19
	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
	b	_append_vbios_pptable
LBB0_9:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_VEGA12_PP_THERMALCONTROLLER_NONE,8,3 ; @ATOM_VEGA12_PP_THERMALCONTROLLER_NONE
	.comm	_PHM_PlatformCaps_ThermalController,4,2 ; @PHM_PlatformCaps_ThermalController
	.comm	_PHM_PlatformCaps_MicrocodeFanControl,4,2 ; @PHM_PlatformCaps_MicrocodeFanControl
	.comm	_ATOM_VEGA12_ODSETTING_GFXCLKFMAX,8,3 ; @ATOM_VEGA12_ODSETTING_GFXCLKFMAX
	.comm	_VEGA12_ENGINECLOCK_HARDMAX,8,3 ; @VEGA12_ENGINECLOCK_HARDMAX
	.comm	_ATOM_VEGA12_ODSETTING_UCLKFMAX,8,3 ; @ATOM_VEGA12_ODSETTING_UCLKFMAX
	.comm	_ATOM_VEGA12_ODSETTING_COUNT,4,2 ; @ATOM_VEGA12_ODSETTING_COUNT
	.comm	_PHM_PlatformCaps_ACOverdriveSupport,4,2 ; @PHM_PlatformCaps_ACOverdriveSupport
	.comm	_ATOM_VEGA12_ODSETTING_POWERPERCENTAGE,8,3 ; @ATOM_VEGA12_ODSETTING_POWERPERCENTAGE
	.comm	_PHM_PlatformCaps_PowerControl,4,2 ; @PHM_PlatformCaps_PowerControl
	.comm	_ATOM_VEGA12_PPCLOCK_COUNT,4,2  ; @ATOM_VEGA12_PPCLOCK_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_powerplay_table_information
.subsections_via_symbols
