	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_set_pm_profile
_radeon_set_pm_profile:                 ## @radeon_set_pm_profile
	.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	%rcx, %r15
	movq	%rdx, %r12
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_get_drvdata
	movq	(%rax), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_PM_METHOD_PROFILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.1:
	leaq	L_.str(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_13
LBB0_2:
	movq	_PM_PROFILE_DEFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_PM_PROFILE_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_PM_PROFILE_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_PM_PROFILE_MID@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_PM_PROFILE_HIGH@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_radeon_pm_update_profile
	movq	%rbx, %rdi
	callq	_radeon_pm_set_clocks
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_METHOD_PROFILE,8,3          ## @PM_METHOD_PROFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

	.comm	_PM_PROFILE_DEFAULT,4,2         ## @PM_PROFILE_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"auto"

	.comm	_PM_PROFILE_AUTO,4,2            ## @PM_PROFILE_AUTO
L_.str.2:                               ## @.str.2
	.asciz	"low"

	.comm	_PM_PROFILE_LOW,4,2             ## @PM_PROFILE_LOW
L_.str.3:                               ## @.str.3
	.asciz	"mid"

	.comm	_PM_PROFILE_MID,4,2             ## @PM_PROFILE_MID
L_.str.4:                               ## @.str.4
	.asciz	"high"

	.comm	_PM_PROFILE_HIGH,4,2            ## @PM_PROFILE_HIGH
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_radeon_set_pm_profile
.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_profile
_radeon_set_pm_profile:                 ; @radeon_set_pm_profile
	.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, x3
	mov	x22, x2
	bl	_to_pci_dev
	bl	_pci_get_drvdata
	ldr	x21, [x0]
	add	x20, x21, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PM_METHOD_PROFILE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PM_METHOD_PROFILE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.3:
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.5:
Lloh11:
	adrp	x23, l_.str.4@PAGE
Lloh12:
	add	x23, x23, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_strncmp
	cbz	x0, LBB0_11
LBB0_6:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_13
LBB0_7:
Lloh16:
	adrp	x8, _PM_PROFILE_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PM_PROFILE_DEFAULT@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh18:
	adrp	x8, _PM_PROFILE_AUTO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PM_PROFILE_AUTO@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x8, _PM_PROFILE_LOW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PM_PROFILE_LOW@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh22:
	adrp	x8, _PM_PROFILE_MID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PM_PROFILE_MID@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _PM_PROFILE_HIGH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PM_PROFILE_HIGH@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	mov	x0, x21
	bl	_radeon_pm_update_profile
	mov	x0, x21
	bl	_radeon_pm_set_clocks
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_METHOD_PROFILE,8,3          ; @PM_METHOD_PROFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

	.comm	_PM_PROFILE_DEFAULT,4,2         ; @PM_PROFILE_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"auto"

	.comm	_PM_PROFILE_AUTO,4,2            ; @PM_PROFILE_AUTO
l_.str.2:                               ; @.str.2
	.asciz	"low"

	.comm	_PM_PROFILE_LOW,4,2             ; @PM_PROFILE_LOW
l_.str.3:                               ; @.str.3
	.asciz	"mid"

	.comm	_PM_PROFILE_MID,4,2             ; @PM_PROFILE_MID
l_.str.4:                               ; @.str.4
	.asciz	"high"

	.comm	_PM_PROFILE_HIGH,4,2            ; @PM_PROFILE_HIGH
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_radeon_set_pm_profile
.subsections_via_symbols
