	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_ulv_level
_ci_populate_ulv_level:                 ## @ci_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ci_get_pi
	movq	%rax, %rcx
	movq	(%rbx), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rsi
	movq	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %rdi
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%rdi), %rsi
	jne	LBB0_3
## %bb.6:
	subq	%rdx, %rax
	jge	LBB0_8
## %bb.7:
	movq	$0, 32(%r14)
	jmp	LBB0_12
LBB0_1:
	movl	$0, 16(%rcx)
	jmp	LBB0_13
LBB0_3:
	subq	%rdx, %rax
	jge	LBB0_5
## %bb.4:
	movq	$0, 8(%r14)
	jmp	LBB0_12
LBB0_8:
	movq	_VOLTAGE_VID_OFFSET_SCALE2@GOTPCREL(%rip), %rdx
	imulq	(%rdx), %rax
	movq	_VOLTAGE_VID_OFFSET_SCALE1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	cqto
	idivq	%rsi
	jmp	LBB0_11
LBB0_5:
	movq	%rax, 8(%r14)
	jmp	LBB0_12
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movq	%rax, 32(%r14)
LBB0_12:
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	sete	%al
	movl	%eax, (%r14)
	xorl	%edi, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r14)
	movq	16(%r14), %rdi
	callq	_cpu_to_be32
	movq	%rax, 16(%r14)
	movq	8(%r14), %rdi
	callq	_cpu_to_be16
	movq	%rax, 8(%r14)
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2,8,3 ## @CISLANDS_VOLTAGE_CONTROL_BY_SVID2
	.comm	_VOLTAGE_VID_OFFSET_SCALE2,8,3  ## @VOLTAGE_VID_OFFSET_SCALE2
	.comm	_VOLTAGE_VID_OFFSET_SCALE1,8,3  ## @VOLTAGE_VID_OFFSET_SCALE1
	.no_dead_strip	_ci_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 ci_populate_ulv_level
_ci_populate_ulv_level:                 ; @ci_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
	mov	x20, x0
	bl	_ci_get_pi
	ldr	x8, [x20]
	stp	xzr, xzr, [x19, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x10, [x0]
Lloh0:
	adrp	x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CISLANDS_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.2:
	subs	x8, x9, x8
	b.ge	LBB0_7
; %bb.3:
	str	xzr, [x19, #32]
	b	LBB0_9
LBB0_4:
	str	wzr, [x0, #16]
	b	LBB0_10
LBB0_5:
	subs	x8, x9, x8
	b.ge	LBB0_8
; %bb.6:
	str	xzr, [x19, #8]
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x9, _VOLTAGE_VID_OFFSET_SCALE2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VOLTAGE_VID_OFFSET_SCALE2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mul	x8, x9, x8
Lloh6:
	adrp	x9, _VOLTAGE_VID_OFFSET_SCALE1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VOLTAGE_VID_OFFSET_SCALE1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sdiv	x8, x8, x9
	str	x8, [x19, #32]
	b	LBB0_9
LBB0_8:
	str	x8, [x19, #8]
LBB0_9:
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [x19]
	mov	x0, #0
	bl	_cpu_to_be32
	str	x0, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_cpu_to_be32
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_cpu_to_be16
	str	x0, [x19, #8]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CISLANDS_VOLTAGE_CONTROL_BY_SVID2,8,3 ; @CISLANDS_VOLTAGE_CONTROL_BY_SVID2
	.comm	_VOLTAGE_VID_OFFSET_SCALE2,8,3  ; @VOLTAGE_VID_OFFSET_SCALE2
	.comm	_VOLTAGE_VID_OFFSET_SCALE1,8,3  ; @VOLTAGE_VID_OFFSET_SCALE1
	.no_dead_strip	_ci_populate_ulv_level
.subsections_via_symbols
