	.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, %r12
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_get_drvdata
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_5
LBB0_1:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_PM_METHOD_DYNPM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_DYNPM_STATE_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_DYNPM_ACTION_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
LBB0_3:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_DYNPM_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_DYNPM_ACTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_PM_METHOD_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_cancel_delayed_work_sync
LBB0_4:
	movq	%r15, %rdi
	callq	_radeon_pm_compute_clocks
LBB0_5:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dynpm"

	.comm	_PM_METHOD_DYNPM,4,2            ## @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,4,2          ## @PM_METHOD_PROFILE
	.comm	_EINVAL,8,3                     ## @EINVAL
	.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	_to_pci_dev
	bl	_pci_get_drvdata
	ldr	x20, [x0]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	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_3
; %bb.1:
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	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_4
; %bb.2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_3:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh7:
	adrp	x8, _PM_METHOD_DYNPM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PM_METHOD_DYNPM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _DYNPM_STATE_PAUSED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DYNPM_STATE_PAUSED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x20, #16]
Lloh13:
	adrp	x9, _DYNPM_ACTION_DEFAULT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DYNPM_ACTION_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #8]
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh16:
	adrp	x8, _DYNPM_STATE_DISABLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DYNPM_STATE_DISABLED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh19:
	adrp	x8, _DYNPM_ACTION_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DYNPM_ACTION_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _PM_METHOD_PROFILE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PM_METHOD_PROFILE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_cancel_delayed_work_sync
LBB0_5:
	mov	x0, x20
	bl	_radeon_pm_compute_clocks
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dynpm"

	.comm	_PM_METHOD_DYNPM,4,2            ; @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,4,2          ; @PM_METHOD_PROFILE
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_radeon_set_pm_method
.subsections_via_symbols
