	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function polaris10_populate_ulv_level
_polaris10_populate_ulv_level:          ## @polaris10_populate_ulv_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsi)
	movslq	(%rax), %rdx
	movq	%rdx, 8(%rsi)
	movq	_VOLTAGE_VID_OFFSET_SCALE2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%edx, %eax
	movq	_VOLTAGE_VID_OFFSET_SCALE1@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	cltq
	movq	%rax, 32(%rbx)
	movq	(%rdi), %rax
	movq	_CHIP_POLARIS12@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rdi)
	je	LBB0_3
LBB0_2:
	movl	(%rcx), %eax
	xorl	$3, %eax
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	sete	%al
LBB0_4:
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movq	16(%rbx), %rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movq	8(%rbx), %rdi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOLTAGE_VID_OFFSET_SCALE2,4,2  ## @VOLTAGE_VID_OFFSET_SCALE2
	.comm	_VOLTAGE_VID_OFFSET_SCALE1,4,2  ## @VOLTAGE_VID_OFFSET_SCALE1
	.comm	_CHIP_POLARIS12,8,3             ## @CHIP_POLARIS12
	.no_dead_strip	_polaris10_populate_ulv_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function polaris10_populate_ulv_level
_polaris10_populate_ulv_level:          ; @polaris10_populate_ulv_level
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldp	x9, x8, [x0, #16]
	stp	xzr, xzr, [x1, #16]
	ldrsw	x9, [x9]
	str	x9, [x1, #8]
Lloh0:
	adrp	x10, _VOLTAGE_VID_OFFSET_SCALE2@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VOLTAGE_VID_OFFSET_SCALE2@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mul	w9, w10, w9
Lloh3:
	adrp	x10, _VOLTAGE_VID_OFFSET_SCALE1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VOLTAGE_VID_OFFSET_SCALE1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	sxtw	x9, w9
	str	x9, [x1, #32]
	ldr	x9, [x0]
Lloh6:
	adrp	x10, _CHIP_POLARIS12@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CHIP_POLARIS12@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_3
LBB0_2:
	ldr	w8, [x8]
	eor	w8, w8, #0x3
	b	LBB0_4
LBB0_3:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w8, eq
LBB0_4:
	str	w8, [x19]
	mov	x0, #0
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	x0, [x19, #16]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	x0, [x19, #8]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VOLTAGE_VID_OFFSET_SCALE2,4,2  ; @VOLTAGE_VID_OFFSET_SCALE2
	.comm	_VOLTAGE_VID_OFFSET_SCALE1,4,2  ; @VOLTAGE_VID_OFFSET_SCALE1
	.comm	_CHIP_POLARIS12,8,3             ; @CHIP_POLARIS12
	.no_dead_strip	_polaris10_populate_ulv_level
.subsections_via_symbols
