	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scroll_to_last_line
_scroll_to_last_line:                   ## @scroll_to_last_line
	.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), %rcx
	cmpl	$0, 24(%rcx)
	movq	_dash@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	je	LBB0_1
## %bb.2:
	movq	(%rdx), %rdx
	movq	(%rcx), %rsi
	movq	8(%rcx), %rcx
	movl	(%rdx,%rsi,4), %edx
	leal	-1(%rdx), %edi
	subl	%eax, %edx
	cmovll	%ebx, %edx
	cmovlel	%ebx, %edx
	movl	%edi, (%rcx,%rsi,8)
	movl	%edx, 4(%rcx,%rsi,8)
	jmp	LBB0_3
LBB0_1:
	movq	8(%rdx), %rax
	movq	_main_win_height@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rax
	movq	%rax, 16(%rcx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gscroll,32,3                   ## @gscroll
	.comm	_dash,8,3                       ## @dash
	.comm	_main_win_height,8,3            ## @main_win_height
	.no_dead_strip	_scroll_to_last_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scroll_to_last_line
_scroll_to_last_line:                   ; @scroll_to_last_line
	.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	w10, [x8, #24]
Lloh2:
	adrp	x9, _dash@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dash@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cbz	w10, LBB0_2
; %bb.1:
	ldr	x9, [x9]
	ldp	x10, x8, [x8]
	ldr	w9, [x9, x10, lsl #2]
	sub	w11, w9, #1
	subs	w9, w9, w0
	csel	w9, wzr, w9, lt
	csel	w9, w9, wzr, gt
	add	x8, x8, x10, lsl #3
	stp	w11, w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x9, [x9, #8]
Lloh5:
	adrp	x10, _main_win_height@GOTPAGE
Lloh6:
	ldr	x10, [x10, _main_win_height@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	sub	x9, x9, x10
	str	x9, [x8, #16]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_gscroll,32,3                   ; @gscroll
	.comm	_dash,8,3                       ; @dash
	.comm	_main_win_height,8,3            ; @main_win_height
	.no_dead_strip	_scroll_to_last_line
.subsections_via_symbols
