; LLVM IR from mncoppola/rpef :: utilities_src/squashfs2.1/lzma/C/7zip/Compress/LZMA (LZMAEncoder)

; 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.NCompress::NLZMA::CEncoder" = type <{ %struct.ICompressCoder, %struct.ICompressSetOutStream, %struct.ICompressSetCoderProperties, %struct.ICompressWriteCoderProperties, %"class.NCompress::NLZMA::CBaseState", %class.CMyUnknownImp, [4096 x %"struct.NCompress::NLZMA::COptimal"], %class.CMyComPtr.5, %"class.NCompress::NRangeCoder::CEncoder", [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], [4 x %"class.NCompress::NRangeCoder::CBitTreeEncoder.7"], [114 x %"class.NCompress::NRangeCoder::CBitEncoder"], %"class.NCompress::NRangeCoder::CBitTreeEncoder.8", %"class.NCompress::NLZMA::NLength::CPriceTableEncoder", %"class.NCompress::NLZMA::NLength::CPriceTableEncoder", %"class.NCompress::NLZMA::CLiteralEncoder", [274 x i32], i8, i8, [2 x i8], i32, i32, i32, i32, i32, i8, [3 x i8], [4 x [64 x i32]], [4 x [128 x i32]], [16 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, [7 x i8], ptr, i32, i8, i8, [2 x i8] }>
%struct.ICompressCoder = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.ICompressSetOutStream = type { %struct.IUnknown }
%struct.ICompressSetCoderProperties = type { %struct.IUnknown }
%struct.ICompressWriteCoderProperties = type { %struct.IUnknown }
%"class.NCompress::NLZMA::CBaseState" = type { %"class.NCompress::NLZMA::CState", i8, [4 x i32] }
%"class.NCompress::NLZMA::CState" = type { i8 }
%class.CMyUnknownImp = type { i32 }
%"struct.NCompress::NLZMA::COptimal" = type { %"class.NCompress::NLZMA::CState", i8, i8, i32, i32, i32, i32, i32, [4 x i32] }
%class.CMyComPtr.5 = type { ptr }
%"class.NCompress::NRangeCoder::CEncoder" = type { i32, i8, i64, i32, [4 x i8], %class.COutBuffer }
%class.COutBuffer = type <{ ptr, i32, i32, i32, i32, %class.CMyComPtr.6, i64, ptr, i8, [7 x i8] }>
%class.CMyComPtr.6 = type { ptr }
%"class.NCompress::NRangeCoder::CBitEncoder" = type { %"class.NCompress::NRangeCoder::CBitModel" }
%"class.NCompress::NRangeCoder::CBitModel" = type { i32 }
%"class.NCompress::NRangeCoder::CBitTreeEncoder.7" = type { [64 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NRangeCoder::CBitTreeEncoder.8" = type { [16 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NLZMA::NLength::CPriceTableEncoder" = type { %"class.NCompress::NLZMA::NLength::CEncoder", [272 x [16 x i32]], i32, [16 x i32] }
%"class.NCompress::NLZMA::NLength::CEncoder" = type { %"class.NCompress::NRangeCoder::CBitEncoder", %"class.NCompress::NRangeCoder::CBitEncoder", [16 x %"class.NCompress::NRangeCoder::CBitTreeEncoder"], [16 x %"class.NCompress::NRangeCoder::CBitTreeEncoder"], %"class.NCompress::NRangeCoder::CBitTreeEncoder.4" }
%"class.NCompress::NRangeCoder::CBitTreeEncoder" = type { [8 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NRangeCoder::CBitTreeEncoder.4" = type { [256 x %"class.NCompress::NRangeCoder::CBitEncoder"] }
%"class.NCompress::NLZMA::CLiteralEncoder" = type <{ ptr, i32, i32, i32, [4 x i8] }>

; 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: mustprogress uwtable
declare dso_local void @_ZN9NCompress5NLZMA7NLength8CEncoder4InitEj(ptr noundef nonnull align 4 dereferenceable(2056), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9NCompress5NLZMA8CEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(210678) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  %9 = getelementptr inbounds i8, ptr %8, i64 32
  call void @_ZN9NCompress5NLZMA10CBaseState4InitEv(ptr noundef nonnull align 4 dereferenceable(20) %9)
  %10 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 8
  call void @_ZN9NCompress11NRangeCoder8CEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(80) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %57, %1
  %12 = load i32, ptr %3, align 4, !tbaa !9
  %13 = icmp slt i32 %12, 12
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %60

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %37, %15
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 38
  %19 = load i32, ptr %18, align 8, !tbaa !11
  %20 = icmp ule i32 %17, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %16
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %40

22:                                               ; preds = %16
  %23 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 9
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %23, i64 0, i64 %25
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [16 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %26, i64 0, i64 %28
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %29)
  %30 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 14
  %31 = load i32, ptr %3, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %30, i64 0, i64 %32
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds [16 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %33, i64 0, i64 %35
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %36)
  br label %37

37:                                               ; preds = %22
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = add i32 %38, 1
  store i32 %39, ptr %5, align 4, !tbaa !9
  br label %16, !llvm.loop !34

40:                                               ; preds = %21
  %41 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 10
  %42 = load i32, ptr %3, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %41, i64 0, i64 %43
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %44)
  %45 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 11
  %46 = load i32, ptr %3, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %45, i64 0, i64 %47
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  %49 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 12
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %49, i64 0, i64 %51
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %52)
  %53 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 13
  %54 = load i32, ptr %3, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [12 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %53, i64 0, i64 %55
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
  br label %57

57:                                               ; preds = %40
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %3, align 4, !tbaa !9
  br label %11, !llvm.loop !36

60:                                               ; preds = %14
  %61 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 20
  call void @_ZN9NCompress5NLZMA15CLiteralEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(20) %61)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %71, %60
  %63 = load i32, ptr %6, align 4, !tbaa !9
  %64 = icmp ult i32 %63, 4
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %74

66:                                               ; preds = %62
  %67 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 15
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds [4 x %"class.NCompress::NRangeCoder::CBitTreeEncoder.7"], ptr %67, i64 0, i64 %69
  call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256) %70)
  br label %71

71:                                               ; preds = %66
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = add i32 %72, 1
  store i32 %73, ptr %6, align 4, !tbaa !9
  br label %62, !llvm.loop !37

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %84, %74
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = icmp ult i32 %76, 114
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %87

79:                                               ; preds = %75
  %80 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 16
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds [114 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %80, i64 0, i64 %82
  call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %83)
  br label %84

84:                                               ; preds = %79
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = add i32 %85, 1
  store i32 %86, ptr %7, align 4, !tbaa !9
  br label %75, !llvm.loop !38

87:                                               ; preds = %78
  %88 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 18
  %89 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 37
  %90 = load i32, ptr %89, align 4, !tbaa !39
  %91 = shl i32 1, %90
  call void @_ZN9NCompress5NLZMA7NLength8CEncoder4InitEj(ptr noundef nonnull align 4 dereferenceable(2056) %88, i32 noundef %91)
  %92 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 19
  %93 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 37
  %94 = load i32, ptr %93, align 4, !tbaa !39
  %95 = shl i32 1, %94
  call void @_ZN9NCompress5NLZMA7NLength8CEncoder4InitEj(ptr noundef nonnull align 4 dereferenceable(2056) %92, i32 noundef %95)
  %96 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 17
  call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EE4InitEv(ptr noundef nonnull align 4 dereferenceable(64) %96)
  %97 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 30
  store i8 0, ptr %97, align 8, !tbaa !40
  %98 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 28
  store i32 0, ptr %98, align 8, !tbaa !41
  %99 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 29
  store i32 0, ptr %99, align 4, !tbaa !42
  %100 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %8, i32 0, i32 27
  store i32 0, ptr %100, align 4, !tbaa !43
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress5NLZMA10CBaseState4InitEv(ptr noundef nonnull align 4 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder8CEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(80)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress5NLZMA15CLiteralEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EE4InitEv(ptr noundef nonnull align 4 dereferenceable(64)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #2 = { mustprogress 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 210616}
!12 = !{!"_ZTSN9NCompress5NLZMA8CEncoderE", !13, i64 0, !15, i64 8, !16, i64 16, !17, i64 24, !18, i64 32, !20, i64 52, !7, i64 56, !21, i64 163896, !22, i64 163904, !7, i64 163984, !7, i64 164752, !7, i64 164800, !7, i64 164848, !7, i64 164896, !7, i64 164944, !7, i64 165712, !7, i64 166736, !27, i64 167192, !28, i64 167256, !28, i64 186788, !33, i64 206320, !7, i64 206344, !26, i64 207440, !26, i64 207441, !10, i64 207444, !10, i64 207448, !10, i64 207452, !10, i64 207456, !10, i64 207460, !26, i64 207464, !7, i64 207468, !7, i64 208492, !7, i64 210540, !10, i64 210604, !10, i64 210608, !10, i64 210612, !10, i64 210616, !10, i64 210620, !10, i64 210624, !10, i64 210628, !10, i64 210632, !10, i64 210636, !23, i64 210640, !23, i64 210648, !26, i64 210656, !6, i64 210664, !10, i64 210672, !26, i64 210676, !26, i64 210677}
!13 = !{!"_ZTS14ICompressCoder", !14, i64 0}
!14 = !{!"_ZTS8IUnknown"}
!15 = !{!"_ZTS21ICompressSetOutStream", !14, i64 0}
!16 = !{!"_ZTS27ICompressSetCoderProperties", !14, i64 0}
!17 = !{!"_ZTS29ICompressWriteCoderProperties", !14, i64 0}
!18 = !{!"_ZTSN9NCompress5NLZMA10CBaseStateE", !19, i64 0, !7, i64 1, !7, i64 4}
!19 = !{!"_ZTSN9NCompress5NLZMA6CStateE", !7, i64 0}
!20 = !{!"_ZTS13CMyUnknownImp", !10, i64 0}
!21 = !{!"_ZTS9CMyComPtrI12IMatchFinderE", !6, i64 0}
!22 = !{!"_ZTSN9NCompress11NRangeCoder8CEncoderE", !10, i64 0, !7, i64 4, !23, i64 8, !10, i64 16, !24, i64 24}
!23 = !{!"long long", !7, i64 0}
!24 = !{!"_ZTS10COutBuffer", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !25, i64 24, !23, i64 32, !6, i64 40, !26, i64 48}
!25 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EEE", !7, i64 0}
!28 = !{!"_ZTSN9NCompress5NLZMA7NLength18CPriceTableEncoderE", !29, i64 0, !7, i64 2056, !10, i64 19464, !7, i64 19468}
!29 = !{!"_ZTSN9NCompress5NLZMA7NLength8CEncoderE", !30, i64 0, !30, i64 4, !7, i64 8, !7, i64 520, !32, i64 1032}
!30 = !{!"_ZTSN9NCompress11NRangeCoder11CBitEncoderILi5EEE", !31, i64 0}
!31 = !{!"_ZTSN9NCompress11NRangeCoder9CBitModelILi5EEE", !10, i64 0}
!32 = !{!"_ZTSN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi8EEE", !7, i64 0}
!33 = !{!"_ZTSN9NCompress5NLZMA15CLiteralEncoderE", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !35}
!39 = !{!12, !10, i64 210612}
!40 = !{!12, !26, i64 207464}
!41 = !{!12, !10, i64 207456}
!42 = !{!12, !10, i64 207460}
!43 = !{!12, !10, i64 207452}


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

%"class.NCompress::NRangeCoder::CBitEncoder" = type { %"class.NCompress::NRangeCoder::CBitModel" }
%"class.NCompress::NRangeCoder::CBitModel" = type { i32 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress5NLZMA7NLength8CEncoder4InitEj(ptr noundef nonnull align 4 dereferenceable(2056), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9NCompress5NLZMA8CEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(210678) %0) local_unnamed_addr #0 align 2 {
.preheader21:
  %1 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN9NCompress5NLZMA10CBaseState4InitEv(ptr noundef nonnull align 4 dereferenceable(20) %1)
  %2 = getelementptr inbounds i8, ptr %0, i64 163904
  tail call void @_ZN9NCompress11NRangeCoder8CEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(80) %2)
  %3 = getelementptr inbounds i8, ptr %0, i64 210616
  %4 = getelementptr inbounds i8, ptr %0, i64 163984
  %5 = getelementptr inbounds i8, ptr %0, i64 164944
  %6 = getelementptr inbounds i8, ptr %0, i64 164752
  %7 = getelementptr inbounds i8, ptr %0, i64 164800
  %8 = getelementptr inbounds i8, ptr %0, i64 164848
  %9 = getelementptr inbounds i8, ptr %0, i64 164896
  br label %126

.preheader21.1:                                   ; preds = %126
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %6)
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %7)
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %8)
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %9)
  br label %10

10:                                               ; preds = %10, %.preheader21.1
  %.01922.1 = phi i32 [ 0, %.preheader21.1 ], [ %14, %10 ]
  %11 = zext i32 %.01922.1 to i64
  %12 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 1, i64 %11
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %13 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 1, i64 %11
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %13)
  %14 = add i32 %.01922.1, 1
  %15 = load i32, ptr %3, align 8, !tbaa !5
  %.not.1 = icmp ugt i32 %14, %15
  br i1 %.not.1, label %.preheader21.2, label %10, !llvm.loop !32

.preheader21.2:                                   ; preds = %10
  %16 = getelementptr inbounds i8, ptr %0, i64 164756
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %16)
  %17 = getelementptr inbounds i8, ptr %0, i64 164804
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 164852
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %18)
  %19 = getelementptr inbounds i8, ptr %0, i64 164900
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %19)
  br label %20

20:                                               ; preds = %20, %.preheader21.2
  %.01922.2 = phi i32 [ 0, %.preheader21.2 ], [ %24, %20 ]
  %21 = zext i32 %.01922.2 to i64
  %22 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 2, i64 %21
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %22)
  %23 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 2, i64 %21
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %23)
  %24 = add i32 %.01922.2, 1
  %25 = load i32, ptr %3, align 8, !tbaa !5
  %.not.2 = icmp ugt i32 %24, %25
  br i1 %.not.2, label %.preheader21.3, label %20, !llvm.loop !32

.preheader21.3:                                   ; preds = %20
  %26 = getelementptr inbounds i8, ptr %0, i64 164760
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %26)
  %27 = getelementptr inbounds i8, ptr %0, i64 164808
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %27)
  %28 = getelementptr inbounds i8, ptr %0, i64 164856
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %28)
  %29 = getelementptr inbounds i8, ptr %0, i64 164904
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %29)
  br label %30

30:                                               ; preds = %30, %.preheader21.3
  %.01922.3 = phi i32 [ 0, %.preheader21.3 ], [ %34, %30 ]
  %31 = zext i32 %.01922.3 to i64
  %32 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 3, i64 %31
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %32)
  %33 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 3, i64 %31
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %33)
  %34 = add i32 %.01922.3, 1
  %35 = load i32, ptr %3, align 8, !tbaa !5
  %.not.3 = icmp ugt i32 %34, %35
  br i1 %.not.3, label %.preheader21.4, label %30, !llvm.loop !32

.preheader21.4:                                   ; preds = %30
  %36 = getelementptr inbounds i8, ptr %0, i64 164764
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %36)
  %37 = getelementptr inbounds i8, ptr %0, i64 164812
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
  %38 = getelementptr inbounds i8, ptr %0, i64 164860
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %38)
  %39 = getelementptr inbounds i8, ptr %0, i64 164908
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %39)
  br label %40

40:                                               ; preds = %40, %.preheader21.4
  %.01922.4 = phi i32 [ 0, %.preheader21.4 ], [ %44, %40 ]
  %41 = zext i32 %.01922.4 to i64
  %42 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 4, i64 %41
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %42)
  %43 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 4, i64 %41
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %43)
  %44 = add i32 %.01922.4, 1
  %45 = load i32, ptr %3, align 8, !tbaa !5
  %.not.4 = icmp ugt i32 %44, %45
  br i1 %.not.4, label %.preheader21.5, label %40, !llvm.loop !32

.preheader21.5:                                   ; preds = %40
  %46 = getelementptr inbounds i8, ptr %0, i64 164768
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %46)
  %47 = getelementptr inbounds i8, ptr %0, i64 164816
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %47)
  %48 = getelementptr inbounds i8, ptr %0, i64 164864
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %48)
  %49 = getelementptr inbounds i8, ptr %0, i64 164912
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %49)
  br label %50

50:                                               ; preds = %50, %.preheader21.5
  %.01922.5 = phi i32 [ 0, %.preheader21.5 ], [ %54, %50 ]
  %51 = zext i32 %.01922.5 to i64
  %52 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 5, i64 %51
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %52)
  %53 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 5, i64 %51
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %53)
  %54 = add i32 %.01922.5, 1
  %55 = load i32, ptr %3, align 8, !tbaa !5
  %.not.5 = icmp ugt i32 %54, %55
  br i1 %.not.5, label %.preheader21.6, label %50, !llvm.loop !32

.preheader21.6:                                   ; preds = %50
  %56 = getelementptr inbounds i8, ptr %0, i64 164772
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %56)
  %57 = getelementptr inbounds i8, ptr %0, i64 164820
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %57)
  %58 = getelementptr inbounds i8, ptr %0, i64 164868
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %58)
  %59 = getelementptr inbounds i8, ptr %0, i64 164916
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %59)
  br label %60

60:                                               ; preds = %60, %.preheader21.6
  %.01922.6 = phi i32 [ 0, %.preheader21.6 ], [ %64, %60 ]
  %61 = zext i32 %.01922.6 to i64
  %62 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 6, i64 %61
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %62)
  %63 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 6, i64 %61
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %63)
  %64 = add i32 %.01922.6, 1
  %65 = load i32, ptr %3, align 8, !tbaa !5
  %.not.6 = icmp ugt i32 %64, %65
  br i1 %.not.6, label %.preheader21.7, label %60, !llvm.loop !32

.preheader21.7:                                   ; preds = %60
  %66 = getelementptr inbounds i8, ptr %0, i64 164776
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %66)
  %67 = getelementptr inbounds i8, ptr %0, i64 164824
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %67)
  %68 = getelementptr inbounds i8, ptr %0, i64 164872
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %68)
  %69 = getelementptr inbounds i8, ptr %0, i64 164920
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %69)
  br label %70

70:                                               ; preds = %70, %.preheader21.7
  %.01922.7 = phi i32 [ 0, %.preheader21.7 ], [ %74, %70 ]
  %71 = zext i32 %.01922.7 to i64
  %72 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 7, i64 %71
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %72)
  %73 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 7, i64 %71
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %73)
  %74 = add i32 %.01922.7, 1
  %75 = load i32, ptr %3, align 8, !tbaa !5
  %.not.7 = icmp ugt i32 %74, %75
  br i1 %.not.7, label %.preheader21.8, label %70, !llvm.loop !32

.preheader21.8:                                   ; preds = %70
  %76 = getelementptr inbounds i8, ptr %0, i64 164780
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %76)
  %77 = getelementptr inbounds i8, ptr %0, i64 164828
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %77)
  %78 = getelementptr inbounds i8, ptr %0, i64 164876
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %78)
  %79 = getelementptr inbounds i8, ptr %0, i64 164924
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %79)
  br label %80

80:                                               ; preds = %80, %.preheader21.8
  %.01922.8 = phi i32 [ 0, %.preheader21.8 ], [ %84, %80 ]
  %81 = zext i32 %.01922.8 to i64
  %82 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 8, i64 %81
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %82)
  %83 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 8, i64 %81
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %83)
  %84 = add i32 %.01922.8, 1
  %85 = load i32, ptr %3, align 8, !tbaa !5
  %.not.8 = icmp ugt i32 %84, %85
  br i1 %.not.8, label %.preheader21.9, label %80, !llvm.loop !32

.preheader21.9:                                   ; preds = %80
  %86 = getelementptr inbounds i8, ptr %0, i64 164784
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %86)
  %87 = getelementptr inbounds i8, ptr %0, i64 164832
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %87)
  %88 = getelementptr inbounds i8, ptr %0, i64 164880
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %88)
  %89 = getelementptr inbounds i8, ptr %0, i64 164928
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %89)
  br label %90

90:                                               ; preds = %90, %.preheader21.9
  %.01922.9 = phi i32 [ 0, %.preheader21.9 ], [ %94, %90 ]
  %91 = zext i32 %.01922.9 to i64
  %92 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 9, i64 %91
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %92)
  %93 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 9, i64 %91
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %93)
  %94 = add i32 %.01922.9, 1
  %95 = load i32, ptr %3, align 8, !tbaa !5
  %.not.9 = icmp ugt i32 %94, %95
  br i1 %.not.9, label %.preheader21.10, label %90, !llvm.loop !32

.preheader21.10:                                  ; preds = %90
  %96 = getelementptr inbounds i8, ptr %0, i64 164788
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %96)
  %97 = getelementptr inbounds i8, ptr %0, i64 164836
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %97)
  %98 = getelementptr inbounds i8, ptr %0, i64 164884
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %98)
  %99 = getelementptr inbounds i8, ptr %0, i64 164932
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %99)
  br label %100

100:                                              ; preds = %100, %.preheader21.10
  %.01922.10 = phi i32 [ 0, %.preheader21.10 ], [ %104, %100 ]
  %101 = zext i32 %.01922.10 to i64
  %102 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 10, i64 %101
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %102)
  %103 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 10, i64 %101
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %103)
  %104 = add i32 %.01922.10, 1
  %105 = load i32, ptr %3, align 8, !tbaa !5
  %.not.10 = icmp ugt i32 %104, %105
  br i1 %.not.10, label %.preheader21.11, label %100, !llvm.loop !32

.preheader21.11:                                  ; preds = %100
  %106 = getelementptr inbounds i8, ptr %0, i64 164792
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %106)
  %107 = getelementptr inbounds i8, ptr %0, i64 164840
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %107)
  %108 = getelementptr inbounds i8, ptr %0, i64 164888
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %108)
  %109 = getelementptr inbounds i8, ptr %0, i64 164936
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %109)
  br label %110

110:                                              ; preds = %110, %.preheader21.11
  %.01922.11 = phi i32 [ 0, %.preheader21.11 ], [ %114, %110 ]
  %111 = zext i32 %.01922.11 to i64
  %112 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 11, i64 %111
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %112)
  %113 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 11, i64 %111
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %113)
  %114 = add i32 %.01922.11, 1
  %115 = load i32, ptr %3, align 8, !tbaa !5
  %.not.11 = icmp ugt i32 %114, %115
  br i1 %.not.11, label %.preheader, label %110, !llvm.loop !32

.preheader:                                       ; preds = %110
  %116 = getelementptr inbounds i8, ptr %0, i64 164796
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %116)
  %117 = getelementptr inbounds i8, ptr %0, i64 164844
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %117)
  %118 = getelementptr inbounds i8, ptr %0, i64 164892
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %118)
  %119 = getelementptr inbounds i8, ptr %0, i64 164940
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %119)
  %120 = getelementptr inbounds i8, ptr %0, i64 206320
  tail call void @_ZN9NCompress5NLZMA15CLiteralEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(20) %120)
  %121 = getelementptr inbounds i8, ptr %0, i64 165712
  tail call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256) %121)
  %122 = getelementptr inbounds i8, ptr %0, i64 165968
  tail call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256) %122)
  %123 = getelementptr inbounds i8, ptr %0, i64 166224
  tail call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256) %123)
  %124 = getelementptr inbounds i8, ptr %0, i64 166480
  tail call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256) %124)
  %125 = getelementptr inbounds i8, ptr %0, i64 166736
  br label %142

126:                                              ; preds = %.preheader21, %126
  %.01922 = phi i32 [ 0, %.preheader21 ], [ %130, %126 ]
  %127 = zext i32 %.01922 to i64
  %128 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %4, i64 0, i64 0, i64 %127
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %128)
  %129 = getelementptr inbounds [12 x [16 x %"class.NCompress::NRangeCoder::CBitEncoder"]], ptr %5, i64 0, i64 0, i64 %127
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %129)
  %130 = add i32 %.01922, 1
  %131 = load i32, ptr %3, align 8, !tbaa !5
  %.not = icmp ugt i32 %130, %131
  br i1 %.not, label %.preheader21.1, label %126, !llvm.loop !32

132:                                              ; preds = %142
  %133 = getelementptr inbounds i8, ptr %0, i64 167256
  %134 = getelementptr inbounds i8, ptr %0, i64 210612
  %135 = load i32, ptr %134, align 4, !tbaa !34
  %136 = shl nuw i32 1, %135
  tail call void @_ZN9NCompress5NLZMA7NLength8CEncoder4InitEj(ptr noundef nonnull align 4 dereferenceable(2056) %133, i32 noundef %136)
  %137 = getelementptr inbounds i8, ptr %0, i64 186788
  %138 = load i32, ptr %134, align 4, !tbaa !34
  %139 = shl nuw i32 1, %138
  tail call void @_ZN9NCompress5NLZMA7NLength8CEncoder4InitEj(ptr noundef nonnull align 4 dereferenceable(2056) %137, i32 noundef %139)
  %140 = getelementptr inbounds i8, ptr %0, i64 167192
  tail call void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EE4InitEv(ptr noundef nonnull align 4 dereferenceable(64) %140)
  %141 = getelementptr inbounds i8, ptr %0, i64 207452
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(13) %141, i8 0, i64 13, i1 false)
  ret i32 0

142:                                              ; preds = %.preheader, %142
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %142 ]
  %143 = getelementptr inbounds [114 x %"class.NCompress::NRangeCoder::CBitEncoder"], ptr %125, i64 0, i64 %indvars.iv
  tail call void @_ZN9NCompress11NRangeCoder9CBitModelILi5EE4InitEv(ptr noundef nonnull align 4 dereferenceable(4) %143)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 114
  br i1 %exitcond.not, label %132, label %142, !llvm.loop !35
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress5NLZMA10CBaseState4InitEv(ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder8CEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9NCompress5NLZMA15CLiteralEncoder4InitEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi6EE4InitEv(ptr noundef nonnull align 4 dereferenceable(256)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EE4InitEv(ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #0 = { 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 #1 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !17, i64 210616}
!6 = !{!"_ZTSN9NCompress5NLZMA8CEncoderE", !7, i64 0, !9, i64 8, !10, i64 16, !11, i64 24, !12, i64 32, !16, i64 52, !14, i64 56, !18, i64 163896, !20, i64 163904, !14, i64 163984, !14, i64 164752, !14, i64 164800, !14, i64 164848, !14, i64 164896, !14, i64 164944, !14, i64 165712, !14, i64 166736, !25, i64 167192, !26, i64 167256, !26, i64 186788, !31, i64 206320, !14, i64 206344, !24, i64 207440, !24, i64 207441, !17, i64 207444, !17, i64 207448, !17, i64 207452, !17, i64 207456, !17, i64 207460, !24, i64 207464, !14, i64 207468, !14, i64 208492, !14, i64 210540, !17, i64 210604, !17, i64 210608, !17, i64 210612, !17, i64 210616, !17, i64 210620, !17, i64 210624, !17, i64 210628, !17, i64 210632, !17, i64 210636, !21, i64 210640, !21, i64 210648, !24, i64 210656, !19, i64 210664, !17, i64 210672, !24, i64 210676, !24, i64 210677}
!7 = !{!"_ZTS14ICompressCoder", !8, i64 0}
!8 = !{!"_ZTS8IUnknown"}
!9 = !{!"_ZTS21ICompressSetOutStream", !8, i64 0}
!10 = !{!"_ZTS27ICompressSetCoderProperties", !8, i64 0}
!11 = !{!"_ZTS29ICompressWriteCoderProperties", !8, i64 0}
!12 = !{!"_ZTSN9NCompress5NLZMA10CBaseStateE", !13, i64 0, !14, i64 1, !14, i64 4}
!13 = !{!"_ZTSN9NCompress5NLZMA6CStateE", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTS13CMyUnknownImp", !17, i64 0}
!17 = !{!"int", !14, i64 0}
!18 = !{!"_ZTS9CMyComPtrI12IMatchFinderE", !19, i64 0}
!19 = !{!"any pointer", !14, i64 0}
!20 = !{!"_ZTSN9NCompress11NRangeCoder8CEncoderE", !17, i64 0, !14, i64 4, !21, i64 8, !17, i64 16, !22, i64 24}
!21 = !{!"long long", !14, i64 0}
!22 = !{!"_ZTS10COutBuffer", !19, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !23, i64 24, !21, i64 32, !19, i64 40, !24, i64 48}
!23 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !19, i64 0}
!24 = !{!"bool", !14, i64 0}
!25 = !{!"_ZTSN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EEE", !14, i64 0}
!26 = !{!"_ZTSN9NCompress5NLZMA7NLength18CPriceTableEncoderE", !27, i64 0, !14, i64 2056, !17, i64 19464, !14, i64 19468}
!27 = !{!"_ZTSN9NCompress5NLZMA7NLength8CEncoderE", !28, i64 0, !28, i64 4, !14, i64 8, !14, i64 520, !30, i64 1032}
!28 = !{!"_ZTSN9NCompress11NRangeCoder11CBitEncoderILi5EEE", !29, i64 0}
!29 = !{!"_ZTSN9NCompress11NRangeCoder9CBitModelILi5EEE", !17, i64 0}
!30 = !{!"_ZTSN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi8EEE", !14, i64 0}
!31 = !{!"_ZTSN9NCompress5NLZMA15CLiteralEncoderE", !19, i64 0, !17, i64 8, !17, i64 12, !17, i64 16}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!6, !17, i64 210612}
!35 = distinct !{!35, !33}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass