	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atom_get_leakage_vddc_based_on_leakage_params ## -- Begin function radeon_atom_get_leakage_vddc_based_on_leakage_params
	.p2align	4, 0x90
_radeon_atom_get_leakage_vddc_based_on_leakage_params: ## @radeon_atom_get_leakage_vddc_based_on_leakage_params
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASIC_ProfilingInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	$0, (%r13)
	movl	$0, (%r15)
	movq	(%rbx), %rdi
	leaq	-68(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%eax, %esi
	callq	_atom_parse_data_header
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	-72(%rbp), %esi
	cmpl	$2, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$1, %esi
	je	LBB0_12
## %bb.3:
	movl	-48(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_4:
	movl	-48(%rbp), %edx
	cmpl	$1, %edx
	jne	LBB0_10
## %bb.5:
	cmpl	$31, -68(%rbp)
	jbe	LBB0_12
## %bb.6:
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movslq	-44(%rbp), %r14
	addq	%rax, %r14
	movl	28(%r14), %edi
	callq	_le16_to_cpu
	addl	%r14d, %eax
	cltq
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	24(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	20(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movslq	-44(%rbp), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	16(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movslq	-44(%rbp), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	12(%r14), %edi
	callq	_le16_to_cpu
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movq	-144(%rbp), %r10                ## 8-byte Reload
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.7:
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	addq	-96(%rbp), %rsi                 ## 8-byte Folded Reload
	movslq	-56(%rbp), %rdi                 ## 4-byte Folded Reload
	addq	%rsi, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movslq	-52(%rbp), %r8                  ## 4-byte Folded Reload
	addq	%rsi, %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rdi,%rsi,4)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_8
	jmp	LBB0_19
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
LBB0_11:
	callq	_DRM_ERROR
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	4(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_19
## %bb.15:
	xorl	%ebx, %ebx
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%r10,%rbx,4)
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	addl	%ecx, %esi
	cmpq	%rbx, %rdi
	jne	LBB0_16
	jmp	LBB0_19
LBB0_18:
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %ecx
	movl	%ecx, (%r13)
LBB0_19:
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.20:
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	addq	-128(%rbp), %rsi                ## 8-byte Folded Reload
	movslq	-60(%rbp), %rdi                 ## 4-byte Folded Reload
	addq	%rsi, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addq	-112(%rbp), %rsi                ## 8-byte Folded Reload
	movslq	%eax, %r8
	addq	%rsi, %r8
	xorl	%esi, %esi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rdi,%rsi,4)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_21
	jmp	LBB0_13
LBB0_24:
	movl	4(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_23
## %bb.25:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%r10,%rbx,4)
	jge	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rbx
	addl	%ecx, %esi
	cmpq	%rbx, %rdi
	jne	LBB0_26
	jmp	LBB0_13
LBB0_23:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_29:
	movslq	%esi, %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ## @ASIC_ProfilingInfo
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table version %d, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atom_get_leakage_vddc_based_on_leakage_params ; -- Begin function radeon_atom_get_leakage_vddc_based_on_leakage_params
	.p2align	2
_radeon_atom_get_leakage_vddc_based_on_leakage_params: ; @radeon_atom_get_leakage_vddc_based_on_leakage_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
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
	str	wzr, [x22]
	str	wzr, [x19]
	ldr	x0, [x23]
	add	x2, sp, #64
	add	x3, sp, #76
	add	x4, sp, #72
	add	x5, sp, #68
	bl	_atom_parse_data_header
	cbz	w0, LBB0_12
; %bb.1:
	ldr	w1, [sp, #76]
	cmp	w1, #2
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #1
	b.eq	LBB0_12
; %bb.3:
	ldr	w2, [sp, #72]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_4:
	ldr	w2, [sp, #72]
	cmp	w2, #1
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [sp, #64]
	cmp	w8, #31
	b.ls	LBB0_12
; %bb.6:
	ldr	x8, [x23]
	ldrsw	x8, [x8]
	ldrsw	x9, [sp, #68]
	add	x28, x9, x8
	ldr	w0, [x28, #28]
	bl	_le16_to_cpu
	add	w8, w0, w28
	sxtw	x27, w8
	ldr	x8, [x23]
	ldrsw	x9, [x8]
	ldrsw	x8, [sp, #68]
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	ldr	w0, [x28, #24]
	bl	_le16_to_cpu
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x23]
	ldrsw	x24, [x8]
	ldrsw	x25, [sp, #68]
	ldr	w0, [x28, #20]
	bl	_le16_to_cpu
	mov	x26, x0
	ldr	x8, [x23]
	ldrsw	x9, [x8]
	ldrsw	x8, [sp, #68]
	stp	x8, x9, [sp, #48]               ; 16-byte Folded Spill
	ldr	w0, [x28, #16]
	bl	_le16_to_cpu
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x8, [x23]
	ldrsw	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldrsw	x23, [sp, #68]
	ldr	w0, [x28, #12]
	bl	_le16_to_cpu
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.7:
	mov	x9, #0
	ldp	x11, x10, [sp, #16]             ; 16-byte Folded Reload
	add	x10, x11, x10
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	add	x11, x10, w11, sxtw
	add	x10, x25, x24
	add	x10, x10, w26, sxtw
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9, lsl #2]
	cmp	w12, w21
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_8
	b	LBB0_19
LBB0_10:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2
LBB0_11:
	bl	_DRM_ERROR
LBB0_12:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_14:
	ldr	w11, [x28, #4]
	cmp	w11, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x12, x27
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cmp	w13, w20
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w9, w9, w8
	add	x12, x12, #4
	subs	x11, x11, #1
	b.ne	LBB0_16
	b	LBB0_19
LBB0_18:
	ldr	w8, [x10, w9, sxtw #2]
	str	w8, [x22]
LBB0_19:
	ldr	w8, [x28, #8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.20:
	mov	x9, #0
	ldp	x11, x10, [sp, #48]             ; 16-byte Folded Reload
	add	x10, x11, x10
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	add	x12, x23, x11
	ldr	w11, [sp, #44]                  ; 4-byte Folded Reload
	add	x11, x10, w11, sxtw
	add	x10, x12, w0, sxtw
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x9, lsl #2]
	cmp	w12, w21
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #0
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_21
	b	LBB0_13
LBB0_23:
	ldr	w11, [x28, #4]
	cmp	w11, #1
	b.lt	LBB0_26
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x27]
	cmp	w12, w20
	b.ge	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w0, #0
	add	w9, w9, w8
	add	x27, x27, #4
	subs	x11, x11, #1
	b.ne	LBB0_24
	b	LBB0_13
LBB0_26:
	mov	w0, #0
	b	LBB0_13
LBB0_27:
	mov	w0, #0
	ldr	w8, [x10, w9, sxtw #2]
	str	w8, [x19]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ; @ASIC_ProfilingInfo
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d, %d\n"

.subsections_via_symbols
