; 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] }>

@_ZTVN9NCompress5NLZMA8CEncoderE = external dso_local unnamed_addr constant { [13 x ptr], [7 x ptr], [6 x ptr], [6 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NCompress5NLZMA8CEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(210678) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @_ZN14ICompressCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN21ICompressSetOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  %7 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN27ICompressSetCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %8 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN29ICompressWriteCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  %9 = getelementptr inbounds i8, ptr %5, i64 32
  %10 = getelementptr inbounds i8, ptr %5, i64 52
  call void @_ZN13CMyUnknownImpC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %10)
  store ptr getelementptr inbounds inrange(-16, 88) ({ [13 x ptr], [7 x ptr], [6 x ptr], [6 x ptr] }, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr getelementptr inbounds inrange(-16, 40) ({ [13 x ptr], [7 x ptr], [6 x ptr], [6 x ptr] }, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i32 0, i32 1, i32 2), ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr getelementptr inbounds inrange(-16, 32) ({ [13 x ptr], [7 x ptr], [6 x ptr], [6 x ptr] }, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i32 0, i32 2, i32 2), ptr %12, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr getelementptr inbounds inrange(-16, 32) ({ [13 x ptr], [7 x ptr], [6 x ptr], [6 x ptr] }, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i32 0, i32 3, i32 2), ptr %13, align 8, !tbaa !9
  %14 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 6
  %15 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 7
  call void @_ZN9CMyComPtrI12IMatchFinderEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
  %16 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 8
  invoke void @_ZN9NCompress11NRangeCoder8CEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %17 unwind label %44

17:                                               ; preds = %1
  %18 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 9
  %19 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 10
  %20 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 11
  %21 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 12
  %22 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 13
  %23 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 14
  %24 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 15
  %25 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 16
  %26 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 17
  %27 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 18
  %28 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 19
  %29 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 20
  invoke void @_ZN9NCompress5NLZMA15CLiteralEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %29)
          to label %30 unwind label %48

30:                                               ; preds = %17
  %31 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 25
  store i32 32, ptr %31, align 4, !tbaa !11
  %32 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 36
  store i32 40, ptr %32, align 8, !tbaa !35
  %33 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 37
  store i32 2, ptr %33, align 4, !tbaa !36
  %34 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 38
  store i32 3, ptr %34, align 8, !tbaa !37
  %35 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 39
  store i32 0, ptr %35, align 4, !tbaa !38
  %36 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 40
  store i32 3, ptr %36, align 8, !tbaa !39
  %37 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 41
  store i32 1048576, ptr %37, align 4, !tbaa !40
  %38 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 42
  store i32 -1, ptr %38, align 8, !tbaa !41
  %39 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 43
  store i32 -1, ptr %39, align 4, !tbaa !42
  %40 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 49
  store i32 2, ptr %40, align 8, !tbaa !43
  %41 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 50
  store i8 0, ptr %41, align 4, !tbaa !44
  %42 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 23
  store i8 0, ptr %42, align 1, !tbaa !45
  %43 = getelementptr inbounds %"class.NCompress::NLZMA::CEncoder", ptr %5, i32 0, i32 22
  store i8 0, ptr %43, align 8, !tbaa !46
  ret void

44:                                               ; preds = %1
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %3, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %4, align 4
  br label %52

48:                                               ; preds = %17
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %3, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %4, align 4
  call void @_ZN9NCompress11NRangeCoder8CEncoderD2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16) #4
  br label %52

52:                                               ; preds = %48, %44
  call void @_ZN9CMyComPtrI12IMatchFinderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %3, align 8
  %55 = load i32, ptr %4, align 4
  %56 = insertvalue { ptr, i32 } poison, ptr %54, 0
  %57 = insertvalue { ptr, i32 } %56, i32 %55, 1
  resume { ptr, i32 } %57
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14ICompressCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN21ICompressSetOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN27ICompressSetCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN29ICompressWriteCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI12IMatchFinderEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder8CEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder8CEncoderD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI12IMatchFinderED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

attributes #0 = { 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 #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 = { inlinehint 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 = { inlinehint 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 #4 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !21, i64 207444}
!12 = !{!"_ZTSN9NCompress5NLZMA8CEncoderE", !13, i64 0, !15, i64 8, !16, i64 16, !17, i64 24, !18, i64 32, !20, i64 52, !7, i64 56, !22, i64 163896, !23, 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, !28, i64 167192, !29, i64 167256, !29, i64 186788, !34, i64 206320, !7, i64 206344, !27, i64 207440, !27, i64 207441, !21, i64 207444, !21, i64 207448, !21, i64 207452, !21, i64 207456, !21, i64 207460, !27, i64 207464, !7, i64 207468, !7, i64 208492, !7, i64 210540, !21, i64 210604, !21, i64 210608, !21, i64 210612, !21, i64 210616, !21, i64 210620, !21, i64 210624, !21, i64 210628, !21, i64 210632, !21, i64 210636, !24, i64 210640, !24, i64 210648, !27, i64 210656, !6, i64 210664, !21, i64 210672, !27, i64 210676, !27, 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", !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTS9CMyComPtrI12IMatchFinderE", !6, i64 0}
!23 = !{!"_ZTSN9NCompress11NRangeCoder8CEncoderE", !21, i64 0, !7, i64 4, !24, i64 8, !21, i64 16, !25, i64 24}
!24 = !{!"long long", !7, i64 0}
!25 = !{!"_ZTS10COutBuffer", !6, i64 0, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !26, i64 24, !24, i64 32, !6, i64 40, !27, i64 48}
!26 = !{!"_ZTS9CMyComPtrI20ISequentialOutStreamE", !6, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi4EEE", !7, i64 0}
!29 = !{!"_ZTSN9NCompress5NLZMA7NLength18CPriceTableEncoderE", !30, i64 0, !7, i64 2056, !21, i64 19464, !7, i64 19468}
!30 = !{!"_ZTSN9NCompress5NLZMA7NLength8CEncoderE", !31, i64 0, !31, i64 4, !7, i64 8, !7, i64 520, !33, i64 1032}
!31 = !{!"_ZTSN9NCompress11NRangeCoder11CBitEncoderILi5EEE", !32, i64 0}
!32 = !{!"_ZTSN9NCompress11NRangeCoder9CBitModelILi5EEE", !21, i64 0}
!33 = !{!"_ZTSN9NCompress11NRangeCoder15CBitTreeEncoderILi5ELi8EEE", !7, i64 0}
!34 = !{!"_ZTSN9NCompress5NLZMA15CLiteralEncoderE", !6, i64 0, !21, i64 8, !21, i64 12, !21, i64 16}
!35 = !{!12, !21, i64 210608}
!36 = !{!12, !21, i64 210612}
!37 = !{!12, !21, i64 210616}
!38 = !{!12, !21, i64 210620}
!39 = !{!12, !21, i64 210624}
!40 = !{!12, !21, i64 210628}
!41 = !{!12, !21, i64 210632}
!42 = !{!12, !21, i64 210636}
!43 = !{!12, !21, i64 210672}
!44 = !{!12, !27, i64 210676}
!45 = !{!12, !27, i64 207441}
!46 = !{!12, !27, i64 207440}


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

@_ZTVN9NCompress5NLZMA8CEncoderE = external dso_local unnamed_addr constant { [13 x ptr], [7 x ptr], [6 x ptr], [6 x ptr] }, align 8

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NCompress5NLZMA8CEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(210678) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN14ICompressCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #4
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN21ICompressSetOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN27ICompressSetCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN29ICompressWriteCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 52
  tail call void @_ZN13CMyUnknownImpC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %5)
  store ptr getelementptr inbounds inrange(-16, 88) (i8, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 40) (i8, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i64 120), ptr %2, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i64 176), ptr %3, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 32) (i8, ptr @_ZTVN9NCompress5NLZMA8CEncoderE, i64 224), ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 163896
  tail call void @_ZN9CMyComPtrI12IMatchFinderEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 163904
  invoke void @_ZN9NCompress11NRangeCoder8CEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7)
          to label %8 unwind label %17

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 206320
  tail call void @_ZN9NCompress5NLZMA15CLiteralEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(20) %9)
  %10 = getelementptr inbounds i8, ptr %0, i64 207444
  store i32 32, ptr %10, align 4, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %0, i64 210608
  store <4 x i32> <i32 40, i32 2, i32 3, i32 0>, ptr %11, align 8, !tbaa !34
  %12 = getelementptr inbounds i8, ptr %0, i64 210624
  store <4 x i32> <i32 3, i32 1048576, i32 -1, i32 -1>, ptr %12, align 8, !tbaa !34
  %13 = getelementptr inbounds i8, ptr %0, i64 210672
  store i32 2, ptr %13, align 8, !tbaa !35
  %14 = getelementptr inbounds i8, ptr %0, i64 210676
  store i8 0, ptr %14, align 4, !tbaa !36
  %15 = getelementptr inbounds i8, ptr %0, i64 207441
  store i8 0, ptr %15, align 1, !tbaa !37
  %16 = getelementptr inbounds i8, ptr %0, i64 207440
  store i8 0, ptr %16, align 8, !tbaa !38
  ret void

17:                                               ; preds = %1
  %18 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN9CMyComPtrI12IMatchFinderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  resume { ptr, i32 } %18
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14ICompressCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN21ICompressSetOutStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN27ICompressSetCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN29ICompressWriteCoderPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI12IMatchFinderEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN9NCompress11NRangeCoder8CEncoderC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI12IMatchFinderED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass