	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cursorPosFun
_cursorPosFun:                          ## @cursorPosFun
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_glfwGetWindowSize
	leaq	-12(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_glfwGetFramebufferSize
	movsd	-24(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	xorps	%xmm0, %xmm0
	cvtsi2sdl	-12(%rbp), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdl	-16(%rbp), %xmm1
	divsd	%xmm1, %xmm0
	mulsd	%xmm0, %xmm3
	mulsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	_active_view@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_rot_z@GOTPCREL(%rip), %rcx
	movq	_xpos@GOTPCREL(%rip), %rax
	movq	_rot_x@GOTPCREL(%rip), %rdx
	movq	_ypos@GOTPCREL(%rip), %rsi
	cmpl	$1, %edi
	je	LBB0_1
## %bb.2:
	cmpl	$4, %edi
	je	LBB0_5
## %bb.3:
	cmpl	$3, %edi
	jne	LBB0_7
## %bb.4:
	movq	_rot_y@GOTPCREL(%rip), %rcx
LBB0_1:
	movapd	%xmm0, %xmm1
	movapd	%xmm3, %xmm2
	jmp	LBB0_6
LBB0_5:
	movq	_ypos@GOTPCREL(%rip), %rax
	movq	_rot_y@GOTPCREL(%rip), %rdx
	movq	_xpos@GOTPCREL(%rip), %rsi
	movapd	%xmm3, %xmm1
	movapd	%xmm0, %xmm2
LBB0_6:
	subsd	(%rsi), %xmm1
	cvttsd2si	%xmm1, %esi
	addl	%esi, (%rdx)
	subsd	(%rax), %xmm2
	cvttsd2si	%xmm2, %eax
	addl	%eax, (%rcx)
	movq	_do_redraw@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_7:
	movq	_xpos@GOTPCREL(%rip), %rax
	movsd	%xmm3, (%rax)
	movq	_ypos@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_active_view,4,2                ## @active_view
	.comm	_ypos,8,3                       ## @ypos
	.comm	_rot_x,4,2                      ## @rot_x
	.comm	_xpos,8,3                       ## @xpos
	.comm	_rot_z,4,2                      ## @rot_z
	.comm	_do_redraw,4,2                  ## @do_redraw
	.comm	_rot_y,4,2                      ## @rot_y
	.no_dead_strip	_cursorPosFun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cursorPosFun
_cursorPosFun:                          ; @cursorPosFun
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	d8, d1
	fmov	d9, d0
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_glfwGetWindowSize
	add	x1, sp, #4
	mov	x2, sp
	mov	x0, x19
	bl	_glfwGetFramebufferSize
	ldr	s0, [sp, #4]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	ldr	s1, [sp, #12]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d1, d0, d1
	fmul	d0, d1, d9
	fmul	d1, d1, d8
Lloh0:
	adrp	x8, _active_view@GOTPAGE
Lloh1:
	ldr	x8, [x8, _active_view@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _xpos@GOTPAGE
Lloh4:
	ldr	x9, [x9, _xpos@GOTPAGEOFF]
Lloh5:
	adrp	x8, _ypos@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ypos@GOTPAGEOFF]
	cmp	w10, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #4
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #3
	b.ne	LBB0_7
; %bb.3:
Lloh7:
	adrp	x10, _rot_y@GOTPAGE
Lloh8:
	ldr	x10, [x10, _rot_y@GOTPAGEOFF]
Lloh9:
	adrp	x12, _xpos@GOTPAGE
Lloh10:
	ldr	x12, [x12, _xpos@GOTPAGEOFF]
Lloh11:
	adrp	x11, _rot_x@GOTPAGE
Lloh12:
	ldr	x11, [x11, _rot_x@GOTPAGEOFF]
	fmov	d2, d1
	fmov	d3, d0
Lloh13:
	adrp	x13, _ypos@GOTPAGE
Lloh14:
	ldr	x13, [x13, _ypos@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x10, _rot_z@GOTPAGE
Lloh16:
	ldr	x10, [x10, _rot_z@GOTPAGEOFF]
Lloh17:
	adrp	x11, _rot_x@GOTPAGE
Lloh18:
	ldr	x11, [x11, _rot_x@GOTPAGEOFF]
	mov	x13, x8
	fmov	d2, d1
	mov	x12, x9
	fmov	d3, d0
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x10, _rot_z@GOTPAGE
Lloh20:
	ldr	x10, [x10, _rot_z@GOTPAGEOFF]
Lloh21:
	adrp	x12, _ypos@GOTPAGE
Lloh22:
	ldr	x12, [x12, _ypos@GOTPAGEOFF]
Lloh23:
	adrp	x11, _rot_y@GOTPAGE
Lloh24:
	ldr	x11, [x11, _rot_y@GOTPAGEOFF]
	fmov	d2, d0
	fmov	d3, d1
Lloh25:
	adrp	x13, _xpos@GOTPAGE
Lloh26:
	ldr	x13, [x13, _xpos@GOTPAGEOFF]
LBB0_6:
	ldr	d4, [x13]
	fsub	d2, d2, d4
	fcvtzs	w13, d2
	ldr	w14, [x11]
	add	w13, w14, w13
	str	w13, [x11]
	ldr	d2, [x12]
	fsub	d2, d3, d2
	fcvtzs	w11, d2
	ldr	w12, [x10]
	add	w11, w12, w11
	str	w11, [x10]
Lloh27:
	adrp	x10, _do_redraw@GOTPAGE
Lloh28:
	ldr	x10, [x10, _do_redraw@GOTPAGEOFF]
	mov	w11, #1
Lloh29:
	str	w11, [x10]
LBB0_7:
	str	d0, [x9]
	str	d1, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_active_view,4,2                ; @active_view
	.comm	_ypos,8,3                       ; @ypos
	.comm	_rot_x,4,2                      ; @rot_x
	.comm	_xpos,8,3                       ; @xpos
	.comm	_rot_z,4,2                      ; @rot_z
	.comm	_do_redraw,4,2                  ; @do_redraw
	.comm	_rot_y,4,2                      ; @rot_y
	.no_dead_strip	_cursorPosFun
.subsections_via_symbols
