	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_set_pm_method
_radeon_set_pm_method:                  ## @radeon_set_pm_method
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	8(%rax), %rbx
	movq	_RADEON_IS_PX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	_DRM_SWITCH_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	8(%rbx), %rax
	movq	_PM_METHOD_DPM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_9
LBB0_5:
	leaq	20(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_PM_METHOD_DYNPM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_DYNPM_STATE_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_DYNPM_ACTION_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
LBB0_7:
	leaq	20(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_DYNPM_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_DYNPM_ACTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_PM_METHOD_PROFILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work_sync
LBB0_8:
	movq	%rbx, %rdi
	callq	_radeon_pm_compute_clocks
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_IS_PX,4,2               ## @RADEON_IS_PX
	.comm	_DRM_SWITCH_POWER_ON,8,3        ## @DRM_SWITCH_POWER_ON
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_PM_METHOD_DPM,8,3              ## @PM_METHOD_DPM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dynpm"

	.comm	_PM_METHOD_DYNPM,8,3            ## @PM_METHOD_DYNPM
	.comm	_DYNPM_STATE_PAUSED,4,2         ## @DYNPM_STATE_PAUSED
	.comm	_DYNPM_ACTION_DEFAULT,4,2       ## @DYNPM_ACTION_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"profile"

	.comm	_DYNPM_STATE_DISABLED,4,2       ## @DYNPM_STATE_DISABLED
	.comm	_DYNPM_ACTION_NONE,4,2          ## @DYNPM_ACTION_NONE
	.comm	_PM_METHOD_PROFILE,8,3          ## @PM_METHOD_PROFILE
	.no_dead_strip	_radeon_set_pm_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_set_pm_method
_radeon_set_pm_method:                  ; @radeon_set_pm_method
	.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, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _RADEON_IS_PX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_IS_PX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _DRM_SWITCH_POWER_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_SWITCH_POWER_ON@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _PM_METHOD_DPM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PM_METHOD_DPM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_strncmp
	cbz	x0, LBB0_7
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_6:
	add	x21, x20, #20
	mov	x0, x21
	bl	_mutex_lock
Lloh16:
	adrp	x8, _PM_METHOD_DYNPM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PM_METHOD_DYNPM@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x20, #8]
Lloh19:
	adrp	x8, _DYNPM_STATE_PAUSED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DYNPM_STATE_PAUSED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _DYNPM_ACTION_DEFAULT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DYNPM_ACTION_DEFAULT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_8
LBB0_7:
	add	x21, x20, #20
	mov	x0, x21
	bl	_mutex_lock
Lloh25:
	adrp	x8, _DYNPM_STATE_DISABLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DYNPM_STATE_DISABLED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _DYNPM_ACTION_NONE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DYNPM_ACTION_NONE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh31:
	adrp	x8, _PM_METHOD_PROFILE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PM_METHOD_PROFILE@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, x20, #16
	bl	_cancel_delayed_work_sync
LBB0_8:
	mov	x0, x20
	bl	_radeon_pm_compute_clocks
LBB0_9:
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_IS_PX,4,2               ; @RADEON_IS_PX
	.comm	_DRM_SWITCH_POWER_ON,8,3        ; @DRM_SWITCH_POWER_ON
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_PM_METHOD_DPM,8,3              ; @PM_METHOD_DPM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dynpm"

	.comm	_PM_METHOD_DYNPM,8,3            ; @PM_METHOD_DYNPM
	.comm	_DYNPM_STATE_PAUSED,4,2         ; @DYNPM_STATE_PAUSED
	.comm	_DYNPM_ACTION_DEFAULT,4,2       ; @DYNPM_ACTION_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"profile"

	.comm	_DYNPM_STATE_DISABLED,4,2       ; @DYNPM_STATE_DISABLED
	.comm	_DYNPM_ACTION_NONE,4,2          ; @DYNPM_ACTION_NONE
	.comm	_PM_METHOD_PROFILE,8,3          ; @PM_METHOD_PROFILE
	.no_dead_strip	_radeon_set_pm_method
.subsections_via_symbols
