	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv6xx_dpm_disable              ## -- Begin function rv6xx_dpm_disable
	.p2align	4, 0x90
_rv6xx_dpm_disable:                     ## @rv6xx_dpm_disable
	.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	%rdi, %rbx
	callq	_rv6xx_get_pi
	movq	%rax, %r14
	movq	32(%rbx), %r15
	movq	%rbx, %rdi
	callq	_r600_dynamicpm_enabled
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	_R600_POWER_LEVEL_LOW@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_r600_power_level_enable
	movq	_R600_POWER_LEVEL_MEDIUM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_r600_power_level_enable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rv6xx_enable_display_gap
	movq	%rbx, %rdi
	callq	_rv6xx_clear_vc
	movq	%rbx, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$65535, %r8d                    ## imm = 0xFFFF
	callq	_r600_set_at
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_r600_enable_thermal_protection
LBB0_3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_r600_wait_for_power_level
	movq	_R600_POWER_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_r600_power_level_enable
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_r600_power_level_enable
	movq	_ATOM_PP_PLATFORM_CAP_BACKBIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rv6xx_enable_backbias
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rv6xx_enable_spread_spectrum
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_rv6xx_enable_static_voltage_control
LBB0_7:
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_rv6xx_enable_dynamic_pcie_gen2
LBB0_9:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.10:
	movl	16(%rbx), %edi
	callq	_r600_is_internal_thermal_sensor
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_radeon_irq_set
LBB0_12:
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_r600_gfx_clockgating_enable
LBB0_14:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r600_stop_dpm                  ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_POWER_LEVEL_LOW,4,2       ## @R600_POWER_LEVEL_LOW
	.comm	_R600_POWER_LEVEL_MEDIUM,4,2    ## @R600_POWER_LEVEL_MEDIUM
	.comm	_R600_POWER_LEVEL_HIGH,4,2      ## @R600_POWER_LEVEL_HIGH
	.comm	_ATOM_PP_PLATFORM_CAP_BACKBIAS,4,2 ## @ATOM_PP_PLATFORM_CAP_BACKBIAS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv6xx_dpm_disable              ; -- Begin function rv6xx_dpm_disable
	.p2align	2
_rv6xx_dpm_disable:                     ; @rv6xx_dpm_disable
	.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	x19, x0
	bl	_rv6xx_get_pi
	mov	x20, x0
	ldr	x21, [x19, #32]
	mov	x0, x19
	bl	_r600_dynamicpm_enabled
	cbz	w0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x23, _R600_POWER_LEVEL_LOW@GOTPAGE
Lloh1:
	ldr	x23, [x23, _R600_POWER_LEVEL_LOW@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_r600_power_level_enable
Lloh2:
	adrp	x22, _R600_POWER_LEVEL_MEDIUM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _R600_POWER_LEVEL_MEDIUM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_r600_power_level_enable
	mov	x0, x19
	mov	w1, #0
	bl	_rv6xx_enable_display_gap
	mov	x0, x19
	bl	_rv6xx_clear_vc
	mov	x0, x19
	mov	w1, #65535
	mov	w2, #65535
	mov	w3, #65535
	mov	w4, #65535
	bl	_r600_set_at
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_r600_enable_thermal_protection
LBB0_3:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_r600_wait_for_power_level
Lloh4:
	adrp	x8, _R600_POWER_LEVEL_HIGH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R600_POWER_LEVEL_HIGH@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_r600_power_level_enable
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_r600_power_level_enable
	ldr	w8, [x19, #24]
Lloh7:
	adrp	x9, _ATOM_PP_PLATFORM_CAP_BACKBIAS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ATOM_PP_PLATFORM_CAP_BACKBIAS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_rv6xx_enable_backbias
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_rv6xx_enable_spread_spectrum
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_rv6xx_enable_static_voltage_control
LBB0_7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_rv6xx_enable_dynamic_pcie_gen2
LBB0_9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w0, [x19, #16]
	bl	_r600_is_internal_thermal_sensor
	cbz	x0, LBB0_12
; %bb.11:
	str	wzr, [x19]
	mov	x0, x19
	bl	_radeon_irq_set
LBB0_12:
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	bl	_r600_gfx_clockgating_enable
LBB0_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	_r600_stop_dpm
LBB0_15:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_POWER_LEVEL_LOW,4,2       ; @R600_POWER_LEVEL_LOW
	.comm	_R600_POWER_LEVEL_MEDIUM,4,2    ; @R600_POWER_LEVEL_MEDIUM
	.comm	_R600_POWER_LEVEL_HIGH,4,2      ; @R600_POWER_LEVEL_HIGH
	.comm	_ATOM_PP_PLATFORM_CAP_BACKBIAS,4,2 ; @ATOM_PP_PLATFORM_CAP_BACKBIAS
.subsections_via_symbols
