	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_voltage_evv       ## -- Begin function atomctrl_get_voltage_evv
	.p2align	4, 0x90
_atomctrl_get_voltage_evv:              ## @atomctrl_get_voltage_evv
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	8(%rdi), %rbx
	movq	8(%rax), %rax
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rax,%rdx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movq	_VOLTAGE_TYPE_VDDC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -20(%rbp)
	movq	_ATOM_GET_VOLTAGE_EVV_VOLTAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	8(%rax,%rdx), %edi
	callq	_cpu_to_le32
	movl	%eax, -40(%rbp)
	movl	(%rbx), %ebx
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GetVoltageInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_amdgpu_atom_execute_table
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	-40(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find requested voltage id in vddc_dependency_on_sclk table!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VOLTAGE_TYPE_VDDC,4,2          ## @VOLTAGE_TYPE_VDDC
	.comm	_ATOM_GET_VOLTAGE_EVV_VOLTAGE,4,2 ## @ATOM_GET_VOLTAGE_EVV_VOLTAGE
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_GetVoltageInfo,4,2             ## @GetVoltageInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_voltage_evv       ; -- Begin function atomctrl_get_voltage_evv
	.p2align	2
_atomctrl_get_voltage_evv:              ; @atomctrl_get_voltage_evv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	x9, [x0]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x2
	ldr	x20, [x0, #8]
	ldr	x9, [x9, #8]
	add	x9, x9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _VOLTAGE_TYPE_VDDC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VOLTAGE_TYPE_VDDC@GOTPAGEOFF]
Lloh7:
	adrp	x10, _ATOM_GET_VOLTAGE_EVV_VOLTAGE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ATOM_GET_VOLTAGE_EVV_VOLTAGE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w8, [sp, #24]
	str	x1, [sp, #16]
	ldr	w0, [x9]
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	ldr	w20, [x20]
Lloh11:
	adrp	x8, _COMMAND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _GetVoltageInfo@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GetVoltageInfo@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_amdgpu_atom_execute_table
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find requested voltage id in vddc_dependency_on_sclk table!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VOLTAGE_TYPE_VDDC,4,2          ; @VOLTAGE_TYPE_VDDC
	.comm	_ATOM_GET_VOLTAGE_EVV_VOLTAGE,4,2 ; @ATOM_GET_VOLTAGE_EVV_VOLTAGE
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_GetVoltageInfo,4,2             ; @GetVoltageInfo
.subsections_via_symbols
