	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_set_pptable_v2_1
_smu_v11_0_set_pptable_v2_1:            ## @smu_v11_0_set_pptable_v2_1
	.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
	movl	%ecx, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	xorl	%edx, %edx
	movl	$0, %r13d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %rbx
	addq	$8, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	cmpl	%r12d, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	$12, %rbx
	cmpq	%r13, %r15
	jne	LBB0_2
## %bb.5:
	movl	%r15d, %r13d
	jmp	LBB0_6
LBB0_3:
	movl	-4(%rbx), %edi
	callq	_le32_to_cpu
	cltq
	leaq	(%r14,%rax,4), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-8(%rbx), %edi
	callq	_le32_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%r15d, %r13d
	cmovnel	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu_v11_0_set_pptable_v2_1
.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_set_pptable_v2_1
_smu_v11_0_set_pptable_v2_1:            ; @smu_v11_0_set_pptable_v2_1
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x25, [x8]
	ldr	w0, [x25, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x25]
	bl	_le32_to_cpu
	mov	w23, w0
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	sxtw	x8, w22
	add	x8, x25, x8, lsl #2
	add	x22, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	cmp	w0, w21
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	add	x22, x22, #12
	cmp	x23, x24
	b.ne	LBB0_2
; %bb.4:
	mov	x24, x23
	b	LBB0_7
LBB0_5:
	mov	w24, #0
	b	LBB0_7
LBB0_6:
	ldr	w0, [x22]
	bl	_le32_to_cpu
	add	x8, x25, w0, sxtw #2
	str	x8, [x20]
	ldur	w0, [x22, #-4]
	bl	_le32_to_cpu
	str	w0, [x19]
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w23
	csneg	w0, wzr, w8, ne
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu_v11_0_set_pptable_v2_1
.subsections_via_symbols
