; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/lzma465/CPP/7zip/Archive/Lzma (LzmaFiltersDecode)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%class.CMyComPtr.1 = type { ptr }
%class.CMyComPtr.2 = type { ptr }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.3 = type { ptr }
%class.CMyComPtr.4 = type { ptr }
%"struct.NArchive::NLzma::CHeader" = type { i64, i8, i8, [5 x i8] }
%"class.NArchive::NLzma::CDecoder" = type { %class.CMyComPtr, %class.CMyComPtr.0 }
%class.CMyComPtr.0 = type { ptr }

@IID_ICompressSetDecoderProperties2 = external global %struct.GUID, align 4
@IID_ISequentialOutStream = external global %struct.GUID, align 4
@IID_ICompressSetOutStream = external global %struct.GUID, align 4
@IID_IOutStreamFlush = external global %struct.GUID, align 4
@IID_ICompressGetInStreamProcessedSize = external global %struct.GUID, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive5NLzma8CDecoder4CodeERKNS0_7CHeaderEP19ISequentialInStreamP20ISequentialOutStreamPyP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %class.CMyComPtr.1, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca %class.CMyComPtr.2, align 8
  %22 = alloca %class.CMyComPtr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca %class.CMyComPtr.3, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %class.CMyComPtr.4, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 -1, ptr %33, align 8, !tbaa !9
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %34, i32 0, i32 2
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = zext i8 %36 to i32
  %38 = icmp sgt i32 %37, 1
  br i1 %38, label %39, label %40

39:                                               ; preds = %6
  store i32 -2147467263, ptr %7, align 4
  br label %341

40:                                               ; preds = %6
  %41 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 0
  %42 = call noundef zeroext i1 @_ZNK9CMyComPtrI14ICompressCoderEntEv(ptr noundef nonnull align 8 dereferenceable(8) %41)
  br i1 %42, label %43, label %59

43:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %44 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 0
  %45 = call noundef i32 @_Z11CreateCoderyR9CMyComPtrI14ICompressCoderEb(i64 noundef 196865, ptr noundef nonnull align 8 dereferenceable(8) %44, i1 noundef zeroext false)
  store i32 %45, ptr %14, align 4, !tbaa !14
  %46 = load i32, ptr %14, align 4, !tbaa !14
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %43
  %49 = load i32, ptr %14, align 4, !tbaa !14
  store i32 %49, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %51

50:                                               ; preds = %43
  store i32 0, ptr %15, align 4
  br label %51

51:                                               ; preds = %50, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %52 = load i32, ptr %15, align 4
  switch i32 %52, label %348 [
    i32 0, label %53
    i32 1, label %341
  ]

53:                                               ; preds = %51
  %54 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 0
  %55 = call noundef ptr @_ZNK9CMyComPtrI14ICompressCoderEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %54)
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  store i32 -2147467263, ptr %7, align 4
  br label %341

58:                                               ; preds = %53
  br label %59

59:                                               ; preds = %58, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %60 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 0
  %61 = invoke noundef ptr @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EadEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %62 unwind label %68

62:                                               ; preds = %59
  %63 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetDecoderProperties2, ptr noundef %61)
          to label %64 unwind label %68

64:                                               ; preds = %62
  %65 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %66 unwind label %68

66:                                               ; preds = %64
  br i1 %65, label %67, label %72

67:                                               ; preds = %66
  store i32 -2147467263, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %95

68:                                               ; preds = %64, %62, %59
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %17, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %18, align 4
  br label %118

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %73 = invoke noundef ptr @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EptEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %74 unwind label %87

74:                                               ; preds = %72
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %75, i32 0, i32 3
  %77 = getelementptr inbounds [5 x i8], ptr %76, i64 0, i64 0
  %78 = load ptr, ptr %73, align 8, !tbaa !16
  %79 = getelementptr inbounds ptr, ptr %78, i64 5
  %80 = load ptr, ptr %79, align 8
  %81 = invoke noundef i32 %80(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef %77, i32 noundef 5)
          to label %82 unwind label %87

82:                                               ; preds = %74
  store i32 %81, ptr %19, align 4, !tbaa !14
  %83 = load i32, ptr %19, align 4, !tbaa !14
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %91

85:                                               ; preds = %82
  %86 = load i32, ptr %19, align 4, !tbaa !14
  store i32 %86, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %92

87:                                               ; preds = %74, %72
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %17, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %118

91:                                               ; preds = %82
  store i32 0, ptr %15, align 4
  br label %92

92:                                               ; preds = %91, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %93 = load i32, ptr %15, align 4
  switch i32 %93, label %95 [
    i32 0, label %94
  ]

94:                                               ; preds = %92
  store i32 0, ptr %15, align 4
  br label %95

95:                                               ; preds = %94, %92, %67
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %96 = load i32, ptr %15, align 4
  switch i32 %96, label %348 [
    i32 0, label %97
    i32 1, label %341
  ]

97:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %98, i32 0, i32 2
  %100 = load i8, ptr %99, align 1, !tbaa !11
  %101 = zext i8 %100 to i32
  %102 = icmp eq i32 %101, 1
  %103 = zext i1 %102 to i8
  store i8 %103, ptr %20, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @_ZN9CMyComPtrI21ICompressSetOutStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21)
  %104 = load i8, ptr %20, align 1, !tbaa !18, !range !19, !noundef !20
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %191

106:                                              ; preds = %97
  %107 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 1
  %108 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %107)
          to label %109 unwind label %119

109:                                              ; preds = %106
  br i1 %108, label %110, label %158

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  invoke void @_ZN9CMyComPtrI14ICompressCoderEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %111 unwind label %123

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %112 = invoke noundef i32 @_Z11CreateCoderyR9CMyComPtrI14ICompressCoderEb(i64 noundef 50528515, ptr noundef nonnull align 8 dereferenceable(8) %22, i1 noundef zeroext false)
          to label %113 unwind label %127

113:                                              ; preds = %111
  store i32 %112, ptr %23, align 4, !tbaa !14
  %114 = load i32, ptr %23, align 4, !tbaa !14
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %131

116:                                              ; preds = %113
  %117 = load i32, ptr %23, align 4, !tbaa !14
  store i32 %117, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %132

118:                                              ; preds = %87, %68
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %343

119:                                              ; preds = %187, %163, %161, %158, %106
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %17, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %18, align 4
  br label %340

123:                                              ; preds = %110
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %17, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %18, align 4
  br label %157

127:                                              ; preds = %111
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %17, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %156

131:                                              ; preds = %113
  store i32 0, ptr %15, align 4
  br label %132

132:                                              ; preds = %131, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  %133 = load i32, ptr %15, align 4
  switch i32 %133, label %153 [
    i32 0, label %134
  ]

134:                                              ; preds = %132
  %135 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI14ICompressCoderEntEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %136 unwind label %138

136:                                              ; preds = %134
  br i1 %135, label %137, label %142

137:                                              ; preds = %136
  store i32 -2147467263, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %153

138:                                              ; preds = %147, %145, %142, %134
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %17, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %18, align 4
  br label %156

142:                                              ; preds = %136
  %143 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 1
  %144 = invoke noundef ptr @_ZN9CMyComPtrI20ISequentialOutStreamEadEv(ptr noundef nonnull align 8 dereferenceable(8) %143)
          to label %145 unwind label %138

145:                                              ; preds = %142
  %146 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI20ISequentialOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(16) @IID_ISequentialOutStream, ptr noundef %144)
          to label %147 unwind label %138

147:                                              ; preds = %145
  %148 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 1
  %149 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %148)
          to label %150 unwind label %138

150:                                              ; preds = %147
  br i1 %149, label %151, label %152

151:                                              ; preds = %150
  store i32 -2147467263, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %153

152:                                              ; preds = %150
  store i32 0, ptr %15, align 4
  br label %153

153:                                              ; preds = %152, %151, %137, %132
  call void @_ZN9CMyComPtrI14ICompressCoderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  %154 = load i32, ptr %15, align 4
  switch i32 %154, label %339 [
    i32 0, label %155
  ]

155:                                              ; preds = %153
  br label %158

156:                                              ; preds = %138, %127
  call void @_ZN9CMyComPtrI14ICompressCoderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  br label %157

157:                                              ; preds = %156, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %340

158:                                              ; preds = %155, %109
  %159 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 1
  %160 = invoke noundef ptr @_ZN9CMyComPtrI21ICompressSetOutStreamEadEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %161 unwind label %119

161:                                              ; preds = %158
  %162 = invoke noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI21ICompressSetOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %159, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetOutStream, ptr noundef %160)
          to label %163 unwind label %119

163:                                              ; preds = %161
  %164 = invoke noundef zeroext i1 @_ZNK9CMyComPtrI21ICompressSetOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %165 unwind label %119

165:                                              ; preds = %163
  br i1 %164, label %166, label %167

166:                                              ; preds = %165
  store i32 -2147467263, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %339

167:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  %168 = invoke noundef ptr @_ZNK9CMyComPtrI21ICompressSetOutStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %169 unwind label %180

169:                                              ; preds = %167
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load ptr, ptr %168, align 8, !tbaa !16
  %172 = getelementptr inbounds ptr, ptr %171, i64 5
  %173 = load ptr, ptr %172, align 8
  %174 = invoke noundef i32 %173(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef %170)
          to label %175 unwind label %180

175:                                              ; preds = %169
  store i32 %174, ptr %24, align 4, !tbaa !14
  %176 = load i32, ptr %24, align 4, !tbaa !14
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %184

178:                                              ; preds = %175
  %179 = load i32, ptr %24, align 4, !tbaa !14
  store i32 %179, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %185

180:                                              ; preds = %169, %167
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %17, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %340

184:                                              ; preds = %175
  store i32 0, ptr %15, align 4
  br label %185

185:                                              ; preds = %184, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  %186 = load i32, ptr %15, align 4
  switch i32 %186, label %339 [
    i32 0, label %187
  ]

187:                                              ; preds = %185
  %188 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 1
  %189 = invoke noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %188)
          to label %190 unwind label %119

190:                                              ; preds = %187
  store ptr %189, ptr %11, align 8, !tbaa !5
  br label %191

191:                                              ; preds = %190, %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = invoke noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader13HasUnpackSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %192)
          to label %194 unwind label %217

194:                                              ; preds = %191
  br i1 %193, label %195, label %198

195:                                              ; preds = %194
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.NArchive::NLzma::CHeader", ptr %196, i32 0, i32 0
  br label %199

198:                                              ; preds = %194
  br label %199

199:                                              ; preds = %198, %195
  %200 = phi ptr [ %197, %195 ], [ null, %198 ]
  store ptr %200, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %201 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 0
  %202 = invoke noundef ptr @_ZNK9CMyComPtrI14ICompressCoderEptEv(ptr noundef nonnull align 8 dereferenceable(8) %201)
          to label %203 unwind label %221

203:                                              ; preds = %199
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load ptr, ptr %25, align 8, !tbaa !5
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = load ptr, ptr %202, align 8, !tbaa !16
  %209 = getelementptr inbounds ptr, ptr %208, i64 5
  %210 = load ptr, ptr %209, align 8
  %211 = invoke noundef i32 %210(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef %204, ptr noundef %205, ptr noundef null, ptr noundef %206, ptr noundef %207)
          to label %212 unwind label %221

212:                                              ; preds = %203
  store i32 %211, ptr %26, align 4, !tbaa !14
  %213 = load i32, ptr %26, align 4, !tbaa !14
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %225

215:                                              ; preds = %212
  %216 = load i32, ptr %26, align 4, !tbaa !14
  store i32 %216, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %226

217:                                              ; preds = %191
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %17, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %18, align 4
  br label %338

221:                                              ; preds = %203, %199
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %17, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %338

225:                                              ; preds = %212
  store i32 0, ptr %15, align 4
  br label %226

226:                                              ; preds = %225, %215
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  %227 = load i32, ptr %15, align 4
  switch i32 %227, label %337 [
    i32 0, label %228
  ]

228:                                              ; preds = %226
  %229 = load i8, ptr %20, align 1, !tbaa !18, !range !19, !noundef !20
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %294

231:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  invoke void @_ZN9CMyComPtrI15IOutStreamFlushEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %232 unwind label %253

232:                                              ; preds = %231
  %233 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 1
  %234 = invoke noundef ptr @_ZN9CMyComPtrI15IOutStreamFlushEadEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %235 unwind label %257

235:                                              ; preds = %232
  %236 = invoke noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI15IOutStreamFlushEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef nonnull align 4 dereferenceable(16) @IID_IOutStreamFlush, ptr noundef %234)
          to label %237 unwind label %257

237:                                              ; preds = %235
  %238 = invoke noundef ptr @_ZNK9CMyComPtrI15IOutStreamFlushEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %239 unwind label %257

239:                                              ; preds = %237
  %240 = icmp ne ptr %238, null
  br i1 %240, label %241, label %269

241:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %242 = invoke noundef ptr @_ZNK9CMyComPtrI15IOutStreamFlushEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %243 unwind label %261

243:                                              ; preds = %241
  %244 = load ptr, ptr %242, align 8, !tbaa !16
  %245 = getelementptr inbounds ptr, ptr %244, i64 5
  %246 = load ptr, ptr %245, align 8
  %247 = invoke noundef i32 %246(ptr noundef nonnull align 8 dereferenceable(8) %242)
          to label %248 unwind label %261

248:                                              ; preds = %243
  store i32 %247, ptr %28, align 4, !tbaa !14
  %249 = load i32, ptr %28, align 4, !tbaa !14
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %265

251:                                              ; preds = %248
  %252 = load i32, ptr %28, align 4, !tbaa !14
  store i32 %252, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %266

253:                                              ; preds = %231
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %17, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %18, align 4
  br label %293

257:                                              ; preds = %237, %235, %232
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %17, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %18, align 4
  br label %292

261:                                              ; preds = %243, %241
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %17, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %292

265:                                              ; preds = %248
  store i32 0, ptr %15, align 4
  br label %266

266:                                              ; preds = %265, %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  %267 = load i32, ptr %15, align 4
  switch i32 %267, label %289 [
    i32 0, label %268
  ]

268:                                              ; preds = %266
  br label %269

269:                                              ; preds = %268, %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %270 = invoke noundef ptr @_ZNK9CMyComPtrI21ICompressSetOutStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %21)
          to label %271 unwind label %281

271:                                              ; preds = %269
  %272 = load ptr, ptr %270, align 8, !tbaa !16
  %273 = getelementptr inbounds ptr, ptr %272, i64 6
  %274 = load ptr, ptr %273, align 8
  %275 = invoke noundef i32 %274(ptr noundef nonnull align 8 dereferenceable(8) %270)
          to label %276 unwind label %281

276:                                              ; preds = %271
  store i32 %275, ptr %29, align 4, !tbaa !14
  %277 = load i32, ptr %29, align 4, !tbaa !14
  %278 = icmp ne i32 %277, 0
  br i1 %278, label %279, label %285

279:                                              ; preds = %276
  %280 = load i32, ptr %29, align 4, !tbaa !14
  store i32 %280, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %286

281:                                              ; preds = %271, %269
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %17, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %292

285:                                              ; preds = %276
  store i32 0, ptr %15, align 4
  br label %286

286:                                              ; preds = %285, %279
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  %287 = load i32, ptr %15, align 4
  switch i32 %287, label %289 [
    i32 0, label %288
  ]

288:                                              ; preds = %286
  store i32 0, ptr %15, align 4
  br label %289

289:                                              ; preds = %288, %286, %266
  call void @_ZN9CMyComPtrI15IOutStreamFlushED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  %290 = load i32, ptr %15, align 4
  switch i32 %290, label %337 [
    i32 0, label %291
  ]

291:                                              ; preds = %289
  br label %294

292:                                              ; preds = %281, %261, %257
  call void @_ZN9CMyComPtrI15IOutStreamFlushED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #4
  br label %293

293:                                              ; preds = %292, %253
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  br label %338

294:                                              ; preds = %291, %228
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  invoke void @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %295 unwind label %317

295:                                              ; preds = %294
  %296 = getelementptr inbounds %"class.NArchive::NLzma::CDecoder", ptr %32, i32 0, i32 0
  %297 = invoke noundef ptr @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeEadEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %298 unwind label %321

298:                                              ; preds = %295
  %299 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI33ICompressGetInStreamProcessedSizeEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %296, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressGetInStreamProcessedSize, ptr noundef %297)
          to label %300 unwind label %321

300:                                              ; preds = %298
  %301 = invoke noundef ptr @_ZNK9CMyComPtrI33ICompressGetInStreamProcessedSizeEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %302 unwind label %321

302:                                              ; preds = %300
  %303 = icmp ne ptr %301, null
  br i1 %303, label %304, label %333

304:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %305 = invoke noundef ptr @_ZNK9CMyComPtrI33ICompressGetInStreamProcessedSizeEptEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %306 unwind label %325

306:                                              ; preds = %304
  %307 = load ptr, ptr %12, align 8, !tbaa !5
  %308 = load ptr, ptr %305, align 8, !tbaa !16
  %309 = getelementptr inbounds ptr, ptr %308, i64 5
  %310 = load ptr, ptr %309, align 8
  %311 = invoke noundef i32 %310(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef %307)
          to label %312 unwind label %325

312:                                              ; preds = %306
  store i32 %311, ptr %31, align 4, !tbaa !14
  %313 = load i32, ptr %31, align 4, !tbaa !14
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %329

315:                                              ; preds = %312
  %316 = load i32, ptr %31, align 4, !tbaa !14
  store i32 %316, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %330

317:                                              ; preds = %294
  %318 = landingpad { ptr, i32 }
          cleanup
  %319 = extractvalue { ptr, i32 } %318, 0
  store ptr %319, ptr %17, align 8
  %320 = extractvalue { ptr, i32 } %318, 1
  store i32 %320, ptr %18, align 4
  br label %336

321:                                              ; preds = %300, %298, %295
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %17, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %18, align 4
  br label %335

325:                                              ; preds = %306, %304
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %17, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %335

329:                                              ; preds = %312
  store i32 0, ptr %15, align 4
  br label %330

330:                                              ; preds = %329, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  %331 = load i32, ptr %15, align 4
  switch i32 %331, label %334 [
    i32 0, label %332
  ]

332:                                              ; preds = %330
  br label %333

333:                                              ; preds = %332, %302
  store i32 0, ptr %7, align 4
  store i32 1, ptr %15, align 4
  br label %334

334:                                              ; preds = %333, %330
  call void @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %337

335:                                              ; preds = %325, %321
  call void @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %30) #4
  br label %336

336:                                              ; preds = %335, %317
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %338

337:                                              ; preds = %334, %289, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %339

338:                                              ; preds = %336, %293, %221, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %340

339:                                              ; preds = %337, %185, %166, %153
  call void @_ZN9CMyComPtrI21ICompressSetOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  br label %341

340:                                              ; preds = %338, %180, %157, %119
  call void @_ZN9CMyComPtrI21ICompressSetOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  br label %343

341:                                              ; preds = %339, %95, %57, %51, %39
  %342 = load i32, ptr %7, align 4
  ret i32 %342

343:                                              ; preds = %340, %118
  %344 = load ptr, ptr %17, align 8
  %345 = load i32, ptr %18, align 4
  %346 = insertvalue { ptr, i32 } poison, ptr %344, 0
  %347 = insertvalue { ptr, i32 } %346, i32 %345, 1
  resume { ptr, i32 } %347

348:                                              ; preds = %95, %51
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI14ICompressCoderEntEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

declare noundef i32 @_Z11CreateCoderyR9CMyComPtrI14ICompressCoderEb(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI20ISequentialOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI21ICompressSetOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI21ICompressSetOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader13HasUnpackSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI15IOutStreamFlushEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI33ICompressGetInStreamProcessedSizeEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) #0 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI21ICompressSetOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 = { 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = !{!"long long", !7, i64 0}
!11 = !{!12, !7, i64 9}
!12 = !{!"_ZTSN8NArchive5NLzma7CHeaderE", !10, i64 0, !13, i64 8, !7, i64 9, !7, i64 10}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%class.CMyComPtr.1 = type { ptr }
%class.CMyComPtr.2 = type { ptr }
%class.CMyComPtr = type { ptr }
%class.CMyComPtr.3 = type { ptr }
%class.CMyComPtr.4 = type { ptr }

@IID_ICompressSetDecoderProperties2 = external global %struct.GUID, align 4
@IID_ISequentialOutStream = external global %struct.GUID, align 4
@IID_ICompressSetOutStream = external global %struct.GUID, align 4
@IID_IOutStreamFlush = external global %struct.GUID, align 4
@IID_ICompressGetInStreamProcessedSize = external global %struct.GUID, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive5NLzma8CDecoder4CodeERKNS0_7CHeaderEP19ISequentialInStreamP20ISequentialOutStreamPyP21ICompressProgressInfo(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %class.CMyComPtr.1, align 8
  %8 = alloca %class.CMyComPtr.2, align 8
  %9 = alloca %class.CMyComPtr, align 8
  %10 = alloca %class.CMyComPtr.3, align 8
  %11 = alloca %class.CMyComPtr.4, align 8
  store i64 -1, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 9
  %13 = load i8, ptr %12, align 1, !tbaa !9
  %14 = icmp ugt i8 %13, 1
  br i1 %14, label %139, label %15

15:                                               ; preds = %6
  %16 = tail call noundef zeroext i1 @_ZNK9CMyComPtrI14ICompressCoderEntEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  br i1 %16, label %17, label %22

17:                                               ; preds = %15
  %18 = tail call noundef i32 @_Z11CreateCoderyR9CMyComPtrI14ICompressCoderEb(i64 noundef 196865, ptr noundef nonnull align 8 dereferenceable(8) %0, i1 noundef zeroext false)
  %.not.not = icmp eq i32 %18, 0
  br i1 %.not.not, label %19, label %139

19:                                               ; preds = %17
  %20 = tail call noundef ptr @_ZNK9CMyComPtrI14ICompressCoderEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %21 = icmp eq ptr %20, null
  br i1 %21, label %139, label %22

22:                                               ; preds = %19, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %23 = call noundef ptr @_ZN9CMyComPtrI30ICompressSetDecoderProperties2EadEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %24 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetDecoderProperties2, ptr noundef %23)
          to label %25 unwind label %27

25:                                               ; preds = %22
  %26 = call noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  br i1 %26, label %.thread, label %29

27:                                               ; preds = %22
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %48

29:                                               ; preds = %25
  %30 = call noundef ptr @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EptEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %31 = getelementptr inbounds i8, ptr %1, i64 10
  %32 = load ptr, ptr %30, align 8, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %32, i64 40
  %34 = load ptr, ptr %33, align 8
  %35 = invoke noundef i32 %34(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull %31, i32 noundef 5)
          to label %36 unwind label %37

36:                                               ; preds = %29
  %.not86 = icmp eq i32 %35, 0
  br i1 %.not86, label %39, label %.thread

37:                                               ; preds = %29
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %48

.thread:                                          ; preds = %36, %25
  %.3.ph = phi i32 [ -2147467263, %25 ], [ %35, %36 ]
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %139

39:                                               ; preds = %36
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %40 = load i8, ptr %12, align 1, !tbaa !9
  %41 = icmp eq i8 %40, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN9CMyComPtrI21ICompressSetOutStreamEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %41, label %42, label %79

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 8
  %44 = call noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
  br i1 %44, label %45, label %63

45:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @_ZN9CMyComPtrI14ICompressCoderEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %46 = invoke noundef i32 @_Z11CreateCoderyR9CMyComPtrI14ICompressCoderEb(i64 noundef 50528515, ptr noundef nonnull align 8 dereferenceable(8) %9, i1 noundef zeroext false)
          to label %47 unwind label %51

47:                                               ; preds = %45
  %.not87 = icmp eq i32 %46, 0
  br i1 %.not87, label %53, label %.thread110

48:                                               ; preds = %37, %27
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %28, %27 ]
  call void @_ZN9CMyComPtrI30ICompressSetDecoderProperties2ED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %140

49:                                               ; preds = %63
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %138

51:                                               ; preds = %45
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %62

53:                                               ; preds = %47
  %54 = call noundef zeroext i1 @_ZNK9CMyComPtrI14ICompressCoderEntEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  br i1 %54, label %.thread110, label %57

55:                                               ; preds = %57
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %62

57:                                               ; preds = %53
  %58 = call noundef ptr @_ZN9CMyComPtrI20ISequentialOutStreamEadEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
  %59 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI20ISequentialOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(16) @IID_ISequentialOutStream, ptr noundef %58)
          to label %60 unwind label %55

.thread110:                                       ; preds = %47, %53
  %.5.ph = phi i32 [ -2147467263, %53 ], [ %46, %47 ]
  call void @_ZN9CMyComPtrI14ICompressCoderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %137

60:                                               ; preds = %57
  %61 = call noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %43)
  call void @_ZN9CMyComPtrI14ICompressCoderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br i1 %61, label %137, label %63

62:                                               ; preds = %55, %51
  %.pn88 = phi { ptr, i32 } [ %56, %55 ], [ %52, %51 ]
  call void @_ZN9CMyComPtrI14ICompressCoderED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br label %138

63:                                               ; preds = %60, %42
  %64 = call noundef ptr @_ZN9CMyComPtrI21ICompressSetOutStreamEadEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %65 = invoke noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI21ICompressSetOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressSetOutStream, ptr noundef %64)
          to label %66 unwind label %49

66:                                               ; preds = %63
  %67 = call noundef zeroext i1 @_ZNK9CMyComPtrI21ICompressSetOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  br i1 %67, label %137, label %68

68:                                               ; preds = %66
  %69 = call noundef ptr @_ZNK9CMyComPtrI21ICompressSetOutStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %70 = load ptr, ptr %69, align 8, !tbaa !12
  %71 = getelementptr inbounds i8, ptr %70, i64 40
  %72 = load ptr, ptr %71, align 8
  %73 = invoke noundef i32 %72(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef %3)
          to label %74 unwind label %75

74:                                               ; preds = %68
  %.not90 = icmp eq i32 %73, 0
  br i1 %.not90, label %77, label %137

75:                                               ; preds = %68
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %138

77:                                               ; preds = %74
  %78 = call noundef ptr @_ZNK9CMyComPtrI20ISequentialOutStreamEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %43)
  br label %79

79:                                               ; preds = %77, %39
  %.053 = phi ptr [ %78, %77 ], [ %3, %39 ]
  %80 = call noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader13HasUnpackSizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %81 = select i1 %80, ptr %1, ptr null
  %82 = call noundef ptr @_ZNK9CMyComPtrI14ICompressCoderEptEv(ptr noundef nonnull align 8 dereferenceable(8) %0)
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  %84 = getelementptr inbounds i8, ptr %83, i64 40
  %85 = load ptr, ptr %84, align 8
  %86 = invoke noundef i32 %85(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef %2, ptr noundef %.053, ptr noundef null, ptr noundef %81, ptr noundef %5)
          to label %87 unwind label %88

87:                                               ; preds = %79
  %.not91 = icmp eq i32 %86, 0
  br i1 %.not91, label %90, label %137

88:                                               ; preds = %79
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %138

90:                                               ; preds = %87
  br i1 %41, label %91, label %118

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @_ZN9CMyComPtrI15IOutStreamFlushEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %92 = getelementptr inbounds i8, ptr %0, i64 8
  %93 = call noundef ptr @_ZN9CMyComPtrI15IOutStreamFlushEadEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %94 = invoke noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI15IOutStreamFlushEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef nonnull align 4 dereferenceable(16) @IID_IOutStreamFlush, ptr noundef %93)
          to label %95 unwind label %104

95:                                               ; preds = %91
  %96 = call noundef ptr @_ZNK9CMyComPtrI15IOutStreamFlushEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %.not92 = icmp eq ptr %96, null
  br i1 %.not92, label %108, label %97

97:                                               ; preds = %95
  %98 = call noundef ptr @_ZNK9CMyComPtrI15IOutStreamFlushEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %99 = load ptr, ptr %98, align 8, !tbaa !12
  %100 = getelementptr inbounds i8, ptr %99, i64 40
  %101 = load ptr, ptr %100, align 8
  %102 = invoke noundef i32 %101(ptr noundef nonnull align 8 dereferenceable(8) %98)
          to label %103 unwind label %106

103:                                              ; preds = %97
  %.not93 = icmp eq i32 %102, 0
  br i1 %.not93, label %108, label %.thread113

.thread113:                                       ; preds = %103
  call void @_ZN9CMyComPtrI15IOutStreamFlushED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %137

104:                                              ; preds = %91
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %117

106:                                              ; preds = %97
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %117

108:                                              ; preds = %103, %95
  %109 = call noundef ptr @_ZNK9CMyComPtrI21ICompressSetOutStreamEptEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %110 = load ptr, ptr %109, align 8, !tbaa !12
  %111 = getelementptr inbounds i8, ptr %110, i64 48
  %112 = load ptr, ptr %111, align 8
  %113 = invoke noundef i32 %112(ptr noundef nonnull align 8 dereferenceable(8) %109)
          to label %116 unwind label %114

114:                                              ; preds = %108
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %117

116:                                              ; preds = %108
  %.not96 = icmp eq i32 %113, 0
  call void @_ZN9CMyComPtrI15IOutStreamFlushED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br i1 %.not96, label %118, label %137

117:                                              ; preds = %114, %106, %104
  %.pn94 = phi { ptr, i32 } [ %115, %114 ], [ %107, %106 ], [ %105, %104 ]
  call void @_ZN9CMyComPtrI15IOutStreamFlushED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %138

118:                                              ; preds = %116, %90
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %119 = call noundef ptr @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeEadEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %120 = invoke noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI33ICompressGetInStreamProcessedSizeEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(16) @IID_ICompressGetInStreamProcessedSize, ptr noundef %119)
          to label %121 unwind label %130

121:                                              ; preds = %118
  %122 = call noundef ptr @_ZNK9CMyComPtrI33ICompressGetInStreamProcessedSizeEcvPS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %.not97 = icmp eq ptr %122, null
  br i1 %.not97, label %134, label %123

123:                                              ; preds = %121
  %124 = call noundef ptr @_ZNK9CMyComPtrI33ICompressGetInStreamProcessedSizeEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %125 = load ptr, ptr %124, align 8, !tbaa !12
  %126 = getelementptr inbounds i8, ptr %125, i64 40
  %127 = load ptr, ptr %126, align 8
  %128 = invoke noundef i32 %127(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull %4)
          to label %129 unwind label %132

129:                                              ; preds = %123
  %.not103 = icmp eq i32 %128, 0
  br i1 %.not103, label %134, label %135

130:                                              ; preds = %118
  %131 = landingpad { ptr, i32 }
          cleanup
  br label %136

132:                                              ; preds = %123
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %136

134:                                              ; preds = %129, %121
  br label %135

135:                                              ; preds = %129, %134
  %.16 = phi i32 [ 0, %134 ], [ %128, %129 ]
  call void @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %137

136:                                              ; preds = %132, %130
  %.pn98 = phi { ptr, i32 } [ %133, %132 ], [ %131, %130 ]
  call void @_ZN9CMyComPtrI33ICompressGetInStreamProcessedSizeED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %138

137:                                              ; preds = %.thread113, %.thread110, %135, %87, %116, %66, %60, %74
  %.18 = phi i32 [ %73, %74 ], [ -2147467263, %60 ], [ -2147467263, %66 ], [ %.16, %135 ], [ %113, %116 ], [ %86, %87 ], [ %.5.ph, %.thread110 ], [ %102, %.thread113 ]
  call void @_ZN9CMyComPtrI21ICompressSetOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %139

138:                                              ; preds = %88, %117, %136, %75, %62, %49
  %.pn98.pn.pn = phi { ptr, i32 } [ %76, %75 ], [ %50, %49 ], [ %.pn88, %62 ], [ %.pn98, %136 ], [ %.pn94, %117 ], [ %89, %88 ]
  call void @_ZN9CMyComPtrI21ICompressSetOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  br label %140

139:                                              ; preds = %.thread, %17, %19, %6, %137
  %.19 = phi i32 [ %18, %17 ], [ %.18, %137 ], [ -2147467263, %6 ], [ -2147467263, %19 ], [ %.3.ph, %.thread ]
  ret i32 %.19

140:                                              ; preds = %138, %48
  %.pn98.pn.pn.pn = phi { ptr, i32 } [ %.pn98.pn.pn, %138 ], [ %.pn, %48 ]
  resume { ptr, i32 } %.pn98.pn.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI14ICompressCoderEntEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

declare noundef i32 @_Z11CreateCoderyR9CMyComPtrI14ICompressCoderEb(i64 noundef, ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #3

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI30ICompressSetDecoderProperties2EEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI30ICompressSetDecoderProperties2EntEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI20ISequentialOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI20ISequentialOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI21ICompressSetOutStreamEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK9CMyComPtrI21ICompressSetOutStreamEntEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8NArchive5NLzma7CHeader13HasUnpackSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI20ISequentialOutStreamE14QueryInterfaceI15IOutStreamFlushEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9CMyComPtrI14ICompressCoderE14QueryInterfaceI33ICompressGetInStreamProcessedSizeEEiRK4GUIDPPT_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9CMyComPtrI21ICompressSetOutStreamED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !7, i64 9}
!10 = !{!"_ZTSN8NArchive5NLzma7CHeaderE", !6, i64 0, !11, i64 8, !7, i64 9, !7, i64 10}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass