; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library (FileBufferMovePosition)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.EFI_EDITOR_FILE_BUFFER = type { ptr, i32, ptr, ptr, i64, %struct.EFI_EDITOR_POSITION, %struct.EFI_EDITOR_POSITION, %struct.EFI_EDITOR_POSITION, %struct.EFI_EDITOR_POSITION, i8, i8, i8, ptr }
%struct.EFI_EDITOR_POSITION = type { i64, i64 }
%struct.EFI_EDITOR_GLOBAL_EDITOR = type { ptr, %union.EFI_EDITOR_COLOR_UNION, %struct.EFI_EDITOR_POSITION, ptr, i8, ptr, i32, i32 }
%union.EFI_EDITOR_COLOR_UNION = type { i64 }

@FileBuffer = external dso_local global %struct.EFI_EDITOR_FILE_BUFFER, align 8
@MainEditor = external global %struct.EFI_EDITOR_GLOBAL_EDITOR, align 8

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @FileBufferMovePosition(i64 noundef %0, i64 noundef %1) #1 {
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  store i64 %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #2
  %12 = load i64, ptr %3, align 8, !tbaa !5
  %13 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), align 8, !tbaa !9
  %14 = sub i64 %12, %13
  store i64 %14, ptr %5, align 8, !tbaa !5
  %15 = load i64, ptr %4, align 8, !tbaa !5
  %16 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), i32 0, i32 1), align 8, !tbaa !14
  %17 = sub i64 %15, %16
  store i64 %17, ptr %6, align 8, !tbaa !5
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = call zeroext i8 @UnderCurrentScreen(i64 noundef %18)
  store i8 %19, ptr %9, align 1, !tbaa !15
  %20 = load i64, ptr %3, align 8, !tbaa !5
  %21 = call zeroext i8 @AboveCurrentScreen(i64 noundef %20)
  store i8 %21, ptr %8, align 1, !tbaa !15
  %22 = load i8, ptr %9, align 1, !tbaa !15
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %2
  %25 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %25, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), align 8, !tbaa !9
  br label %62

26:                                               ; preds = %2
  %27 = load i8, ptr %8, align 1, !tbaa !15
  %28 = icmp ne i8 %27, 0
  br i1 %28, label %29, label %39

29:                                               ; preds = %26
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  %32 = sub i64 %31, 1
  %33 = icmp ult i64 %30, %32
  br i1 %33, label %34, label %37

34:                                               ; preds = %29
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = add i64 %35, 1
  store i64 %36, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  br label %37

37:                                               ; preds = %34, %29
  %38 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %38, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), align 8, !tbaa !9
  br label %61

39:                                               ; preds = %26
  %40 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %40, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), align 8, !tbaa !9
  %41 = load i64, ptr %5, align 8, !tbaa !5
  %42 = icmp slt i64 %41, 0
  br i1 %42, label %43, label %56

43:                                               ; preds = %39
  %44 = load i64, ptr %5, align 8, !tbaa !5
  %45 = icmp slt i64 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = load i64, ptr %5, align 8, !tbaa !5
  %48 = sub nsw i64 0, %47
  br label %51

49:                                               ; preds = %43
  %50 = load i64, ptr %5, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %49, %46
  %52 = phi i64 [ %48, %46 ], [ %50, %49 ]
  store i64 %52, ptr %7, align 8, !tbaa !5
  %53 = load i64, ptr %7, align 8, !tbaa !5
  %54 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  %55 = sub i64 %54, %53
  store i64 %55, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  br label %60

56:                                               ; preds = %39
  %57 = load i64, ptr %5, align 8, !tbaa !5
  %58 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  %59 = add i64 %58, %57
  store i64 %59, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  br label %60

60:                                               ; preds = %56, %51
  br label %61

61:                                               ; preds = %60, %37
  br label %62

62:                                               ; preds = %61, %24
  %63 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), align 8, !tbaa !9
  %64 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), align 8, !tbaa !16
  %65 = sub i64 %64, 2
  %66 = sub i64 %63, %65
  store i64 %66, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 8), align 8, !tbaa !17
  %67 = load i64, ptr %4, align 8, !tbaa !5
  %68 = call zeroext i8 @RightCurrentScreen(i64 noundef %67)
  store i8 %68, ptr %10, align 1, !tbaa !15
  %69 = load i64, ptr %4, align 8, !tbaa !5
  %70 = call zeroext i8 @LeftCurrentScreen(i64 noundef %69)
  store i8 %70, ptr %11, align 1, !tbaa !15
  %71 = load i8, ptr %10, align 1, !tbaa !15
  %72 = icmp ne i8 %71, 0
  br i1 %72, label %73, label %76

73:                                               ; preds = %62
  %74 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_GLOBAL_EDITOR, ptr @MainEditor, i32 0, i32 2), i32 0, i32 1), align 8, !tbaa !18
  store i64 %74, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  %75 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %75, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), i32 0, i32 1), align 8, !tbaa !14
  br label %103

76:                                               ; preds = %62
  %77 = load i8, ptr %11, align 1, !tbaa !15
  %78 = icmp ne i8 %77, 0
  br i1 %78, label %79, label %87

79:                                               ; preds = %76
  %80 = load i64, ptr %4, align 8, !tbaa !5
  %81 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  %82 = icmp ult i64 %80, %81
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %84, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  br label %85

85:                                               ; preds = %83, %79
  %86 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %86, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), i32 0, i32 1), align 8, !tbaa !14
  br label %102

87:                                               ; preds = %76
  %88 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %88, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), i32 0, i32 1), align 8, !tbaa !14
  %89 = load i64, ptr %6, align 8, !tbaa !5
  %90 = icmp slt i64 %89, 0
  br i1 %90, label %91, label %97

91:                                               ; preds = %87
  %92 = load i64, ptr %6, align 8, !tbaa !5
  %93 = sub nsw i64 0, %92
  store i64 %93, ptr %7, align 8, !tbaa !5
  %94 = load i64, ptr %7, align 8, !tbaa !5
  %95 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  %96 = sub i64 %95, %94
  store i64 %96, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  br label %101

97:                                               ; preds = %87
  %98 = load i64, ptr %6, align 8, !tbaa !5
  %99 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  %100 = add i64 %99, %98
  store i64 %100, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  br label %101

101:                                              ; preds = %97, %91
  br label %102

102:                                              ; preds = %101, %85
  br label %103

103:                                              ; preds = %102, %73
  %104 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 6), i32 0, i32 1), align 8, !tbaa !14
  %105 = load i64, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 5), i32 0, i32 1), align 8, !tbaa !20
  %106 = sub i64 %105, 1
  %107 = sub i64 %104, %106
  store i64 %107, ptr getelementptr inbounds (%struct.EFI_EDITOR_POSITION, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 8), i32 0, i32 1), align 8, !tbaa !21
  %108 = load i64, ptr %5, align 8, !tbaa !5
  %109 = call ptr @MoveCurrentLine(i64 noundef %108)
  store ptr %109, ptr getelementptr inbounds (%struct.EFI_EDITOR_FILE_BUFFER, ptr @FileBuffer, i32 0, i32 12), align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @AboveCurrentScreen(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @UnderCurrentScreen(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @LeftCurrentScreen(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @RightCurrentScreen(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @MoveCurrentLine(i64 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 56}
!10 = !{!"", !11, i64 0, !12, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !13, i64 40, !13, i64 56, !13, i64 72, !13, i64 88, !7, i64 104, !7, i64 105, !7, i64 106, !11, i64 112}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !6, i64 0, !6, i64 8}
!14 = !{!10, !6, i64 64}
!15 = !{!7, !7, i64 0}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 88}
!18 = !{!19, !6, i64 24}
!19 = !{!"", !11, i64 0, !7, i64 8, !13, i64 16, !11, i64 32, !7, i64 40, !11, i64 48, !12, i64 56, !12, i64 60}
!20 = !{!10, !6, i64 48}
!21 = !{!10, !6, i64 96}
!22 = !{!10, !11, i64 112}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.EFI_EDITOR_FILE_BUFFER = type { ptr, i32, ptr, ptr, i64, %struct.EFI_EDITOR_POSITION, %struct.EFI_EDITOR_POSITION, %struct.EFI_EDITOR_POSITION, %struct.EFI_EDITOR_POSITION, i8, i8, i8, ptr }
%struct.EFI_EDITOR_POSITION = type { i64, i64 }
%struct.EFI_EDITOR_GLOBAL_EDITOR = type { ptr, %union.EFI_EDITOR_COLOR_UNION, %struct.EFI_EDITOR_POSITION, ptr, i8, ptr, i32, i32 }
%union.EFI_EDITOR_COLOR_UNION = type { i64 }

@FileBuffer = external dso_local local_unnamed_addr global %struct.EFI_EDITOR_FILE_BUFFER, align 8
@MainEditor = external local_unnamed_addr global %struct.EFI_EDITOR_GLOBAL_EDITOR, align 8

; Function Attrs: nounwind uwtable
define dso_local void @FileBufferMovePosition(i64 noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 56), align 8, !tbaa !5
  %4 = sub i64 %0, %3
  %5 = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 64), align 8, !tbaa !13
  %6 = sub i64 %1, %5
  %7 = tail call zeroext i8 @UnderCurrentScreen(i64 noundef %0)
  %8 = tail call zeroext i8 @AboveCurrentScreen(i64 noundef %0)
  %.not = icmp eq i8 %7, 0
  br i1 %.not, label %10, label %9

9:                                                ; preds = %2
  store i64 %0, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 56), align 8, !tbaa !5
  %.pre = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 40), align 8, !tbaa !14
  br label %22

10:                                               ; preds = %2
  %.not35 = icmp eq i8 %8, 0
  br i1 %.not35, label %19, label %11

11:                                               ; preds = %10
  %12 = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 40), align 8, !tbaa !14
  %13 = add i64 %12, -1
  %14 = icmp ugt i64 %13, %0
  br i1 %14, label %15, label %17

15:                                               ; preds = %11
  %16 = add nuw i64 %0, 1
  store i64 %16, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 40), align 8, !tbaa !14
  br label %17

17:                                               ; preds = %15, %11
  %18 = phi i64 [ %16, %15 ], [ %12, %11 ]
  store i64 %0, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 56), align 8, !tbaa !5
  br label %22

19:                                               ; preds = %10
  store i64 %0, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 56), align 8, !tbaa !5
  %20 = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 40), align 8, !tbaa !14
  %21 = add i64 %20, %4
  store i64 %21, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 40), align 8, !tbaa !14
  br label %22

22:                                               ; preds = %19, %17, %9
  %23 = phi i64 [ %18, %17 ], [ %.pre, %9 ], [ %21, %19 ]
  %.neg38 = add i64 %0, 2
  %24 = sub i64 %.neg38, %23
  store i64 %24, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 88), align 8, !tbaa !15
  %25 = tail call zeroext i8 @RightCurrentScreen(i64 noundef %1)
  %26 = tail call zeroext i8 @LeftCurrentScreen(i64 noundef %1)
  %.not36 = icmp eq i8 %25, 0
  br i1 %.not36, label %29, label %27

27:                                               ; preds = %22
  %28 = load i64, ptr getelementptr inbounds (i8, ptr @MainEditor, i64 24), align 8, !tbaa !16
  store i64 %28, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 48), align 8, !tbaa !18
  store i64 %1, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 64), align 8, !tbaa !13
  br label %39

29:                                               ; preds = %22
  %.not37 = icmp eq i8 %26, 0
  br i1 %.not37, label %36, label %30

30:                                               ; preds = %29
  %31 = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 48), align 8, !tbaa !18
  %32 = icmp ugt i64 %31, %1
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i64 %1, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 48), align 8, !tbaa !18
  br label %34

34:                                               ; preds = %33, %30
  %35 = phi i64 [ %1, %33 ], [ %31, %30 ]
  store i64 %1, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 64), align 8, !tbaa !13
  br label %39

36:                                               ; preds = %29
  store i64 %1, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 64), align 8, !tbaa !13
  %37 = load i64, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 48), align 8, !tbaa !18
  %38 = add i64 %37, %6
  store i64 %38, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 48), align 8, !tbaa !18
  br label %39

39:                                               ; preds = %36, %34, %27
  %40 = phi i64 [ %35, %34 ], [ %28, %27 ], [ %38, %36 ]
  %.neg40 = add i64 %1, 1
  %41 = sub i64 %.neg40, %40
  store i64 %41, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 96), align 8, !tbaa !19
  %42 = tail call ptr @MoveCurrentLine(i64 noundef %4)
  store ptr %42, ptr getelementptr inbounds (i8, ptr @FileBuffer, i64 112), align 8, !tbaa !20
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @AboveCurrentScreen(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @UnderCurrentScreen(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @LeftCurrentScreen(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @RightCurrentScreen(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @MoveCurrentLine(i64 noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 56}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !12, i64 40, !12, i64 56, !12, i64 72, !12, i64 88, !8, i64 104, !8, i64 105, !8, i64 106, !7, i64 112}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 8}
!13 = !{!6, !11, i64 64}
!14 = !{!6, !11, i64 40}
!15 = !{!6, !11, i64 88}
!16 = !{!17, !11, i64 24}
!17 = !{!"", !7, i64 0, !8, i64 8, !12, i64 16, !7, i64 32, !8, i64 40, !7, i64 48, !10, i64 56, !10, i64 60}
!18 = !{!6, !11, i64 48}
!19 = !{!6, !11, i64 96}
!20 = !{!6, !7, i64 112}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass