	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_od8_set_feature_capabilities
_vega20_od8_set_feature_capabilities:   ## @vega20_od8_set_feature_capabilities
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rcx
	movq	16(%rdi), %r14
	movl	$0, 24(%rcx)
	movq	(%rcx), %r8
	movq	_GNLD_DPM_GFXCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r8,%rax,8)
	je	LBB0_11
## %bb.1:
	movq	16(%r14), %rax
	movq	_ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%r9d, %r9d
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_6
## %bb.2:
	movq	(%r14), %rdx
	movq	_OD8_SETTING_GFXCLK_FMAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.3:
	movq	8(%r14), %r10
	movq	_OD8_SETTING_GFXCLK_FMIN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%r10,%rsi,4), %esi
	testl	%esi, %esi
	jle	LBB0_6
## %bb.4:
	cmpl	%esi, %edx
	jl	LBB0_6
## %bb.5:
	movq	_OD8_GFXCLK_LIMITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%r9d, 24(%rcx)
LBB0_6:
	movq	_ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_11
## %bb.7:
	movq	8(%r14), %rax
	movq	_OD8_SETTING_GFXCLK_VOLTAGE1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %r10d
	movl	32(%rcx), %eax
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	cltd
	idivl	%r11d
	cmpl	%eax, %r10d
	jl	LBB0_11
## %bb.8:
	movq	(%r14), %rax
	movq	_OD8_SETTING_GFXCLK_VOLTAGE3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %esi
	movl	36(%rcx), %eax
	cltd
	idivl	%r11d
	cmpl	%eax, %esi
	jg	LBB0_11
## %bb.9:
	cmpl	%r10d, %esi
	jl	LBB0_11
## %bb.10:
	movq	_OD8_GFXCLK_CURVE@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	movl	%r9d, 24(%rcx)
LBB0_11:
	movq	_GNLD_DPM_UCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%r8,%rax,8)
	je	LBB0_12
## %bb.13:
	movq	16(%rcx), %rax
	movslq	8(%rcx), %rdx
	movl	-8(%rax,%rdx,4), %edx
	movq	8(%r14), %rax
	movq	_OD8_SETTING_UCLK_FMAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rax,%rsi,4)
	movq	16(%r14), %rax
	movq	_ATOM_VEGA20_ODFEATURE_UCLK_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_18
## %bb.14:
	testl	%edx, %edx
	jle	LBB0_18
## %bb.15:
	movq	(%r14), %rbx
	movl	(%rbx,%rsi,4), %esi
	testl	%esi, %esi
	jle	LBB0_18
## %bb.16:
	cmpl	%edx, %esi
	jl	LBB0_18
## %bb.17:
	movq	_OD8_UCLK_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
	jmp	LBB0_18
LBB0_12:
	movq	16(%r14), %rax
LBB0_18:
	movq	_ATOM_VEGA20_ODFEATURE_POWER_LIMIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_22
## %bb.19:
	movq	(%r14), %rsi
	movq	_OD8_SETTING_POWER_PERCENTAGE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rsi,%rdx,4), %esi
	decl	%esi
	cmpl	$99, %esi
	ja	LBB0_22
## %bb.20:
	movq	8(%r14), %rsi
	movl	(%rsi,%rdx,4), %edx
	decl	%edx
	cmpl	$99, %edx
	ja	LBB0_22
## %bb.21:
	movq	_OD8_POWER_LIMIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
LBB0_22:
	movq	_GNLD_FAN_CONTROL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%r8,%rdx,8)
	je	LBB0_33
## %bb.23:
	movq	_ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_28
## %bb.24:
	movq	8(%r14), %rdx
	movq	_OD8_SETTING_FAN_ACOUSTIC_LIMIT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	testl	%edx, %edx
	jle	LBB0_28
## %bb.25:
	movq	(%r14), %rbx
	movl	(%rbx,%rsi,4), %esi
	testl	%esi, %esi
	jle	LBB0_28
## %bb.26:
	cmpl	%edx, %esi
	jl	LBB0_28
## %bb.27:
	movq	_OD8_ACOUSTIC_LIMIT_SCLK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
LBB0_28:
	movq	_ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_33
## %bb.29:
	movq	8(%r14), %rsi
	movq	_OD8_SETTING_FAN_MIN_SPEED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rsi,%rdx,4), %r9d
	movl	44(%rcx), %esi
	imull	40(%rcx), %esi
	movslq	%esi, %rsi
	imulq	$1374389535, %rsi, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rbx
	shrq	$63, %rbx
	sarq	$37, %rsi
	addl	%ebx, %esi
	cmpl	%esi, %r9d
	jl	LBB0_33
## %bb.30:
	movq	(%r14), %rsi
	movl	(%rsi,%rdx,4), %edx
	testl	%edx, %edx
	jle	LBB0_33
## %bb.31:
	cmpl	%r9d, %edx
	jl	LBB0_33
## %bb.32:
	movq	_OD8_FAN_SPEED_MIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
LBB0_33:
	movq	_GNLD_THERMAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%r8,%rdx,8)
	je	LBB0_44
## %bb.34:
	movq	_ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_39
## %bb.35:
	movq	(%r14), %rdx
	movq	_OD8_SETTING_FAN_TARGET_TEMP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	testl	%edx, %edx
	jle	LBB0_39
## %bb.36:
	movq	8(%r14), %rbx
	movl	(%rbx,%rsi,4), %esi
	testl	%esi, %esi
	jle	LBB0_39
## %bb.37:
	cmpl	%esi, %edx
	jl	LBB0_39
## %bb.38:
	movq	_OD8_TEMPERATURE_FAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
LBB0_39:
	movq	_ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_44
## %bb.40:
	movq	(%r14), %rdx
	movq	_OD8_SETTING_OPERATING_TEMP_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	testl	%edx, %edx
	jle	LBB0_44
## %bb.41:
	movq	8(%r14), %rbx
	movl	(%rbx,%rsi,4), %esi
	testl	%esi, %esi
	jle	LBB0_44
## %bb.42:
	cmpl	%esi, %edx
	jl	LBB0_44
## %bb.43:
	movq	_OD8_TEMPERATURE_SYSTEM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
LBB0_44:
	movq	_ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_46
## %bb.45:
	movq	_OD8_MEMORY_TIMING_TUNE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 24(%rcx)
LBB0_46:
	movq	_ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_49
## %bb.47:
	cmpq	$0, 48(%rcx)
	je	LBB0_49
## %bb.48:
	movq	_OD8_FAN_ZERO_RPM_CONTROL@GOTPCREL(%rip), %rdx
	movl	24(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, 24(%rcx)
	testl	%eax, %eax
	jne	LBB0_52
	jmp	LBB0_51
LBB0_49:
	movl	24(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_52
LBB0_51:
	movl	$0, (%rdi)
LBB0_52:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GNLD_DPM_GFXCLK,8,3            ## @GNLD_DPM_GFXCLK
	.comm	_ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS,8,3 ## @ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS
	.comm	_OD8_SETTING_GFXCLK_FMAX,8,3    ## @OD8_SETTING_GFXCLK_FMAX
	.comm	_OD8_SETTING_GFXCLK_FMIN,8,3    ## @OD8_SETTING_GFXCLK_FMIN
	.comm	_OD8_GFXCLK_LIMITS,4,2          ## @OD8_GFXCLK_LIMITS
	.comm	_ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE,8,3 ## @ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE
	.comm	_OD8_SETTING_GFXCLK_VOLTAGE1,8,3 ## @OD8_SETTING_GFXCLK_VOLTAGE1
	.comm	_VOLTAGE_SCALE,4,2              ## @VOLTAGE_SCALE
	.comm	_OD8_SETTING_GFXCLK_VOLTAGE3,8,3 ## @OD8_SETTING_GFXCLK_VOLTAGE3
	.comm	_OD8_GFXCLK_CURVE,4,2           ## @OD8_GFXCLK_CURVE
	.comm	_GNLD_DPM_UCLK,8,3              ## @GNLD_DPM_UCLK
	.comm	_OD8_SETTING_UCLK_FMAX,8,3      ## @OD8_SETTING_UCLK_FMAX
	.comm	_ATOM_VEGA20_ODFEATURE_UCLK_MAX,8,3 ## @ATOM_VEGA20_ODFEATURE_UCLK_MAX
	.comm	_OD8_UCLK_MAX,4,2               ## @OD8_UCLK_MAX
	.comm	_ATOM_VEGA20_ODFEATURE_POWER_LIMIT,8,3 ## @ATOM_VEGA20_ODFEATURE_POWER_LIMIT
	.comm	_OD8_SETTING_POWER_PERCENTAGE,8,3 ## @OD8_SETTING_POWER_PERCENTAGE
	.comm	_OD8_POWER_LIMIT,4,2            ## @OD8_POWER_LIMIT
	.comm	_GNLD_FAN_CONTROL,8,3           ## @GNLD_FAN_CONTROL
	.comm	_ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT,8,3 ## @ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT
	.comm	_OD8_SETTING_FAN_ACOUSTIC_LIMIT,8,3 ## @OD8_SETTING_FAN_ACOUSTIC_LIMIT
	.comm	_OD8_ACOUSTIC_LIMIT_SCLK,4,2    ## @OD8_ACOUSTIC_LIMIT_SCLK
	.comm	_ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN,8,3 ## @ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN
	.comm	_OD8_SETTING_FAN_MIN_SPEED,8,3  ## @OD8_SETTING_FAN_MIN_SPEED
	.comm	_OD8_FAN_SPEED_MIN,4,2          ## @OD8_FAN_SPEED_MIN
	.comm	_GNLD_THERMAL,8,3               ## @GNLD_THERMAL
	.comm	_ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN,8,3 ## @ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN
	.comm	_OD8_SETTING_FAN_TARGET_TEMP,8,3 ## @OD8_SETTING_FAN_TARGET_TEMP
	.comm	_OD8_TEMPERATURE_FAN,4,2        ## @OD8_TEMPERATURE_FAN
	.comm	_ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM,8,3 ## @ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM
	.comm	_OD8_SETTING_OPERATING_TEMP_MAX,8,3 ## @OD8_SETTING_OPERATING_TEMP_MAX
	.comm	_OD8_TEMPERATURE_SYSTEM,4,2     ## @OD8_TEMPERATURE_SYSTEM
	.comm	_ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE,8,3 ## @ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE
	.comm	_OD8_MEMORY_TIMING_TUNE,4,2     ## @OD8_MEMORY_TIMING_TUNE
	.comm	_ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL,8,3 ## @ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL
	.comm	_OD8_FAN_ZERO_RPM_CONTROL,4,2   ## @OD8_FAN_ZERO_RPM_CONTROL
	.no_dead_strip	_vega20_od8_set_feature_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_od8_set_feature_capabilities
_vega20_od8_set_feature_capabilities:   ; @vega20_od8_set_feature_capabilities
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0, #8]
	str	wzr, [x8, #24]
	ldr	x10, [x8]
Lloh0:
	adrp	x11, _GNLD_DPM_GFXCLK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _GNLD_DPM_GFXCLK@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	x11, [x10, x11, lsl #3]
	cbz	x11, LBB0_10
; %bb.1:
	ldr	x11, [x9, #16]
Lloh3:
	adrp	x12, _ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	ldr	x12, [x11, x12, lsl #3]
	cbz	x12, LBB0_6
; %bb.2:
	ldr	x12, [x9]
Lloh6:
	adrp	x13, _OD8_SETTING_GFXCLK_FMAX@GOTPAGE
Lloh7:
	ldr	x13, [x13, _OD8_SETTING_GFXCLK_FMAX@GOTPAGEOFF]
Lloh8:
	ldr	x13, [x13]
	ldr	w12, [x12, x13, lsl #2]
	cmp	w12, #1
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x13, _OD8_SETTING_GFXCLK_FMIN@GOTPAGE
Lloh10:
	ldr	x13, [x13, _OD8_SETTING_GFXCLK_FMIN@GOTPAGEOFF]
	ldr	x14, [x9, #8]
Lloh11:
	ldr	x13, [x13]
	ldr	w13, [x14, x13, lsl #2]
	cmp	w13, #1
	ccmp	w12, w13, #8, ge
	b.ge	LBB0_5
LBB0_4:
	mov	w12, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x12, _OD8_GFXCLK_LIMITS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _OD8_GFXCLK_LIMITS@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	str	w12, [x8, #24]
LBB0_6:
Lloh15:
	adrp	x13, _ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE@GOTPAGE
Lloh16:
	ldr	x13, [x13, _ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
	ldr	x11, [x11, x13, lsl #3]
	cbz	x11, LBB0_10
; %bb.7:
	ldr	x11, [x9, #8]
Lloh18:
	adrp	x13, _OD8_SETTING_GFXCLK_VOLTAGE1@GOTPAGE
Lloh19:
	ldr	x13, [x13, _OD8_SETTING_GFXCLK_VOLTAGE1@GOTPAGEOFF]
Lloh20:
	ldr	x13, [x13]
	ldr	w11, [x11, x13, lsl #2]
	ldr	w14, [x8, #32]
Lloh21:
	adrp	x13, _VOLTAGE_SCALE@GOTPAGE
Lloh22:
	ldr	x13, [x13, _VOLTAGE_SCALE@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
	sdiv	w14, w14, w13
	cmp	w11, w14
	b.lt	LBB0_10
; %bb.8:
	ldr	x14, [x9]
Lloh24:
	adrp	x15, _OD8_SETTING_GFXCLK_VOLTAGE3@GOTPAGE
Lloh25:
	ldr	x15, [x15, _OD8_SETTING_GFXCLK_VOLTAGE3@GOTPAGEOFF]
Lloh26:
	ldr	x15, [x15]
	ldr	w14, [x14, x15, lsl #2]
	ldr	w15, [x8, #36]
	sdiv	w13, w15, w13
	cmp	w14, w13
	ccmp	w14, w11, #8, le
	b.lt	LBB0_10
; %bb.9:
Lloh27:
	adrp	x11, _OD8_GFXCLK_CURVE@GOTPAGE
Lloh28:
	ldr	x11, [x11, _OD8_GFXCLK_CURVE@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w11, w12, w11
	str	w11, [x8, #24]
LBB0_10:
Lloh30:
	adrp	x11, _GNLD_DPM_UCLK@GOTPAGE
Lloh31:
	ldr	x11, [x11, _GNLD_DPM_UCLK@GOTPAGEOFF]
Lloh32:
	ldr	x11, [x11]
	ldr	x11, [x10, x11, lsl #3]
	cbz	x11, LBB0_14
; %bb.11:
	ldr	x11, [x8, #16]
	ldrsw	x12, [x8, #8]
	add	x11, x11, x12, lsl #2
	ldur	w12, [x11, #-8]
Lloh33:
	adrp	x11, _OD8_SETTING_UCLK_FMAX@GOTPAGE
Lloh34:
	ldr	x11, [x11, _OD8_SETTING_UCLK_FMAX@GOTPAGEOFF]
Lloh35:
	ldr	x13, [x11]
	ldp	x14, x11, [x9, #8]
	str	w12, [x14, x13, lsl #2]
Lloh36:
	adrp	x14, _ATOM_VEGA20_ODFEATURE_UCLK_MAX@GOTPAGE
Lloh37:
	ldr	x14, [x14, _ATOM_VEGA20_ODFEATURE_UCLK_MAX@GOTPAGEOFF]
Lloh38:
	ldr	x14, [x14]
	ldr	x14, [x11, x14, lsl #3]
	cmp	x14, #0
	ccmp	w12, #1, #8, ne
	b.lt	LBB0_15
; %bb.12:
	ldr	x14, [x9]
	ldr	w13, [x14, x13, lsl #2]
	cmp	w13, #1
	ccmp	w13, w12, #8, ge
	b.lt	LBB0_15
; %bb.13:
Lloh39:
	adrp	x12, _OD8_UCLK_MAX@GOTPAGE
Lloh40:
	ldr	x12, [x12, _OD8_UCLK_MAX@GOTPAGEOFF]
Lloh41:
	ldr	w12, [x12]
	ldr	w13, [x8, #24]
	orr	w12, w13, w12
	str	w12, [x8, #24]
	b	LBB0_15
LBB0_14:
	ldr	x11, [x9, #16]
LBB0_15:
Lloh42:
	adrp	x12, _ATOM_VEGA20_ODFEATURE_POWER_LIMIT@GOTPAGE
Lloh43:
	ldr	x12, [x12, _ATOM_VEGA20_ODFEATURE_POWER_LIMIT@GOTPAGEOFF]
Lloh44:
	ldr	x12, [x12]
	ldr	x12, [x11, x12, lsl #3]
	cbz	x12, LBB0_19
; %bb.16:
Lloh45:
	adrp	x12, _OD8_SETTING_POWER_PERCENTAGE@GOTPAGE
Lloh46:
	ldr	x12, [x12, _OD8_SETTING_POWER_PERCENTAGE@GOTPAGEOFF]
	ldr	x13, [x9]
Lloh47:
	ldr	x12, [x12]
	ldr	w13, [x13, x12, lsl #2]
	sub	w13, w13, #1
	cmp	w13, #99
	b.hi	LBB0_19
; %bb.17:
	ldr	x13, [x9, #8]
	ldr	w12, [x13, x12, lsl #2]
	sub	w12, w12, #1
	cmp	w12, #99
	b.hi	LBB0_19
; %bb.18:
Lloh48:
	adrp	x12, _OD8_POWER_LIMIT@GOTPAGE
Lloh49:
	ldr	x12, [x12, _OD8_POWER_LIMIT@GOTPAGEOFF]
Lloh50:
	ldr	w12, [x12]
	ldr	w13, [x8, #24]
	orr	w12, w13, w12
	str	w12, [x8, #24]
LBB0_19:
Lloh51:
	adrp	x12, _GNLD_FAN_CONTROL@GOTPAGE
Lloh52:
	ldr	x12, [x12, _GNLD_FAN_CONTROL@GOTPAGEOFF]
Lloh53:
	ldr	x12, [x12]
	ldr	x12, [x10, x12, lsl #3]
	cbz	x12, LBB0_30
; %bb.20:
Lloh54:
	adrp	x12, _ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT@GOTPAGE
Lloh55:
	ldr	x12, [x12, _ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT@GOTPAGEOFF]
Lloh56:
	ldr	x12, [x12]
	ldr	x12, [x11, x12, lsl #3]
	cbz	x12, LBB0_25
; %bb.21:
	ldr	x12, [x9, #8]
Lloh57:
	adrp	x13, _OD8_SETTING_FAN_ACOUSTIC_LIMIT@GOTPAGE
Lloh58:
	ldr	x13, [x13, _OD8_SETTING_FAN_ACOUSTIC_LIMIT@GOTPAGEOFF]
Lloh59:
	ldr	x13, [x13]
	ldr	w12, [x12, x13, lsl #2]
	cmp	w12, #1
	b.lt	LBB0_25
; %bb.22:
	ldr	x14, [x9]
	ldr	w13, [x14, x13, lsl #2]
	cmp	w13, #1
	b.lt	LBB0_25
; %bb.23:
	cmp	w13, w12
	b.lt	LBB0_25
; %bb.24:
Lloh60:
	adrp	x12, _OD8_ACOUSTIC_LIMIT_SCLK@GOTPAGE
Lloh61:
	ldr	x12, [x12, _OD8_ACOUSTIC_LIMIT_SCLK@GOTPAGEOFF]
Lloh62:
	ldr	w12, [x12]
	ldr	w13, [x8, #24]
	orr	w12, w13, w12
	str	w12, [x8, #24]
LBB0_25:
Lloh63:
	adrp	x12, _ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN@GOTPAGE
Lloh64:
	ldr	x12, [x12, _ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN@GOTPAGEOFF]
Lloh65:
	ldr	x12, [x12]
	ldr	x12, [x11, x12, lsl #3]
	cbz	x12, LBB0_30
; %bb.26:
	ldr	x12, [x9, #8]
Lloh66:
	adrp	x13, _OD8_SETTING_FAN_MIN_SPEED@GOTPAGE
Lloh67:
	ldr	x13, [x13, _OD8_SETTING_FAN_MIN_SPEED@GOTPAGEOFF]
Lloh68:
	ldr	x13, [x13]
	ldr	w12, [x12, x13, lsl #2]
	ldp	w14, w15, [x8, #40]
	mul	w14, w15, w14
	mov	w15, #34079
	movk	w15, #20971, lsl #16
	smull	x14, w14, w15
	lsr	x15, x14, #63
	asr	x14, x14, #37
	add	w14, w14, w15
	cmp	w12, w14
	b.lt	LBB0_30
; %bb.27:
	ldr	x14, [x9]
	ldr	w13, [x14, x13, lsl #2]
	cmp	w13, #1
	b.lt	LBB0_30
; %bb.28:
	cmp	w13, w12
	b.lt	LBB0_30
; %bb.29:
Lloh69:
	adrp	x12, _OD8_FAN_SPEED_MIN@GOTPAGE
Lloh70:
	ldr	x12, [x12, _OD8_FAN_SPEED_MIN@GOTPAGEOFF]
Lloh71:
	ldr	w12, [x12]
	ldr	w13, [x8, #24]
	orr	w12, w13, w12
	str	w12, [x8, #24]
LBB0_30:
Lloh72:
	adrp	x12, _GNLD_THERMAL@GOTPAGE
Lloh73:
	ldr	x12, [x12, _GNLD_THERMAL@GOTPAGEOFF]
Lloh74:
	ldr	x12, [x12]
	ldr	x10, [x10, x12, lsl #3]
	cbz	x10, LBB0_41
; %bb.31:
Lloh75:
	adrp	x10, _ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN@GOTPAGE
Lloh76:
	ldr	x10, [x10, _ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN@GOTPAGEOFF]
Lloh77:
	ldr	x10, [x10]
	ldr	x10, [x11, x10, lsl #3]
	cbz	x10, LBB0_36
; %bb.32:
	ldr	x10, [x9]
Lloh78:
	adrp	x12, _OD8_SETTING_FAN_TARGET_TEMP@GOTPAGE
Lloh79:
	ldr	x12, [x12, _OD8_SETTING_FAN_TARGET_TEMP@GOTPAGEOFF]
Lloh80:
	ldr	x12, [x12]
	ldr	w10, [x10, x12, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_36
; %bb.33:
	ldr	x13, [x9, #8]
	ldr	w12, [x13, x12, lsl #2]
	cmp	w12, #1
	b.lt	LBB0_36
; %bb.34:
	cmp	w10, w12
	b.lt	LBB0_36
; %bb.35:
Lloh81:
	adrp	x10, _OD8_TEMPERATURE_FAN@GOTPAGE
Lloh82:
	ldr	x10, [x10, _OD8_TEMPERATURE_FAN@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	ldr	w12, [x8, #24]
	orr	w10, w12, w10
	str	w10, [x8, #24]
LBB0_36:
Lloh84:
	adrp	x10, _ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM@GOTPAGE
Lloh85:
	ldr	x10, [x10, _ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM@GOTPAGEOFF]
Lloh86:
	ldr	x10, [x10]
	ldr	x10, [x11, x10, lsl #3]
	cbz	x10, LBB0_41
; %bb.37:
	ldr	x10, [x9]
Lloh87:
	adrp	x12, _OD8_SETTING_OPERATING_TEMP_MAX@GOTPAGE
Lloh88:
	ldr	x12, [x12, _OD8_SETTING_OPERATING_TEMP_MAX@GOTPAGEOFF]
Lloh89:
	ldr	x12, [x12]
	ldr	w10, [x10, x12, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_41
; %bb.38:
	ldr	x9, [x9, #8]
	ldr	w9, [x9, x12, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_41
; %bb.39:
	cmp	w10, w9
	b.lt	LBB0_41
; %bb.40:
Lloh90:
	adrp	x9, _OD8_TEMPERATURE_SYSTEM@GOTPAGE
Lloh91:
	ldr	x9, [x9, _OD8_TEMPERATURE_SYSTEM@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	ldr	w10, [x8, #24]
	orr	w9, w10, w9
	str	w9, [x8, #24]
LBB0_41:
Lloh93:
	adrp	x9, _ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE@GOTPAGE
Lloh94:
	ldr	x9, [x9, _ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	ldr	x9, [x11, x9, lsl #3]
	cbz	x9, LBB0_43
; %bb.42:
Lloh96:
	adrp	x9, _OD8_MEMORY_TIMING_TUNE@GOTPAGE
Lloh97:
	ldr	x9, [x9, _OD8_MEMORY_TIMING_TUNE@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	ldr	w10, [x8, #24]
	orr	w9, w10, w9
	str	w9, [x8, #24]
LBB0_43:
Lloh99:
	adrp	x9, _ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL@GOTPAGE
Lloh100:
	ldr	x9, [x9, _ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL@GOTPAGEOFF]
Lloh101:
	ldr	x9, [x9]
	ldr	x9, [x11, x9, lsl #3]
	cbz	x9, LBB0_47
; %bb.44:
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_47
; %bb.45:
Lloh102:
	adrp	x9, _OD8_FAN_ZERO_RPM_CONTROL@GOTPAGE
Lloh103:
	ldr	x9, [x9, _OD8_FAN_ZERO_RPM_CONTROL@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	ldr	w10, [x8, #24]
	orr	w9, w10, w9
	str	w9, [x8, #24]
	cbnz	w9, LBB0_48
LBB0_46:
	str	wzr, [x0]
	mov	w0, #0
	ret
LBB0_47:
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_46
LBB0_48:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_GNLD_DPM_GFXCLK,8,3            ; @GNLD_DPM_GFXCLK
	.comm	_ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS,8,3 ; @ATOM_VEGA20_ODFEATURE_GFXCLK_LIMITS
	.comm	_OD8_SETTING_GFXCLK_FMAX,8,3    ; @OD8_SETTING_GFXCLK_FMAX
	.comm	_OD8_SETTING_GFXCLK_FMIN,8,3    ; @OD8_SETTING_GFXCLK_FMIN
	.comm	_OD8_GFXCLK_LIMITS,4,2          ; @OD8_GFXCLK_LIMITS
	.comm	_ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE,8,3 ; @ATOM_VEGA20_ODFEATURE_GFXCLK_CURVE
	.comm	_OD8_SETTING_GFXCLK_VOLTAGE1,8,3 ; @OD8_SETTING_GFXCLK_VOLTAGE1
	.comm	_VOLTAGE_SCALE,4,2              ; @VOLTAGE_SCALE
	.comm	_OD8_SETTING_GFXCLK_VOLTAGE3,8,3 ; @OD8_SETTING_GFXCLK_VOLTAGE3
	.comm	_OD8_GFXCLK_CURVE,4,2           ; @OD8_GFXCLK_CURVE
	.comm	_GNLD_DPM_UCLK,8,3              ; @GNLD_DPM_UCLK
	.comm	_OD8_SETTING_UCLK_FMAX,8,3      ; @OD8_SETTING_UCLK_FMAX
	.comm	_ATOM_VEGA20_ODFEATURE_UCLK_MAX,8,3 ; @ATOM_VEGA20_ODFEATURE_UCLK_MAX
	.comm	_OD8_UCLK_MAX,4,2               ; @OD8_UCLK_MAX
	.comm	_ATOM_VEGA20_ODFEATURE_POWER_LIMIT,8,3 ; @ATOM_VEGA20_ODFEATURE_POWER_LIMIT
	.comm	_OD8_SETTING_POWER_PERCENTAGE,8,3 ; @OD8_SETTING_POWER_PERCENTAGE
	.comm	_OD8_POWER_LIMIT,4,2            ; @OD8_POWER_LIMIT
	.comm	_GNLD_FAN_CONTROL,8,3           ; @GNLD_FAN_CONTROL
	.comm	_ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT,8,3 ; @ATOM_VEGA20_ODFEATURE_FAN_ACOUSTIC_LIMIT
	.comm	_OD8_SETTING_FAN_ACOUSTIC_LIMIT,8,3 ; @OD8_SETTING_FAN_ACOUSTIC_LIMIT
	.comm	_OD8_ACOUSTIC_LIMIT_SCLK,4,2    ; @OD8_ACOUSTIC_LIMIT_SCLK
	.comm	_ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN,8,3 ; @ATOM_VEGA20_ODFEATURE_FAN_SPEED_MIN
	.comm	_OD8_SETTING_FAN_MIN_SPEED,8,3  ; @OD8_SETTING_FAN_MIN_SPEED
	.comm	_OD8_FAN_SPEED_MIN,4,2          ; @OD8_FAN_SPEED_MIN
	.comm	_GNLD_THERMAL,8,3               ; @GNLD_THERMAL
	.comm	_ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN,8,3 ; @ATOM_VEGA20_ODFEATURE_TEMPERATURE_FAN
	.comm	_OD8_SETTING_FAN_TARGET_TEMP,8,3 ; @OD8_SETTING_FAN_TARGET_TEMP
	.comm	_OD8_TEMPERATURE_FAN,4,2        ; @OD8_TEMPERATURE_FAN
	.comm	_ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM,8,3 ; @ATOM_VEGA20_ODFEATURE_TEMPERATURE_SYSTEM
	.comm	_OD8_SETTING_OPERATING_TEMP_MAX,8,3 ; @OD8_SETTING_OPERATING_TEMP_MAX
	.comm	_OD8_TEMPERATURE_SYSTEM,4,2     ; @OD8_TEMPERATURE_SYSTEM
	.comm	_ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE,8,3 ; @ATOM_VEGA20_ODFEATURE_MEMORY_TIMING_TUNE
	.comm	_OD8_MEMORY_TIMING_TUNE,4,2     ; @OD8_MEMORY_TIMING_TUNE
	.comm	_ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL,8,3 ; @ATOM_VEGA20_ODFEATURE_FAN_ZERO_RPM_CONTROL
	.comm	_OD8_FAN_ZERO_RPM_CONTROL,4,2   ; @OD8_FAN_ZERO_RPM_CONTROL
	.no_dead_strip	_vega20_od8_set_feature_capabilities
.subsections_via_symbols
