; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Compress/Lzma2Decoder.ll (ZN9NCompress6NLzma28CDecoderC2Ev)

; 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::NLzma2::CDecoder" = type { %struct.ICompressCoder, %struct.ICompressSetDecoderProperties2, %struct.ICompressSetFinishMode, %struct.ICompressGetInStreamProcessedSize, %struct.ICompressSetBufSize, %struct.ICompressSetInStream, %struct.ICompressSetOutStreamSize, %struct.ISequentialInStream, %struct.ICompressSetCoderMt, %struct.ICompressSetMemLimit, %class.CMyUnknownImp, ptr, i64, i8, i32, i32, i32, i32, i32, i64, %class.CMyComPtr, %struct.CSeqInStreamWrap }
%struct.ICompressCoder = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.ICompressSetDecoderProperties2 = type { %struct.IUnknown }
%struct.ICompressSetFinishMode = type { %struct.IUnknown }
%struct.ICompressGetInStreamProcessedSize = type { %struct.IUnknown }
%struct.ICompressSetBufSize = type { %struct.IUnknown }
%struct.ICompressSetInStream = type { %struct.IUnknown }
%struct.ICompressSetOutStreamSize = type { %struct.IUnknown }
%struct.ISequentialInStream = type { %struct.IUnknown }
%struct.ICompressSetCoderMt = type { %struct.IUnknown }
%struct.ICompressSetMemLimit = type { %struct.IUnknown }
%class.CMyUnknownImp = type { i32 }
%class.CMyComPtr = type { ptr }
%struct.CSeqInStreamWrap = type { %struct.ISeqInStream, ptr, i32, i64 }
%struct.ISeqInStream = type { ptr }

@_ZTVN9NCompress6NLzma28CDecoderE = external dso_local unnamed_addr constant { [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NCompress6NLzma28CDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %0) unnamed_addr #0 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) #3
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN30ICompressSetDecoderProperties2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %7 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN22ICompressSetFinishModeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %8 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN33ICompressGetInStreamProcessedSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  %9 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN19ICompressSetBufSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %10 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN20ICompressSetInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  %11 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZN25ICompressSetOutStreamSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #3
  %12 = getelementptr inbounds i8, ptr %5, i64 56
  call void @_ZN19ISequentialInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #3
  %13 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN19ICompressSetCoderMtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #3
  %14 = getelementptr inbounds i8, ptr %5, i64 72
  call void @_ZN20ICompressSetMemLimitC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #3
  %15 = getelementptr inbounds i8, ptr %5, i64 80
  invoke void @_ZN13CMyUnknownImpC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %16 unwind label %38

16:                                               ; preds = %1
  store ptr getelementptr inbounds inrange(-16, 136) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 0, i32 2), ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 1, i32 2), ptr %17, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 2, i32 2), ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %5, i64 24
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 3, i32 2), ptr %19, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr getelementptr inbounds inrange(-16, 56) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 4, i32 2), ptr %20, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %5, i64 40
  store ptr getelementptr inbounds inrange(-16, 56) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 5, i32 2), ptr %21, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %5, i64 48
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 6, i32 2), ptr %22, align 8, !tbaa !9
  %23 = getelementptr inbounds i8, ptr %5, i64 56
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 7, i32 2), ptr %23, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %5, i64 64
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 8, i32 2), ptr %24, align 8, !tbaa !9
  %25 = getelementptr inbounds i8, ptr %5, i64 72
  store ptr getelementptr inbounds inrange(-16, 48) ({ [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i32 0, i32 9, i32 2), ptr %25, align 8, !tbaa !9
  %26 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 11
  store ptr null, ptr %26, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 12
  store i64 0, ptr %27, align 8, !tbaa !30
  %28 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 13
  store i8 -1, ptr %28, align 8, !tbaa !31
  %29 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 14
  store i32 0, ptr %29, align 4, !tbaa !32
  %30 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 15
  store i32 1048576, ptr %30, align 8, !tbaa !33
  %31 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 16
  store i32 1048576, ptr %31, align 4, !tbaa !34
  %32 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 17
  store i32 1, ptr %32, align 8, !tbaa !35
  %33 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 18
  store i32 1, ptr %33, align 4, !tbaa !36
  %34 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 19
  store i64 2147483648, ptr %34, align 8, !tbaa !37
  %35 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 20
  invoke void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %36 unwind label %42

36:                                               ; preds = %16
  %37 = getelementptr inbounds %"class.NCompress::NLzma2::CDecoder", ptr %5, i32 0, i32 21
  ret void

38:                                               ; preds = %1
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %3, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %4, align 4
  br label %47

42:                                               ; preds = %16
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %3, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %4, align 4
  %46 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZN13CMyUnknownImpD2Ev(ptr noundef nonnull align 4 dereferenceable(4) %46) #3
  br label %47

47:                                               ; preds = %42, %38
  %48 = getelementptr inbounds i8, ptr %5, i64 72
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %48) #3
  %49 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %49) #3
  %50 = getelementptr inbounds i8, ptr %5, i64 56
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #3
  %51 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %51) #3
  %52 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %52) #3
  %53 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %53) #3
  %54 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #3
  %55 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #3
  %56 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %56) #3
  call void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  br label %57

57:                                               ; preds = %47
  %58 = load ptr, ptr %3, align 8
  %59 = load i32, ptr %4, align 4
  %60 = insertvalue { ptr, i32 } poison, ptr %58, 0
  %61 = insertvalue { ptr, i32 } %60, i32 %59, 1
  resume { ptr, i32 } %61
}

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

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

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8IUnknownD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 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 = { 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 #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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 88}
!12 = !{!"_ZTSN9NCompress6NLzma28CDecoderE", !13, i64 0, !15, i64 8, !16, i64 16, !17, i64 24, !18, i64 32, !19, i64 40, !20, i64 48, !21, i64 56, !22, i64 64, !23, i64 72, !24, i64 80, !6, i64 88, !26, i64 96, !7, i64 104, !25, i64 108, !25, i64 112, !25, i64 116, !25, i64 120, !25, i64 124, !26, i64 128, !27, i64 136, !28, i64 144}
!13 = !{!"_ZTS14ICompressCoder", !14, i64 0}
!14 = !{!"_ZTS8IUnknown"}
!15 = !{!"_ZTS30ICompressSetDecoderProperties2", !14, i64 0}
!16 = !{!"_ZTS22ICompressSetFinishMode", !14, i64 0}
!17 = !{!"_ZTS33ICompressGetInStreamProcessedSize", !14, i64 0}
!18 = !{!"_ZTS19ICompressSetBufSize", !14, i64 0}
!19 = !{!"_ZTS20ICompressSetInStream", !14, i64 0}
!20 = !{!"_ZTS25ICompressSetOutStreamSize", !14, i64 0}
!21 = !{!"_ZTS19ISequentialInStream", !14, i64 0}
!22 = !{!"_ZTS19ICompressSetCoderMt", !14, i64 0}
!23 = !{!"_ZTS20ICompressSetMemLimit", !14, i64 0}
!24 = !{!"_ZTS13CMyUnknownImp", !25, i64 0}
!25 = !{!"int", !7, i64 0}
!26 = !{!"long long", !7, i64 0}
!27 = !{!"_ZTS9CMyComPtrI19ISequentialInStreamE", !6, i64 0}
!28 = !{!"_ZTS16CSeqInStreamWrap", !29, i64 0, !6, i64 8, !25, i64 16, !26, i64 24}
!29 = !{!"_ZTS12ISeqInStream", !6, i64 0}
!30 = !{!12, !26, i64 96}
!31 = !{!12, !7, i64 104}
!32 = !{!12, !25, i64 108}
!33 = !{!12, !25, i64 112}
!34 = !{!12, !25, i64 116}
!35 = !{!12, !25, i64 120}
!36 = !{!12, !25, i64 124}
!37 = !{!12, !26, i64 128}


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

@_ZTVN9NCompress6NLzma28CDecoderE = external dso_local unnamed_addr constant { [19 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [9 x ptr], [9 x ptr], [8 x ptr], [8 x ptr], [8 x ptr], [8 x ptr] }, align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN9NCompress6NLzma28CDecoderC2Ev(ptr noundef nonnull align 8 dereferenceable(176) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN14ICompressCoderC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %0) #3
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN30ICompressSetDecoderProperties2C2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #3
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN22ICompressSetFinishModeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN33ICompressGetInStreamProcessedSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN19ICompressSetBufSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  tail call void @_ZN20ICompressSetInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #3
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN25ICompressSetOutStreamSizeC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #3
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZN19ISequentialInStreamC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #3
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN19ICompressSetCoderMtC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #3
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN20ICompressSetMemLimitC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  tail call void @_ZN13CMyUnknownImpC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %11)
  store ptr getelementptr inbounds inrange(-16, 136) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 16), ptr %0, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 168), ptr %2, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 232), ptr %3, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 296), ptr %4, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 360), ptr %5, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 56) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 432), ptr %6, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 504), ptr %7, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 568), ptr %8, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 632), ptr %9, align 8, !tbaa !5
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN9NCompress6NLzma28CDecoderE, i64 696), ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %12, i8 0, i64 16, i1 false)
  store i8 -1, ptr %13, align 8, !tbaa !8
  %14 = getelementptr inbounds i8, ptr %0, i64 108
  store <4 x i32> <i32 0, i32 1048576, i32 1048576, i32 1>, ptr %14, align 4, !tbaa !29
  %15 = getelementptr inbounds i8, ptr %0, i64 124
  store i32 1, ptr %15, align 4, !tbaa !30
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  store i64 2147483648, ptr %16, align 8, !tbaa !31
  %17 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17)
  ret void
}

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

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

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

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

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

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

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

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

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI19ISequentialInStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 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 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 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !23, i64 104}
!9 = !{!"_ZTSN9NCompress6NLzma28CDecoderE", !10, i64 0, !12, i64 8, !13, i64 16, !14, i64 24, !15, i64 32, !16, i64 40, !17, i64 48, !18, i64 56, !19, i64 64, !20, i64 72, !21, i64 80, !24, i64 88, !25, i64 96, !23, i64 104, !22, i64 108, !22, i64 112, !22, i64 116, !22, i64 120, !22, i64 124, !25, i64 128, !26, i64 136, !27, i64 144}
!10 = !{!"_ZTS14ICompressCoder", !11, i64 0}
!11 = !{!"_ZTS8IUnknown"}
!12 = !{!"_ZTS30ICompressSetDecoderProperties2", !11, i64 0}
!13 = !{!"_ZTS22ICompressSetFinishMode", !11, i64 0}
!14 = !{!"_ZTS33ICompressGetInStreamProcessedSize", !11, i64 0}
!15 = !{!"_ZTS19ICompressSetBufSize", !11, i64 0}
!16 = !{!"_ZTS20ICompressSetInStream", !11, i64 0}
!17 = !{!"_ZTS25ICompressSetOutStreamSize", !11, i64 0}
!18 = !{!"_ZTS19ISequentialInStream", !11, i64 0}
!19 = !{!"_ZTS19ICompressSetCoderMt", !11, i64 0}
!20 = !{!"_ZTS20ICompressSetMemLimit", !11, i64 0}
!21 = !{!"_ZTS13CMyUnknownImp", !22, i64 0}
!22 = !{!"int", !23, i64 0}
!23 = !{!"omnipotent char", !7, i64 0}
!24 = !{!"any pointer", !23, i64 0}
!25 = !{!"long long", !23, i64 0}
!26 = !{!"_ZTS9CMyComPtrI19ISequentialInStreamE", !24, i64 0}
!27 = !{!"_ZTS16CSeqInStreamWrap", !28, i64 0, !24, i64 8, !22, i64 16, !25, i64 24}
!28 = !{!"_ZTS12ISeqInStream", !24, i64 0}
!29 = !{!22, !22, i64 0}
!30 = !{!9, !22, i64 124}
!31 = !{!9, !25, i64 128}


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