	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function sample_input
LCPI0_0:
	.long	0x3f400000                      ## float 0.75
LCPI0_1:
	.long	0x3e800000                      ## float 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sample_input
	.p2align	4, 0x90
_sample_input:                          ## @sample_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_cursor_method@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cursor_sync_query@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	leaq	-16(%rbp), %rsi
	leaq	-8(%rbp), %rdx
	callq	_glfwGetCursorPos
	movsd	-16(%rbp), %xmm0                ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm1
	movq	_cursor_new@GOTPCREL(%rip), %rax
	movss	%xmm1, (%rax)
	movsd	-8(%rbp), %xmm0                 ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, 4(%rax)
	jmp	LBB0_3
LBB0_1:
	movq	_cursor_new@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
LBB0_3:
	movq	_cursor_pos@GOTPCREL(%rip), %rax
	subss	(%rax), %xmm1
	movq	_cursor_vel@GOTPCREL(%rip), %rcx
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movss	(%rcx), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm3
	movss	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm1
	addss	%xmm3, %xmm1
	movss	%xmm1, (%rcx)
	subss	4(%rax), %xmm0
	mulss	4(%rcx), %xmm2
	mulss	%xmm4, %xmm0
	addss	%xmm2, %xmm0
	movss	%xmm0, 4(%rcx)
	movq	_cursor_new@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cursor_method,8,3              ## @cursor_method
	.comm	_cursor_sync_query,8,3          ## @cursor_sync_query
	.comm	_cursor_new,8,2                 ## @cursor_new
	.comm	_cursor_pos,8,2                 ## @cursor_pos
	.comm	_cursor_vel,8,2                 ## @cursor_vel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sample_input                   ; -- Begin function sample_input
	.p2align	2
_sample_input:                          ; @sample_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _cursor_method@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cursor_method@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _cursor_sync_query@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cursor_sync_query@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x19, _cursor_new@GOTPAGE
Lloh7:
	ldr	x19, [x19, _cursor_new@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x20, sp
	add	x1, sp, #8
	mov	x2, sp
	bl	_glfwGetCursorPos
	ldr	d0, [sp, #8]
	ld1.d	{ v0 }[1], [x20]
	fcvtn	v0.2s, v0.2d
	str	d0, [x19]
	b	LBB0_3
LBB0_2:
	ldr	d0, [x19]
LBB0_3:
Lloh8:
	adrp	x8, _cursor_pos@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cursor_pos@GOTPAGEOFF]
	ldr	d1, [x8]
	fsub.2s	v0, v0, v1
Lloh10:
	adrp	x9, _cursor_vel@GOTPAGE
Lloh11:
	ldr	x9, [x9, _cursor_vel@GOTPAGEOFF]
	ldr	d1, [x9]
	fmov.2s	v2, #0.75000000
	fmul.2s	v1, v1, v2
	fmov.2s	v2, #0.25000000
	fmla.2s	v1, v2, v0
	str	d1, [x9]
	ldr	x9, [x19]
	str	x9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_cursor_method,8,3              ; @cursor_method
	.comm	_cursor_sync_query,8,3          ; @cursor_sync_query
	.comm	_cursor_new,8,2                 ; @cursor_new
	.comm	_cursor_pos,8,2                 ; @cursor_pos
	.comm	_cursor_vel,8,2                 ; @cursor_vel
.subsections_via_symbols
