	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv6xx_dpm_force_performance_level ## -- Begin function rv6xx_dpm_force_performance_level
	.p2align	4, 0x90
_rv6xx_dpm_force_performance_level:     ## @rv6xx_dpm_force_performance_level
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_rv6xx_get_pi
	movq	%rax, %r15
	movq	_RADEON_DPM_FORCED_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	$3, (%r15)
	jmp	LBB0_5
LBB0_2:
	movq	_RADEON_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$2, (%r15)
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%r15)
LBB0_5:
	movq	%rbx, %rdi
	callq	_rv6xx_clear_vc
	movq	_R600_POWER_LEVEL_LOW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_r600_power_level_enable
	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
	movl	(%r12), %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
	movq	_R600_POWER_LEVEL_MEDIUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_r600_power_level_enable
	movq	%rbx, %rdi
	callq	_rv6xx_enable_medium
	movq	%rbx, %rdi
	callq	_rv6xx_enable_high
	cmpl	$3, (%r15)
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_r600_power_level_enable
LBB0_7:
	movq	%rbx, %rdi
	callq	_rv6xx_program_vc
	movq	%rbx, %rdi
	callq	_rv6xx_program_at
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ## @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ## @RADEON_DPM_FORCED_LEVEL_LOW
	.comm	_R600_POWER_LEVEL_LOW,4,2       ## @R600_POWER_LEVEL_LOW
	.comm	_R600_POWER_LEVEL_HIGH,4,2      ## @R600_POWER_LEVEL_HIGH
	.comm	_R600_POWER_LEVEL_MEDIUM,4,2    ## @R600_POWER_LEVEL_MEDIUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv6xx_dpm_force_performance_level ; -- Begin function rv6xx_dpm_force_performance_level
	.p2align	2
_rv6xx_dpm_force_performance_level:     ; @rv6xx_dpm_force_performance_level
	.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	x19, x1
	mov	x20, x0
	bl	_rv6xx_get_pi
	mov	x21, x0
Lloh0:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #3
	str	w8, [x21]
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #2
	str	w8, [x21]
	b	LBB0_5
LBB0_4:
	str	wzr, [x21]
LBB0_5:
	mov	x0, x20
	bl	_rv6xx_clear_vc
Lloh6:
	adrp	x22, _R600_POWER_LEVEL_LOW@GOTPAGE
Lloh7:
	ldr	x22, [x22, _R600_POWER_LEVEL_LOW@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_r600_power_level_enable
	mov	x0, x20
	mov	w1, #65535
	mov	w2, #65535
	mov	w3, #65535
	mov	w4, #65535
	bl	_r600_set_at
	ldr	w1, [x22]
	mov	x0, x20
	bl	_r600_wait_for_power_level
Lloh8:
	adrp	x8, _R600_POWER_LEVEL_HIGH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R600_POWER_LEVEL_HIGH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_r600_power_level_enable
Lloh11:
	adrp	x8, _R600_POWER_LEVEL_MEDIUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R600_POWER_LEVEL_MEDIUM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_r600_power_level_enable
	mov	x0, x20
	bl	_rv6xx_enable_medium
	mov	x0, x20
	bl	_rv6xx_enable_high
	ldr	w8, [x21]
	cmp	w8, #3
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_r600_power_level_enable
LBB0_7:
	mov	x0, x20
	bl	_rv6xx_program_vc
	mov	x0, x20
	bl	_rv6xx_program_at
	str	w19, [x20]
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ; @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ; @RADEON_DPM_FORCED_LEVEL_LOW
	.comm	_R600_POWER_LEVEL_LOW,4,2       ; @R600_POWER_LEVEL_LOW
	.comm	_R600_POWER_LEVEL_HIGH,4,2      ; @R600_POWER_LEVEL_HIGH
	.comm	_R600_POWER_LEVEL_MEDIUM,4,2    ; @R600_POWER_LEVEL_MEDIUM
.subsections_via_symbols
