	.file	"extr_si_dpm.c_si_dpm_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"si_construct_voltage_tables failed\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"si_upload_firmware failed\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"si_process_firmware_header failed\n"
	.align 8
.LC3:
	.string	"si_initial_switch_from_arb_f0_to_f1 failed\n"
	.section	.rodata.str1.1
.LC4:
	.string	"si_init_smc_table failed\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"si_init_smc_spll_table failed\n"
	.align 8
.LC6:
	.string	"si_init_arb_table_index failed\n"
	.align 8
.LC7:
	.string	"si_populate_mc_reg_table failed\n"
	.align 8
.LC8:
	.string	"si_initialize_smc_cac_tables failed\n"
	.align 8
.LC9:
	.string	"si_initialize_hardware_cac_manager failed\n"
	.align 8
.LC10:
	.string	"si_initialize_smc_dte_tables failed\n"
	.align 8
.LC11:
	.string	"si_populate_smc_tdp_limits failed\n"
	.align 8
.LC12:
	.string	"si_populate_smc_tdp_limits_2 failed\n"
	.align 8
.LC13:
	.string	"si_notify_smc_display_change failed\n"
	.text
	.p2align 4
	.globl	si_dpm_enable
	.type	si_dpm_enable, @function
si_dpm_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	rv770_get_pi@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	evergreen_get_pi@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	si_get_pi@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR 0[rbp]
	mov	r12, rax
	call	si_is_smc_running@PLT
	test	rax, rax
	jne	.L38
	cmp	QWORD PTR 16[r14], 0
	jne	.L4
	cmp	QWORD PTR [r12], 0
	jne	.L4
	cmp	QWORD PTR 24[r14], 0
	je	.L9
.L29:
	mov	rdi, rbp
	call	si_get_mvdd_configuration@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, 1
	mov	rdi, rbp
	call	si_enable_voltage_control@PLT
	cmp	QWORD PTR 24[r14], 0
	jne	.L29
.L6:
	cmp	QWORD PTR 16[r14], 0
	jne	.L10
	cmp	QWORD PTR [r12], 0
	je	.L9
.L10:
	mov	rdi, rbp
	call	si_construct_voltage_tables@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L39
.L9:
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L40
.L12:
	cmp	QWORD PTR 8[r14], 0
	jne	.L41
.L14:
	cmp	QWORD PTR [r14], 0
	jne	.L42
.L15:
	mov	rdi, rbp
	call	si_setup_bsp@PLT
	mov	rdi, rbp
	call	si_program_git@PLT
	mov	rdi, rbp
	call	si_program_tp@PLT
	mov	rdi, rbp
	call	si_program_tpp@PLT
	mov	rdi, rbp
	call	si_program_sstp@PLT
	mov	rdi, rbp
	call	si_enable_display_gap@PLT
	mov	rdi, rbp
	call	si_program_vc@PLT
	mov	rdi, rbp
	call	si_upload_firmware@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L43
	mov	rdi, rbp
	call	si_process_firmware_header@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L44
	mov	rdi, rbp
	call	si_initial_switch_from_arb_f0_to_f1@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L45
	mov	rdi, rbp
	call	si_init_smc_table@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L46
	mov	rdi, rbp
	call	si_init_smc_spll_table@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L47
	mov	rdi, rbp
	call	si_init_arb_table_index@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L48
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L22
	mov	rsi, r13
	mov	rdi, rbp
	call	si_populate_mc_reg_table@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L22
	lea	rdi, .LC7[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	si_initialize_smc_cac_tables@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L49
	mov	rdi, rbp
	call	si_initialize_hardware_cac_manager@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L50
	mov	rdi, rbp
	call	si_initialize_smc_dte_tables@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L51
	mov	rsi, r13
	mov	rdi, rbp
	call	si_populate_smc_tdp_limits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L52
	mov	rsi, r13
	mov	rdi, rbp
	call	si_populate_smc_tdp_limits_2@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L53
	mov	rdi, rbp
	call	si_program_response_times@PLT
	mov	rdi, rbp
	call	si_program_ds_registers@PLT
	mov	rdi, rbp
	call	si_dpm_start_smc@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	si_notify_smc_display_change@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L54
	mov	esi, 1
	mov	rdi, rbp
	call	si_enable_sclk_control@PLT
	mov	rdi, rbp
	call	si_start_dpm@PLT
	mov	esi, DWORD PTR RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	si_enable_auto_throttle_source@PLT
	mov	rdi, rbp
	call	si_thermal_start_thermal_controller@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	ni_update_current_ps@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rdi, .LC1[rip]
	call	DRM_ERROR@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	si_enable_thermal_protection@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L41:
	mov	esi, 1
	mov	rdi, rbp
	call	si_enable_spread_spectrum@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, rbp
	call	si_initialize_mc_reg_table@PLT
	test	eax, eax
	je	.L12
	mov	DWORD PTR [rbx], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rdi, .LC2[rip]
	call	DRM_ERROR@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L46:
	lea	rdi, .LC4[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L49:
	lea	rdi, .LC8[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rdi, .LC5[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	lea	rdi, .LC6[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L50:
	lea	rdi, .LC9[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
.L51:
	lea	rdi, .LC10[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
.L52:
	lea	rdi, .LC11[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
.L53:
	lea	rdi, .LC12[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
.L54:
	lea	rdi, .LC13[rip]
	call	DRM_ERROR@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	si_dpm_enable, .-si_dpm_enable
	.comm	RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_si_dpm.c_si_dpm_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"si_construct_voltage_tables failed\012\000"
	.align	2
.LC1:
	.ascii	"si_upload_firmware failed\012\000"
	.align	2
.LC2:
	.ascii	"si_process_firmware_header failed\012\000"
	.align	2
.LC3:
	.ascii	"si_initial_switch_from_arb_f0_to_f1 failed\012\000"
	.align	2
.LC4:
	.ascii	"si_init_smc_table failed\012\000"
	.align	2
.LC5:
	.ascii	"si_init_smc_spll_table failed\012\000"
	.align	2
.LC6:
	.ascii	"si_init_arb_table_index failed\012\000"
	.align	2
.LC7:
	.ascii	"si_populate_mc_reg_table failed\012\000"
	.align	2
.LC8:
	.ascii	"si_initialize_smc_cac_tables failed\012\000"
	.align	2
.LC9:
	.ascii	"si_initialize_hardware_cac_manager failed\012\000"
	.align	2
.LC10:
	.ascii	"si_initialize_smc_dte_tables failed\012\000"
	.align	2
.LC11:
	.ascii	"si_populate_smc_tdp_limits failed\012\000"
	.align	2
.LC12:
	.ascii	"si_populate_smc_tdp_limits_2 failed\012\000"
	.align	2
.LC13:
	.ascii	"si_notify_smc_display_change failed\012\000"
	.text
	.align	2
	.global	si_dpm_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_dpm_enable, %function
si_dpm_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	rv770_get_pi
	mov	r8, r0
	mov	r0, r4
	bl	evergreen_get_pi
	mov	r6, r0
	mov	r0, r4
	bl	si_get_pi
	mov	r5, r0
	mov	r0, r4
	ldr	r7, [r4]
	bl	si_is_smc_running
	cmp	r0, #0
	bne	.L50
	ldr	r3, [r8, #8]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r8, #12]
	cmp	r3, #0
	beq	.L9
.L29:
	mov	r0, r4
	bl	si_get_mvdd_configuration
	b	.L6
.L4:
	mov	r1, #1
	mov	r0, r4
	bl	si_enable_voltage_control
	ldr	r3, [r8, #12]
	cmp	r3, #0
	bne	.L29
.L6:
	ldr	r3, [r8, #8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L9
.L10:
	mov	r0, r4
	bl	si_construct_voltage_tables
	subs	r5, r0, #0
	bne	.L51
.L9:
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L52
.L12:
	ldr	r3, [r8, #4]
	cmp	r3, #0
	bne	.L53
.L14:
	ldr	r3, [r8]
	cmp	r3, #0
	bne	.L54
.L15:
	mov	r0, r4
	bl	si_setup_bsp
	mov	r0, r4
	bl	si_program_git
	mov	r0, r4
	bl	si_program_tp
	mov	r0, r4
	bl	si_program_tpp
	mov	r0, r4
	bl	si_program_sstp
	mov	r0, r4
	bl	si_enable_display_gap
	mov	r0, r4
	bl	si_program_vc
	mov	r0, r4
	bl	si_upload_firmware
	subs	r5, r0, #0
	bne	.L55
	mov	r0, r4
	bl	si_process_firmware_header
	subs	r5, r0, #0
	bne	.L56
	mov	r0, r4
	bl	si_initial_switch_from_arb_f0_to_f1
	subs	r5, r0, #0
	bne	.L57
	mov	r0, r4
	bl	si_init_smc_table
	subs	r5, r0, #0
	bne	.L58
	mov	r0, r4
	bl	si_init_smc_spll_table
	subs	r5, r0, #0
	bne	.L59
	mov	r0, r4
	bl	si_init_arb_table_index
	subs	r5, r0, #0
	bne	.L60
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L22
	mov	r1, r7
	mov	r0, r4
	bl	si_populate_mc_reg_table
	subs	r5, r0, #0
	beq	.L22
	ldr	r0, .L67
	bl	DRM_ERROR
	b	.L1
.L50:
	ldr	r3, .L67+4
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L57:
	ldr	r0, .L67+8
	bl	DRM_ERROR
	b	.L1
.L22:
	mov	r0, r4
	bl	si_initialize_smc_cac_tables
	subs	r5, r0, #0
	bne	.L61
	mov	r0, r4
	bl	si_initialize_hardware_cac_manager
	subs	r5, r0, #0
	bne	.L62
	mov	r0, r4
	bl	si_initialize_smc_dte_tables
	subs	r5, r0, #0
	bne	.L63
	mov	r1, r7
	mov	r0, r4
	bl	si_populate_smc_tdp_limits
	subs	r5, r0, #0
	bne	.L64
	mov	r1, r7
	mov	r0, r4
	bl	si_populate_smc_tdp_limits_2
	subs	r5, r0, #0
	bne	.L65
	mov	r0, r4
	bl	si_program_response_times
	mov	r0, r4
	bl	si_program_ds_registers
	mov	r0, r4
	bl	si_dpm_start_smc
	mov	r1, r5
	mov	r0, r4
	bl	si_notify_smc_display_change
	subs	r5, r0, #0
	bne	.L66
	mov	r1, #1
	mov	r0, r4
	bl	si_enable_sclk_control
	mov	r0, r4
	bl	si_start_dpm
	ldr	r3, .L67+12
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	si_enable_auto_throttle_source
	mov	r0, r4
	bl	si_thermal_start_thermal_controller
	mov	r1, r7
	mov	r0, r4
	bl	ni_update_current_ps
	b	.L1
.L55:
	ldr	r0, .L67+16
	bl	DRM_ERROR
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L54:
	mov	r1, #1
	mov	r0, r4
	bl	si_enable_thermal_protection
	b	.L15
.L53:
	mov	r1, #1
	mov	r0, r4
	bl	si_enable_spread_spectrum
	b	.L14
.L52:
	mov	r0, r4
	bl	si_initialize_mc_reg_table
	cmp	r0, #0
	movne	r3, #0
	strne	r3, [r6]
	b	.L12
.L56:
	ldr	r0, .L67+20
	bl	DRM_ERROR
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L51:
	ldr	r0, .L67+24
	bl	DRM_ERROR
	b	.L1
.L58:
	ldr	r0, .L67+28
	bl	DRM_ERROR
	b	.L1
.L61:
	ldr	r0, .L67+32
	bl	DRM_ERROR
	b	.L1
.L59:
	ldr	r0, .L67+36
	bl	DRM_ERROR
	b	.L1
.L60:
	ldr	r0, .L67+40
	bl	DRM_ERROR
	b	.L1
.L62:
	ldr	r0, .L67+44
	bl	DRM_ERROR
	b	.L1
.L63:
	ldr	r0, .L67+48
	bl	DRM_ERROR
	b	.L1
.L64:
	ldr	r0, .L67+52
	bl	DRM_ERROR
	b	.L1
.L65:
	ldr	r0, .L67+56
	bl	DRM_ERROR
	b	.L1
.L66:
	ldr	r0, .L67+60
	bl	DRM_ERROR
	b	.L1
.L68:
	.align	2
.L67:
	.word	.LC7
	.word	EINVAL
	.word	.LC3
	.word	RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC4
	.word	.LC8
	.word	.LC5
	.word	.LC6
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	si_dpm_enable, .-si_dpm_enable
	.comm	RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
