	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_horizontal_source_scroll   ## -- Begin function tui_horizontal_source_scroll
	.p2align	4, 0x90
_tui_horizontal_source_scroll:          ## @tui_horizontal_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	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	_LEFT_SCROLL@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %edx
	leal	(%rdx,%r15), %esi
	subl	%r15d, %edx
	testl	%edx, %edx
	cmovgl	%edx, %r12d
	cmpl	%r14d, (%rcx)
	cmovel	%esi, %r12d
	movl	%r12d, 8(%rbx)
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tui_update_source_window_as_is ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_deprecated_selected_frame,4,2  ## @deprecated_selected_frame
	.comm	_LEFT_SCROLL,4,2                ## @LEFT_SCROLL
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_horizontal_source_scroll   ; -- Begin function tui_horizontal_source_scroll
	.p2align	2
_tui_horizontal_source_scroll:          ; @tui_horizontal_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
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_get_current_source_symtab_and_line
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _deprecated_selected_frame@GOTPAGE
Lloh1:
	ldr	x8, [x8, _deprecated_selected_frame@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_frame_pc
	bl	_find_pc_symtab
LBB0_3:
	mov	x1, x0
Lloh3:
	adrp	x8, _LEFT_SCROLL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEFT_SCROLL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	add	w10, w9, w21
	sub	w9, w9, w21
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	cmp	w8, w20
	csel	w8, w10, w9, eq
	str	w8, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _FALSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	ldr	w2, [x8]
Lloh8:
	ldr	w3, [x9]
	mov	x0, x19
	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	_tui_update_source_window_as_is
LBB0_4:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_deprecated_selected_frame,4,2  ; @deprecated_selected_frame
	.comm	_LEFT_SCROLL,4,2                ; @LEFT_SCROLL
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
