	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_get_dpm_forced_performance_level
_amdgpu_get_dpm_forced_performance_level: ## @amdgpu_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_1
## %bb.24:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_AMD_IS_PX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_DRM_SWITCH_POWER_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
LBB0_3:
	movq	%r15, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_smu_get_performance_level
	jmp	LBB0_8
LBB0_25:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
LBB0_5:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_amdgpu_dpm_get_performance_level
	jmp	LBB0_8
LBB0_7:
	movl	4(%r15), %eax
LBB0_8:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AMD_DPM_FORCED_LEVEL_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_23
LBB0_10:
	movq	_AMD_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_23
LBB0_12:
	movq	_AMD_DPM_FORCED_LEVEL_HIGH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_23
LBB0_14:
	movq	_AMD_DPM_FORCED_LEVEL_MANUAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_23
LBB0_16:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rcx
	jmp	LBB0_23
LBB0_18:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.7(%rip), %rcx
	jmp	LBB0_23
LBB0_20:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.8(%rip), %rcx
	jmp	LBB0_23
LBB0_22:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.10(%rip), %rcx
	cmoveq	%rax, %rcx
LBB0_23:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IS_PX,4,2                  ## @AMD_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	_AMD_DPM_FORCED_LEVEL_AUTO,4,2  ## @AMD_DPM_FORCED_LEVEL_AUTO
L_.str.2:                               ## @.str.2
	.asciz	"auto"

	.comm	_AMD_DPM_FORCED_LEVEL_LOW,4,2   ## @AMD_DPM_FORCED_LEVEL_LOW
L_.str.3:                               ## @.str.3
	.asciz	"low"

	.comm	_AMD_DPM_FORCED_LEVEL_HIGH,4,2  ## @AMD_DPM_FORCED_LEVEL_HIGH
L_.str.4:                               ## @.str.4
	.asciz	"high"

	.comm	_AMD_DPM_FORCED_LEVEL_MANUAL,4,2 ## @AMD_DPM_FORCED_LEVEL_MANUAL
L_.str.5:                               ## @.str.5
	.asciz	"manual"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD
L_.str.6:                               ## @.str.6
	.asciz	"profile_standard"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK
L_.str.7:                               ## @.str.7
	.asciz	"profile_min_sclk"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK
L_.str.8:                               ## @.str.8
	.asciz	"profile_min_mclk"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_PEAK
L_.str.9:                               ## @.str.9
	.asciz	"profile_peak"

L_.str.10:                              ## @.str.10
	.asciz	"unknown"

	.no_dead_strip	_amdgpu_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 amdgpu_get_dpm_forced_performance_level
_amdgpu_get_dpm_forced_performance_level: ; @amdgpu_get_dpm_forced_performance_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_26
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AMD_IS_PX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_IS_PX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21]
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_6
LBB0_4:
	mov	x0, x20
	bl	_is_support_sw_smu
	cbz	x0, LBB0_7
; %bb.5:
	add	x0, x20, #16
	bl	_smu_get_performance_level
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_snprintf
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_amdgpu_dpm_get_performance_level
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20, #4]
LBB0_10:
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_AUTO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_AUTO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, l_.str.2@PAGE
Lloh18:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_12:
Lloh19:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.13:
Lloh22:
	adrp	x8, l_.str.3@PAGE
Lloh23:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_14:
Lloh24:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_HIGH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_HIGH@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, l_.str.4@PAGE
Lloh28:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_16:
Lloh29:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_MANUAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_MANUAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.17:
Lloh32:
	adrp	x8, l_.str.5@PAGE
Lloh33:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_18:
Lloh34:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.19:
Lloh37:
	adrp	x8, l_.str.6@PAGE
Lloh38:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_25
LBB0_20:
Lloh39:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.21:
Lloh42:
	adrp	x8, l_.str.7@PAGE
Lloh43:
	add	x8, x8, l_.str.7@PAGEOFF
	b	LBB0_25
LBB0_22:
Lloh44:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.23:
Lloh47:
	adrp	x8, l_.str.8@PAGE
Lloh48:
	add	x8, x8, l_.str.8@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh49:
	adrp	x8, _AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, l_.str.10@PAGE
Lloh53:
	add	x9, x9, l_.str.10@PAGEOFF
Lloh54:
	adrp	x10, l_.str.9@PAGE
Lloh55:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	w0, w8
	csel	x8, x10, x9, eq
LBB0_25:
	str	x8, [sp]
Lloh56:
	adrp	x2, l_.str.1@PAGE
Lloh57:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snprintf
LBB0_26:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IS_PX,4,2                  ; @AMD_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	_AMD_DPM_FORCED_LEVEL_AUTO,4,2  ; @AMD_DPM_FORCED_LEVEL_AUTO
l_.str.2:                               ; @.str.2
	.asciz	"auto"

	.comm	_AMD_DPM_FORCED_LEVEL_LOW,4,2   ; @AMD_DPM_FORCED_LEVEL_LOW
l_.str.3:                               ; @.str.3
	.asciz	"low"

	.comm	_AMD_DPM_FORCED_LEVEL_HIGH,4,2  ; @AMD_DPM_FORCED_LEVEL_HIGH
l_.str.4:                               ; @.str.4
	.asciz	"high"

	.comm	_AMD_DPM_FORCED_LEVEL_MANUAL,4,2 ; @AMD_DPM_FORCED_LEVEL_MANUAL
l_.str.5:                               ; @.str.5
	.asciz	"manual"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD
l_.str.6:                               ; @.str.6
	.asciz	"profile_standard"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK
l_.str.7:                               ; @.str.7
	.asciz	"profile_min_sclk"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK
l_.str.8:                               ; @.str.8
	.asciz	"profile_min_mclk"

	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_PEAK
l_.str.9:                               ; @.str.9
	.asciz	"profile_peak"

l_.str.10:                              ; @.str.10
	.asciz	"unknown"

	.no_dead_strip	_amdgpu_get_dpm_forced_performance_level
.subsections_via_symbols
