	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_wm_set_for_vlevel
_calculate_wm_set_for_vlevel:           ## @calculate_wm_set_for_vlevel
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	%r13d, 8(%rcx)
	setg	%dil
	callq	_ASSERT
	movl	%r13d, (%r12)
	movq	16(%rbx), %rax
	movslq	%r13d, %rcx
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 8(%r12)
	movl	(%rax,%rcx,8), %eax
	movl	%eax, 4(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_get_wm_urgent
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_get_wm_stutter_enter_exit
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_get_wm_stutter_exit
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_get_wm_dram_clock_change
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 24(%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_get_wm_memory_trip
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 4(%r14)
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calculate_wm_set_for_vlevel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_wm_set_for_vlevel
_calculate_wm_set_for_vlevel:           ; @calculate_wm_set_for_vlevel
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	ldr	d8, [x3]
	ldr	w8, [x3, #8]
	cmp	w8, w0
	cset	w0, gt
	bl	_ASSERT
	str	w24, [x22]
	ldr	x8, [x19, #16]
	ldr	d0, [x8, w24, sxtw #3]
	stur	d0, [x22, #4]
	ldr	d0, [x23]
	str	d0, [x19]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_get_wm_urgent
	mov	w23, #1000
	mul	w8, w0, w23
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_get_wm_stutter_enter_exit
	mul	w8, w0, w23
	str	w8, [x20, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_get_wm_stutter_exit
	mul	w8, w0, w23
	str	w8, [x20, #20]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_get_wm_dram_clock_change
	mul	w8, w0, w23
	str	w8, [x20, #24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_get_wm_memory_trip
	mul	w8, w0, w23
	str	w8, [x20, #4]
	str	d8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calculate_wm_set_for_vlevel
.subsections_via_symbols
