	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function page_up_module
_page_up_module:                        ## @page_up_module
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_num_expanded_data_rows
	movq	_gscroll@GOTPCREL(%rip), %rdx
	cmpl	$0, 8(%rdx)
	je	LBB0_4
## %bb.1:
	movq	(%rdx), %rcx
	movq	16(%rdx), %rdx
	movl	(%rdx,%rcx,8), %esi
	subl	%eax, %esi
	testl	%esi, %esi
	cmovlel	%ebx, %esi
	movl	4(%rdx,%rcx,8), %edi
	cmpl	%edi, %esi
	cmovll	%eax, %ebx
	movl	%edi, %eax
	subl	%ebx, %eax
	movl	%esi, (%rdx,%rcx,8)
	cmpl	%edi, %esi
	jl	LBB0_3
## %bb.2:
	testl	%eax, %eax
	jg	LBB0_4
LBB0_3:
	xorl	%esi, %esi
	testl	%eax, %eax
	cmovgl	%eax, %esi
	movl	%esi, 4(%rdx,%rcx,8)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gscroll,24,3                   ## @gscroll
	.no_dead_strip	_page_up_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function page_up_module
_page_up_module:                        ; @page_up_module
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_get_num_expanded_data_rows
Lloh0:
	adrp	x8, _gscroll@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gscroll@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	x10, [x8, #16]
	ldr	x8, [x8]
	add	x9, x10, x8, lsl #3
	lsl	x11, x8, #3
	ldr	w12, [x10, x11]
	add	x8, x9, #4
	sub	w9, w12, w0
	cmp	w9, #0
	csel	w12, w9, wzr, gt
	ldr	w13, [x8]
	cmp	w12, w13
	csel	w9, w0, wzr, lt
	sub	w9, w13, w9
	cmp	w12, w13
	str	w12, [x10, x11]
	ccmp	w9, #0, #4, ge
	b.gt	LBB0_3
; %bb.2:
	cmp	w9, #1
	csel	w9, wzr, w9, lt
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gscroll,24,3                   ; @gscroll
	.no_dead_strip	_page_up_module
.subsections_via_symbols
