; LLVM IR from SSBMTonberry/pocketlzma :: ref_spec/lzma1900/CPP/7zip/Archive/7z (7zHandler)

; 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.NWindows::NCOM::CPropVariant" = type { %struct.tagPROPVARIANT }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct._LARGE_INTEGER }
%struct._LARGE_INTEGER = type { i64 }
%class.AString = type { ptr, i32, i32 }
%"class.NArchive::N7z::CHandler" = type { %struct.IInArchive, %struct.IArchiveGetRawProps, %struct.ISetProperties, %struct.IOutArchive, %class.CMyUnknownImp, %"class.NArchive::N7z::COutHandler", %class.CMyComPtr, %"struct.NArchive::N7z::CDbEx", i8, i8, %class.UString, %class.CRecordVector.8, %class.CRecordVector.6 }
%struct.IInArchive = type { %struct.IUnknown }
%struct.IUnknown = type { ptr }
%struct.IArchiveGetRawProps = type { %struct.IUnknown }
%struct.ISetProperties = type { %struct.IUnknown }
%struct.IOutArchive = type { %struct.IUnknown }
%class.CMyUnknownImp = type { i32 }
%"class.NArchive::N7z::COutHandler" = type { %"class.NArchive::CMultiMethodProps.base", i64, i64, i8, i8, i8, i8, i8, i8, %struct.CBoolPair, %struct.CBoolPair, %struct.CBoolPair, %struct.CBoolPair, i8, i8 }
%"class.NArchive::CMultiMethodProps.base" = type <{ %"class.NArchive::CCommonMethodProps", i32, i32, i32, [4 x i8], %class.CObjectVector, %class.COneMethodInfo, i8 }>
%"class.NArchive::CCommonMethodProps" = type { i32, i32, i64, i64 }
%class.CObjectVector = type { %class.CRecordVector }
%class.CRecordVector = type { ptr, i32, i32 }
%class.COneMethodInfo = type { %class.CMethodProps, %class.AString, %class.UString }
%class.CMethodProps = type { %struct.CProps }
%struct.CProps = type { %class.CObjectVector.0 }
%class.CObjectVector.0 = type { %class.CRecordVector }
%struct.CBoolPair = type { i8, i8 }
%class.CMyComPtr = type { ptr }
%"struct.NArchive::N7z::CDbEx" = type <{ %"struct.NArchive::N7z::CDatabase", %"struct.NArchive::N7z::CInArchiveInfo", %class.CObjArray.3, %class.CObjArray.3, i64, i64, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"struct.NArchive::N7z::CDatabase" = type { %"struct.NArchive::N7z::CFolders", %class.CRecordVector.7, %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt64DefVector", %"struct.NArchive::N7z::CUInt32DefVector", %class.CRecordVector.1, %class.CBuffer, %class.CObjArray.5 }
%"struct.NArchive::N7z::CFolders" = type { i32, i32, %class.CObjArray, %"struct.NArchive::N7z::CUInt32DefVector", %class.CObjArray.3, %class.CObjArray, %class.CObjArray.3, %class.CObjArray.3, %class.CObjArray.4, %class.CObjArray.5, %class.CBuffer, %"struct.NArchive::N7z::CParsedMethods" }
%class.CObjArray = type { ptr }
%class.CObjArray.4 = type { ptr }
%"struct.NArchive::N7z::CParsedMethods" = type { i8, i32, %class.CRecordVector.6 }
%class.CRecordVector.7 = type { ptr, i32, i32 }
%"struct.NArchive::N7z::CUInt64DefVector" = type { %class.CRecordVector.1, %class.CRecordVector.6 }
%"struct.NArchive::N7z::CUInt32DefVector" = type { %class.CRecordVector.1, %class.CRecordVector.2 }
%class.CRecordVector.2 = type { ptr, i32, i32 }
%class.CRecordVector.1 = type { ptr, i32, i32 }
%class.CBuffer = type { ptr, i64 }
%class.CObjArray.5 = type { ptr }
%"struct.NArchive::N7z::CInArchiveInfo" = type { %"struct.NArchive::N7z::CArchiveVersion", i64, i64, i64, i64, %class.CRecordVector.6 }
%"struct.NArchive::N7z::CArchiveVersion" = type { i8, i8 }
%class.CObjArray.3 = type { ptr }
%class.UString = type { ptr, i32, i32 }
%class.CRecordVector.8 = type { ptr, i32, i32 }
%class.CRecordVector.6 = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8NArchive3N7z8CHandler13AddMethodNameER7AStringy(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #0 align 2

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

declare void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8NArchive3N7z8CHandler18GetArchivePropertyEjP14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(696) %0, i32 noundef %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.NWindows::NCOM::CPropVariant", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %class.AString, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca [16 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  invoke void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %19 unwind label %21

19:                                               ; preds = %3
  %20 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %20, label %231 [
    i32 22, label %25
    i32 13, label %129
    i32 38, label %138
    i32 45, label %143
    i32 44, label %148
    i32 36, label %153
    i32 72, label %166
    i32 71, label %189
    i32 93, label %224
  ]

21:                                               ; preds = %3
  %22 = landingpad { ptr, i32 }
          catch ptr null
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %9, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %10, align 4
  br label %235

25:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  invoke void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %26 unwind label %37

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %27 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %28 = getelementptr inbounds %"struct.NArchive::N7z::CFolders", ptr %27, i32 0, i32 11
  store ptr %28, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %29

29:                                               ; preds = %115, %26
  %30 = load i32, ptr %13, align 4, !tbaa !9
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.NArchive::N7z::CParsedMethods", ptr %31, i32 0, i32 2
  %33 = invoke noundef i32 @_ZNK13CRecordVectorIyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %34 unwind label %41

34:                                               ; preds = %29
  %35 = icmp ult i32 %30, %33
  br i1 %35, label %45, label %36

36:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %120

37:                                               ; preds = %25
  %38 = landingpad { ptr, i32 }
          catch ptr null
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %9, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %10, align 4
  br label %128

41:                                               ; preds = %29
  %42 = landingpad { ptr, i32 }
          catch ptr null
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  br label %119

45:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.NArchive::N7z::CParsedMethods", ptr %46, i32 0, i32 2
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK13CRecordVectorIyEixEj(ptr noundef nonnull align 8 dereferenceable(16) %47, i32 noundef %48)
          to label %50 unwind label %72

50:                                               ; preds = %45
  %51 = load i64, ptr %49, align 8, !tbaa !11
  store i64 %51, ptr %14, align 8, !tbaa !11
  invoke void @_ZN7AString21Add_Space_if_NotEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %52 unwind label %72

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  %53 = load i64, ptr %14, align 8, !tbaa !11
  %54 = icmp eq i64 %53, 33
  br i1 %54, label %55, label %95

55:                                               ; preds = %52
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str)
          to label %57 unwind label %76

57:                                               ; preds = %55
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.NArchive::N7z::CParsedMethods", ptr %58, i32 0, i32 0
  %60 = load i8, ptr %59, align 8, !tbaa !13
  %61 = zext i8 %60 to i32
  %62 = and i32 %61, 1
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %80

64:                                               ; preds = %57
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.NArchive::N7z::CParsedMethods", ptr %65, i32 0, i32 0
  %67 = load i8, ptr %66, align 8, !tbaa !13
  %68 = zext i8 %67 to i32
  %69 = ashr i32 %68, 1
  %70 = add nsw i32 %69, 12
  %71 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  call void @_Z21ConvertUInt32ToStringjPc(i32 noundef %70, ptr noundef %71) #5
  br label %91

72:                                               ; preds = %50, %45
  %73 = landingpad { ptr, i32 }
          catch ptr null
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  br label %118

76:                                               ; preds = %110, %106, %100, %98, %91, %80, %55
  %77 = landingpad { ptr, i32 }
          catch ptr null
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %9, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %118

80:                                               ; preds = %57
  %81 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.NArchive::N7z::CParsedMethods", ptr %82, i32 0, i32 0
  %84 = load i8, ptr %83, align 8, !tbaa !13
  %85 = zext i8 %84 to i32
  %86 = ashr i32 %85, 1
  %87 = add nsw i32 %86, 11
  %88 = shl i32 3, %87
  %89 = invoke noundef i32 @_ZN8NArchive3N7zL21GetStringForSizeValueEPcj(ptr noundef %81, i32 noundef %88)
          to label %90 unwind label %76

90:                                               ; preds = %80
  br label %91

91:                                               ; preds = %90, %64
  %92 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %93 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %92)
          to label %94 unwind label %76

94:                                               ; preds = %91
  br label %114

95:                                               ; preds = %52
  %96 = load i64, ptr %14, align 8, !tbaa !11
  %97 = icmp eq i64 %96, 196865
  br i1 %97, label %98, label %110

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str.1)
          to label %100 unwind label %76

100:                                              ; preds = %98
  %101 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.NArchive::N7z::CParsedMethods", ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 4, !tbaa !16
  %105 = invoke noundef i32 @_ZN8NArchive3N7zL21GetStringForSizeValueEPcj(ptr noundef %101, i32 noundef %104)
          to label %106 unwind label %76

106:                                              ; preds = %100
  %107 = getelementptr inbounds [16 x i8], ptr %15, i64 0, i64 0
  %108 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %107)
          to label %109 unwind label %76

109:                                              ; preds = %106
  br label %113

110:                                              ; preds = %95
  %111 = load i64, ptr %14, align 8, !tbaa !11
  invoke void @_ZN8NArchive3N7z8CHandler13AddMethodNameER7AStringy(ptr noundef nonnull align 8 dereferenceable(696) %18, ptr noundef nonnull align 8 dereferenceable(16) %11, i64 noundef %111)
          to label %112 unwind label %76

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112, %109
  br label %114

114:                                              ; preds = %113, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = add i32 %116, 1
  store i32 %117, ptr %13, align 4, !tbaa !9
  br label %29, !llvm.loop !17

118:                                              ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %119

119:                                              ; preds = %118, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %127

120:                                              ; preds = %36
  %121 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7AString(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %122 unwind label %123

122:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %231

123:                                              ; preds = %120
  %124 = landingpad { ptr, i32 }
          catch ptr null
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  br label %127

127:                                              ; preds = %123, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  br label %128

128:                                              ; preds = %127, %37
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %234

129:                                              ; preds = %19
  %130 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %131 = invoke noundef zeroext i1 @_ZNK8NArchive3N7z9CDatabase7IsSolidEv(ptr noundef nonnull align 8 dereferenceable(352) %130)
          to label %132 unwind label %134

132:                                              ; preds = %129
  %133 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext %131) #5
  br label %231

134:                                              ; preds = %224, %129
  %135 = landingpad { ptr, i32 }
          catch ptr null
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %9, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %10, align 4
  br label %234

138:                                              ; preds = %19
  %139 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %140 = getelementptr inbounds %"struct.NArchive::N7z::CFolders", ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 4, !tbaa !19
  %142 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %141) #5
  br label %231

143:                                              ; preds = %19
  %144 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %145 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %144, i32 0, i32 4
  %146 = load i64, ptr %145, align 8, !tbaa !30
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %146) #5
  br label %231

148:                                              ; preds = %19
  %149 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %150 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %149, i32 0, i32 5
  %151 = load i64, ptr %150, align 8, !tbaa !59
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %151) #5
  br label %231

153:                                              ; preds = %19
  %154 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %155 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %"struct.NArchive::N7z::CInArchiveInfo", ptr %155, i32 0, i32 1
  %157 = load i64, ptr %156, align 8, !tbaa !60
  %158 = icmp ne i64 %157, 0
  br i1 %158, label %159, label %165

159:                                              ; preds = %153
  %160 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %161 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds %"struct.NArchive::N7z::CInArchiveInfo", ptr %161, i32 0, i32 1
  %163 = load i64, ptr %162, align 8, !tbaa !60
  %164 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %163) #5
  br label %165

165:                                              ; preds = %159, %153
  br label %231

166:                                              ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  %167 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %168 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %167, i32 0, i32 10
  %169 = load i8, ptr %168, align 4, !tbaa !61, !range !62, !noundef !63
  %170 = trunc i8 %169 to i1
  br i1 %170, label %171, label %174

171:                                              ; preds = %166
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = or i32 %172, 2
  store i32 %173, ptr %16, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %171, %166
  %175 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %176 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %175, i32 0, i32 11
  %177 = load i8, ptr %176, align 1, !tbaa !64, !range !62, !noundef !63
  %178 = trunc i8 %177 to i1
  br i1 %178, label %179, label %182

179:                                              ; preds = %174
  %180 = load i32, ptr %16, align 4, !tbaa !9
  %181 = or i32 %180, 256
  store i32 %181, ptr %16, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %179, %174
  %183 = load i32, ptr %16, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %188

185:                                              ; preds = %182
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %186) #5
  br label %188

188:                                              ; preds = %185, %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %231

189:                                              ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  %190 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %191 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %190, i32 0, i32 6
  %192 = load i8, ptr %191, align 8, !tbaa !65, !range !62, !noundef !63
  %193 = trunc i8 %192 to i1
  br i1 %193, label %197, label %194

194:                                              ; preds = %189
  %195 = load i32, ptr %17, align 4, !tbaa !9
  %196 = or i32 %195, 1
  store i32 %196, ptr %17, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %194, %189
  %198 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %199 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %198, i32 0, i32 8
  %200 = load i8, ptr %199, align 2, !tbaa !66, !range !62, !noundef !63
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %205

202:                                              ; preds = %197
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = or i32 %203, 2
  store i32 %204, ptr %17, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %202, %197
  %206 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %207 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %206, i32 0, i32 9
  %208 = load i8, ptr %207, align 1, !tbaa !67, !range !62, !noundef !63
  %209 = trunc i8 %208 to i1
  br i1 %209, label %210, label %213

210:                                              ; preds = %205
  %211 = load i32, ptr %17, align 4, !tbaa !9
  %212 = or i32 %211, 32
  store i32 %212, ptr %17, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %210, %205
  %214 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %215 = getelementptr inbounds %"struct.NArchive::N7z::CDbEx", ptr %214, i32 0, i32 12
  %216 = load i8, ptr %215, align 2, !tbaa !68, !range !62, !noundef !63
  %217 = trunc i8 %216 to i1
  br i1 %217, label %218, label %221

218:                                              ; preds = %213
  %219 = load i32, ptr %17, align 4, !tbaa !9
  %220 = or i32 %219, 256
  store i32 %220, ptr %17, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %218, %213
  %222 = load i32, ptr %17, align 4, !tbaa !9
  %223 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %222) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %231

224:                                              ; preds = %19
  %225 = getelementptr inbounds %"class.NArchive::N7z::CHandler", ptr %18, i32 0, i32 7
  %226 = invoke noundef zeroext i1 @_ZNK8NArchive3N7z5CDbEx9CanUpdateEv(ptr noundef nonnull align 8 dereferenceable(447) %225)
          to label %227 unwind label %134

227:                                              ; preds = %224
  br i1 %226, label %230, label %228

228:                                              ; preds = %227
  %229 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext true) #5
  br label %230

230:                                              ; preds = %228, %227
  br label %231

231:                                              ; preds = %230, %221, %188, %165, %148, %143, %138, %132, %122, %19
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = call noundef i32 @_ZN8NWindows4NCOM12CPropVariant6DetachEP14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef %232) #5
  store i32 0, ptr %4, align 4
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %240

234:                                              ; preds = %134, %128
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  br label %235

235:                                              ; preds = %234, %21
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %9, align 8
  %238 = call ptr @__cxa_begin_catch(ptr %237) #5
  store i32 -2147024882, ptr %4, align 4
  call void @__cxa_end_catch()
  br label %240

239:                                              ; No predecessors!
  unreachable

240:                                              ; preds = %236, %231
  %241 = load i32, ptr %4, align 4
  ret i32 %241
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK13CRecordVectorIyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK13CRecordVectorIyEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

declare void @_ZN7AString21Add_Space_if_NotEmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #2

; Function Attrs: nounwind
declare void @_Z21ConvertUInt32ToStringjPc(i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8NArchive3N7zL21GetStringForSizeValueEPcj(ptr noundef, i32 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8NArchive3N7z9CDatabase7IsSolidEv(ptr noundef nonnull align 8 dereferenceable(352)) #0 align 2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #4

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #4

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

; Function Attrs: nounwind
declare noundef i32 @_ZN8NWindows4NCOM12CPropVariant6DetachEP14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #4

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

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nounwind "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 #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN8NArchive3N7z14CParsedMethodsE", !7, i64 0, !10, i64 4, !15, i64 8}
!15 = !{!"_ZTS13CRecordVectorIyE", !6, i64 0, !10, i64 8, !10, i64 12}
!16 = !{!14, !10, i64 4}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !10, i64 4}
!20 = !{!"_ZTSN8NArchive3N7z8CFoldersE", !10, i64 0, !10, i64 4, !21, i64 8, !22, i64 16, !25, i64 48, !21, i64 56, !25, i64 64, !25, i64 72, !26, i64 80, !27, i64 88, !28, i64 96, !14, i64 112}
!21 = !{!"_ZTS9CObjArrayIyE", !6, i64 0}
!22 = !{!"_ZTSN8NArchive3N7z16CUInt32DefVectorE", !23, i64 0, !24, i64 16}
!23 = !{!"_ZTS13CRecordVectorIbE", !6, i64 0, !10, i64 8, !10, i64 12}
!24 = !{!"_ZTS13CRecordVectorIjE", !6, i64 0, !10, i64 8, !10, i64 12}
!25 = !{!"_ZTS9CObjArrayIjE", !6, i64 0}
!26 = !{!"_ZTS9CObjArrayIhE", !6, i64 0}
!27 = !{!"_ZTS9CObjArrayImE", !6, i64 0}
!28 = !{!"_ZTS7CBufferIhE", !6, i64 0, !29, i64 8}
!29 = !{!"long", !7, i64 0}
!30 = !{!31, !12, i64 616}
!31 = !{!"_ZTSN8NArchive3N7z8CHandlerE", !32, i64 0, !34, i64 8, !35, i64 16, !36, i64 24, !37, i64 32, !38, i64 40, !51, i64 184, !52, i64 192, !49, i64 640, !49, i64 641, !48, i64 648, !58, i64 664, !15, i64 680}
!32 = !{!"_ZTS10IInArchive", !33, i64 0}
!33 = !{!"_ZTS8IUnknown"}
!34 = !{!"_ZTS19IArchiveGetRawProps", !33, i64 0}
!35 = !{!"_ZTS14ISetProperties", !33, i64 0}
!36 = !{!"_ZTS11IOutArchive", !33, i64 0}
!37 = !{!"_ZTS13CMyUnknownImp", !10, i64 0}
!38 = !{!"_ZTSN8NArchive3N7z11COutHandlerE", !39, i64 0, !12, i64 112, !12, i64 120, !49, i64 128, !49, i64 129, !49, i64 130, !49, i64 131, !49, i64 132, !49, i64 133, !50, i64 134, !50, i64 136, !50, i64 138, !50, i64 140, !49, i64 142, !49, i64 143}
!39 = !{!"_ZTSN8NArchive17CMultiMethodPropsE", !40, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !41, i64 40, !43, i64 56, !49, i64 104}
!40 = !{!"_ZTSN8NArchive18CCommonMethodPropsE", !10, i64 0, !10, i64 4, !12, i64 8, !12, i64 16}
!41 = !{!"_ZTS13CObjectVectorI14COneMethodInfoE", !42, i64 0}
!42 = !{!"_ZTS13CRecordVectorIPvE", !6, i64 0, !10, i64 8, !10, i64 12}
!43 = !{!"_ZTS14COneMethodInfo", !44, i64 0, !47, i64 16, !48, i64 32}
!44 = !{!"_ZTS12CMethodProps", !45, i64 0}
!45 = !{!"_ZTS6CProps", !46, i64 0}
!46 = !{!"_ZTS13CObjectVectorI5CPropE", !42, i64 0}
!47 = !{!"_ZTS7AString", !6, i64 0, !10, i64 8, !10, i64 12}
!48 = !{!"_ZTS7UString", !6, i64 0, !10, i64 8, !10, i64 12}
!49 = !{!"bool", !7, i64 0}
!50 = !{!"_ZTS9CBoolPair", !49, i64 0, !49, i64 1}
!51 = !{!"_ZTS9CMyComPtrI9IInStreamE", !6, i64 0}
!52 = !{!"_ZTSN8NArchive3N7z5CDbExE", !53, i64 0, !56, i64 352, !25, i64 408, !25, i64 416, !12, i64 424, !12, i64 432, !49, i64 440, !49, i64 441, !49, i64 442, !49, i64 443, !49, i64 444, !49, i64 445, !49, i64 446}
!53 = !{!"_ZTSN8NArchive3N7z9CDatabaseE", !20, i64 0, !54, i64 136, !55, i64 152, !55, i64 184, !55, i64 216, !55, i64 248, !22, i64 280, !23, i64 312, !28, i64 328, !27, i64 344}
!54 = !{!"_ZTS13CRecordVectorIN8NArchive3N7z9CFileItemEE", !6, i64 0, !10, i64 8, !10, i64 12}
!55 = !{!"_ZTSN8NArchive3N7z16CUInt64DefVectorE", !23, i64 0, !15, i64 16}
!56 = !{!"_ZTSN8NArchive3N7z14CInArchiveInfoE", !57, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !15, i64 40}
!57 = !{!"_ZTSN8NArchive3N7z15CArchiveVersionE", !7, i64 0, !7, i64 1}
!58 = !{!"_ZTS13CRecordVectorIN8NArchive3N7z6CBond2EE", !6, i64 0, !10, i64 8, !10, i64 12}
!59 = !{!31, !12, i64 624}
!60 = !{!31, !12, i64 552}
!61 = !{!31, !49, i64 636}
!62 = !{i8 0, i8 2}
!63 = !{}
!64 = !{!31, !49, i64 637}
!65 = !{!31, !49, i64 632}
!66 = !{!31, !49, i64 634}
!67 = !{!31, !49, i64 635}
!68 = !{!31, !49, i64 638}


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

%"class.NWindows::NCOM::CPropVariant" = type { %struct.tagPROPVARIANT }
%struct.tagPROPVARIANT = type { i16, i16, i16, i16, %union.anon }
%union.anon = type { %struct._LARGE_INTEGER }
%struct._LARGE_INTEGER = type { i64 }
%class.AString = type { ptr, i32, i32 }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8NArchive3N7z8CHandler13AddMethodNameER7AStringy(ptr noundef nonnull align 8 dereferenceable(696), ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

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

declare void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -2147024882, 1) i32 @_ZN8NArchive3N7z8CHandler18GetArchivePropertyEjP14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(696) %0, i32 noundef %1, ptr noundef %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.NWindows::NCOM::CPropVariant", align 8
  %5 = alloca %class.AString, align 8
  %6 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @_ZN8NWindows4NCOM12CPropVariantC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  switch i32 %1, label %109 [
    i32 22, label %7
    i32 13, label %53
    i32 38, label %60
    i32 45, label %64
    i32 44, label %68
    i32 36, label %72
    i32 72, label %77
    i32 71, label %87
    i32 93, label %104
  ]

7:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  invoke void @_ZN7AStringC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %8 unwind label %14

8:                                                ; preds = %7
  %9 = getelementptr inbounds i8, ptr %0, i64 304
  %10 = getelementptr inbounds i8, ptr %0, i64 312
  %11 = call noundef i32 @_ZNK13CRecordVectorIyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %.not39 = icmp eq i32 %11, 0
  br i1 %.not39, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 308
  br label %16

._crit_edge:                                      ; preds = %44, %8
  %13 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSERK7AString(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %48 unwind label %49

14:                                               ; preds = %7
  %15 = landingpad { ptr, i32 }
          catch ptr null
  br label %52

16:                                               ; preds = %.lr.ph, %44
  %.02838 = phi i32 [ 0, %.lr.ph ], [ %45, %44 ]
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK13CRecordVectorIyEixEj(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %.02838)
  %18 = load i64, ptr %17, align 8, !tbaa !5
  invoke void @_ZN7AString21Add_Space_if_NotEmptyEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %19 unwind label %30

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  switch i64 %18, label %43 [
    i64 33, label %20
    i64 196865, label %36
  ]

20:                                               ; preds = %19
  %21 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str)
          to label %22 unwind label %32

22:                                               ; preds = %20
  %23 = load i8, ptr %9, align 8, !tbaa !9
  %24 = zext i8 %23 to i32
  %25 = and i32 %24, 1
  %26 = icmp eq i32 %25, 0
  %27 = lshr i32 %24, 1
  br i1 %26, label %28, label %34

28:                                               ; preds = %22
  %29 = add nuw nsw i32 %27, 12
  call void @_Z21ConvertUInt32ToStringjPc(i32 noundef %29, ptr noundef nonnull %6) #5
  br label %.invoke

30:                                               ; preds = %16
  %31 = landingpad { ptr, i32 }
          catch ptr null
  br label %51

32:                                               ; preds = %.invoke40, %.invoke, %43, %36, %20
  %33 = landingpad { ptr, i32 }
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %51

34:                                               ; preds = %22
  %35 = shl i32 6144, %27
  br label %.invoke40

36:                                               ; preds = %19
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str.1)
          to label %38 unwind label %32

38:                                               ; preds = %36
  %39 = load i32, ptr %12, align 4, !tbaa !14
  br label %.invoke40

.invoke40:                                        ; preds = %34, %38
  %40 = phi i32 [ %39, %38 ], [ %35, %34 ]
  %41 = invoke noundef i32 @_ZN8NArchive3N7zL21GetStringForSizeValueEPcj(ptr noundef nonnull %6, i32 noundef %40)
          to label %.invoke unwind label %32

.invoke:                                          ; preds = %.invoke40, %28
  %42 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %6)
          to label %44 unwind label %32

43:                                               ; preds = %19
  invoke void @_ZN8NArchive3N7z8CHandler13AddMethodNameER7AStringy(ptr noundef nonnull align 8 dereferenceable(696) %0, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %18)
          to label %44 unwind label %32

44:                                               ; preds = %.invoke, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %45 = add nuw i32 %.02838, 1
  %46 = call noundef i32 @_ZNK13CRecordVectorIyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %47 = icmp ult i32 %45, %46
  br i1 %47, label %16, label %._crit_edge, !llvm.loop !15

48:                                               ; preds = %._crit_edge
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %109

49:                                               ; preds = %._crit_edge
  %50 = landingpad { ptr, i32 }
          catch ptr null
  br label %51

51:                                               ; preds = %30, %32, %49
  %.pn.pn = phi { ptr, i32 } [ %50, %49 ], [ %33, %32 ], [ %31, %30 ]
  call void @_ZN7AStringD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  br label %52

52:                                               ; preds = %51, %14
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %51 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %111

53:                                               ; preds = %3
  %54 = getelementptr inbounds i8, ptr %0, i64 192
  %55 = invoke noundef zeroext i1 @_ZNK8NArchive3N7z9CDatabase7IsSolidEv(ptr noundef nonnull align 8 dereferenceable(352) %54)
          to label %56 unwind label %58

56:                                               ; preds = %53
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %4, i1 noundef zeroext %55) #5
  br label %109

58:                                               ; preds = %53
  %59 = landingpad { ptr, i32 }
          catch ptr null
  br label %111

60:                                               ; preds = %3
  %61 = getelementptr inbounds i8, ptr %0, i64 196
  %62 = load i32, ptr %61, align 4, !tbaa !17
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %62) #5
  br label %109

64:                                               ; preds = %3
  %65 = getelementptr inbounds i8, ptr %0, i64 616
  %66 = load i64, ptr %65, align 8, !tbaa !28
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %66) #5
  br label %109

68:                                               ; preds = %3
  %69 = getelementptr inbounds i8, ptr %0, i64 624
  %70 = load i64, ptr %69, align 8, !tbaa !57
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %70) #5
  br label %109

72:                                               ; preds = %3
  %73 = getelementptr inbounds i8, ptr %0, i64 552
  %74 = load i64, ptr %73, align 8, !tbaa !58
  %.not35 = icmp eq i64 %74, 0
  br i1 %.not35, label %109, label %75

75:                                               ; preds = %72
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %74) #5
  br label %109

77:                                               ; preds = %3
  %78 = getelementptr inbounds i8, ptr %0, i64 636
  %79 = load i8, ptr %78, align 4, !tbaa !59, !range !60, !noundef !61
  %80 = trunc nuw i8 %79 to i1
  %spec.select = select i1 %80, i32 2, i32 0
  %81 = getelementptr inbounds i8, ptr %0, i64 637
  %82 = load i8, ptr %81, align 1, !tbaa !62, !range !60, !noundef !61
  %83 = trunc nuw i8 %82 to i1
  %84 = or disjoint i32 %spec.select, 256
  %.126 = select i1 %83, i32 %84, i32 %spec.select
  %.not = icmp eq i32 %.126, 0
  br i1 %.not, label %109, label %85

85:                                               ; preds = %77
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.126) #5
  br label %109

87:                                               ; preds = %3
  %88 = getelementptr inbounds i8, ptr %0, i64 632
  %89 = load i8, ptr %88, align 8, !tbaa !63, !range !60, !noundef !61
  %90 = xor i8 %89, 1
  %not. = zext nneg i8 %90 to i32
  %91 = getelementptr inbounds i8, ptr %0, i64 634
  %92 = load i8, ptr %91, align 2, !tbaa !64, !range !60, !noundef !61
  %93 = trunc nuw i8 %92 to i1
  %94 = or disjoint i32 %not., 2
  %.1 = select i1 %93, i32 %94, i32 %not.
  %95 = getelementptr inbounds i8, ptr %0, i64 635
  %96 = load i8, ptr %95, align 1, !tbaa !65, !range !60, !noundef !61
  %97 = trunc nuw i8 %96 to i1
  %98 = or disjoint i32 %.1, 32
  %.2 = select i1 %97, i32 %98, i32 %.1
  %99 = getelementptr inbounds i8, ptr %0, i64 638
  %100 = load i8, ptr %99, align 2, !tbaa !66, !range !60, !noundef !61
  %101 = trunc nuw i8 %100 to i1
  %102 = or disjoint i32 %.2, 256
  %.3 = select i1 %101, i32 %102, i32 %.2
  %103 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.3) #5
  br label %109

104:                                              ; preds = %3
  %105 = getelementptr inbounds i8, ptr %0, i64 192
  %106 = call noundef zeroext i1 @_ZNK8NArchive3N7z5CDbEx9CanUpdateEv(ptr noundef nonnull align 8 dereferenceable(447) %105)
  br i1 %106, label %109, label %107

107:                                              ; preds = %104
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16) %4, i1 noundef zeroext true) #5
  br label %109

109:                                              ; preds = %77, %85, %104, %107, %72, %75, %87, %68, %64, %60, %56, %48, %3
  %110 = call noundef i32 @_ZN8NWindows4NCOM12CPropVariant6DetachEP14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %2) #5
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %113

111:                                              ; preds = %58, %52
  %.pn36 = phi { ptr, i32 } [ %59, %58 ], [ %.pn.pn.pn, %52 ]
  %.332 = extractvalue { ptr, i32 } %.pn36, 0
  call void @_ZN8NWindows4NCOM12CPropVariantD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  %112 = call ptr @__cxa_begin_catch(ptr %.332) #5
  call void @__cxa_end_catch()
  br label %113

113:                                              ; preds = %111, %109
  %.027 = phi i32 [ 0, %109 ], [ -2147024882, %111 ]
  ret i32 %.027
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK13CRecordVectorIyE4SizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK13CRecordVectorIyEixEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

declare void @_ZN7AString21Add_Space_if_NotEmptyEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN7AStringpLEPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_Z21ConvertUInt32ToStringjPc(i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8NArchive3N7zL21GetStringForSizeValueEPcj(ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK8NArchive3N7z9CDatabase7IsSolidEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #0 align 2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN8NWindows4NCOM12CPropVariantaSEy(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind
declare noundef i32 @_ZN8NWindows4NCOM12CPropVariant6DetachEP14tagPROPVARIANT(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #4

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

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nounwind "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 #5 = { 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 0}
!10 = !{!"_ZTSN8NArchive3N7z14CParsedMethodsE", !7, i64 0, !11, i64 4, !12, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS13CRecordVectorIyE", !13, i64 0, !11, i64 8, !11, i64 12}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !11, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !11, i64 4}
!18 = !{!"_ZTSN8NArchive3N7z8CFoldersE", !11, i64 0, !11, i64 4, !19, i64 8, !20, i64 16, !23, i64 48, !19, i64 56, !23, i64 64, !23, i64 72, !24, i64 80, !25, i64 88, !26, i64 96, !10, i64 112}
!19 = !{!"_ZTS9CObjArrayIyE", !13, i64 0}
!20 = !{!"_ZTSN8NArchive3N7z16CUInt32DefVectorE", !21, i64 0, !22, i64 16}
!21 = !{!"_ZTS13CRecordVectorIbE", !13, i64 0, !11, i64 8, !11, i64 12}
!22 = !{!"_ZTS13CRecordVectorIjE", !13, i64 0, !11, i64 8, !11, i64 12}
!23 = !{!"_ZTS9CObjArrayIjE", !13, i64 0}
!24 = !{!"_ZTS9CObjArrayIhE", !13, i64 0}
!25 = !{!"_ZTS9CObjArrayImE", !13, i64 0}
!26 = !{!"_ZTS7CBufferIhE", !13, i64 0, !27, i64 8}
!27 = !{!"long", !7, i64 0}
!28 = !{!29, !6, i64 616}
!29 = !{!"_ZTSN8NArchive3N7z8CHandlerE", !30, i64 0, !32, i64 8, !33, i64 16, !34, i64 24, !35, i64 32, !36, i64 40, !49, i64 184, !50, i64 192, !47, i64 640, !47, i64 641, !46, i64 648, !56, i64 664, !12, i64 680}
!30 = !{!"_ZTS10IInArchive", !31, i64 0}
!31 = !{!"_ZTS8IUnknown"}
!32 = !{!"_ZTS19IArchiveGetRawProps", !31, i64 0}
!33 = !{!"_ZTS14ISetProperties", !31, i64 0}
!34 = !{!"_ZTS11IOutArchive", !31, i64 0}
!35 = !{!"_ZTS13CMyUnknownImp", !11, i64 0}
!36 = !{!"_ZTSN8NArchive3N7z11COutHandlerE", !37, i64 0, !6, i64 112, !6, i64 120, !47, i64 128, !47, i64 129, !47, i64 130, !47, i64 131, !47, i64 132, !47, i64 133, !48, i64 134, !48, i64 136, !48, i64 138, !48, i64 140, !47, i64 142, !47, i64 143}
!37 = !{!"_ZTSN8NArchive17CMultiMethodPropsE", !38, i64 0, !11, i64 24, !11, i64 28, !11, i64 32, !39, i64 40, !41, i64 56, !47, i64 104}
!38 = !{!"_ZTSN8NArchive18CCommonMethodPropsE", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTS13CObjectVectorI14COneMethodInfoE", !40, i64 0}
!40 = !{!"_ZTS13CRecordVectorIPvE", !13, i64 0, !11, i64 8, !11, i64 12}
!41 = !{!"_ZTS14COneMethodInfo", !42, i64 0, !45, i64 16, !46, i64 32}
!42 = !{!"_ZTS12CMethodProps", !43, i64 0}
!43 = !{!"_ZTS6CProps", !44, i64 0}
!44 = !{!"_ZTS13CObjectVectorI5CPropE", !40, i64 0}
!45 = !{!"_ZTS7AString", !13, i64 0, !11, i64 8, !11, i64 12}
!46 = !{!"_ZTS7UString", !13, i64 0, !11, i64 8, !11, i64 12}
!47 = !{!"bool", !7, i64 0}
!48 = !{!"_ZTS9CBoolPair", !47, i64 0, !47, i64 1}
!49 = !{!"_ZTS9CMyComPtrI9IInStreamE", !13, i64 0}
!50 = !{!"_ZTSN8NArchive3N7z5CDbExE", !51, i64 0, !54, i64 352, !23, i64 408, !23, i64 416, !6, i64 424, !6, i64 432, !47, i64 440, !47, i64 441, !47, i64 442, !47, i64 443, !47, i64 444, !47, i64 445, !47, i64 446}
!51 = !{!"_ZTSN8NArchive3N7z9CDatabaseE", !18, i64 0, !52, i64 136, !53, i64 152, !53, i64 184, !53, i64 216, !53, i64 248, !20, i64 280, !21, i64 312, !26, i64 328, !25, i64 344}
!52 = !{!"_ZTS13CRecordVectorIN8NArchive3N7z9CFileItemEE", !13, i64 0, !11, i64 8, !11, i64 12}
!53 = !{!"_ZTSN8NArchive3N7z16CUInt64DefVectorE", !21, i64 0, !12, i64 16}
!54 = !{!"_ZTSN8NArchive3N7z14CInArchiveInfoE", !55, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !12, i64 40}
!55 = !{!"_ZTSN8NArchive3N7z15CArchiveVersionE", !7, i64 0, !7, i64 1}
!56 = !{!"_ZTS13CRecordVectorIN8NArchive3N7z6CBond2EE", !13, i64 0, !11, i64 8, !11, i64 12}
!57 = !{!29, !6, i64 624}
!58 = !{!29, !6, i64 552}
!59 = !{!29, !47, i64 636}
!60 = !{i8 0, i8 2}
!61 = !{}
!62 = !{!29, !47, i64 637}
!63 = !{!29, !47, i64 632}
!64 = !{!29, !47, i64 634}
!65 = !{!29, !47, i64 635}
!66 = !{!29, !47, i64 638}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass