	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_get_voltage_evv ## -- Begin function amdgpu_atombios_get_voltage_evv
	.p2align	4, 0x90
_amdgpu_atombios_get_voltage_evv:       ## @amdgpu_atombios_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	%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	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GetVoltageInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r15d
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	16(%r12), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, (%rcx,%rbx)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rbx
	decq	%rax
	jne	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_VOLTAGE_TYPE_VDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_ATOM_GET_VOLTAGE_EVV_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r13, %rdi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	movq	16(%r12), %rax
	movl	8(%rax,%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -56(%rbp)
	movl	(%r12), %edi
	leaq	-56(%rbp), %rdx
	movl	%r15d, %esi
	callq	_amdgpu_atom_execute_table
	movl	-56(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_GetVoltageInfo,4,2             ## @GetVoltageInfo
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_get_voltage_evv ; -- Begin function amdgpu_atombios_get_voltage_evv
	.p2align	2
_amdgpu_atombios_get_voltage_evv:       ; @amdgpu_atombios_get_voltage_evv
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GetVoltageInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GetVoltageInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x23, #0
	ldr	x9, [x20, #16]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x23]
	cmp	x10, x22
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _VOLTAGE_TYPE_VDDC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VOLTAGE_TYPE_VDDC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ATOM_GET_VOLTAGE_EVV_VOLTAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATOM_GET_VOLTAGE_EVV_VOLTAGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [sp, #4]
	ldr	x8, [x20, #16]
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	bl	_cpu_to_le32
	str	w0, [sp]
	ldr	w0, [x20]
	mov	x2, sp
	mov	x1, x21
	bl	_amdgpu_atom_execute_table
	ldr	w0, [sp]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_GetVoltageInfo,4,2             ; @GetVoltageInfo
	.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
.subsections_via_symbols
