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

; 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.NCoderMixer::CBindReverseConverter" = type { i32, %"struct.NCoderMixer::CBindInfo", %class.CRecordVector.1, %class.CRecordVector.1, %class.CRecordVector.1, i32, %class.CRecordVector.1 }
%"struct.NCoderMixer::CBindInfo" = type { %class.CRecordVector, %class.CRecordVector.0, %class.CRecordVector.1, %class.CRecordVector.1 }
%class.CRecordVector = type { %class.CBaseRecordVector }
%class.CBaseRecordVector = type { ptr, i32, i32, ptr, i64 }
%class.CRecordVector.0 = type { %class.CBaseRecordVector }
%class.CRecordVector.1 = type { %class.CBaseRecordVector }
%"struct.NCoderMixer::CCoderStreamsInfo" = type { i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11NCoderMixer21CBindReverseConverterC2ERKNS_9CBindInfoE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(128) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  %18 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 1
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN11NCoderMixer9CBindInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(128) %18, ptr noundef nonnull align 8 dereferenceable(128) %19)
  %20 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 2
  invoke void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %21 unwind label %47

21:                                               ; preds = %2
  %22 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 3
  invoke void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %23 unwind label %51

23:                                               ; preds = %21
  %24 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 4
  invoke void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24)
          to label %25 unwind label %55

25:                                               ; preds = %23
  %26 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 6
  invoke void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %27 unwind label %59

27:                                               ; preds = %25
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 5
  %30 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 0
  invoke void @_ZNK11NCoderMixer9CBindInfo13GetNumStreamsERjS1_(ptr noundef nonnull align 8 dereferenceable(128) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %31 unwind label %63

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %44, %31
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 5
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = icmp ult i32 %33, %35
  br i1 %36, label %37, label %71

37:                                               ; preds = %32
  %38 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 2
  %39 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef 0)
          to label %40 unwind label %67

40:                                               ; preds = %37
  %41 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 6
  %42 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %41, i32 noundef 0)
          to label %43 unwind label %67

43:                                               ; preds = %40
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %7, align 4, !tbaa !9
  %46 = add i32 %45, 1
  store i32 %46, ptr %7, align 4, !tbaa !9
  br label %32, !llvm.loop !19

47:                                               ; preds = %2
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %5, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %6, align 4
  br label %197

51:                                               ; preds = %21
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %5, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %6, align 4
  br label %196

55:                                               ; preds = %23
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %5, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %6, align 4
  br label %195

59:                                               ; preds = %25
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %5, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %6, align 4
  br label %194

63:                                               ; preds = %27
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %5, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %6, align 4
  br label %193

67:                                               ; preds = %80, %77, %40, %37
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %5, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %6, align 4
  br label %192

71:                                               ; preds = %32
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %84, %71
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !21
  %76 = icmp ult i32 %73, %75
  br i1 %76, label %77, label %87

77:                                               ; preds = %72
  %78 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 3
  %79 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %78, i32 noundef 0)
          to label %80 unwind label %67

80:                                               ; preds = %77
  %81 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 4
  %82 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %81, i32 noundef 0)
          to label %83 unwind label %67

83:                                               ; preds = %80
  br label %84

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

87:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %88 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 5
  %89 = load i32, ptr %88, align 8, !tbaa !11
  store i32 %89, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %90 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !21
  store i32 %91, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %92, i32 0, i32 0
  %94 = invoke noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %93)
          to label %95 unwind label %101

95:                                               ; preds = %87
  %96 = sub nsw i32 %94, 1
  store i32 %96, ptr %12, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %185, %95
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = icmp sge i32 %98, 0
  br i1 %99, label %105, label %100

100:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %191

101:                                              ; preds = %87
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %5, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %6, align 4
  br label %190

105:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %106, i32 0, i32 0
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %107, i32 noundef %108)
          to label %110 unwind label %146

110:                                              ; preds = %105
  store ptr %109, ptr %13, align 8, !tbaa !5
  %111 = load ptr, ptr %13, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %111, i32 0, i32 0
  %113 = load i32, ptr %112, align 4, !tbaa !23
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = sub i32 %114, %113
  store i32 %115, ptr %10, align 4, !tbaa !9
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %116, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !25
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = sub i32 %119, %118
  store i32 %120, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %141, %110
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4, !tbaa !23
  %126 = icmp ult i32 %122, %125
  br i1 %126, label %127, label %154

127:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = add i32 %128, %129
  store i32 %130, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 2
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %132, i32 noundef %133)
          to label %135 unwind label %150

135:                                              ; preds = %127
  store i32 %131, ptr %134, align 4, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 6
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %137, i32 noundef %138)
          to label %140 unwind label %150

140:                                              ; preds = %135
  store i32 %136, ptr %139, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %14, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = add i32 %144, 1
  store i32 %145, ptr %9, align 4, !tbaa !9
  br label %121, !llvm.loop !26

146:                                              ; preds = %105
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %5, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %6, align 4
  br label %189

150:                                              ; preds = %135, %127
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %5, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %188

154:                                              ; preds = %121
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %175, %154
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !25
  %160 = icmp ult i32 %156, %159
  br i1 %160, label %161, label %184

161:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %162 = load i32, ptr %11, align 4, !tbaa !9
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = add i32 %162, %163
  store i32 %164, ptr %16, align 4, !tbaa !9
  %165 = load i32, ptr %8, align 4, !tbaa !9
  %166 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 3
  %167 = load i32, ptr %16, align 4, !tbaa !9
  %168 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %166, i32 noundef %167)
          to label %169 unwind label %180

169:                                              ; preds = %161
  store i32 %165, ptr %168, align 4, !tbaa !9
  %170 = load i32, ptr %16, align 4, !tbaa !9
  %171 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %17, i32 0, i32 4
  %172 = load i32, ptr %8, align 4, !tbaa !9
  %173 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %171, i32 noundef %172)
          to label %174 unwind label %180

174:                                              ; preds = %169
  store i32 %170, ptr %173, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = add i32 %176, 1
  store i32 %177, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %8, align 4, !tbaa !9
  %179 = add i32 %178, 1
  store i32 %179, ptr %8, align 4, !tbaa !9
  br label %155, !llvm.loop !27

180:                                              ; preds = %169, %161
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %5, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %188

184:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = add nsw i32 %186, -1
  store i32 %187, ptr %12, align 4, !tbaa !9
  br label %97, !llvm.loop !28

188:                                              ; preds = %180, %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %189

189:                                              ; preds = %188, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %190

190:                                              ; preds = %189, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %192

191:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void

192:                                              ; preds = %190, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %193

193:                                              ; preds = %192, %63
  call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %194

194:                                              ; preds = %193, %59
  call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %195

195:                                              ; preds = %194, %55
  call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #6
  br label %196

196:                                              ; preds = %195, %51
  call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %197

197:                                              ; preds = %196, %47
  call void @_ZN11NCoderMixer9CBindInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %18) #6
  br label %198

198:                                              ; preds = %197
  %199 = load ptr, ptr %5, align 8
  %200 = load i32, ptr %6, align 4
  %201 = insertvalue { ptr, i32 } poison, ptr %199, 0
  %202 = insertvalue { ptr, i32 } %201, i32 %200, 1
  resume { ptr, i32 } %202
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11NCoderMixer9CBindInfo13GetNumStreamsERjS1_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 232}
!12 = !{!"_ZTSN11NCoderMixer21CBindReverseConverterE", !10, i64 0, !13, i64 8, !18, i64 136, !18, i64 168, !18, i64 200, !10, i64 232, !18, i64 240}
!13 = !{!"_ZTSN11NCoderMixer9CBindInfoE", !14, i64 0, !17, i64 32, !18, i64 64, !18, i64 96}
!14 = !{!"_ZTS13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEE", !15, i64 0}
!15 = !{!"_ZTS17CBaseRecordVector", !10, i64 8, !10, i64 12, !6, i64 16, !16, i64 24}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS13CRecordVectorIN11NCoderMixer9CBindPairEE", !15, i64 0}
!18 = !{!"_ZTS13CRecordVectorIjE", !15, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !10, i64 0}
!22 = distinct !{!22, !20}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN11NCoderMixer17CCoderStreamsInfoE", !10, i64 0, !10, i64 4}
!25 = !{!24, !10, i64 4}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !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"

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11NCoderMixer21CBindReverseConverterC2ERKNS_9CBindInfoE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(128) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN11NCoderMixer9CBindInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(128) %3, ptr noundef nonnull align 8 dereferenceable(128) %1)
  %4 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %5 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %7 = getelementptr inbounds i8, ptr %0, i64 240
  tail call void @_ZN13CRecordVectorIjEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 232
  invoke void @_ZNK11NCoderMixer9CBindInfo13GetNumStreamsERjS1_(ptr noundef nonnull align 8 dereferenceable(128) %1, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %0)
          to label %.preheader52 unwind label %19

.preheader52:                                     ; preds = %2
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.preheader50, label %.lr.ph

.preheader50:                                     ; preds = %15, %.preheader52
  %10 = phi i32 [ 0, %.preheader52 ], [ %17, %15 ]
  %11 = load i32, ptr %0, align 8, !tbaa !17
  %.not75 = icmp eq i32 %11, 0
  br i1 %.not75, label %._crit_edge, label %.lr.ph56

.lr.ph:                                           ; preds = %.preheader52, %15
  %.03954 = phi i32 [ %16, %15 ], [ 0, %.preheader52 ]
  %12 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef 0)
          to label %13 unwind label %.loopexit.split-lp

13:                                               ; preds = %.lr.ph
  %14 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef 0)
          to label %15 unwind label %.loopexit.split-lp

15:                                               ; preds = %13
  %16 = add nuw i32 %.03954, 1
  %17 = load i32, ptr %8, align 8, !tbaa !5
  %18 = icmp ult i32 %16, %17
  br i1 %18, label %.lr.ph, label %.preheader50, !llvm.loop !18

19:                                               ; preds = %2
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %53

.loopexit51:                                      ; preds = %.lr.ph56, %22
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %53

.loopexit.split-lp:                               ; preds = %.lr.ph, %13
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %53

.lr.ph56:                                         ; preds = %.preheader50, %24
  %.14055 = phi i32 [ %25, %24 ], [ 0, %.preheader50 ]
  %21 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef 0)
          to label %22 unwind label %.loopexit51

22:                                               ; preds = %.lr.ph56
  %23 = invoke noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 0)
          to label %24 unwind label %.loopexit51

24:                                               ; preds = %22
  %25 = add nuw i32 %.14055, 1
  %26 = load i32, ptr %0, align 8, !tbaa !17
  %27 = icmp ult i32 %25, %26
  br i1 %27, label %.lr.ph56, label %._crit_edge.loopexit, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %24
  %.pre = load i32, ptr %8, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader50
  %28 = phi i32 [ %10, %.preheader50 ], [ %.pre, %._crit_edge.loopexit ]
  %.lcssa = phi i32 [ 0, %.preheader50 ], [ %26, %._crit_edge.loopexit ]
  %29 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph73, label %._crit_edge74

.loopexit:                                        ; preds = %.lr.ph64, %.preheader
  %.147.lcssa = phi i32 [ %.04667, %.preheader ], [ %50, %.lr.ph64 ]
  %31 = icmp sgt i32 %.04171.in, 1
  br i1 %31, label %.lr.ph73, label %._crit_edge74, !llvm.loop !21

._crit_edge74:                                    ; preds = %.loopexit, %._crit_edge
  ret void

.lr.ph73:                                         ; preds = %._crit_edge, %.loopexit
  %.04171.in = phi i32 [ %.04171, %.loopexit ], [ %29, %._crit_edge ]
  %.04270 = phi i32 [ %37, %.loopexit ], [ %.lcssa, %._crit_edge ]
  %.04369 = phi i32 [ %34, %.loopexit ], [ %28, %._crit_edge ]
  %.04468 = phi i32 [ %.145.lcssa, %.loopexit ], [ 0, %._crit_edge ]
  %.04667 = phi i32 [ %.147.lcssa, %.loopexit ], [ 0, %._crit_edge ]
  %.04171 = add nsw i32 %.04171.in, -1
  %32 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.04171)
  %33 = load i32, ptr %32, align 4, !tbaa !22
  %34 = sub i32 %.04369, %33
  %35 = getelementptr inbounds i8, ptr %32, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !24
  %37 = sub i32 %.04270, %36
  %.not76 = icmp eq i32 %33, 0
  br i1 %.not76, label %.preheader, label %.lr.ph60

.preheader.loopexit:                              ; preds = %.lr.ph60
  %.pre81 = load i32, ptr %35, align 4, !tbaa !24
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.lr.ph73
  %38 = phi i32 [ %36, %.lr.ph73 ], [ %.pre81, %.preheader.loopexit ]
  %.145.lcssa = phi i32 [ %.04468, %.lr.ph73 ], [ %43, %.preheader.loopexit ]
  %.not77 = icmp eq i32 %38, 0
  br i1 %.not77, label %.loopexit, label %.lr.ph64

.lr.ph60:                                         ; preds = %.lr.ph73, %.lr.ph60
  %.03858 = phi i32 [ %42, %.lr.ph60 ], [ 0, %.lr.ph73 ]
  %.14557 = phi i32 [ %43, %.lr.ph60 ], [ %.04468, %.lr.ph73 ]
  %39 = add i32 %.03858, %34
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %39)
  store i32 %.14557, ptr %40, align 4, !tbaa !25
  %41 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %7, i32 noundef %.14557)
  store i32 %39, ptr %41, align 4, !tbaa !25
  %42 = add nuw i32 %.03858, 1
  %43 = add i32 %.14557, 1
  %44 = load i32, ptr %32, align 4, !tbaa !22
  %45 = icmp ult i32 %42, %44
  br i1 %45, label %.lr.ph60, label %.preheader.loopexit, !llvm.loop !26

.lr.ph64:                                         ; preds = %.preheader, %.lr.ph64
  %.163 = phi i32 [ %49, %.lr.ph64 ], [ 0, %.preheader ]
  %.14762 = phi i32 [ %50, %.lr.ph64 ], [ %.04667, %.preheader ]
  %46 = add i32 %.163, %37
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %46)
  store i32 %.14762, ptr %47, align 4, !tbaa !25
  %48 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %.14762)
  store i32 %46, ptr %48, align 4, !tbaa !25
  %49 = add nuw i32 %.163, 1
  %50 = add i32 %.14762, 1
  %51 = load i32, ptr %35, align 4, !tbaa !24
  %52 = icmp ult i32 %49, %51
  br i1 %52, label %.lr.ph64, label %.loopexit, !llvm.loop !27

53:                                               ; preds = %.loopexit51, %.loopexit.split-lp, %19
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %lpad.loopexit, %.loopexit51 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  tail call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  tail call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  tail call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  tail call void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  tail call void @_ZN11NCoderMixer9CBindInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %3) #5
  resume { ptr, i32 } %.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK11NCoderMixer9CBindInfo13GetNumStreamsERjS1_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: nounwind
declare void @_ZN17CBaseRecordVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !7, i64 232}
!6 = !{!"_ZTSN11NCoderMixer21CBindReverseConverterE", !7, i64 0, !10, i64 8, !16, i64 136, !16, i64 168, !16, i64 200, !7, i64 232, !16, i64 240}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11NCoderMixer9CBindInfoE", !11, i64 0, !15, i64 32, !16, i64 64, !16, i64 96}
!11 = !{!"_ZTS13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEE", !12, i64 0}
!12 = !{!"_ZTS17CBaseRecordVector", !7, i64 8, !7, i64 12, !13, i64 16, !14, i64 24}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_ZTS13CRecordVectorIN11NCoderMixer9CBindPairEE", !12, i64 0}
!16 = !{!"_ZTS13CRecordVectorIjE", !12, i64 0}
!17 = !{!6, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = !{!23, !7, i64 0}
!23 = !{!"_ZTSN11NCoderMixer17CCoderStreamsInfoE", !7, i64 0, !7, i64 4}
!24 = !{!23, !7, i64 4}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass