	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_get_dpm_forced_performance_level
_radeon_get_dpm_forced_performance_level: ## @radeon_get_dpm_forced_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	8(%rax), %rdx
	movl	4(%rdx), %ecx
	movq	_RADEON_IS_PX@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	_DRM_SWITCH_POWER_ON@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
LBB0_3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RADEON_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_RADEON_DPM_FORCED_LEVEL_AUTO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rcx
	cmovneq	%rdx, %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.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	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"off\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

	.comm	_RADEON_DPM_FORCED_LEVEL_AUTO,4,2 ## @RADEON_DPM_FORCED_LEVEL_AUTO
L_.str.2:                               ## @.str.2
	.asciz	"auto"

	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ## @RADEON_DPM_FORCED_LEVEL_LOW
L_.str.3:                               ## @.str.3
	.asciz	"low"

L_.str.4:                               ## @.str.4
	.asciz	"high"

	.no_dead_strip	_radeon_get_dpm_forced_performance_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_get_dpm_forced_performance_level
_radeon_get_dpm_forced_performance_level: ; @radeon_get_dpm_forced_performance_level
	.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
	mov	x19, x2
	bl	_dev_get_drvdata
	ldr	x9, [x0, #8]
	ldp	w9, w8, [x9]
Lloh0:
	adrp	x10, _RADEON_IS_PX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RADEON_IS_PX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _DRM_SWITCH_POWER_ON@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_SWITCH_POWER_ON@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _RADEON_DPM_FORCED_LEVEL_AUTO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADEON_DPM_FORCED_LEVEL_AUTO@GOTPAGEOFF]
Lloh11:
	adrp	x10, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, l_.str.4@PAGE
Lloh16:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh17:
	adrp	x12, l_.str.3@PAGE
Lloh18:
	add	x12, x12, l_.str.3@PAGEOFF
	cmp	w8, w10
	csel	x10, x12, x11, eq
Lloh19:
	adrp	x11, l_.str.2@PAGE
Lloh20:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	w8, w9
	csel	x8, x11, x10, eq
	str	x8, [sp]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
Lloh23:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_snprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"off\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

	.comm	_RADEON_DPM_FORCED_LEVEL_AUTO,4,2 ; @RADEON_DPM_FORCED_LEVEL_AUTO
l_.str.2:                               ; @.str.2
	.asciz	"auto"

	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ; @RADEON_DPM_FORCED_LEVEL_LOW
l_.str.3:                               ; @.str.3
	.asciz	"low"

l_.str.4:                               ; @.str.4
	.asciz	"high"

	.no_dead_strip	_radeon_get_dpm_forced_performance_level
.subsections_via_symbols
