	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs780_dpm_debugfs_print_current_performance_level ## -- Begin function rs780_dpm_debugfs_print_current_performance_level
	.p2align	4, 0x90
_rs780_dpm_debugfs_print_current_performance_level: ## @rs780_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
	pushq	%rax
	.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, %r12
	movq	8(%rdi), %r13
	movq	%r13, %rdi
	callq	_rs780_get_ps
	movq	%rax, %r15
	movq	_FVTHROT_STATUS_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_CURRENT_FEEDBACK_DIV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_CG_SPLL_FUNC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
                                        ## kill: def $eax killed $eax def $rax
	movq	_SPLL_REF_DIV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_SPLL_REF_DIV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	incl	%edx
	movq	_SPLL_SW_HILEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_SPLL_SW_HILEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movq	_SPLL_SW_LOLEN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SPLL_SW_LOLEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leal	(%rsi,%rax), %ecx
	addl	$2, %ecx
	imull	%edx, %ecx
	imull	(%r12), %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movl	(%r13), %edx
	movl	4(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_printf
	movl	(%r15), %edx
	leal	500(%rdx), %eax
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.1:
	movl	12(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_2
LBB0_3:
	movl	4(%r15), %edx
	movl	8(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_seq_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FVTHROT_STATUS_REG0,4,2        ## @FVTHROT_STATUS_REG0
	.comm	_CURRENT_FEEDBACK_DIV_MASK,4,2  ## @CURRENT_FEEDBACK_DIV_MASK
	.comm	_CG_SPLL_FUNC_CNTL,4,2          ## @CG_SPLL_FUNC_CNTL
	.comm	_SPLL_REF_DIV_MASK,4,2          ## @SPLL_REF_DIV_MASK
	.comm	_SPLL_REF_DIV_SHIFT,4,2         ## @SPLL_REF_DIV_SHIFT
	.comm	_SPLL_SW_HILEN_MASK,4,2         ## @SPLL_SW_HILEN_MASK
	.comm	_SPLL_SW_HILEN_SHIFT,4,2        ## @SPLL_SW_HILEN_SHIFT
	.comm	_SPLL_SW_LOLEN_MASK,4,2         ## @SPLL_SW_LOLEN_MASK
	.comm	_SPLL_SW_LOLEN_SHIFT,4,2        ## @SPLL_SW_LOLEN_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uvd    vclk: %d dclk: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"power level 0    sclk: %u vddc_index: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"power level 1    sclk: %u vddc_index: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs780_dpm_debugfs_print_current_performance_level ; -- Begin function rs780_dpm_debugfs_print_current_performance_level
	.p2align	2
_rs780_dpm_debugfs_print_current_performance_level: ; @rs780_dpm_debugfs_print_current_performance_level
	.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, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	x0, x22
	bl	_rs780_get_ps
	mov	x20, x0
Lloh0:
	adrp	x8, _FVTHROT_STATUS_REG0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FVTHROT_STATUS_REG0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
Lloh3:
	adrp	x8, _CURRENT_FEEDBACK_DIV_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CURRENT_FEEDBACK_DIV_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w23, w8, w0
Lloh6:
	adrp	x8, _CG_SPLL_FUNC_CNTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CG_SPLL_FUNC_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_RREG32
Lloh9:
	adrp	x8, _SPLL_REF_DIV_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPLL_REF_DIV_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _SPLL_REF_DIV_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SPLL_REF_DIV_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh15:
	adrp	x9, _SPLL_SW_HILEN_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SPLL_SW_HILEN_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh18:
	adrp	x10, _SPLL_SW_HILEN_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SPLL_SW_HILEN_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh21:
	adrp	x10, _SPLL_SW_LOLEN_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _SPLL_SW_LOLEN_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w10, w10, w0
Lloh24:
	adrp	x11, _SPLL_SW_LOLEN_SHIFT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SPLL_SW_LOLEN_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	asr	w10, w10, w11
	add	w9, w9, w10
	add	w9, w9, #2
	ldr	w10, [x21]
	mul	w10, w10, w23
	madd	w8, w9, w8, w9
	sdiv	w21, w10, w8
	ldp	w2, w3, [x22]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	ldr	w2, [x20]
	add	w8, w2, #500
	cmp	w21, w8
	b.ge	LBB0_2
; %bb.1:
	ldr	w3, [x20, #12]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldp	w2, w3, [x20, #4]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	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
	b	_seq_printf
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_FVTHROT_STATUS_REG0,4,2        ; @FVTHROT_STATUS_REG0
	.comm	_CURRENT_FEEDBACK_DIV_MASK,4,2  ; @CURRENT_FEEDBACK_DIV_MASK
	.comm	_CG_SPLL_FUNC_CNTL,4,2          ; @CG_SPLL_FUNC_CNTL
	.comm	_SPLL_REF_DIV_MASK,4,2          ; @SPLL_REF_DIV_MASK
	.comm	_SPLL_REF_DIV_SHIFT,4,2         ; @SPLL_REF_DIV_SHIFT
	.comm	_SPLL_SW_HILEN_MASK,4,2         ; @SPLL_SW_HILEN_MASK
	.comm	_SPLL_SW_HILEN_SHIFT,4,2        ; @SPLL_SW_HILEN_SHIFT
	.comm	_SPLL_SW_LOLEN_MASK,4,2         ; @SPLL_SW_LOLEN_MASK
	.comm	_SPLL_SW_LOLEN_SHIFT,4,2        ; @SPLL_SW_LOLEN_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uvd    vclk: %d dclk: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"power level 0    sclk: %u vddc_index: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"power level 1    sclk: %u vddc_index: %d\n"

.subsections_via_symbols
