	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_sm_scroll                   ## -- Begin function vs_sm_scroll
	.p2align	4, 0x90
_vs_sm_scroll:                          ## @vs_sm_scroll
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_VIP
	movq	_VIP_CUR_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_F_SET
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vs_sm_cursor
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	leal	-128(%r12), %eax
	cmpl	$7, %eax
	ja	LBB0_12
## %bb.2:
	movl	$113, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.4:
	movq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_vs_sm_up
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_vs_sm_down
	testl	%eax, %eax
	jne	LBB0_11
LBB0_6:
	cmpl	$130, %r12d
	je	LBB0_10
## %bb.7:
	cmpl	$133, %r12d
	je	LBB0_10
## %bb.8:
	cmpq	$0, (%r14)
	je	LBB0_9
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_nonblank
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_10
LBB0_12:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_VIP_CUR_INVALID,4,2            ## @VIP_CUR_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vs_sm_scroll                   ; -- Begin function vs_sm_scroll
	.p2align	2
_vs_sm_scroll:                          ; @vs_sm_scroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_VIP
Lloh0:
	adrp	x8, _VIP_CUR_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIP_CUR_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_F_SET
	add	x1, sp, #8
	mov	x0, x20
	bl	_vs_sm_cursor
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	sub	w8, w21, #128
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #113
	tst	w8, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	x4, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_vs_sm_up
	cbnz	w0, LBB0_1
	b	LBB0_7
LBB0_6:
	ldr	x4, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_vs_sm_down
	cbnz	w0, LBB0_1
LBB0_7:
	cmp	w21, #130
	b.eq	LBB0_10
; %bb.8:
	cmp	w21, #133
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
LBB0_10:
	mov	w0, #0
	b	LBB0_2
LBB0_11:
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_nonblank
	cbnz	x0, LBB0_1
	b	LBB0_10
LBB0_12:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIP_CUR_INVALID,4,2            ; @VIP_CUR_INVALID
.subsections_via_symbols
