	.file	"extr_splitview.c_cursorPosFun.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cursorPosFun, @function
cursorPosFun:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	movsd	QWORD PTR 8[rsp], xmm0
	lea	rdx, 28[rsp]
	lea	rsi, 24[rsp]
	movsd	QWORD PTR [rsp], xmm1
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	glfwGetWindowSize@PLT
	lea	rdx, 36[rsp]
	lea	rsi, 32[rsp]
	mov	rdi, rbp
	call	glfwGetFramebufferSize@PLT
	pxor	xmm1, xmm1
	pxor	xmm2, xmm2
	movsd	xmm0, QWORD PTR 8[rsp]
	cvtsi2sd	xmm1, DWORD PTR 32[rsp]
	mov	eax, DWORD PTR active_view[rip]
	cvtsi2sd	xmm2, DWORD PTR 24[rsp]
	divsd	xmm1, xmm2
	mulsd	xmm0, xmm1
	mulsd	xmm1, QWORD PTR [rsp]
	cmp	eax, 3
	je	.L2
	cmp	eax, 4
	je	.L3
	cmp	eax, 1
	je	.L8
.L4:
	movsd	QWORD PTR xpos[rip], xmm0
	movsd	QWORD PTR ypos[rip], xmm1
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	DWORD PTR do_redraw[rip], 1
	movapd	xmm2, xmm1
	subsd	xmm2, QWORD PTR ypos[rip]
	cvttsd2si	eax, xmm2
	movapd	xmm2, xmm0
	subsd	xmm2, QWORD PTR xpos[rip]
	add	DWORD PTR rot_x[rip], eax
	cvttsd2si	eax, xmm2
	add	DWORD PTR rot_y[rip], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	DWORD PTR do_redraw[rip], 1
	movapd	xmm2, xmm1
	subsd	xmm2, QWORD PTR ypos[rip]
	cvttsd2si	eax, xmm2
	movapd	xmm2, xmm0
	subsd	xmm2, QWORD PTR xpos[rip]
	add	DWORD PTR rot_x[rip], eax
	cvttsd2si	eax, xmm2
	add	DWORD PTR rot_z[rip], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR do_redraw[rip], 1
	movapd	xmm2, xmm0
	subsd	xmm2, QWORD PTR xpos[rip]
	cvttsd2si	eax, xmm2
	movapd	xmm2, xmm1
	subsd	xmm2, QWORD PTR ypos[rip]
	add	DWORD PTR rot_y[rip], eax
	cvttsd2si	eax, xmm2
	add	DWORD PTR rot_z[rip], eax
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cursorPosFun, .-cursorPosFun
	.comm	ypos,8,8
	.comm	xpos,8,8
	.comm	rot_z,4,4
	.comm	rot_y,4,4
	.comm	rot_x,4,4
	.comm	do_redraw,4,4
	.comm	active_view,4,4
	.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_splitview.c_cursorPosFun.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cursorPosFun, %function
cursorPosFun:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #28
	mov	r5, r3
	ldr	r3, .L12
	mov	r4, r2
	add	r1, sp, #4
	add	r2, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	glfwGetWindowSize
	add	r2, sp, #16
	mov	r0, r6
	add	r1, sp, #12
	bl	glfwGetFramebufferSize
	ldr	r0, [sp, #12]
	bl	__aeabi_i2d
	mov	r6, r0
	ldr	r0, [sp, #4]
	mov	r7, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r4
	mov	r3, r5
	mov	r6, r0
	mov	r7, r1
	bl	__aeabi_dmul
	add	r3, sp, #64
	ldmia	r3, {r2-r3}
	mov	r4, r0
	mov	r5, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	ldr	r3, .L12+4
	mov	r6, r0
	ldr	r8, [r3]
	mov	r7, r1
	cmp	r8, #3
	beq	.L2
	cmp	r8, #4
	beq	.L3
	cmp	r8, #1
	ldr	r9, .L12+8
	beq	.L7
	ldr	r10, .L12+12
.L4:
	stm	r10, {r4-r5}
	stm	r9, {r6-r7}
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r9, .L12+8
	ldr	r8, .L12+16
	ldmia	r9, {r2-r3}
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	ldr	r3, [r8]
	ldr	r10, .L12+12
	add	r0, r0, r3
	str	r0, [r8]
	ldmia	r10, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	mov	ip, #1
	ldr	r3, .L12+20
.L9:
	ldr	r2, [r3]
	ldr	r1, .L12+24
	add	r0, r0, r2
	str	ip, [r1]
	str	r0, [r3]
	b	.L4
.L7:
	ldmia	r9, {r2-r3}
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	ldr	fp, .L12+16
	ldr	r10, .L12+12
	ldr	r3, [fp]
	mov	r1, r5
	add	r0, r0, r3
	str	r0, [fp]
	ldmia	r10, {r2-r3}
	mov	r0, r4
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	ldr	r3, .L12+28
	ldr	r1, .L12+24
	ldr	r2, [r3]
	str	r8, [r1]
	add	r0, r0, r2
	str	r0, [r3]
	b	.L4
.L3:
	ldr	r10, .L12+12
	mov	r0, r4
	ldmia	r10, {r2-r3}
	mov	r1, r5
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	ldr	r1, .L12+20
	ldr	r9, .L12+8
	ldr	ip, [r1]
	ldmia	r9, {r2-r3}
	add	r0, r0, ip
	str	r0, [r1]
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	mov	ip, #1
	ldr	r3, .L12+28
	b	.L9
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	active_view
	.word	ypos
	.word	xpos
	.word	rot_x
	.word	rot_y
	.word	do_redraw
	.word	rot_z
	.size	cursorPosFun, .-cursorPosFun
	.comm	ypos,8,8
	.comm	xpos,8,8
	.comm	rot_z,4,4
	.comm	rot_y,4,4
	.comm	rot_x,4,4
	.comm	do_redraw,4,4
	.comm	active_view,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
