	.file	"extr_dcn21_resource.c_calculate_wm_set_for_vlevel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calculate_wm_set_for_vlevel, @function
calculate_wm_set_for_vlevel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movsx	r14, edi
	xor	edi, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR 8[rcx], r14d
	movsd	xmm0, QWORD PTR [rcx]
	setg	dil
	movsd	QWORD PTR 8[rsp], xmm0
	call	ASSERT@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR 0[rbp], r14d
	mov	rsi, rbp
	movsd	xmm1, QWORD PTR [r15]
	mov	rdi, rbx
	lea	rax, [rax+r14*8]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 8[rbp], edx
	mov	edx, r13d
	mov	DWORD PTR 4[rbp], eax
	movsd	QWORD PTR [rbx], xmm1
	call	get_wm_urgent@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rbx
	imul	eax, eax, 1000
	mov	DWORD PTR [r12], eax
	call	get_wm_stutter_enter_exit@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rbx
	imul	eax, eax, 1000
	mov	DWORD PTR 16[r12], eax
	call	get_wm_stutter_exit@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rbx
	imul	eax, eax, 1000
	mov	DWORD PTR 20[r12], eax
	call	get_wm_dram_clock_change@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, rbx
	imul	eax, eax, 1000
	mov	DWORD PTR 24[r12], eax
	call	get_wm_memory_trip@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	imul	eax, eax, 1000
	mov	DWORD PTR 4[r12], eax
	movsd	QWORD PTR [rbx], xmm0
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	calculate_wm_set_for_vlevel, .-calculate_wm_set_for_vlevel
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dcn21_resource.c_calculate_wm_set_for_vlevel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_wm_set_for_vlevel, %function
calculate_wm_set_for_vlevel:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldmia	r3, {r8-r9}
	mov	r10, r0
	mov	r4, r3
	mov	fp, r1
	ldr	r0, [r3, #8]
	ldr	r5, [sp, #40]
	cmp	r0, r10
	movle	r0, #0
	movgt	r0, #1
	mov	r6, r2
	ldr	r7, [sp, #44]
	bl	ASSERT
	ldmia	fp, {r2-r3}
	ldr	r1, [r4, #12]
	str	r10, [r5]
	add	r0, r1, r10, lsl #3
	ldr	r0, [r0, #4]
	ldr	r1, [r1, r10, lsl #3]
	str	r0, [r5, #8]
	str	r1, [r5, #4]
	mov	r0, r4
	stm	r4, {r2-r3}
	mov	r1, r5
	mov	r2, r7
	bl	get_wm_urgent
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	mov	r2, r7
	mov	r1, r5
	str	r0, [r6]
	mov	r0, r4
	bl	get_wm_stutter_enter_exit
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	mov	r2, r7
	mov	r1, r5
	str	r0, [r6, #16]
	mov	r0, r4
	bl	get_wm_stutter_exit
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	mov	r2, r7
	mov	r1, r5
	str	r0, [r6, #20]
	mov	r0, r4
	bl	get_wm_dram_clock_change
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	str	r0, [r6, #24]
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	bl	get_wm_memory_trip
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	str	r0, [r6, #4]
	stm	r4, {r8-r9}
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	calculate_wm_set_for_vlevel, .-calculate_wm_set_for_vlevel
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
