	.file	"extr_display_mode_vba_20.c_CalculatePrefetchSourceLines.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"WARNING DML: using viewport y position of 0 even though actual viewport y position is non-zero in prefetch source lines calculation\n"
	.text
	.p2align 4
	.type	CalculatePrefetchSourceLines, @function
CalculatePrefetchSourceLines:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	addsd	xmm1, xmm0
	movapd	xmm2, xmm0
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movapd	xmm0, xmm1
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	movsd	xmm1, QWORD PTR .LC0[rip]
	mov	r13, QWORD PTR 64[rsp]
	addsd	xmm1, xmm0
	test	edx, edx
	je	.L2
	mulsd	xmm1, QWORD PTR .LC1[rip]
	mov	edi, 1
	movapd	xmm0, xmm1
	call	dml_floor@PLT
	mov	eax, DWORD PTR [r14]
	movsd	QWORD PTR 0[rbp], xmm0
	test	eax, eax
	je	.L28
.L4:
	test	r12d, r12d
	jne	.L29
.L11:
	mov	eax, ebx
	pxor	xmm1, xmm1
	movsd	xmm0, QWORD PTR 0[rbp]
	mov	edi, 1
	cvtsi2sd	xmm1, rax
	divsd	xmm0, xmm1
	movsd	QWORD PTR 8[rsp], xmm1
	call	dml_ceil@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	cvttsd2si	rax, xmm0
	movsd	xmm0, QWORD PTR 0[rbp]
	comisd	xmm0, QWORD PTR .LC0[rip]
	mov	DWORD PTR 0[r13], eax
	mov	ecx, eax
	jbe	.L24
	movapd	xmm1, xmm0
	subsd	xmm1, QWORD PTR .LC0[rip]
	xor	edx, edx
	cvttsd2si	rax, xmm1
	div	ebx
.L10:
	imul	ebx, ecx
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pxor	xmm0, xmm0
	lea	eax, [rbx+rdx]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	cvtsi2sd	xmm0, rax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pxor	xmm0, xmm0
	movsd	xmm3, QWORD PTR .LC1[rip]
	mov	edi, 1
	cvtsi2sd	xmm0, esi
	mulsd	xmm0, xmm3
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mulsd	xmm0, xmm3
	call	dml_floor@PLT
	mov	eax, DWORD PTR [r14]
	movsd	QWORD PTR 0[rbp], xmm0
	test	eax, eax
	jne	.L4
.L28:
	mov	eax, ebx
	pxor	xmm1, xmm1
	movsd	xmm0, QWORD PTR 0[rbp]
	mov	edi, 1
	cvtsi2sd	xmm1, rax
	subsd	xmm0, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR 8[rsp], xmm1
	call	dml_ceil@PLT
	addsd	xmm0, QWORD PTR .LC0[rip]
	movsd	xmm1, QWORD PTR 8[rsp]
	cvttsd2si	rax, xmm0
	movsd	xmm0, QWORD PTR 0[rbp]
	comisd	xmm0, QWORD PTR .LC0[rip]
	mov	DWORD PTR 0[r13], eax
	jbe	.L23
	movapd	xmm1, xmm0
.L26:
	subsd	xmm1, QWORD PTR .LC2[rip]
	xor	edx, edx
	mov	edi, 1
	cvttsd2si	rax, xmm1
	div	ebx
	mov	esi, edx
	call	dml_max@PLT
	mov	ecx, DWORD PTR 0[r13]
	mov	edx, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	addsd	xmm1, xmm0
	subsd	xmm1, QWORD PTR .LC0[rip]
	xor	edx, edx
	cvttsd2si	rax, xmm1
	div	ebx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC3[rip]
	call	dml_print@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	addsd	xmm1, xmm0
	jmp	.L26
	.cfi_endproc
.LFE0:
	.size	CalculatePrefetchSourceLines, .-CalculatePrefetchSourceLines
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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_display_mode_vba_20.c_CalculatePrefetchSourceLines.c"
	.text
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_i2d
	.global	__aeabi_ui2d
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_d2uiz
	.global	__aeabi_dcmpgt
	.global	__aeabi_uidivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WARNING DML: using viewport y position of 0 even th"
	.ascii	"ough actual viewport y position is non-zero in pref"
	.ascii	"etch source lines calculation\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculatePrefetchSourceLines, %function
CalculatePrefetchSourceLines:
	@ args = 32, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r5, r3
	add	r3, sp, #40
	ldmia	r3, {r2-r3}
	mov	fp, r0
	mov	r1, r5
	mov	r0, r4
	bl	__aeabi_dadd
	ldr	r3, .L28
	mov	r2, #0
	bl	__aeabi_dadd
	ldr	r3, [sp, #52]
	ldr	r7, [sp, #56]
	cmp	r3, #0
	ldr	r6, [sp, #64]
	ldr	r10, [sp, #68]
	bne	.L20
	mov	r8, r0
	mov	r9, r1
	ldr	r0, [sp, #48]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L28+4
	bl	__aeabi_dmul
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dmul
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dadd
.L20:
	ldr	r3, .L28+4
	mov	r2, #0
	bl	__aeabi_dmul
	mov	r2, #1
	bl	dml_floor
	ldr	r3, [fp]
	stm	r6, {r0-r1}
	cmp	r3, #0
	beq	.L24
	ldr	r3, [sp, #60]
	cmp	r3, #0
	bne	.L25
.L9:
	mov	r0, r7
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldmia	r6, {r0-r1}
	mov	r3, r5
	mov	r2, r4
	bl	__aeabi_ddiv
	mov	r2, #1
	bl	dml_ceil
	bl	__aeabi_d2uiz
	ldmia	r6, {r8-r9}
	mov	r6, r0
	mov	r1, r9
	mov	r0, r8
	mov	r2, #0
	ldr	r3, .L28
	str	r6, [r10]
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	movne	r0, r8
	movne	r1, r9
	beq	.L26
.L22:
	mov	r2, #0
	ldr	r3, .L28
	bl	__aeabi_dsub
	bl	__aeabi_d2uiz
	mov	r1, r7
	bl	__aeabi_uidivmod
.L8:
	mla	r0, r6, r7, r1
	bl	__aeabi_ui2d
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r2, r8
	mov	r3, r9
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	b	.L22
.L25:
	ldr	r0, .L28+8
	bl	dml_print
	b	.L9
.L24:
	mov	r0, r7
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldmia	r6, {r0-r1}
	mov	r2, #0
	ldr	r3, .L28
	bl	__aeabi_dsub
	mov	r3, r5
	mov	r2, r4
	bl	__aeabi_ddiv
	mov	r2, #1
	bl	dml_ceil
	mov	r2, #0
	ldr	r3, .L28
	bl	__aeabi_dadd
	bl	__aeabi_d2uiz
	ldmia	r6, {r8-r9}
	mov	r2, #0
	mov	r1, r9
	str	r0, [r10]
	ldr	r3, .L28
	mov	r0, r8
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	movne	r0, r8
	movne	r1, r9
	beq	.L27
.L21:
	mov	r2, #0
	mov	r3, #1073741824
	bl	__aeabi_dsub
	bl	__aeabi_d2uiz
	mov	r1, r7
	bl	__aeabi_uidivmod
	mov	r0, #1
	bl	dml_max
	ldr	r6, [r10]
	mov	r1, r0
	b	.L8
.L27:
	mov	r2, r8
	mov	r3, r9
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	b	.L21
.L29:
	.align	2
.L28:
	.word	1072693248
	.word	1071644672
	.word	.LC0
	.size	CalculatePrefetchSourceLines, .-CalculatePrefetchSourceLines
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
