	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_pagedown                     ## -- Begin function v_pagedown
	.p2align	4, 0x90
_v_pagedown:                            ## @v_pagedown
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_VC_C1SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %r12d
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r12d
LBB0_3:
	movq	%r15, %rdi
	callq	_IS_SPLIT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %ebx
	movq	_O_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_VAL
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_MIN
	jmp	LBB0_6
LBB0_5:
	movq	_O_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_VAL
LBB0_6:
                                        ## kill: def $eax killed $eax def $rax
	imull	%r12d, %eax
	leal	-2(%rax), %edx
	cmpl	$3, %eax
	movl	$1, %ebx
	cmovll	%ebx, %edx
	leaq	4(%r14), %rsi
	movq	_CNTRL_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_vs_sm_scroll
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	4(%r14), %eax
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_C1SET,4,2                   ## @VC_C1SET
	.comm	_O_WINDOW,4,2                   ## @O_WINDOW
	.comm	_CNTRL_F,4,2                    ## @CNTRL_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_pagedown                     ; -- Begin function v_pagedown
	.p2align	2
_v_pagedown:                            ; @v_pagedown
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VC_C1SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_C1SET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w22, [x19]
	b	LBB0_3
LBB0_2:
	mov	w22, #1
LBB0_3:
	mov	x0, x20
	bl	_IS_SPLIT
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w21, [x20]
Lloh3:
	adrp	x8, _O_WINDOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_WINDOW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_VAL
	mov	x1, x0
	mov	x0, x21
	bl	_MIN
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _O_WINDOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_WINDOW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_O_VAL
LBB0_6:
	mul	w8, w0, w22
	sub	w9, w8, #2
	cmp	w8, #3
	csinc	w2, w9, wzr, ge
	add	x1, x19, #4
Lloh9:
	adrp	x8, _CNTRL_F@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CNTRL_F@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_vs_sm_scroll
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_C1SET,4,2                   ; @VC_C1SET
	.comm	_O_WINDOW,4,2                   ; @O_WINDOW
	.comm	_CNTRL_F,4,2                    ; @CNTRL_F
.subsections_via_symbols
