	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_voltage_range     ## -- Begin function atomctrl_get_voltage_range
	.p2align	4, 0x90
_atomctrl_get_voltage_range:            ## @atomctrl_get_voltage_range
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	4(%rdi), %ebx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASIC_ProfilingInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_smu_atom_get_data_table
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movl	(%r13), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.5:
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	movl	(%r12), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$1374389535, %rax, %r14         ## imm = 0x51EB851F
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$37, %r14
	addl	%eax, %r14d
	jmp	LBB0_7
LBB0_2:
	cmpl	$132, %eax
	je	LBB0_4
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_6
LBB0_4:
	movl	4(%r12), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, (%r15)
	movl	(%r12), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$2, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	$0, (%r15)
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ## @ASIC_ProfilingInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atomctrl_get_voltage_range     ; -- Begin function atomctrl_get_voltage_range
	.p2align	2
_atomctrl_get_voltage_range:            ; @atomctrl_get_voltage_range
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w21, [x0, #4]
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
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_smu_atom_get_data_table
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w8, [x22]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	mov	w22, #34079
	movk	w22, #20971, lsl #16
	smull	x8, w0, w22
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	str	w8, [x20]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	smull	x8, w0, w22
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	b	LBB0_7
LBB0_3:
	cmp	w8, #132
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_6
LBB0_5:
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #2
	str	w8, [x20]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	add	w8, w0, #3
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #2
	b	LBB0_7
LBB0_6:
	mov	w8, #0
	str	wzr, [x20]
LBB0_7:
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_ASIC_ProfilingInfo,4,2         ; @ASIC_ProfilingInfo
.subsections_via_symbols
