	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_vertical_source_scroll     ## -- Begin function tui_vertical_source_scroll
	.p2align	4, 0x90
_tui_vertical_source_scroll:            ## @tui_vertical_source_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TUI_SRC_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_get_current_source_symtab_and_line
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_deprecated_selected_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_frame_pc
	movl	%eax, %edi
	callq	_find_pc_symtab
LBB0_3:
	movq	_FORWARD_SCROLL@GOTPCREL(%rip), %rdx
	movq	(%r15), %rcx
	movl	(%rcx), %ecx
	cmpl	%r14d, (%rdx)
	jne	LBB0_5
## %bb.4:
	addl	%ecx, %ebx
	cmpl	(%rax), %ebx
	cmovgl	%ecx, %ebx
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	subl	%ebx, %ecx
	cmpl	$2, %ecx
	movl	$1, %ebx
	cmovgel	%ecx, %ebx
LBB0_6:
	leal	1(%rbx), %edx
	movq	%rax, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_source_lines             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TUI_SRC_WIN,8,3                ## @TUI_SRC_WIN
	.comm	_deprecated_selected_frame,4,2  ## @deprecated_selected_frame
	.comm	_FORWARD_SCROLL,4,2             ## @FORWARD_SCROLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_vertical_source_scroll     ; -- Begin function tui_vertical_source_scroll
	.p2align	2
_tui_vertical_source_scroll:            ; @tui_vertical_source_scroll
	.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
Lloh0:
	adrp	x8, _TUI_SRC_WIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUI_SRC_WIN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8]
	cbz	x21, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_get_current_source_symtab_and_line
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _deprecated_selected_frame@GOTPAGE
Lloh4:
	ldr	x8, [x8, _deprecated_selected_frame@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_get_frame_pc
	bl	_find_pc_symtab
LBB0_3:
Lloh6:
	adrp	x8, _FORWARD_SCROLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FORWARD_SCROLL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w9, w20
	b.ne	LBB0_6
; %bb.4:
	ldr	w9, [x0]
	add	w10, w8, w19
	cmp	w10, w9
	csel	w1, w8, w10, gt
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
	sub	w8, w8, w19
	cmp	w8, #1
	csinc	w1, w8, wzr, gt
LBB0_7:
	add	w2, w1, #1
	mov	w3, #0
	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
	b	_print_source_lines
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TUI_SRC_WIN,8,3                ; @TUI_SRC_WIN
	.comm	_deprecated_selected_frame,4,2  ; @deprecated_selected_frame
	.comm	_FORWARD_SCROLL,4,2             ; @FORWARD_SCROLL
.subsections_via_symbols
