	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_setup_pptable
_smu_v11_0_setup_pptable:               ## @smu_v11_0_setup_pptable
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movl	$0, -28(%rbp)
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$2, %r15d
	jne	LBB0_8
## %bb.1:
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	jle	LBB0_8
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	-40(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_smu_v11_0_set_pptable_v2_0
	jmp	LBB0_7
LBB0_8:
	movq	_atom_master_list_of_data_tables_v2_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_powerplayinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_index_into_master_table
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-40(%rbp), %r9
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_smu_get_atom_data_table
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	movl	-44(%rbp), %eax
	movl	%eax, -28(%rbp)
	jmp	LBB0_10
LBB0_5:
	leaq	-40(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_smu_v11_0_set_pptable_v2_1
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_14
LBB0_10:
	cmpq	$0, 8(%r14)
	jne	LBB0_12
## %bb.11:
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
LBB0_12:
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_14
## %bb.13:
	movl	-28(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ## @atom_master_list_of_data_tables_v2_1
	.comm	_powerplayinfo,4,2              ## @powerplayinfo
	.no_dead_strip	_smu_v11_0_setup_pptable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_setup_pptable
_smu_v11_0_setup_pptable:               ; @smu_v11_0_setup_pptable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0, #24]
	str	wzr, [sp, #28]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [x21]
	bl	_le16_to_cpu
	cmp	w20, #2
	b.ne	LBB0_5
; %bb.1:
	ldr	x3, [x19, #16]
	cmp	x3, #1
	b.lt	LBB0_5
; %bb.2:
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.3:
	cbnz	w0, LBB0_13
; %bb.4:
	add	x1, sp, #8
	add	x2, sp, #28
	mov	x0, x19
	bl	_smu_v11_0_set_pptable_v2_0
	cbnz	w0, LBB0_14
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _atom_master_list_of_data_tables_v2_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atom_master_list_of_data_tables_v2_1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _powerplayinfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _powerplayinfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_get_index_into_master_table
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #8
	mov	x0, x19
	bl	_smu_get_atom_data_table
	cbnz	w0, LBB0_14
; %bb.6:
	ldr	w8, [sp, #24]
	str	w8, [sp, #28]
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
LBB0_11:
	mov	w0, #0
	ldr	w8, [sp, #28]
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
	add	x1, sp, #8
	add	x2, sp, #28
	mov	x0, x19
	bl	_smu_v11_0_set_pptable_v2_1
	cbnz	w0, LBB0_14
	b	LBB0_7
LBB0_13:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	cbz	w0, LBB0_7
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_atom_master_list_of_data_tables_v2_1,4,2 ; @atom_master_list_of_data_tables_v2_1
	.comm	_powerplayinfo,4,2              ; @powerplayinfo
	.no_dead_strip	_smu_v11_0_setup_pptable
.subsections_via_symbols
