; LLVM IR from fwip/fastqz :: libzpaq.ll (ZN7libzpaq12Decompresser14readSegmentEndEPc)

; 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"

%"class.libzpaq::Decompresser" = type { %"class.libzpaq::ZPAQL", %"class.libzpaq::Decoder", %"class.libzpaq::PostProcessor", i32, i32 }
%"class.libzpaq::ZPAQL" = type { ptr, ptr, %"class.libzpaq::Array.0", i32, i32, i32, [4 x i8], %"class.libzpaq::Array.0", %"class.libzpaq::Array", %"class.libzpaq::Array", %"class.libzpaq::Array.4", i32, i32, i32, i32, i32, i32, i32, i32, ptr }
%"class.libzpaq::Array.0" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Array.4" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::Decoder" = type { ptr, i32, i32, i32, [4 x i8], %"class.libzpaq::Predictor", %"class.libzpaq::Array.4" }
%"class.libzpaq::Predictor" = type <{ i32, i32, [256 x i32], [256 x i32], ptr, [256 x %"struct.libzpaq::Component"], [256 x i32], [1024 x i32], [4096 x i16], [32768 x i16], %"class.libzpaq::StateTable", ptr, i32, [4 x i8] }>
%"struct.libzpaq::Component" = type { i64, i64, i64, i64, i64, %"class.libzpaq::Array", %"class.libzpaq::Array.0", %"class.libzpaq::Array.2" }
%"class.libzpaq::Array.2" = type <{ ptr, i64, i32, [4 x i8] }>
%"class.libzpaq::StateTable" = type { [1024 x i8] }
%"class.libzpaq::PostProcessor" = type { i32, i32, i32, i32, %"class.libzpaq::ZPAQL" }

@.str.36 = external hidden unnamed_addr constant [30 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

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

declare void @_ZN7libzpaq5errorEPKc(ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7libzpaq7Decoder4skipEv(ptr noundef nonnull align 8 dereferenceable(110672)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7libzpaq12Decompresser14readSegmentEndEPc(ptr noundef nonnull align 8 dereferenceable(111080) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  %8 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 3
  %9 = load i32, ptr %8, align 8, !tbaa !11
  %10 = icmp eq i32 %9, 3
  br i1 %10, label %11, label %15

11:                                               ; preds = %2
  %12 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 1
  %13 = call noundef i32 @_ZN7libzpaq7Decoder4skipEv(ptr noundef nonnull align 8 dereferenceable(110672) %12)
  store i32 %13, ptr %5, align 4, !tbaa !9
  %14 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 4
  store i32 2, ptr %14, align 4, !tbaa !24
  br label %28

15:                                               ; preds = %2
  %16 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !11
  %18 = icmp eq i32 %17, 4
  br i1 %18, label %19, label %27

19:                                               ; preds = %15
  %20 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 1
  %21 = getelementptr inbounds %"class.libzpaq::Decoder", ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !25
  %23 = load ptr, ptr %22, align 8, !tbaa !26
  %24 = getelementptr inbounds ptr, ptr %23, i64 0
  %25 = load ptr, ptr %24, align 8
  %26 = call noundef i32 %25(ptr noundef nonnull align 8 dereferenceable(8) %22)
  store i32 %26, ptr %5, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %19, %15
  br label %28

28:                                               ; preds = %27, %11
  %29 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 3
  store i32 1, ptr %29, align 8, !tbaa !11
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 254
  br i1 %31, label %32, label %39

32:                                               ; preds = %28
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %32
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 0
  store i8 0, ptr %37, align 1, !tbaa !28
  br label %38

38:                                               ; preds = %35, %32
  br label %77

39:                                               ; preds = %28
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 253
  br i1 %41, label %42, label %75

42:                                               ; preds = %39
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 0
  store i8 1, ptr %47, align 1, !tbaa !28
  br label %48

48:                                               ; preds = %45, %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %71, %48
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = icmp sle i32 %50, 20
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %74

53:                                               ; preds = %49
  %54 = getelementptr inbounds %"class.libzpaq::Decompresser", ptr %7, i32 0, i32 1
  %55 = getelementptr inbounds %"class.libzpaq::Decoder", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !25
  %57 = load ptr, ptr %56, align 8, !tbaa !26
  %58 = getelementptr inbounds ptr, ptr %57, i64 0
  %59 = load ptr, ptr %58, align 8
  %60 = call noundef i32 %59(ptr noundef nonnull align 8 dereferenceable(8) %56)
  store i32 %60, ptr %5, align 4, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %70

63:                                               ; preds = %53
  %64 = load i32, ptr %5, align 4, !tbaa !9
  %65 = trunc i32 %64 to i8
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i8, ptr %66, i64 %68
  store i8 %65, ptr %69, align 1, !tbaa !28
  br label %70

70:                                               ; preds = %63, %53
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %6, align 4, !tbaa !9
  br label %49, !llvm.loop !29

74:                                               ; preds = %52
  br label %76

75:                                               ; preds = %39
  call void @_ZN7libzpaq5errorEPKc(ptr noundef @.str.36)
  br label %76

76:                                               ; preds = %75, %74
  br label %77

77:                                               ; preds = %76, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

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 = { mustprogress 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !22, i64 111072}
!12 = !{!"_ZTSN7libzpaq12DecompresserE", !13, i64 0, !18, i64 192, !21, i64 110864, !22, i64 111072, !23, i64 111076}
!13 = !{!"_ZTSN7libzpaq5ZPAQLE", !6, i64 0, !6, i64 8, !14, i64 16, !10, i64 40, !10, i64 44, !10, i64 48, !14, i64 56, !16, i64 80, !16, i64 104, !17, i64 128, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !6, i64 184}
!14 = !{!"_ZTSN7libzpaq5ArrayIhEE", !6, i64 0, !15, i64 8, !10, i64 16}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN7libzpaq5ArrayIjEE", !6, i64 0, !15, i64 8, !10, i64 16}
!17 = !{!"_ZTSN7libzpaq5ArrayIcEE", !6, i64 0, !15, i64 8, !10, i64 16}
!18 = !{!"_ZTSN7libzpaq7DecoderE", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !19, i64 24, !17, i64 110648}
!19 = !{!"_ZTSN7libzpaq9PredictorE", !10, i64 0, !10, i64 4, !7, i64 8, !7, i64 1032, !6, i64 2056, !7, i64 2064, !7, i64 30736, !7, i64 31760, !7, i64 35856, !7, i64 44048, !20, i64 109584, !6, i64 110608, !10, i64 110616}
!20 = !{!"_ZTSN7libzpaq10StateTableE", !7, i64 0}
!21 = !{!"_ZTSN7libzpaq13PostProcessorE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !13, i64 16}
!22 = !{!"_ZTSN7libzpaq12DecompresserUt_E", !7, i64 0}
!23 = !{!"_ZTSN7libzpaq12DecompresserUt0_E", !7, i64 0}
!24 = !{!12, !23, i64 111076}
!25 = !{!12, !6, i64 192}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}


; 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"

@.str.36 = external hidden unnamed_addr constant [30 x i8], align 1

declare void @_ZN7libzpaq5errorEPKc(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7libzpaq7Decoder4skipEv(ptr noundef nonnull align 8 dereferenceable(110672)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7libzpaq12Decompresser14readSegmentEndEPc(ptr noundef nonnull align 8 dereferenceable(111080) %0, ptr noundef writeonly %1) local_unnamed_addr #1 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 111072
  %4 = load i32, ptr %3, align 8, !tbaa !5
  switch i32 %4, label %.thread [
    i32 3, label %5
    i32 4, label %9
  ]

.thread:                                          ; preds = %2
  store i32 1, ptr %3, align 8, !tbaa !5
  br label %221

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 192
  %7 = tail call noundef i32 @_ZN7libzpaq7Decoder4skipEv(ptr noundef nonnull align 8 dereferenceable(110672) %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 111076
  store i32 2, ptr %8, align 4, !tbaa !22
  br label %15

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 192
  %11 = load ptr, ptr %10, align 8, !tbaa !23
  %12 = load ptr, ptr %11, align 8, !tbaa !24
  %13 = load ptr, ptr %12, align 8
  %14 = tail call noundef i32 %13(ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %15

15:                                               ; preds = %9, %5
  %.012 = phi i32 [ %7, %5 ], [ %14, %9 ]
  store i32 1, ptr %3, align 8, !tbaa !5
  switch i32 %.012, label %221 [
    i32 254, label %16
    i32 253, label %18
  ]

16:                                               ; preds = %15
  %.not15 = icmp eq ptr %1, null
  br i1 %.not15, label %.loopexit, label %17

17:                                               ; preds = %16
  store i8 0, ptr %1, align 1, !tbaa !26
  br label %.loopexit

18:                                               ; preds = %15
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %18
  store i8 1, ptr %1, align 1, !tbaa !26
  %19 = getelementptr inbounds i8, ptr %0, i64 192
  %20 = load ptr, ptr %19, align 8, !tbaa !23
  %21 = load ptr, ptr %20, align 8, !tbaa !24
  %22 = load ptr, ptr %21, align 8
  %23 = tail call noundef i32 %22(ptr noundef nonnull align 8 dereferenceable(8) %20)
  %24 = trunc i32 %23 to i8
  %25 = getelementptr inbounds i8, ptr %1, i64 1
  store i8 %24, ptr %25, align 1, !tbaa !26
  %26 = load ptr, ptr %19, align 8, !tbaa !23
  %27 = load ptr, ptr %26, align 8, !tbaa !24
  %28 = load ptr, ptr %27, align 8
  %29 = tail call noundef i32 %28(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %30 = trunc i32 %29 to i8
  %31 = getelementptr inbounds i8, ptr %1, i64 2
  store i8 %30, ptr %31, align 1, !tbaa !26
  %32 = load ptr, ptr %19, align 8, !tbaa !23
  %33 = load ptr, ptr %32, align 8, !tbaa !24
  %34 = load ptr, ptr %33, align 8
  %35 = tail call noundef i32 %34(ptr noundef nonnull align 8 dereferenceable(8) %32)
  %36 = trunc i32 %35 to i8
  %37 = getelementptr inbounds i8, ptr %1, i64 3
  store i8 %36, ptr %37, align 1, !tbaa !26
  %38 = load ptr, ptr %19, align 8, !tbaa !23
  %39 = load ptr, ptr %38, align 8, !tbaa !24
  %40 = load ptr, ptr %39, align 8
  %41 = tail call noundef i32 %40(ptr noundef nonnull align 8 dereferenceable(8) %38)
  %42 = trunc i32 %41 to i8
  %43 = getelementptr inbounds i8, ptr %1, i64 4
  store i8 %42, ptr %43, align 1, !tbaa !26
  %44 = load ptr, ptr %19, align 8, !tbaa !23
  %45 = load ptr, ptr %44, align 8, !tbaa !24
  %46 = load ptr, ptr %45, align 8
  %47 = tail call noundef i32 %46(ptr noundef nonnull align 8 dereferenceable(8) %44)
  %48 = trunc i32 %47 to i8
  %49 = getelementptr inbounds i8, ptr %1, i64 5
  store i8 %48, ptr %49, align 1, !tbaa !26
  %50 = load ptr, ptr %19, align 8, !tbaa !23
  %51 = load ptr, ptr %50, align 8, !tbaa !24
  %52 = load ptr, ptr %51, align 8
  %53 = tail call noundef i32 %52(ptr noundef nonnull align 8 dereferenceable(8) %50)
  %54 = trunc i32 %53 to i8
  %55 = getelementptr inbounds i8, ptr %1, i64 6
  store i8 %54, ptr %55, align 1, !tbaa !26
  %56 = load ptr, ptr %19, align 8, !tbaa !23
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  %58 = load ptr, ptr %57, align 8
  %59 = tail call noundef i32 %58(ptr noundef nonnull align 8 dereferenceable(8) %56)
  %60 = trunc i32 %59 to i8
  %61 = getelementptr inbounds i8, ptr %1, i64 7
  store i8 %60, ptr %61, align 1, !tbaa !26
  %62 = load ptr, ptr %19, align 8, !tbaa !23
  %63 = load ptr, ptr %62, align 8, !tbaa !24
  %64 = load ptr, ptr %63, align 8
  %65 = tail call noundef i32 %64(ptr noundef nonnull align 8 dereferenceable(8) %62)
  %66 = trunc i32 %65 to i8
  %67 = getelementptr inbounds i8, ptr %1, i64 8
  store i8 %66, ptr %67, align 1, !tbaa !26
  %68 = load ptr, ptr %19, align 8, !tbaa !23
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = load ptr, ptr %69, align 8
  %71 = tail call noundef i32 %70(ptr noundef nonnull align 8 dereferenceable(8) %68)
  %72 = trunc i32 %71 to i8
  %73 = getelementptr inbounds i8, ptr %1, i64 9
  store i8 %72, ptr %73, align 1, !tbaa !26
  %74 = load ptr, ptr %19, align 8, !tbaa !23
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = load ptr, ptr %75, align 8
  %77 = tail call noundef i32 %76(ptr noundef nonnull align 8 dereferenceable(8) %74)
  %78 = trunc i32 %77 to i8
  %79 = getelementptr inbounds i8, ptr %1, i64 10
  store i8 %78, ptr %79, align 1, !tbaa !26
  %80 = load ptr, ptr %19, align 8, !tbaa !23
  %81 = load ptr, ptr %80, align 8, !tbaa !24
  %82 = load ptr, ptr %81, align 8
  %83 = tail call noundef i32 %82(ptr noundef nonnull align 8 dereferenceable(8) %80)
  %84 = trunc i32 %83 to i8
  %85 = getelementptr inbounds i8, ptr %1, i64 11
  store i8 %84, ptr %85, align 1, !tbaa !26
  %86 = load ptr, ptr %19, align 8, !tbaa !23
  %87 = load ptr, ptr %86, align 8, !tbaa !24
  %88 = load ptr, ptr %87, align 8
  %89 = tail call noundef i32 %88(ptr noundef nonnull align 8 dereferenceable(8) %86)
  %90 = trunc i32 %89 to i8
  %91 = getelementptr inbounds i8, ptr %1, i64 12
  store i8 %90, ptr %91, align 1, !tbaa !26
  %92 = load ptr, ptr %19, align 8, !tbaa !23
  %93 = load ptr, ptr %92, align 8, !tbaa !24
  %94 = load ptr, ptr %93, align 8
  %95 = tail call noundef i32 %94(ptr noundef nonnull align 8 dereferenceable(8) %92)
  %96 = trunc i32 %95 to i8
  %97 = getelementptr inbounds i8, ptr %1, i64 13
  store i8 %96, ptr %97, align 1, !tbaa !26
  %98 = load ptr, ptr %19, align 8, !tbaa !23
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = load ptr, ptr %99, align 8
  %101 = tail call noundef i32 %100(ptr noundef nonnull align 8 dereferenceable(8) %98)
  %102 = trunc i32 %101 to i8
  %103 = getelementptr inbounds i8, ptr %1, i64 14
  store i8 %102, ptr %103, align 1, !tbaa !26
  %104 = load ptr, ptr %19, align 8, !tbaa !23
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = load ptr, ptr %105, align 8
  %107 = tail call noundef i32 %106(ptr noundef nonnull align 8 dereferenceable(8) %104)
  %108 = trunc i32 %107 to i8
  %109 = getelementptr inbounds i8, ptr %1, i64 15
  store i8 %108, ptr %109, align 1, !tbaa !26
  %110 = load ptr, ptr %19, align 8, !tbaa !23
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  %112 = load ptr, ptr %111, align 8
  %113 = tail call noundef i32 %112(ptr noundef nonnull align 8 dereferenceable(8) %110)
  %114 = trunc i32 %113 to i8
  %115 = getelementptr inbounds i8, ptr %1, i64 16
  store i8 %114, ptr %115, align 1, !tbaa !26
  %116 = load ptr, ptr %19, align 8, !tbaa !23
  %117 = load ptr, ptr %116, align 8, !tbaa !24
  %118 = load ptr, ptr %117, align 8
  %119 = tail call noundef i32 %118(ptr noundef nonnull align 8 dereferenceable(8) %116)
  %120 = trunc i32 %119 to i8
  %121 = getelementptr inbounds i8, ptr %1, i64 17
  store i8 %120, ptr %121, align 1, !tbaa !26
  %122 = load ptr, ptr %19, align 8, !tbaa !23
  %123 = load ptr, ptr %122, align 8, !tbaa !24
  %124 = load ptr, ptr %123, align 8
  %125 = tail call noundef i32 %124(ptr noundef nonnull align 8 dereferenceable(8) %122)
  %126 = trunc i32 %125 to i8
  %127 = getelementptr inbounds i8, ptr %1, i64 18
  store i8 %126, ptr %127, align 1, !tbaa !26
  %128 = load ptr, ptr %19, align 8, !tbaa !23
  %129 = load ptr, ptr %128, align 8, !tbaa !24
  %130 = load ptr, ptr %129, align 8
  %131 = tail call noundef i32 %130(ptr noundef nonnull align 8 dereferenceable(8) %128)
  %132 = trunc i32 %131 to i8
  %133 = getelementptr inbounds i8, ptr %1, i64 19
  store i8 %132, ptr %133, align 1, !tbaa !26
  %134 = load ptr, ptr %19, align 8, !tbaa !23
  %135 = load ptr, ptr %134, align 8, !tbaa !24
  %136 = load ptr, ptr %135, align 8
  %137 = tail call noundef i32 %136(ptr noundef nonnull align 8 dereferenceable(8) %134)
  %138 = trunc i32 %137 to i8
  %139 = getelementptr inbounds i8, ptr %1, i64 20
  store i8 %138, ptr %139, align 1, !tbaa !26
  br label %.loopexit

.split.us.preheader:                              ; preds = %18
  %140 = getelementptr inbounds i8, ptr %0, i64 192
  %141 = load ptr, ptr %140, align 8, !tbaa !23
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = load ptr, ptr %142, align 8
  %144 = tail call noundef i32 %143(ptr noundef nonnull align 8 dereferenceable(8) %141)
  %145 = load ptr, ptr %140, align 8, !tbaa !23
  %146 = load ptr, ptr %145, align 8, !tbaa !24
  %147 = load ptr, ptr %146, align 8
  %148 = tail call noundef i32 %147(ptr noundef nonnull align 8 dereferenceable(8) %145)
  %149 = load ptr, ptr %140, align 8, !tbaa !23
  %150 = load ptr, ptr %149, align 8, !tbaa !24
  %151 = load ptr, ptr %150, align 8
  %152 = tail call noundef i32 %151(ptr noundef nonnull align 8 dereferenceable(8) %149)
  %153 = load ptr, ptr %140, align 8, !tbaa !23
  %154 = load ptr, ptr %153, align 8, !tbaa !24
  %155 = load ptr, ptr %154, align 8
  %156 = tail call noundef i32 %155(ptr noundef nonnull align 8 dereferenceable(8) %153)
  %157 = load ptr, ptr %140, align 8, !tbaa !23
  %158 = load ptr, ptr %157, align 8, !tbaa !24
  %159 = load ptr, ptr %158, align 8
  %160 = tail call noundef i32 %159(ptr noundef nonnull align 8 dereferenceable(8) %157)
  %161 = load ptr, ptr %140, align 8, !tbaa !23
  %162 = load ptr, ptr %161, align 8, !tbaa !24
  %163 = load ptr, ptr %162, align 8
  %164 = tail call noundef i32 %163(ptr noundef nonnull align 8 dereferenceable(8) %161)
  %165 = load ptr, ptr %140, align 8, !tbaa !23
  %166 = load ptr, ptr %165, align 8, !tbaa !24
  %167 = load ptr, ptr %166, align 8
  %168 = tail call noundef i32 %167(ptr noundef nonnull align 8 dereferenceable(8) %165)
  %169 = load ptr, ptr %140, align 8, !tbaa !23
  %170 = load ptr, ptr %169, align 8, !tbaa !24
  %171 = load ptr, ptr %170, align 8
  %172 = tail call noundef i32 %171(ptr noundef nonnull align 8 dereferenceable(8) %169)
  %173 = load ptr, ptr %140, align 8, !tbaa !23
  %174 = load ptr, ptr %173, align 8, !tbaa !24
  %175 = load ptr, ptr %174, align 8
  %176 = tail call noundef i32 %175(ptr noundef nonnull align 8 dereferenceable(8) %173)
  %177 = load ptr, ptr %140, align 8, !tbaa !23
  %178 = load ptr, ptr %177, align 8, !tbaa !24
  %179 = load ptr, ptr %178, align 8
  %180 = tail call noundef i32 %179(ptr noundef nonnull align 8 dereferenceable(8) %177)
  %181 = load ptr, ptr %140, align 8, !tbaa !23
  %182 = load ptr, ptr %181, align 8, !tbaa !24
  %183 = load ptr, ptr %182, align 8
  %184 = tail call noundef i32 %183(ptr noundef nonnull align 8 dereferenceable(8) %181)
  %185 = load ptr, ptr %140, align 8, !tbaa !23
  %186 = load ptr, ptr %185, align 8, !tbaa !24
  %187 = load ptr, ptr %186, align 8
  %188 = tail call noundef i32 %187(ptr noundef nonnull align 8 dereferenceable(8) %185)
  %189 = load ptr, ptr %140, align 8, !tbaa !23
  %190 = load ptr, ptr %189, align 8, !tbaa !24
  %191 = load ptr, ptr %190, align 8
  %192 = tail call noundef i32 %191(ptr noundef nonnull align 8 dereferenceable(8) %189)
  %193 = load ptr, ptr %140, align 8, !tbaa !23
  %194 = load ptr, ptr %193, align 8, !tbaa !24
  %195 = load ptr, ptr %194, align 8
  %196 = tail call noundef i32 %195(ptr noundef nonnull align 8 dereferenceable(8) %193)
  %197 = load ptr, ptr %140, align 8, !tbaa !23
  %198 = load ptr, ptr %197, align 8, !tbaa !24
  %199 = load ptr, ptr %198, align 8
  %200 = tail call noundef i32 %199(ptr noundef nonnull align 8 dereferenceable(8) %197)
  %201 = load ptr, ptr %140, align 8, !tbaa !23
  %202 = load ptr, ptr %201, align 8, !tbaa !24
  %203 = load ptr, ptr %202, align 8
  %204 = tail call noundef i32 %203(ptr noundef nonnull align 8 dereferenceable(8) %201)
  %205 = load ptr, ptr %140, align 8, !tbaa !23
  %206 = load ptr, ptr %205, align 8, !tbaa !24
  %207 = load ptr, ptr %206, align 8
  %208 = tail call noundef i32 %207(ptr noundef nonnull align 8 dereferenceable(8) %205)
  %209 = load ptr, ptr %140, align 8, !tbaa !23
  %210 = load ptr, ptr %209, align 8, !tbaa !24
  %211 = load ptr, ptr %210, align 8
  %212 = tail call noundef i32 %211(ptr noundef nonnull align 8 dereferenceable(8) %209)
  %213 = load ptr, ptr %140, align 8, !tbaa !23
  %214 = load ptr, ptr %213, align 8, !tbaa !24
  %215 = load ptr, ptr %214, align 8
  %216 = tail call noundef i32 %215(ptr noundef nonnull align 8 dereferenceable(8) %213)
  %217 = load ptr, ptr %140, align 8, !tbaa !23
  %218 = load ptr, ptr %217, align 8, !tbaa !24
  %219 = load ptr, ptr %218, align 8
  %220 = tail call noundef i32 %219(ptr noundef nonnull align 8 dereferenceable(8) %217)
  br label %.loopexit

221:                                              ; preds = %.thread, %15
  tail call void @_ZN7libzpaq5errorEPKc(ptr noundef nonnull @.str.36)
  br label %.loopexit

.loopexit:                                        ; preds = %.split.preheader, %.split.us.preheader, %221, %16, %17
  ret void
}

attributes #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 #1 = { mustprogress 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, !20, i64 111072}
!6 = !{!"_ZTSN7libzpaq12DecompresserE", !7, i64 0, !16, i64 192, !19, i64 110864, !20, i64 111072, !21, i64 111076}
!7 = !{!"_ZTSN7libzpaq5ZPAQLE", !8, i64 0, !8, i64 8, !11, i64 16, !13, i64 40, !13, i64 44, !13, i64 48, !11, i64 56, !14, i64 80, !14, i64 104, !15, i64 128, !13, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !13, i64 172, !13, i64 176, !13, i64 180, !8, i64 184}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSN7libzpaq5ArrayIhEE", !8, i64 0, !12, i64 8, !13, i64 16}
!12 = !{!"long", !9, i64 0}
!13 = !{!"int", !9, i64 0}
!14 = !{!"_ZTSN7libzpaq5ArrayIjEE", !8, i64 0, !12, i64 8, !13, i64 16}
!15 = !{!"_ZTSN7libzpaq5ArrayIcEE", !8, i64 0, !12, i64 8, !13, i64 16}
!16 = !{!"_ZTSN7libzpaq7DecoderE", !8, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !17, i64 24, !15, i64 110648}
!17 = !{!"_ZTSN7libzpaq9PredictorE", !13, i64 0, !13, i64 4, !9, i64 8, !9, i64 1032, !8, i64 2056, !9, i64 2064, !9, i64 30736, !9, i64 31760, !9, i64 35856, !9, i64 44048, !18, i64 109584, !8, i64 110608, !13, i64 110616}
!18 = !{!"_ZTSN7libzpaq10StateTableE", !9, i64 0}
!19 = !{!"_ZTSN7libzpaq13PostProcessorE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !7, i64 16}
!20 = !{!"_ZTSN7libzpaq12DecompresserUt_E", !9, i64 0}
!21 = !{!"_ZTSN7libzpaq12DecompresserUt0_E", !9, i64 0}
!22 = !{!6, !21, i64 111076}
!23 = !{!6, !8, i64 192}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !10, i64 0}
!26 = !{!9, !9, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass