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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #1 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(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) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11NCoderMixer21CBindReverseConverter21CreateReverseBindInfoERNS_9CBindInfoE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(128) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.NCoderMixer::CCoderStreamsInfo", align 4
  %8 = alloca %"struct.NCoderMixer::CCoderStreamsInfo", align 4
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.NCoderMixer::CBindPair", align 4
  %11 = alloca %"struct.NCoderMixer::CBindPair", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %13, i32 0, i32 0
  call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %14)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %15, i32 0, i32 1
  call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %16)
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %17, i32 0, i32 2
  call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %18)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %19, i32 0, i32 3
  call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %21 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %22 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %21, i32 0, i32 0
  %23 = call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %24 = sub nsw i32 %23, 1
  store i32 %24, ptr %5, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %45, %2
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = icmp sge i32 %26, 0
  br i1 %27, label %28, label %48

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %29 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %30 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %29, i32 0, i32 0
  %31 = load i32, ptr %5, align 4, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %30, i32 noundef %31)
  store ptr %32, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %7, i32 0, i32 0
  store i32 %35, ptr %36, align 4, !tbaa !13
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = getelementptr inbounds %"struct.NCoderMixer::CCoderStreamsInfo", ptr %7, i32 0, i32 1
  store i32 %39, ptr %40, align 4, !tbaa !11
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %41, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !14
  %43 = load i64, ptr %8, align 4
  %44 = call noundef i32 @_ZN13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEE3AddES1_(ptr noundef nonnull align 8 dereferenceable(32) %42, i64 %43)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %45

45:                                               ; preds = %28
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = add nsw i32 %46, -1
  store i32 %47, ptr %5, align 4, !tbaa !9
  br label %25, !llvm.loop !15

48:                                               ; preds = %25
  %49 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %50 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %49, i32 0, i32 1
  %51 = call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %50)
  %52 = sub nsw i32 %51, 1
  store i32 %52, ptr %5, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %79, %48
  %54 = load i32, ptr %5, align 4, !tbaa !9
  %55 = icmp sge i32 %54, 0
  br i1 %55, label %56, label %82

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %57 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %57, i32 0, i32 1
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN13CRecordVectorIN11NCoderMixer9CBindPairEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %58, i32 noundef %59)
  store ptr %60, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %61 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 3
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.NCoderMixer::CBindPair", ptr %62, i32 0, i32 1
  %64 = load i32, ptr %63, align 4, !tbaa !17
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %61, i32 noundef %64)
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = getelementptr inbounds %"struct.NCoderMixer::CBindPair", ptr %10, i32 0, i32 0
  store i32 %66, ptr %67, align 4, !tbaa !19
  %68 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 2
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.NCoderMixer::CBindPair", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 4, !tbaa !19
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %68, i32 noundef %71)
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = getelementptr inbounds %"struct.NCoderMixer::CBindPair", ptr %10, i32 0, i32 1
  store i32 %73, ptr %74, align 4, !tbaa !17
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %75, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !14
  %77 = load i64, ptr %11, align 4
  %78 = call noundef i32 @_ZN13CRecordVectorIN11NCoderMixer9CBindPairEE3AddES1_(ptr noundef nonnull align 8 dereferenceable(32) %76, i64 %77)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %79

79:                                               ; preds = %56
  %80 = load i32, ptr %5, align 4, !tbaa !9
  %81 = add nsw i32 %80, -1
  store i32 %81, ptr %5, align 4, !tbaa !9
  br label %53, !llvm.loop !20

82:                                               ; preds = %53
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %101, %82
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %86 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %85, i32 0, i32 2
  %87 = call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %86)
  %88 = icmp slt i32 %84, %87
  br i1 %88, label %89, label %104

89:                                               ; preds = %83
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %90, i32 0, i32 3
  %92 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 2
  %93 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %94 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %93, i32 0, i32 2
  %95 = load i32, ptr %5, align 4, !tbaa !9
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %94, i32 noundef %95)
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %92, i32 noundef %97)
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = call noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %91, i32 noundef %99)
  br label %101

101:                                              ; preds = %89
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %5, align 4, !tbaa !9
  br label %83, !llvm.loop !21

104:                                              ; preds = %83
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %123, %104
  %106 = load i32, ptr %5, align 4, !tbaa !9
  %107 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %108 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %107, i32 0, i32 3
  %109 = call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %108)
  %110 = icmp slt i32 %106, %109
  br i1 %110, label %111, label %126

111:                                              ; preds = %105
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %112, i32 0, i32 2
  %114 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 3
  %115 = getelementptr inbounds %"class.NCoderMixer::CBindReverseConverter", ptr %12, i32 0, i32 1
  %116 = getelementptr inbounds %"struct.NCoderMixer::CBindInfo", ptr %115, i32 0, i32 3
  %117 = load i32, ptr %5, align 4, !tbaa !9
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %116, i32 noundef %117)
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %114, i32 noundef %119)
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = call noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %113, i32 noundef %121)
  br label %123

123:                                              ; preds = %111
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %5, align 4, !tbaa !9
  br label %105, !llvm.loop !22

126:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

declare void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 4}
!12 = !{!"_ZTSN11NCoderMixer17CCoderStreamsInfoE", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 0}
!14 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !10, i64 4}
!18 = !{!"_ZTSN11NCoderMixer9CBindPairE", !10, i64 0, !10, i64 4}
!19 = !{!18, !10, i64 0}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


; 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
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 #1 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11NCoderMixer21CBindReverseConverter21CreateReverseBindInfoERNS_9CBindInfoE(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(128) %1) local_unnamed_addr #0 align 2 {
  tail call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %3 = getelementptr inbounds i8, ptr %1, i64 32
  tail call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %4 = getelementptr inbounds i8, ptr %1, i64 64
  tail call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %5 = getelementptr inbounds i8, ptr %1, i64 96
  tail call void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %.0.in29 = phi i32 [ %.0, %.lr.ph ], [ %7, %2 ]
  %.0 = add nsw i32 %.0.in29, -1
  %9 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %.0)
  %10 = getelementptr inbounds i8, ptr %9, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = load i32, ptr %9, align 4, !tbaa !10
  %.sroa.45.0.insert.ext = zext i32 %12 to i64
  %.sroa.45.0.insert.shift = shl nuw i64 %.sroa.45.0.insert.ext, 32
  %.sroa.04.0.insert.ext = zext i32 %11 to i64
  %.sroa.04.0.insert.insert = or disjoint i64 %.sroa.45.0.insert.shift, %.sroa.04.0.insert.ext
  %13 = tail call noundef i32 @_ZN13CRecordVectorIN11NCoderMixer17CCoderStreamsInfoEE3AddES1_(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 %.sroa.04.0.insert.insert)
  %14 = icmp ugt i32 %.0.in29, 1
  br i1 %14, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %2
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %15)
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph32, label %.preheader28

.lr.ph32:                                         ; preds = %._crit_edge
  %18 = getelementptr inbounds i8, ptr %0, i64 168
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  br label %24

.preheader28:                                     ; preds = %24, %._crit_edge
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph34, label %.preheader

.lr.ph34:                                         ; preds = %.preheader28
  %23 = getelementptr inbounds i8, ptr %0, i64 136
  br label %39

24:                                               ; preds = %.lr.ph32, %24
  %.1.in30 = phi i32 [ %16, %.lr.ph32 ], [ %.1, %24 ]
  %.1 = add nsw i32 %.1.in30, -1
  %25 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN13CRecordVectorIN11NCoderMixer9CBindPairEEixEi(ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef %.1)
  %26 = getelementptr inbounds i8, ptr %25, i64 4
  %27 = load i32, ptr %26, align 4, !tbaa !13
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %18, i32 noundef %27)
  %29 = load i32, ptr %28, align 4, !tbaa !15
  %30 = load i32, ptr %25, align 4, !tbaa !16
  %31 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %30)
  %32 = load i32, ptr %31, align 4, !tbaa !15
  %.sroa.4.0.insert.ext = zext i32 %32 to i64
  %.sroa.4.0.insert.shift = shl nuw i64 %.sroa.4.0.insert.ext, 32
  %.sroa.01.0.insert.ext = zext i32 %29 to i64
  %.sroa.01.0.insert.insert = or disjoint i64 %.sroa.4.0.insert.shift, %.sroa.01.0.insert.ext
  %33 = tail call noundef i32 @_ZN13CRecordVectorIN11NCoderMixer9CBindPairEE3AddES1_(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 %.sroa.01.0.insert.insert)
  %34 = icmp ugt i32 %.1.in30, 1
  br i1 %34, label %24, label %.preheader28, !llvm.loop !17

.preheader:                                       ; preds = %39, %.preheader28
  %35 = getelementptr inbounds i8, ptr %0, i64 104
  %36 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %35)
  %37 = icmp sgt i32 %36, 0
  br i1 %37, label %.lr.ph36, label %._crit_edge37

.lr.ph36:                                         ; preds = %.preheader
  %38 = getelementptr inbounds i8, ptr %0, i64 168
  br label %48

39:                                               ; preds = %.lr.ph34, %39
  %.233 = phi i32 [ 0, %.lr.ph34 ], [ %45, %39 ]
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %20, i32 noundef %.233)
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %23, i32 noundef %41)
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = tail call noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %43)
  %45 = add nuw nsw i32 %.233, 1
  %46 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %20)
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %39, label %.preheader, !llvm.loop !18

48:                                               ; preds = %.lr.ph36, %48
  %.335 = phi i32 [ 0, %.lr.ph36 ], [ %54, %48 ]
  %49 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef %.335)
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN13CRecordVectorIjEixEi(ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef %50)
  %52 = load i32, ptr %51, align 4, !tbaa !15
  %53 = tail call noundef i32 @_ZN13CRecordVectorIjE3AddEj(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %52)
  %54 = add nuw nsw i32 %.335, 1
  %55 = tail call noundef i32 @_ZNK17CBaseRecordVector4SizeEv(ptr noundef nonnull align 8 dereferenceable(32) %35)
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %48, label %._crit_edge37, !llvm.loop !19

._crit_edge37:                                    ; preds = %48, %.preheader
  ret void
}

declare void @_ZN17CBaseRecordVector5ClearEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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" }

!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 4}
!6 = !{!"_ZTSN11NCoderMixer17CCoderStreamsInfoE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !7, i64 4}
!14 = !{!"_ZTSN11NCoderMixer9CBindPairE", !7, i64 0, !7, i64 4}
!15 = !{!7, !7, i64 0}
!16 = !{!14, !7, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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