	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_setup_voltage_range_from_vbios
_smu7_setup_voltage_range_from_vbios:   ## @smu7_setup_voltage_range_from_vbios
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	(%rax), %rbx
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	callq	_atomctrl_get_voltage_range
	movl	-24(%rbp), %eax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$2000, %eax                     ## imm = 0x7D0
	jg	LBB0_4
## %bb.3:
	cmpl	%edx, %eax
	jle	LBB0_5
LBB0_4:
	movl	%edx, -24(%rbp)
	movl	%edx, %eax
LBB0_5:
	movl	-20(%rbp), %esi
	movslq	(%rbx), %rdx
	testl	%esi, %esi
	je	LBB0_8
## %bb.6:
	cmpl	$2000, %esi                     ## imm = 0x7D0
	jg	LBB0_8
## %bb.7:
	cmpl	-4(%rcx,%rdx,4), %esi
	jge	LBB0_9
LBB0_8:
	movl	-4(%rcx,%rdx,4), %ecx
	movl	%ecx, -20(%rbp)
LBB0_9:
	movl	%eax, (%r14)
	movl	-20(%rbp), %eax
	movl	%eax, 4(%r14)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_smu7_setup_voltage_range_from_vbios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_setup_voltage_range_from_vbios
_smu7_setup_voltage_range_from_vbios:   ; @smu7_setup_voltage_range_from_vbios
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldp	x8, x19, [x0]
	str	xzr, [sp, #8]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x20, [x8]
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_atomctrl_get_voltage_range
	ldr	w8, [sp, #12]
	ldr	x9, [x20, #8]
	ldr	w10, [x9]
	cbz	w8, LBB0_3
; %bb.2:
	cmp	w8, #2000
	ccmp	w8, w10, #0, le
	b.le	LBB0_4
LBB0_3:
	str	w10, [sp, #12]
	mov	x8, x10
LBB0_4:
	ldr	w11, [sp, #8]
	ldrsw	x10, [x20]
	sub	x10, x10, #1
	cbz	w11, LBB0_7
; %bb.5:
	cmp	w11, #2000
	b.gt	LBB0_7
; %bb.6:
	ldr	w12, [x9, x10, lsl #2]
	cmp	w11, w12
	b.ge	LBB0_8
LBB0_7:
	ldr	w9, [x9, x10, lsl #2]
	str	w9, [sp, #8]
LBB0_8:
	str	w8, [x19]
	ldr	w8, [sp, #8]
	str	w8, [x19, #4]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_smu7_setup_voltage_range_from_vbios
.subsections_via_symbols
