	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_dpm_debugfs_print_current_performance_level
_kv_dpm_debugfs_print_current_performance_level: ## @kv_dpm_debugfs_print_current_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_kv_get_pi
	movq	%rax, %r15
	movq	_ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_SMC
	movq	%rax, %rbx
	movq	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	_SMU__NUM_SCLK_DPM_STATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_1
## %bb.2:
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_be32_to_cpu
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ixSMU_VOLTAGE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_SMC
	movq	_SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_kv_convert_8bit_index_to_voltage
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%r15)
	leaq	L_.str.3(%rip), %r13
	leaq	L_.str.2(%rip), %r12
	movq	%r12, %rdx
	cmoveq	%r13, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_seq_printf
	cmpq	$0, (%r15)
	cmoveq	%r13, %r12
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_seq_printf
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_seq_printf                     ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_seq_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ixTARGET_AND_CURRENT_PROFILE_INDEX,4,2 ## @ixTARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK,8,3 ## @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT,8,3 ## @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT
	.comm	_SMU__NUM_SCLK_DPM_STATE,8,3    ## @SMU__NUM_SCLK_DPM_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid dpm profile %d\n"

	.comm	_ixSMU_VOLTAGE_STATUS,4,2       ## @ixSMU_VOLTAGE_STATUS
	.comm	_SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK,8,3 ## @SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK
	.comm	_SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT,8,3 ## @SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"uvd    %sabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"dis"

L_.str.3:                               ## @.str.3
	.asciz	"en"

L_.str.4:                               ## @.str.4
	.asciz	"vce    %sabled\n"

L_.str.5:                               ## @.str.5
	.asciz	"power level %d    sclk: %u vddc: %u\n"

	.no_dead_strip	_kv_dpm_debugfs_print_current_performance_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_dpm_debugfs_print_current_performance_level
_kv_dpm_debugfs_print_current_performance_level: ; @kv_dpm_debugfs_print_current_performance_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_kv_get_pi
	mov	x20, x0
Lloh0:
	adrp	x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32_SMC
Lloh3:
	adrp	x8, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh6:
	adrp	x9, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsr	x23, x8, x9
Lloh9:
	adrp	x8, _SMU__NUM_SCLK_DPM_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMU__NUM_SCLK_DPM_STATE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x23, x8
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x23, lsl #2]
	bl	_be32_to_cpu
	mov	x22, x0
Lloh12:
	adrp	x8, _ixSMU_VOLTAGE_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ixSMU_VOLTAGE_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_RREG32_SMC
Lloh15:
	adrp	x8, _SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh18:
	adrp	x9, _SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	lsr	x1, x8, x9
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_kv_convert_8bit_index_to_voltage
	mov	x21, x0
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x24, l_.str.2@PAGE
Lloh22:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh23:
	adrp	x25, l_.str.3@PAGE
Lloh24:
	add	x25, x25, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x8, x25, x24, eq
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x25, x24, eq
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	stp	x22, x21, [sp, #8]
	str	x23, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_2:
	str	x23, [sp]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_seq_printf
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ixTARGET_AND_CURRENT_PROFILE_INDEX,4,2 ; @ixTARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK,8,3 ; @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX_MASK
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT,8,3 ; @TARGET_AND_CURRENT_PROFILE_INDEX__CURR_SCLK_INDEX__SHIFT
	.comm	_SMU__NUM_SCLK_DPM_STATE,8,3    ; @SMU__NUM_SCLK_DPM_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid dpm profile %d\n"

	.comm	_ixSMU_VOLTAGE_STATUS,4,2       ; @ixSMU_VOLTAGE_STATUS
	.comm	_SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK,8,3 ; @SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL_MASK
	.comm	_SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT,8,3 ; @SMU_VOLTAGE_STATUS__SMU_VOLTAGE_CURRENT_LEVEL__SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"uvd    %sabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"dis"

l_.str.3:                               ; @.str.3
	.asciz	"en"

l_.str.4:                               ; @.str.4
	.asciz	"vce    %sabled\n"

l_.str.5:                               ; @.str.5
	.asciz	"power level %d    sclk: %u vddc: %u\n"

	.no_dead_strip	_kv_dpm_debugfs_print_current_performance_level
.subsections_via_symbols
