	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_wa_c0_ei
_vlv_wa_c0_ei:                          ## @vlv_wa_c0_ei
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GEN6_PM_RP_UP_EI_EXPIRED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	leaq	-40(%rbp), %rsi
	callq	_vlv_c0_read
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	-32(%rbp), %rdi
	callq	_ktime_us_delta
	movl	%eax, %r14d
	imull	(%rbx), %r14d
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %esi
	subl	8(%rbx), %edi
	subl	12(%rbx), %esi
	callq	_max
	imull	$25600000, %eax, %ecx           ## imm = 0x186A000
	movl	24(%rbx), %eax
	imull	%r14d, %eax
	cmpl	%eax, %ecx
	jle	LBB0_6
## %bb.5:
	movq	_GEN6_PM_RP_UP_THRESHOLD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	imull	28(%rbx), %r14d
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jge	LBB0_9
## %bb.7:
	movq	_GEN6_PM_RP_DOWN_THRESHOLD@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	movups	-40(%rbp), %xmm0
	movups	%xmm0, (%r15)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_PM_RP_UP_EI_EXPIRED,4,2   ## @GEN6_PM_RP_UP_EI_EXPIRED
	.comm	_GEN6_PM_RP_UP_THRESHOLD,4,2    ## @GEN6_PM_RP_UP_THRESHOLD
	.comm	_GEN6_PM_RP_DOWN_THRESHOLD,4,2  ## @GEN6_PM_RP_DOWN_THRESHOLD
	.no_dead_strip	_vlv_wa_c0_ei
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_wa_c0_ei
_vlv_wa_c0_ei:                          ; @vlv_wa_c0_ei
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _GEN6_PM_RP_UP_EI_EXPIRED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN6_PM_RP_UP_EI_EXPIRED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
	mov	x1, sp
	bl	_vlv_c0_read
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_ktime_us_delta
	ldr	w8, [x19]
	mul	w21, w8, w0
	ldp	w8, w9, [sp]
	ldp	w10, w11, [x19, #8]
	sub	w0, w8, w10
	sub	w1, w9, w11
	bl	_max
	mov	w8, #40960
	movk	w8, #390, lsl #16
	mul	w8, w0, w8
	ldr	w9, [x19, #24]
	mul	w9, w9, w21
	cmp	w8, w9
	b.le	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _GEN6_PM_RP_UP_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN6_PM_RP_UP_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	w9, [x19, #28]
	mul	w9, w9, w21
Lloh6:
	adrp	x10, _GEN6_PM_RP_DOWN_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GEN6_PM_RP_DOWN_THRESHOLD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w0, w10, wzr, lt
LBB0_7:
	ldr	q0, [sp]
	str	q0, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_PM_RP_UP_EI_EXPIRED,4,2   ; @GEN6_PM_RP_UP_EI_EXPIRED
	.comm	_GEN6_PM_RP_UP_THRESHOLD,4,2    ; @GEN6_PM_RP_UP_THRESHOLD
	.comm	_GEN6_PM_RP_DOWN_THRESHOLD,4,2  ; @GEN6_PM_RP_DOWN_THRESHOLD
	.no_dead_strip	_vlv_wa_c0_ei
.subsections_via_symbols
