	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scroll_to
_scroll_to:                             ## @scroll_to
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rdx), %edx
	cmpl	%r8d, %edx
	jle	LBB0_7
## %bb.1:
	testl	%r8d, %r8d
	js	LBB0_2
## %bb.6:
	movl	%r8d, (%rcx)
	jmp	LBB0_11
LBB0_7:
	cmpl	%r14d, %r8d
	jge	LBB0_8
## %bb.10:
	addl	%ebx, %edx
	movl	%r8d, (%rcx)
	cmpl	%r8d, %edx
	jg	LBB0_13
LBB0_11:
	movl	%r8d, (%r15)
	jmp	LBB0_12
LBB0_8:
	leal	-1(%r14), %eax
	cmpl	%eax, (%rcx)
	jge	LBB0_4
## %bb.9:
	movl	%eax, (%rcx)
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_2:
	testl	%edx, %edx
	jne	LBB0_5
## %bb.3:
	cmpl	$0, (%rcx)
	je	LBB0_4
LBB0_5:
	movl	$0, (%rcx)
	movl	$0, (%r15)
LBB0_12:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r12d
LBB0_14:
	xorl	%ecx, %ecx
	movl	%r14d, %eax
	subl	%ebx, %eax
	jle	LBB0_17
## %bb.15:
	addl	(%r15), %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_18
## %bb.16:
	movl	%eax, %ecx
LBB0_17:
	movl	%ecx, (%r15)
LBB0_18:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_beep
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_scroll_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scroll_to
_scroll_to:                             ; @scroll_to
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	ldr	w22, [x9]
	cmp	w8, w4
	b.le	LBB0_3
; %bb.1:
	tbnz	w4, #31, LBB0_9
; %bb.2:
	str	w4, [x3]
	b	LBB0_6
LBB0_3:
	cmp	w4, w20
	b.ge	LBB0_7
; %bb.4:
	str	w4, [x3]
	add	w8, w8, w21
	cmp	w8, w4
	b.le	LBB0_6
; %bb.5:
	ldr	w22, [x9]
	subs	w8, w20, w21
	b.le	LBB0_15
	b	LBB0_13
LBB0_6:
	str	w4, [x19]
	b	LBB0_12
LBB0_7:
	ldr	w9, [x3]
	sub	w8, w20, #1
	cmp	w9, w8
	b.ge	LBB0_14
; %bb.8:
	str	w8, [x3]
	str	w8, [x19]
	b	LBB0_12
LBB0_9:
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x3]
	cbz	w8, LBB0_14
LBB0_11:
	str	wzr, [x3]
	str	wzr, [x19]
LBB0_12:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	subs	w8, w20, w21
	b.le	LBB0_15
LBB0_13:
	ldr	w9, [x19]
	add	w9, w9, w21
	cmp	w9, w20
	b.ge	LBB0_16
	b	LBB0_17
LBB0_14:
	bl	_beep
	subs	w8, w20, w21
	b.gt	LBB0_13
LBB0_15:
	mov	w8, #0
LBB0_16:
	str	w8, [x19]
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_scroll_to
.subsections_via_symbols
