; LLVM IR from kala13x/libxutils :: src/sys (cli)

; 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.XByteBuffer = type { ptr, i64, i64, i16, i16, i32 }
%struct.xcli_wind_ = type { i32, %struct.xcli_size_, %struct.XArray_, i8 }
%struct.xcli_size_ = type { i64, i64 }
%struct.XArray_ = type { ptr, ptr, i32, ptr, i8, i8, i8, i64, i64 }

@stdout = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

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

declare i32 @printf(ptr noundef, ...) #1

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

declare void @XArray_Clear(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @XWindow_ClearScreen(i8 noundef zeroext) #2

declare i32 @fflush(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @XWindow_RenderLine(ptr noundef, ptr noundef, ptr noundef) #2

declare void @XByteBuffer_Clear(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @XWindow_GetFrame(ptr noundef, ptr noundef) #2

declare ptr @XArray_Get(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @XWindow_Display(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.XByteBuffer, align 8
  %12 = alloca %struct.XByteBuffer, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !9
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.xcli_wind_, ptr %13, i32 0, i32 0
  %15 = load i32, ptr %14, align 8, !tbaa !11
  %16 = icmp eq i32 %15, 2
  br i1 %16, label %17, label %89

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.xcli_wind_, ptr %18, i32 0, i32 3
  %20 = load i8, ptr %19, align 8, !tbaa !16
  %21 = call i32 @XWindow_ClearScreen(i8 noundef zeroext %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.xcli_wind_, ptr %22, i32 0, i32 2
  store ptr %23, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.xcli_wind_, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %struct.xcli_size_, ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !17
  store i64 %27, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %28 = load i64, ptr %7, align 8, !tbaa !18
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.XArray_, ptr %29, i32 0, i32 8
  %31 = load i64, ptr %30, align 8, !tbaa !19
  %32 = icmp ult i64 %28, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %17
  %34 = load i64, ptr %7, align 8, !tbaa !18
  br label %39

35:                                               ; preds = %17
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.XArray_, ptr %36, i32 0, i32 8
  %38 = load i64, ptr %37, align 8, !tbaa !19
  br label %39

39:                                               ; preds = %35, %33
  %40 = phi i64 [ %34, %33 ], [ %38, %35 ]
  store i64 %40, ptr %8, align 8, !tbaa !18
  store i64 0, ptr %6, align 8, !tbaa !18
  br label %41

41:                                               ; preds = %67, %39
  %42 = load i64, ptr %6, align 8, !tbaa !18
  %43 = load i64, ptr %8, align 8, !tbaa !18
  %44 = icmp ult i64 %42, %43
  br i1 %44, label %45, label %70

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load i64, ptr %6, align 8, !tbaa !18
  %48 = call ptr @XArray_Get(ptr noundef %46, i64 noundef %47)
  store ptr %48, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %45
  store i32 4, ptr %10, align 4
  br label %64

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #3
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call i32 @XWindow_RenderLine(ptr noundef %53, ptr noundef %11, ptr noundef %54)
  %56 = icmp slt i32 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %52
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @XArray_Clear(ptr noundef %58)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %63

59:                                               ; preds = %52
  %60 = getelementptr inbounds %struct.XByteBuffer, ptr %11, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !20
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %61)
  store i32 0, ptr %10, align 4
  br label %63

63:                                               ; preds = %59, %57
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #3
  br label %64

64:                                               ; preds = %63, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  %65 = load i32, ptr %10, align 4
  switch i32 %65, label %86 [
    i32 0, label %66
    i32 4, label %67
  ]

66:                                               ; preds = %64
  br label %67

67:                                               ; preds = %66, %64
  %68 = load i64, ptr %6, align 8, !tbaa !18
  %69 = add i64 %68, 1
  store i64 %69, ptr %6, align 8, !tbaa !18
  br label %41, !llvm.loop !23

70:                                               ; preds = %41
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.XArray_, ptr %71, i32 0, i32 8
  %73 = load i64, ptr %72, align 8, !tbaa !19
  store i64 %73, ptr %6, align 8, !tbaa !18
  br label %74

74:                                               ; preds = %80, %70
  %75 = load i64, ptr %6, align 8, !tbaa !18
  %76 = load i64, ptr %7, align 8, !tbaa !18
  %77 = icmp ult i64 %75, %76
  br i1 %77, label %78, label %83

78:                                               ; preds = %74
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  br label %80

80:                                               ; preds = %78
  %81 = load i64, ptr %6, align 8, !tbaa !18
  %82 = add i64 %81, 1
  store i64 %82, ptr %6, align 8, !tbaa !18
  br label %74, !llvm.loop !25

83:                                               ; preds = %74
  %84 = load ptr, ptr @stdout, align 8, !tbaa !5
  %85 = call i32 @fflush(ptr noundef %84)
  store i32 1, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %10, align 4
  br label %86

86:                                               ; preds = %83, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %87 = load i32, ptr %10, align 4
  switch i32 %87, label %117 [
    i32 0, label %88
  ]

88:                                               ; preds = %86
  br label %115

89:                                               ; preds = %1
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.xcli_wind_, ptr %90, i32 0, i32 0
  %92 = load i32, ptr %91, align 8, !tbaa !11
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %114

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #3
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = call i32 @XWindow_GetFrame(ptr noundef %95, ptr noundef %12)
  store i32 %96, ptr %4, align 4, !tbaa !9
  %97 = load i32, ptr %4, align 4, !tbaa !9
  %98 = icmp eq i32 %97, -1
  br i1 %98, label %99, label %101

99:                                               ; preds = %94
  %100 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %100, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %111

101:                                              ; preds = %94
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.xcli_wind_, ptr %102, i32 0, i32 3
  %104 = load i8, ptr %103, align 8, !tbaa !16
  %105 = call i32 @XWindow_ClearScreen(i8 noundef zeroext %104)
  %106 = getelementptr inbounds %struct.XByteBuffer, ptr %12, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %107)
  %109 = load ptr, ptr @stdout, align 8, !tbaa !5
  %110 = call i32 @fflush(ptr noundef %109)
  call void @XByteBuffer_Clear(ptr noundef %12)
  store i32 1, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %10, align 4
  br label %111

111:                                              ; preds = %101, %99
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #3
  %112 = load i32, ptr %10, align 4
  switch i32 %112, label %117 [
    i32 0, label %113
  ]

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113, %89
  br label %115

115:                                              ; preds = %114, %88
  %116 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %116, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %117

117:                                              ; preds = %115, %111, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %118 = load i32, ptr %2, align 4
  ret i32 %118
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 #3 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"xcli_wind_", !10, i64 0, !13, i64 8, !15, i64 24, !7, i64 80}
!13 = !{!"xcli_size_", !14, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"XArray_", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !14, i64 40, !14, i64 48}
!16 = !{!12, !7, i64 80}
!17 = !{!12, !14, i64 16}
!18 = !{!14, !14, i64 0}
!19 = !{!15, !14, i64 48}
!20 = !{!21, !6, i64 0}
!21 = !{!"XByteBuffer", !6, i64 0, !14, i64 8, !14, i64 16, !22, i64 24, !22, i64 26, !10, i64 28}
!22 = !{!"short", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; 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.XByteBuffer = type { ptr, i64, i64, i16, i16, i32 }

@stdout = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare void @XArray_Clear(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XWindow_ClearScreen(i8 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @XWindow_RenderLine(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @XByteBuffer_Clear(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @XWindow_GetFrame(ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @XArray_Get(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @XWindow_Display(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct.XByteBuffer, align 8
  %3 = alloca %struct.XByteBuffer, align 8
  %4 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %4, label %40 [
    i32 2, label %5
    i32 1, label %30
  ]

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  %7 = load i8, ptr %6, align 8, !tbaa !14
  %8 = tail call i32 @XWindow_ClearScreen(i8 noundef zeroext %7)
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load i64, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %0, i64 72
  %13 = load i64, ptr %12, align 8, !tbaa !16
  %. = tail call i64 @llvm.umin.i64(i64 %11, i64 %13)
  %.not58 = icmp eq i64 %., 0
  br i1 %.not58, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %5, %.thread
  %.03854 = phi i64 [ %22, %.thread ], [ 0, %5 ]
  %14 = call ptr @XArray_Get(ptr noundef nonnull %9, i64 noundef %.03854) #5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %.thread, label %16

16:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #5
  %17 = call i32 @XWindow_RenderLine(ptr noundef nonnull %0, ptr noundef nonnull %2, ptr noundef nonnull %14)
  %18 = icmp slt i32 %17, 0
  br i1 %18, label %29, label %19

19:                                               ; preds = %16
  %20 = load ptr, ptr %2, align 8, !tbaa !17
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %20)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %.thread

.thread:                                          ; preds = %.lr.ph, %19
  %22 = add nuw i64 %.03854, 1
  %exitcond.not = icmp eq i64 %22, %.
  br i1 %exitcond.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %.thread
  %.pre = load i64, ptr %12, align 8, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %5
  %23 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %13, %5 ]
  %24 = icmp ult i64 %23, %11
  br i1 %24, label %.lr.ph57, label %.thread48

.lr.ph57:                                         ; preds = %._crit_edge, %.lr.ph57
  %.13955 = phi i64 [ %26, %.lr.ph57 ], [ %23, %._crit_edge ]
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %26 = add i64 %.13955, 1
  %exitcond59.not = icmp eq i64 %26, %11
  br i1 %exitcond59.not, label %.thread48, label %.lr.ph57, !llvm.loop !22

.thread48:                                        ; preds = %.lr.ph57, %._crit_edge
  %27 = load ptr, ptr @stdout, align 8, !tbaa !23
  %28 = call i32 @fflush(ptr noundef %27)
  br label %40

29:                                               ; preds = %16
  call void @XArray_Clear(ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #5
  br label %40

30:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  %31 = call i32 @XWindow_GetFrame(ptr noundef nonnull %0, ptr noundef nonnull %3)
  %.not = icmp eq i32 %31, -1
  br i1 %.not, label %.thread52, label %32

.thread52:                                        ; preds = %30
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %40

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %0, i64 80
  %34 = load i8, ptr %33, align 8, !tbaa !14
  %35 = call i32 @XWindow_ClearScreen(i8 noundef zeroext %34)
  %36 = load ptr, ptr %3, align 8, !tbaa !17
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef %36)
  %38 = load ptr, ptr @stdout, align 8, !tbaa !23
  %39 = call i32 @fflush(ptr noundef %38)
  call void @XByteBuffer_Clear(ptr noundef nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  br label %40

40:                                               ; preds = %1, %.thread48, %32, %.thread52, %29
  %.5 = phi i32 [ -1, %29 ], [ -1, %.thread52 ], [ 1, %32 ], [ 0, %1 ], [ 1, %.thread48 ]
  ret i32 %.5
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "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 = { "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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"xcli_wind_", !7, i64 0, !10, i64 8, !12, i64 24, !8, i64 80}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"xcli_size_", !11, i64 0, !11, i64 8}
!11 = !{!"long", !8, i64 0}
!12 = !{!"XArray_", !13, i64 0, !13, i64 8, !7, i64 16, !13, i64 24, !8, i64 32, !8, i64 33, !8, i64 34, !11, i64 40, !11, i64 48}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !8, i64 80}
!15 = !{!6, !11, i64 16}
!16 = !{!12, !11, i64 48}
!17 = !{!18, !13, i64 0}
!18 = !{!"XByteBuffer", !13, i64 0, !11, i64 8, !11, i64 16, !19, i64 24, !19, i64 26, !7, i64 28}
!19 = !{!"short", !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!13, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass