	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_get_pp_table_entry_v1
_smu7_get_pp_table_entry_v1:            ## @smu7_get_pp_table_entry_v1
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movq	(%rax), %r12
	movq	_PHM_VIslands_Magic@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdx)
	movq	_smu7_get_pp_table_entry_callback_func_v1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_get_powerplay_table_entry_v1_0
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	cmpl	$1, (%r12)
	jne	LBB0_6
## %bb.2:
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	cmpq	48(%r15), %rcx
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	8(%r12), %rax
LBB0_4:
	movq	8(%rax), %rax
	cmpq	56(%r15), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
LBB0_6:
	cmpl	$0, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	movl	$1, 20(%rbx)
LBB0_8:
	movq	_PP_StateClassificationFlag_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.9:
	movq	36(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 40(%r15)
LBB0_10:
	movq	8(%rbx), %rax
	movq	%rax, 44(%rbx)
	testl	%r14d, %r14d
	je	LBB0_11
LBB0_35:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	4(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_24
## %bb.12:
	cmpl	$128, %eax
	jne	LBB0_35
## %bb.13:
	movl	$1, (%r15)
	movq	28(%rbx), %r8
	testq	%r8, %r8
	je	LBB0_35
## %bb.14:
	movq	36(%rbx), %rcx
	movl	36(%r15), %r9d
	movl	32(%r15), %esi
	movl	24(%r15), %ebx
	movl	28(%r15), %eax
	xorl	%edi, %edi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rdi
	cmpq	%rdi, %r8
	je	LBB0_35
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rdi,8), %edx
	cmpl	%edx, %r9d
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, 36(%r15)
	movl	%edx, %r9d
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%edx, %esi
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, 32(%r15)
	movl	%edx, %esi
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rcx,%rdi,8), %edx
	cmpl	%edx, %eax
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, 28(%r15)
	movl	%edx, %eax
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	%edx, %ebx
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%edx, 24(%r15)
	movl	%edx, %ebx
	jmp	LBB0_23
LBB0_24:
	movl	$1, 4(%r15)
	movq	28(%rbx), %r8
	testq	%r8, %r8
	je	LBB0_35
## %bb.25:
	movq	36(%rbx), %rcx
	movl	20(%r15), %r9d
	movl	16(%r15), %esi
	movl	8(%r15), %ebx
	movl	12(%r15), %eax
	xorl	%edi, %edi
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_26 Depth=1
	incq	%rdi
	cmpq	%rdi, %r8
	je	LBB0_35
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rdi,8), %edx
	cmpl	%edx, %r9d
	jge	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%edx, 20(%r15)
	movl	%edx, %r9d
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	%edx, %esi
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%edx, 16(%r15)
	movl	%edx, %esi
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	(%rcx,%rdi,8), %edx
	cmpl	%edx, %eax
	jge	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%edx, 12(%r15)
	movl	%edx, %eax
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	%edx, %ebx
	jle	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%edx, 8(%r15)
	movl	%edx, %ebx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_VIslands_Magic,4,2         ## @PHM_VIslands_Magic
	.comm	_smu7_get_pp_table_entry_callback_func_v1,4,2 ## @smu7_get_pp_table_entry_callback_func_v1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Single MCLK entry VDDCI/MCLK dependency table does not match VBIOS boot MCLK level"

L_.str.1:                               ## @.str.1
	.asciz	"Single VDDCI entry VDDCI/MCLK dependency table does not match VBIOS boot VDDCI level"

	.comm	_PP_StateClassificationFlag_ACPI,4,2 ## @PP_StateClassificationFlag_ACPI
	.no_dead_strip	_smu7_get_pp_table_entry_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_get_pp_table_entry_v1
_smu7_get_pp_table_entry_v1:            ; @smu7_get_pp_table_entry_v1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	ldp	x8, x21, [x0]
Lloh0:
	adrp	x9, _PHM_VIslands_Magic@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHM_VIslands_Magic@GOTPAGEOFF]
	ldr	x22, [x8]
Lloh2:
	ldr	w8, [x9]
	str	w8, [x2, #20]
Lloh3:
	adrp	x8, _smu7_get_pp_table_entry_callback_func_v1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _smu7_get_pp_table_entry_callback_func_v1@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	bl	_get_powerplay_table_entry_v1_0
	mov	x20, x0
	cbz	x22, LBB0_6
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x22, #8]
	ldr	x9, [x8]
	ldr	x10, [x21, #48]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x22, #8]
LBB0_4:
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #56]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_6:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #20]
LBB0_8:
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _PP_StateClassificationFlag_ACPI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PP_StateClassificationFlag_ACPI@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldur	x8, [x19, #36]
	ldr	w8, [x8, #4]
	str	w8, [x21, #40]
LBB0_10:
	ldr	d0, [x19, #8]
	stur	d0, [x19, #44]
	cbz	w20, LBB0_12
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x19, #4]
	cmp	w8, #129
	b.eq	LBB0_25
; %bb.13:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.14:
	mov	w8, #1
	str	w8, [x21]
	ldur	x8, [x19, #28]
	cbz	x8, LBB0_11
; %bb.15:
	ldur	x12, [x19, #36]
	ldp	w10, w9, [x21, #32]
	ldp	w13, w11, [x21, #24]
	add	x12, x12, #4
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x12, x12, #8
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	cmp	w9, w14
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w14, [x21, #36]
	mov	x9, x14
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	w10, w14
	b.le	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w14, [x21, #32]
	mov	x10, x14
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldur	w14, [x12, #-4]
	cmp	w11, w14
	b.ge	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w14, [x21, #28]
	mov	x11, x14
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	w13, w14
	b.le	LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w14, [x21, #24]
	mov	x13, x14
	b	LBB0_16
LBB0_25:
	mov	w8, #1
	str	w8, [x21, #4]
	ldur	x8, [x19, #28]
	cbz	x8, LBB0_11
; %bb.26:
	ldur	x12, [x19, #36]
	ldp	w10, w9, [x21, #16]
	ldp	w13, w11, [x21, #8]
	add	x12, x12, #4
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x12, x12, #8
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	cmp	w9, w14
	b.ge	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	str	w14, [x21, #20]
	mov	x9, x14
LBB0_30:                                ;   in Loop: Header=BB0_28 Depth=1
	cmp	w10, w14
	b.le	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	str	w14, [x21, #16]
	mov	x10, x14
LBB0_32:                                ;   in Loop: Header=BB0_28 Depth=1
	ldur	w14, [x12, #-4]
	cmp	w11, w14
	b.ge	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_28 Depth=1
	str	w14, [x21, #12]
	mov	x11, x14
LBB0_34:                                ;   in Loop: Header=BB0_28 Depth=1
	cmp	w13, w14
	b.le	LBB0_27
; %bb.35:                               ;   in Loop: Header=BB0_28 Depth=1
	str	w14, [x21, #8]
	mov	x13, x14
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_VIslands_Magic,4,2         ; @PHM_VIslands_Magic
	.comm	_smu7_get_pp_table_entry_callback_func_v1,4,2 ; @smu7_get_pp_table_entry_callback_func_v1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Single MCLK entry VDDCI/MCLK dependency table does not match VBIOS boot MCLK level"

l_.str.1:                               ; @.str.1
	.asciz	"Single VDDCI entry VDDCI/MCLK dependency table does not match VBIOS boot VDDCI level"

	.comm	_PP_StateClassificationFlag_ACPI,4,2 ; @PP_StateClassificationFlag_ACPI
	.no_dead_strip	_smu7_get_pp_table_entry_v1
.subsections_via_symbols
