	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_dpm_change_power_state_locked
_amdgpu_dpm_change_power_state_locked:  ## @amdgpu_dpm_change_power_state_locked
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -20(%rbp)
	cmpl	$0, 72(%rdi)
	je	LBB0_21
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_2
LBB0_5:
	movq	%rax, %rsi
	jmp	LBB0_6
LBB0_2:
	cmpq	$0, 24(%rbx)
	jne	LBB0_6
## %bb.3:
	cmpl	$0, 68(%rbx)
	je	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_amdgpu_dpm_pick_power_state
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	movq	%rax, %r14
	movq	%rax, 48(%rbx)
	movq	_amdgpu_dpm@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	80(%rbx), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	56(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_print_power_state
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	movq	48(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_print_power_state
LBB0_10:
	movl	64(%rbx), %eax
	movl	%eax, (%r14)
	movq	80(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_display_configuration_changed
LBB0_12:
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_pre_set_power_state
	testl	%eax, %eax
	je	LBB0_13
LBB0_21:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	movq	80(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_16
## %bb.14:
	movq	48(%rbx), %rdx
	movq	56(%rbx), %rsi
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_check_state_equal
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$0, -20(%rbp)
	jmp	LBB0_17
LBB0_16:
	cmpl	$0, -20(%rbp)
	jne	LBB0_21
LBB0_17:
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_set_power_state
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_post_set_power_state
	movl	32(%rbx), %eax
	movl	40(%rbx), %ecx
	movl	%ecx, 44(%rbx)
	movl	%eax, 36(%rbx)
	movq	80(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.18:
	cmpq	$0, 24(%rbx)
	movl	16(%rbx), %r14d
	je	LBB0_20
## %bb.19:
	movq	_AMD_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_force_performance_level
	movl	%r14d, 16(%rbx)
	jmp	LBB0_21
LBB0_4:
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_20:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_amdgpu_dpm_force_performance_level
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_dpm,4,2                 ## @amdgpu_dpm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"switching from power state:\n"

L_.str.1:                               ## @.str.1
	.asciz	"switching to power state:\n"

	.comm	_AMD_DPM_FORCED_LEVEL_LOW,4,2   ## @AMD_DPM_FORCED_LEVEL_LOW
	.no_dead_strip	_amdgpu_dpm_change_power_state_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_dpm_change_power_state_locked
_amdgpu_dpm_change_power_state_locked:  ; @amdgpu_dpm_change_power_state_locked
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	wzr, [sp, #12]
	ldr	w8, [x0, #72]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x19, x0
	ldp	x8, x1, [x0]
	cmp	x8, x1
	b.ne	LBB0_3
LBB0_2:
	mov	x1, x8
	b	LBB0_5
LBB0_3:
	ldr	x9, [x19, #24]
	cbnz	x9, LBB0_5
; %bb.4:
	ldr	w9, [x19, #68]
	cbz	w9, LBB0_20
LBB0_5:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_amdgpu_dpm_pick_power_state
	cbz	x0, LBB0_12
; %bb.6:
	mov	x20, x0
	str	x0, [x19, #48]
Lloh0:
	adrp	x8, _amdgpu_dpm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amdgpu_dpm@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_9
; %bb.8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	x1, [x19, #56]
	mov	x0, x19
	bl	_amdgpu_dpm_print_power_state
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	x1, [x19, #48]
	mov	x0, x19
	bl	_amdgpu_dpm_print_power_state
LBB0_9:
	ldr	w8, [x19, #64]
	str	w8, [x20]
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_amdgpu_dpm_display_configuration_changed
LBB0_11:
	mov	x0, x19
	bl	_amdgpu_dpm_pre_set_power_state
	cbz	w0, LBB0_13
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_16
; %bb.14:
	ldp	x2, x1, [x19, #48]
	add	x3, sp, #12
	mov	x0, x19
	bl	_amdgpu_dpm_check_state_equal
	cbz	x0, LBB0_16
; %bb.15:
	str	wzr, [sp, #12]
	b	LBB0_17
LBB0_16:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_12
LBB0_17:
	mov	x0, x19
	bl	_amdgpu_dpm_set_power_state
	mov	x0, x19
	bl	_amdgpu_dpm_post_set_power_state
	ldr	w8, [x19, #40]
	str	w8, [x19, #44]
	ldr	w8, [x19, #32]
	str	w8, [x19, #36]
	ldr	x8, [x19, #80]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.18:
	ldr	x8, [x19, #24]
	ldr	w20, [x19, #16]
	cbz	x8, LBB0_21
; %bb.19:
Lloh7:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_amdgpu_dpm_force_performance_level
	str	w20, [x19, #16]
	b	LBB0_12
LBB0_20:
	str	x8, [x19, #8]
	b	LBB0_2
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_amdgpu_dpm_force_performance_level
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_dpm,4,2                 ; @amdgpu_dpm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"switching from power state:\n"

l_.str.1:                               ; @.str.1
	.asciz	"switching to power state:\n"

	.comm	_AMD_DPM_FORCED_LEVEL_LOW,4,2   ; @AMD_DPM_FORCED_LEVEL_LOW
	.no_dead_strip	_amdgpu_dpm_change_power_state_locked
.subsections_via_symbols
