	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_get_pp_table
_amdgpu_get_pp_table:                   ## @amdgpu_get_pp_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	$0, -24(%rbp)
	movq	%rbx, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rbx
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_sys_get_pp_table
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_amdgpu_dpm_get_pp_table
	movl	%eax, %ebx
LBB0_5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %ecx
	cmpl	%eax, %ebx
	cmovgel	%ecx, %ebx
	movq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_amdgpu_get_pp_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_get_pp_table
_amdgpu_get_pp_table:                   ; @amdgpu_get_pp_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_is_support_sw_smu
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #8
	add	x1, sp, #8
	bl	_smu_sys_get_pp_table
	mov	x20, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_amdgpu_dpm_get_pp_table
	mov	x20, x0
LBB0_4:
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w20, w8
	csel	w20, w20, w9, lt
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	mov	w20, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_amdgpu_get_pp_table
.subsections_via_symbols
