	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function on_scroll
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_on_scroll
	.p2align	4, 0x90
_on_scroll:                             ## @on_scroll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addsd	_on_scroll.ypos(%rip), %xmm1
	movsd	%xmm1, _on_scroll.ypos(%rip)
	movq	_SCROLL_THRESHOLD@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movapd	LCPI0_0(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0]
	xorpd	%xmm0, %xmm2
	ucomisd	%xmm1, %xmm2
	ja	LBB0_1
## %bb.2:
	ucomisd	%xmm0, %xmm1
	ja	LBB0_3
LBB0_6:
	popq	%rbp
	retq
LBB0_1:
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %eax
	incl	%eax
	movq	_item_count@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%edx, (%rcx)
	movq	$0, _on_scroll.ypos(%rip)
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_6
LBB0_3:
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	leal	-1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jg	LBB0_5
## %bb.4:
	movq	_item_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	movl	%ecx, (%rax)
LBB0_5:
	movq	$0, _on_scroll.ypos(%rip)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_on_scroll.ypos,8,3 ## @on_scroll.ypos
	.comm	_SCROLL_THRESHOLD,8,3           ## @SCROLL_THRESHOLD
	.comm	_g,8,3                          ## @g
	.comm	_item_count,4,2                 ## @item_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_on_scroll                      ; -- Begin function on_scroll
	.p2align	2
_on_scroll:                             ; @on_scroll
	.cfi_startproc
; %bb.0:
	adrp	x8, _on_scroll.ypos@PAGE
	ldr	d0, [x8, _on_scroll.ypos@PAGEOFF]
	fadd	d1, d0, d1
Lloh0:
	adrp	x9, _SCROLL_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCROLL_THRESHOLD@GOTPAGEOFF]
	str	d1, [x8, _on_scroll.ypos@PAGEOFF]
Lloh2:
	ldr	d0, [x9]
	fneg	d2, d0
	fcmp	d1, d2
Lloh3:
	adrp	x9, _g@GOTPAGE
Lloh4:
	ldr	x9, [x9, _g@GOTPAGEOFF]
	b.mi	LBB0_3
; %bb.1:
	fcmp	d1, d0
	b.gt	LBB0_4
LBB0_2:
	ret
LBB0_3:
	ldr	x10, [x9]
	ldr	w11, [x10]
	add	w11, w11, #1
Lloh5:
	adrp	x12, _item_count@GOTPAGE
Lloh6:
	ldr	x12, [x12, _item_count@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	sdiv	w13, w11, w12
	msub	w11, w13, w12, w11
	str	w11, [x10]
	str	xzr, [x8, _on_scroll.ypos@PAGEOFF]
	movi	d1, #0000000000000000
	fcmp	d1, d0
	b.le	LBB0_2
LBB0_4:
	ldr	x9, [x9]
	ldr	w10, [x9]
	sub	w11, w10, #1
	str	w11, [x9]
	cmp	w10, #0
	b.le	LBB0_6
; %bb.5:
	str	xzr, [x8, _on_scroll.ypos@PAGEOFF]
	ret
LBB0_6:
Lloh8:
	adrp	x10, _item_count@GOTPAGE
Lloh9:
	ldr	x10, [x10, _item_count@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	sub	w10, w10, #1
	str	w10, [x9]
	str	xzr, [x8, _on_scroll.ypos@PAGEOFF]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_on_scroll.ypos,8,3 ; @on_scroll.ypos
	.comm	_SCROLL_THRESHOLD,8,3           ; @SCROLL_THRESHOLD
	.comm	_g,8,3                          ; @g
	.comm	_item_count,4,2                 ; @item_count
.subsections_via_symbols
