; LLVM IR from ronan-kerviche/glip-lib :: GLIP-Lib/src/Modules (GeometryLoader)

; 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.Glip::Modules::OBJLoader::UnshapedData" = type <{ %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", %"class.std::vector.8", i8, i8, [6 x i8] }>
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Glip7Modules9OBJLoader17completeModelDataERNS1_12UnshapedDataE(ptr noundef nonnull align 8 dereferenceable(410) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %6

6:                                                ; preds = %65, %1
  %7 = load i32, ptr %3, align 4, !tbaa !9
  %8 = zext i32 %7 to i64
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  %10 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %9, i32 0, i32 8
  %11 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #2
  %12 = icmp ult i64 %8, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  br label %68

14:                                               ; preds = %6
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %15, i32 0, i32 17
  %17 = load i8, ptr %16, align 8, !tbaa !11, !range !22, !noundef !23
  %18 = trunc i8 %17 to i1
  br i1 %18, label %19, label %39

19:                                               ; preds = %14
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %20, i32 0, i32 9
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #2
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %39

27:                                               ; preds = %19
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %28, i32 0, i32 8
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #2
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %34, i32 0, i32 9
  %36 = load i32, ptr %3, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %35, i64 noundef %37) #2
  store i32 %33, ptr %38, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %27, %19, %14
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %40, i32 0, i32 17
  %42 = load i8, ptr %41, align 8, !tbaa !11, !range !22, !noundef !23
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %64

44:                                               ; preds = %39
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %45, i32 0, i32 10
  %47 = load i32, ptr %3, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #2
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %64

52:                                               ; preds = %44
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %53, i32 0, i32 8
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #2
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %59, i32 0, i32 10
  %61 = load i32, ptr %3, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %60, i64 noundef %62) #2
  store i32 %58, ptr %63, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %52, %44, %39
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %3, align 4, !tbaa !9
  %67 = add i32 %66, 1
  store i32 %67, ptr %3, align 4, !tbaa !9
  br label %6, !llvm.loop !24

68:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %128, %68
  %70 = load i32, ptr %4, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %72, i32 0, i32 11
  %74 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #2
  %75 = icmp ult i64 %71, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  br label %131

77:                                               ; preds = %69
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %78, i32 0, i32 17
  %80 = load i8, ptr %79, align 8, !tbaa !11, !range !22, !noundef !23
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %102

82:                                               ; preds = %77
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %83, i32 0, i32 12
  %85 = load i32, ptr %4, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #2
  %88 = load i32, ptr %87, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %102

90:                                               ; preds = %82
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %91, i32 0, i32 11
  %93 = load i32, ptr %4, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #2
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %97, i32 0, i32 12
  %99 = load i32, ptr %4, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %100) #2
  store i32 %96, ptr %101, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %90, %82, %77
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %103, i32 0, i32 17
  %105 = load i8, ptr %104, align 8, !tbaa !11, !range !22, !noundef !23
  %106 = trunc i8 %105 to i1
  br i1 %106, label %107, label %127

107:                                              ; preds = %102
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %108, i32 0, i32 13
  %110 = load i32, ptr %4, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #2
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp eq i32 %113, 0
  br i1 %114, label %115, label %127

115:                                              ; preds = %107
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %116, i32 0, i32 11
  %118 = load i32, ptr %4, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #2
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %122, i32 0, i32 13
  %124 = load i32, ptr %4, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %123, i64 noundef %125) #2
  store i32 %121, ptr %126, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %115, %107, %102
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %4, align 4, !tbaa !9
  %130 = add i32 %129, 1
  store i32 %130, ptr %4, align 4, !tbaa !9
  br label %69, !llvm.loop !26

131:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %191, %131
  %133 = load i32, ptr %5, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %135, i32 0, i32 14
  %137 = call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #2
  %138 = icmp ult i64 %134, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  br label %194

140:                                              ; preds = %132
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %141, i32 0, i32 17
  %143 = load i8, ptr %142, align 8, !tbaa !11, !range !22, !noundef !23
  %144 = trunc i8 %143 to i1
  br i1 %144, label %145, label %165

145:                                              ; preds = %140
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %146, i32 0, i32 15
  %148 = load i32, ptr %5, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #2
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %165

153:                                              ; preds = %145
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %154, i32 0, i32 14
  %156 = load i32, ptr %5, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #2
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = load ptr, ptr %2, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %160, i32 0, i32 15
  %162 = load i32, ptr %5, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %161, i64 noundef %163) #2
  store i32 %159, ptr %164, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %153, %145, %140
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %166, i32 0, i32 17
  %168 = load i8, ptr %167, align 8, !tbaa !11, !range !22, !noundef !23
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %190

170:                                              ; preds = %165
  %171 = load ptr, ptr %2, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %171, i32 0, i32 16
  %173 = load i32, ptr %5, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %172, i64 noundef %174) #2
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %190

178:                                              ; preds = %170
  %179 = load ptr, ptr %2, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %179, i32 0, i32 14
  %181 = load i32, ptr %5, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #2
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.Glip::Modules::OBJLoader::UnshapedData", ptr %185, i32 0, i32 16
  %187 = load i32, ptr %5, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %186, i64 noundef %188) #2
  store i32 %184, ptr %189, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %178, %170, %165
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %5, align 4, !tbaa !9
  %193 = add i32 %192, 1
  store i32 %193, ptr %5, align 4, !tbaa !9
  br label %132, !llvm.loop !27

194:                                              ; preds = %139
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !21, i64 408}
!12 = !{!"_ZTSN4Glip7Modules9OBJLoader12UnshapedDataE", !13, i64 0, !13, i64 24, !13, i64 48, !13, i64 72, !13, i64 96, !13, i64 120, !13, i64 144, !13, i64 168, !17, i64 192, !17, i64 216, !17, i64 240, !17, i64 264, !17, i64 288, !17, i64 312, !17, i64 336, !17, i64 360, !17, i64 384, !21, i64 408, !21, i64 409}
!13 = !{!"_ZTSSt6vectorIfSaIfEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = distinct !{!27, !25}


; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Glip7Modules9OBJLoader17completeModelDataERNS1_12UnshapedDataE(ptr noundef nonnull align 8 dereferenceable(410) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 192
  %3 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %.preheader55, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 408
  %5 = getelementptr inbounds i8, ptr %0, i64 216
  %6 = getelementptr inbounds i8, ptr %0, i64 240
  br label %12

.preheader55:                                     ; preds = %35, %1
  %7 = getelementptr inbounds i8, ptr %0, i64 264
  %8 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #1
  %.not61 = icmp eq i64 %8, 0
  br i1 %.not61, label %.preheader, label %.lr.ph58

.lr.ph58:                                         ; preds = %.preheader55
  %9 = getelementptr inbounds i8, ptr %0, i64 408
  %10 = getelementptr inbounds i8, ptr %0, i64 288
  %11 = getelementptr inbounds i8, ptr %0, i64 312
  br label %45

12:                                               ; preds = %.lr.ph, %35
  %13 = phi i64 [ 0, %.lr.ph ], [ %37, %35 ]
  %.05156 = phi i32 [ 0, %.lr.ph ], [ %36, %35 ]
  %14 = load i8, ptr %4, align 8, !tbaa !5, !range !19, !noundef !20
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %24

16:                                               ; preds = %12
  %17 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %13) #1
  %18 = load i32, ptr %17, align 4, !tbaa !21
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %24

20:                                               ; preds = %16
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %13) #1
  %22 = load i32, ptr %21, align 4, !tbaa !21
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %13) #1
  store i32 %22, ptr %23, align 4, !tbaa !21
  br label %24

24:                                               ; preds = %20, %16, %12
  %25 = load i8, ptr %4, align 8, !tbaa !5, !range !19, !noundef !20
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %27, label %35

27:                                               ; preds = %24
  %28 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13) #1
  %29 = load i32, ptr %28, align 4, !tbaa !21
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %27
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %13) #1
  %33 = load i32, ptr %32, align 4, !tbaa !21
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13) #1
  store i32 %33, ptr %34, align 4, !tbaa !21
  br label %35

35:                                               ; preds = %24, %27, %31
  %36 = add i32 %.05156, 1
  %37 = zext i32 %36 to i64
  %38 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #1
  %39 = icmp ugt i64 %38, %37
  br i1 %39, label %12, label %.preheader55, !llvm.loop !23

.preheader:                                       ; preds = %68, %.preheader55
  %40 = getelementptr inbounds i8, ptr %0, i64 336
  %41 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #1
  %.not62 = icmp eq i64 %41, 0
  br i1 %.not62, label %._crit_edge, label %.lr.ph60

.lr.ph60:                                         ; preds = %.preheader
  %42 = getelementptr inbounds i8, ptr %0, i64 408
  %43 = getelementptr inbounds i8, ptr %0, i64 360
  %44 = getelementptr inbounds i8, ptr %0, i64 384
  br label %73

45:                                               ; preds = %.lr.ph58, %68
  %46 = phi i64 [ 0, %.lr.ph58 ], [ %70, %68 ]
  %.05057 = phi i32 [ 0, %.lr.ph58 ], [ %69, %68 ]
  %47 = load i8, ptr %9, align 8, !tbaa !5, !range !19, !noundef !20
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %57

49:                                               ; preds = %45
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %46) #1
  %51 = load i32, ptr %50, align 4, !tbaa !21
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %57

53:                                               ; preds = %49
  %54 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %46) #1
  %55 = load i32, ptr %54, align 4, !tbaa !21
  %56 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %46) #1
  store i32 %55, ptr %56, align 4, !tbaa !21
  br label %57

57:                                               ; preds = %53, %49, %45
  %58 = load i8, ptr %9, align 8, !tbaa !5, !range !19, !noundef !20
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %68

60:                                               ; preds = %57
  %61 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %46) #1
  %62 = load i32, ptr %61, align 4, !tbaa !21
  %63 = icmp eq i32 %62, 0
  br i1 %63, label %64, label %68

64:                                               ; preds = %60
  %65 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %46) #1
  %66 = load i32, ptr %65, align 4, !tbaa !21
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %46) #1
  store i32 %66, ptr %67, align 4, !tbaa !21
  br label %68

68:                                               ; preds = %57, %60, %64
  %69 = add i32 %.05057, 1
  %70 = zext i32 %69 to i64
  %71 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #1
  %72 = icmp ugt i64 %71, %70
  br i1 %72, label %45, label %.preheader, !llvm.loop !25

._crit_edge:                                      ; preds = %96, %.preheader
  ret void

73:                                               ; preds = %.lr.ph60, %96
  %74 = phi i64 [ 0, %.lr.ph60 ], [ %98, %96 ]
  %.059 = phi i32 [ 0, %.lr.ph60 ], [ %97, %96 ]
  %75 = load i8, ptr %42, align 8, !tbaa !5, !range !19, !noundef !20
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %85

77:                                               ; preds = %73
  %78 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %74) #1
  %79 = load i32, ptr %78, align 4, !tbaa !21
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %77
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %74) #1
  %83 = load i32, ptr %82, align 4, !tbaa !21
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %74) #1
  store i32 %83, ptr %84, align 4, !tbaa !21
  br label %85

85:                                               ; preds = %81, %77, %73
  %86 = load i8, ptr %42, align 8, !tbaa !5, !range !19, !noundef !20
  %87 = trunc nuw i8 %86 to i1
  br i1 %87, label %88, label %96

88:                                               ; preds = %85
  %89 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %74) #1
  %90 = load i32, ptr %89, align 4, !tbaa !21
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %96

92:                                               ; preds = %88
  %93 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %74) #1
  %94 = load i32, ptr %93, align 4, !tbaa !21
  %95 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %74) #1
  store i32 %94, ptr %95, align 4, !tbaa !21
  br label %96

96:                                               ; preds = %85, %88, %92
  %97 = add i32 %.059, 1
  %98 = zext i32 %97 to i64
  %99 = tail call noundef i64 @_ZNKSt6vectorIjSaIjEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #1
  %100 = icmp ugt i64 %99, %98
  br i1 %100, label %73, label %._crit_edge, !llvm.loop !26
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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, !18, i64 408}
!6 = !{!"_ZTSN4Glip7Modules9OBJLoader12UnshapedDataE", !7, i64 0, !7, i64 24, !7, i64 48, !7, i64 72, !7, i64 96, !7, i64 120, !7, i64 144, !7, i64 168, !14, i64 192, !14, i64 216, !14, i64 240, !14, i64 264, !14, i64 288, !14, i64 312, !14, i64 336, !14, i64 360, !14, i64 384, !18, i64 408, !18, i64 409}
!7 = !{!"_ZTSSt6vectorIfSaIfEE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTSSt6vectorIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!18 = !{!"bool", !12, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !12, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


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