	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_leakage_vddc_base_on_leakage ## -- Begin function atomctrl_get_leakage_vddc_base_on_leakage
	.p2align	4, 0x90
_atomctrl_get_leakage_vddc_base_on_leakage: ## @atomctrl_get_leakage_vddc_base_on_leakage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	$0, (%rsi)
	movq	$0, (%rdx)
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASIC_ProfilingInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	(%rbx), %edi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smu_atom_get_data_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$2, 32(%rax)
	jl	LBB0_24
## %bb.3:
	cmpl	$0, 36(%rax)
	jle	LBB0_24
## %bb.4:
	cmpl	$44, 40(%rax)
	jb	LBB0_24
## %bb.5:
	movslq	(%rax), %r9
	addq	%rax, %r9
	movl	12(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.6:
	movslq	4(%rax), %rsi
	addq	%rax, %rsi
	movslq	8(%rax), %r8
	addq	%rax, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rsi,%rdi,8)
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_7
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	16(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_14
## %bb.9:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%r9,%rcx,8)
	jge	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	addl	%edx, %edi
	cmpq	%rcx, %rsi
	jne	LBB0_10
	jmp	LBB0_14
LBB0_11:
	movslq	%edi, %rcx
	movq	(%r8,%rcx,8), %rcx
	movq	%rcx, (%r13)
LBB0_14:
	movl	28(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_24
## %bb.15:
	movslq	20(%rax), %rsi
	addq	%rax, %rsi
	movslq	24(%rax), %r8
	addq	%rax, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rsi,%rdi,8)
	je	LBB0_17
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdi
	xorl	%ebx, %ebx
	cmpq	%rdi, %rdx
	jne	LBB0_16
	jmp	LBB0_24
LBB0_17:
	movl	16(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.19:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%r9,%rsi,8)
	jge	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rsi
	addl	%edx, %edi
	xorl	%ebx, %ebx
	cmpq	%rsi, %rax
	jne	LBB0_20
	jmp	LBB0_24
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_21:
	movslq	%edi, %rax
	movq	(%r8,%rax,8), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ## @ASIC_ProfilingInfo
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_leakage_vddc_base_on_leakage ; -- Begin function atomctrl_get_leakage_vddc_base_on_leakage
	.p2align	2
_atomctrl_get_leakage_vddc_base_on_leakage: ; @atomctrl_get_leakage_vddc_base_on_leakage
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [x1]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASIC_ProfilingInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIC_ProfilingInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	ldr	w0, [x23]
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_smu_atom_get_data_table
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x0, #32]
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.2:
	ldr	w8, [x0, #36]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.3:
	ldr	w8, [x0, #40]
	cmp	w8, #44
	b.lo	LBB0_21
; %bb.4:
	ldrsw	x8, [x0]
	add	x9, x0, x8
	ldr	w8, [x0, #12]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x10, #0
	ldpsw	x11, x13, [x0, #4]
	add	x12, x0, x11
	add	x11, x0, x13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12, x10, lsl #3]
	cmp	x13, x21
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_6
	b	LBB0_14
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_22
LBB0_9:
	ldr	w12, [x0, #16]
	cmp	w12, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x13, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cmp	x14, x20
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w10, w10, w8
	add	x13, x13, #8
	subs	x12, x12, #1
	b.ne	LBB0_11
	b	LBB0_14
LBB0_13:
	ldr	x8, [x11, w10, sxtw #3]
	str	x8, [x22]
LBB0_14:
	ldr	w10, [x0, #28]
	cmp	w10, #1
	b.lt	LBB0_21
; %bb.15:
	mov	x11, #0
	ldpsw	x8, x12, [x0, #20]
	add	x13, x0, x8
	add	x12, x0, x12
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x13, x11, lsl #3]
	cmp	x8, x21
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w8, #0
	add	x11, x11, #1
	cmp	x10, x11
	b.ne	LBB0_16
	b	LBB0_22
LBB0_18:
	ldr	w13, [x0, #16]
	cmp	w13, #1
	b.lt	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9]
	cmp	x8, x20
	b.ge	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w8, #0
	add	w11, w11, w10
	add	x9, x9, #8
	subs	x13, x13, #1
	b.ne	LBB0_19
	b	LBB0_22
LBB0_21:
	mov	w8, #0
LBB0_22:
	mov	x0, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	w8, #0
	ldr	x9, [x12, w11, sxtw #3]
	str	x9, [x19]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ; @ASIC_ProfilingInfo
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
