	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_leakage_vddc
_si_get_leakage_vddc:                   ## @si_get_leakage_vddc
	.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
	movq	%rdi, %rbx
	callq	_si_get_pi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SISLANDS_MAX_LEAKAGE_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	movq	_SISLANDS_LEAKAGE_INDEX0@GOTPCREL(%rip), %r12
	leaq	-56(%rbp), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	_SISLANDS_MAX_LEAKAGE_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	addq	%r14, %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_radeon_atom_get_leakage_vddc_based_on_leakage_idx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rcx
	addq	%r14, %rcx
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%r13, %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	movq	(%r12), %rax
	addq	%r14, %rax
	movq	%rax, (%rcx,%rdx)
	incq	%r13
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SISLANDS_MAX_LEAKAGE_COUNT,4,2 ## @SISLANDS_MAX_LEAKAGE_COUNT
	.comm	_SISLANDS_LEAKAGE_INDEX0,8,3    ## @SISLANDS_LEAKAGE_INDEX0
	.no_dead_strip	_si_get_leakage_vddc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_leakage_vddc
_si_get_leakage_vddc:                   ; @si_get_leakage_vddc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	bl	_si_get_pi
	mov	x19, x0
Lloh0:
	adrp	x21, _SISLANDS_MAX_LEAKAGE_COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SISLANDS_MAX_LEAKAGE_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
	mov	x22, #0
Lloh2:
	adrp	x24, _SISLANDS_LEAKAGE_INDEX0@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SISLANDS_LEAKAGE_INDEX0@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x2, x23, x8
	add	x1, sp, #8
	mov	x0, x20
	bl	_radeon_atom_get_leakage_vddc_based_on_leakage_idx
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #1, #8, eq
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	add	x9, x23, x9
	cmp	x9, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x22, lsl #4
	str	x8, [x9, #8]
	ldr	x8, [x24]
	add	x8, x23, x8
	str	x8, [x9]
	add	x22, x22, #1
	b	LBB0_2
LBB0_6:
	mov	x22, #0
LBB0_7:
	str	x22, [x19]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SISLANDS_MAX_LEAKAGE_COUNT,4,2 ; @SISLANDS_MAX_LEAKAGE_COUNT
	.comm	_SISLANDS_LEAKAGE_INDEX0,8,3    ; @SISLANDS_LEAKAGE_INDEX0
	.no_dead_strip	_si_get_leakage_vddc
.subsections_via_symbols
