; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/AssetLib/FBX (FBXDocument)

; 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.std::vector.181" = type { %"struct.std::_Vector_base.182" }
%"struct.std::_Vector_base.182" = type { %"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.186" = type { %"struct.std::_Rb_tree_const_iterator.188", %"struct.std::_Rb_tree_const_iterator.188" }
%"struct.std::_Rb_tree_const_iterator.188" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.189" = type { ptr }
%"struct.std::_Mem_fn" = type { %"class.std::_Mem_fn_base" }
%"class.std::_Mem_fn_base" = type { { i64, i64 } }
%"struct.std::pair.163" = type { i64, ptr }

@.str.72 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [14 x i8], align 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX7Element8KeyTokenEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

declare i32 @__gxx_personality_v0(...)

; 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 ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNKSt8multimapImPKN6Assimp3FBX10ConnectionESt4lessImESaISt4pairIKmS4_EEE11equal_rangeERS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr, ptr) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPKN6Assimp3FBX10ConnectionESt6vectorIS6_SaIS6_EEEESt7_Mem_fnIMS4_KFbS6_EEEvT_SG_T0_(ptr, ptr, i64, i64) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZSt6mem_fnIKFbPKN6Assimp3FBX10ConnectionEES2_ESt7_Mem_fnIMT0_T_ES9_(i64, i64) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6Assimp3FBX10Connection7CompareEPKS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Assimp3FBX8Document23GetConnectionsSequencedEmbRKSt8multimapImPKNS0_10ConnectionESt4lessImESaISt4pairIKmS5_EEEPKPKcm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.181") align 8 %0, ptr noundef nonnull align 8 dereferenceable(336) %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef %5, i64 noundef %6) #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca [6 x i64], align 16
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i1, align 1
  %19 = alloca %"struct.std::pair.186", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::_Rb_tree_const_iterator.188", align 8
  %23 = alloca %"struct.std::_Rb_tree_const_iterator.188", align 8
  %24 = alloca %"struct.std::_Rb_tree_const_iterator.188", align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.189", align 8
  %31 = alloca %"struct.std::_Mem_fn", align 8
  %32 = alloca { i64, i64 }, align 8
  store ptr %0, ptr %8, align 8
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  %33 = zext i1 %3 to i8
  store i8 %33, ptr %11, align 1, !tbaa !11
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i64 %6, ptr %14, align 8, !tbaa !9
  %34 = load ptr, ptr %9, align 8
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %38, label %37

37:                                               ; preds = %7
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.72, ptr noundef @.str.73, i32 noundef 561)
  br label %38

38:                                               ; preds = %37, %7
  %39 = phi i1 [ true, %7 ], [ false, %37 ]
  %40 = load i64, ptr %14, align 8, !tbaa !9
  %41 = icmp ne i64 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.74, ptr noundef @.str.73, i32 noundef 562)
  br label %43

43:                                               ; preds = %42, %38
  %44 = phi i1 [ true, %38 ], [ false, %42 ]
  %45 = load i64, ptr %14, align 8, !tbaa !9
  %46 = icmp ule i64 %45, 6
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.75, ptr noundef @.str.73, i32 noundef 563)
  br label %48

48:                                               ; preds = %47, %43
  %49 = phi i1 [ true, %43 ], [ false, %47 ]
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #9
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %50 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %50, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %64, %48
  %52 = load i64, ptr %17, align 8, !tbaa !9
  %53 = load i64, ptr %16, align 8, !tbaa !9
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %67

56:                                               ; preds = %51
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = load i64, ptr %17, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %57, i64 %58
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = call i64 @strlen(ptr noundef %60) #10
  %62 = load i64, ptr %17, align 8, !tbaa !9
  %63 = getelementptr inbounds [6 x i64], ptr %15, i64 0, i64 %62
  store i64 %61, ptr %63, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %56
  %65 = load i64, ptr %17, align 8, !tbaa !9
  %66 = add i64 %65, 1
  store i64 %66, ptr %17, align 8, !tbaa !9
  br label %51, !llvm.loop !13

67:                                               ; preds = %55
  store i1 false, ptr %18, align 1
  call void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #9
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = invoke { ptr, ptr } @_ZNKSt8multimapImPKN6Assimp3FBX10ConnectionESt4lessImESaISt4pairIKmS4_EEE11equal_rangeERS8_(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %70 unwind label %89

70:                                               ; preds = %67
  %71 = getelementptr inbounds { ptr, ptr }, ptr %19, i32 0, i32 0
  %72 = extractvalue { ptr, ptr } %69, 0
  store ptr %72, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, ptr }, ptr %19, i32 0, i32 1
  %74 = extractvalue { ptr, ptr } %69, 1
  store ptr %74, ptr %73, align 8
  %75 = getelementptr inbounds %"struct.std::pair.186", ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %75, i64 8, i1 false), !tbaa.struct !15
  %76 = getelementptr inbounds %"struct.std::pair.186", ptr %19, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %76, i64 8, i1 false), !tbaa.struct !15
  %77 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.188", ptr %22, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.188", ptr %23, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr %78, ptr %80)
          to label %82 unwind label %89

82:                                               ; preds = %70
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %81)
          to label %83 unwind label %89

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %84 = getelementptr inbounds %"struct.std::pair.186", ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %84, i64 8, i1 false), !tbaa.struct !15
  br label %85

85:                                               ; preds = %184, %83
  %86 = getelementptr inbounds %"struct.std::pair.186", ptr %19, i32 0, i32 1
  %87 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %86) #9
  br i1 %87, label %93, label %88

88:                                               ; preds = %85
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %188

89:                                               ; preds = %188, %82, %70, %67
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %20, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %21, align 4
  br label %214

93:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %94 = load i8, ptr %11, align 1, !tbaa !11, !range !16, !noundef !17
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %102

96:                                               ; preds = %93
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  %98 = getelementptr inbounds %"struct.std::pair.163", ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  %100 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection21LazyDestinationObjectEv(ptr noundef nonnull align 8 dereferenceable(64) %99)
          to label %101 unwind label %122

101:                                              ; preds = %96
  br label %108

102:                                              ; preds = %93
  %103 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  %104 = getelementptr inbounds %"struct.std::pair.163", ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection16LazySourceObjectEv(ptr noundef nonnull align 8 dereferenceable(64) %105)
          to label %107 unwind label %122

107:                                              ; preds = %102
  br label %108

108:                                              ; preds = %107, %101
  %109 = phi ptr [ %100, %101 ], [ %106, %107 ]
  %110 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK6Assimp3FBX10LazyObject10GetElementEv(ptr noundef nonnull align 8 dereferenceable(36) %109)
          to label %111 unwind label %122

111:                                              ; preds = %108
  %112 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX7Element8KeyTokenEv(ptr noundef nonnull align 8 dereferenceable(40) %110)
          to label %113 unwind label %122

113:                                              ; preds = %111
  store ptr %112, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %114 = load ptr, ptr %26, align 8, !tbaa !5
  %115 = invoke noundef ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36) %114)
          to label %116 unwind label %126

116:                                              ; preds = %113
  store ptr %115, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %169, %116
  %118 = load i64, ptr %28, align 8, !tbaa !9
  %119 = load i64, ptr %16, align 8, !tbaa !9
  %120 = icmp ult i64 %118, %119
  br i1 %120, label %130, label %121

121:                                              ; preds = %117
  store i32 8, ptr %25, align 4
  br label %172

122:                                              ; preds = %111, %108, %102, %96
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %20, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %21, align 4
  br label %187

126:                                              ; preds = %177, %113
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %20, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %21, align 4
  br label %186

130:                                              ; preds = %117
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = load i64, ptr %28, align 8, !tbaa !9
  %133 = getelementptr inbounds ptr, ptr %131, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = icmp ne ptr %134, null
  br i1 %135, label %138, label %136

136:                                              ; preds = %130
  invoke void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.76, ptr noundef @.str.73, i32 noundef 586)
          to label %137 unwind label %164

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137, %130
  %139 = phi i1 [ true, %130 ], [ false, %137 ]
  %140 = load ptr, ptr %26, align 8, !tbaa !5
  %141 = invoke noundef ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36) %140)
          to label %142 unwind label %164

142:                                              ; preds = %138
  %143 = load ptr, ptr %26, align 8, !tbaa !5
  %144 = invoke noundef ptr @_ZNK6Assimp3FBX5Token3endEv(ptr noundef nonnull align 8 dereferenceable(36) %143)
          to label %145 unwind label %164

145:                                              ; preds = %142
  %146 = invoke noundef i64 @_ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %141, ptr noundef %144)
          to label %147 unwind label %164

147:                                              ; preds = %145
  %148 = load i64, ptr %28, align 8, !tbaa !9
  %149 = getelementptr inbounds [6 x i64], ptr %15, i64 0, i64 %148
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = icmp eq i64 %146, %150
  br i1 %151, label %152, label %168

152:                                              ; preds = %147
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load i64, ptr %28, align 8, !tbaa !9
  %155 = getelementptr inbounds ptr, ptr %153, i64 %154
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  %157 = load ptr, ptr %27, align 8, !tbaa !5
  %158 = load i64, ptr %28, align 8, !tbaa !9
  %159 = getelementptr inbounds [6 x i64], ptr %15, i64 0, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = call i32 @strncmp(ptr noundef %156, ptr noundef %157, i64 noundef %160) #10
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %168, label %163

163:                                              ; preds = %152
  store ptr null, ptr %27, align 8, !tbaa !5
  store i32 8, ptr %25, align 4
  br label %172

164:                                              ; preds = %145, %142, %138, %136
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %20, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %186

168:                                              ; preds = %152, %147
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %28, align 8, !tbaa !9
  %171 = add i64 %170, 1
  store i64 %171, ptr %28, align 8, !tbaa !9
  br label %117, !llvm.loop !20

172:                                              ; preds = %163, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %27, align 8, !tbaa !5
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %177

176:                                              ; preds = %173
  store i32 7, ptr %25, align 4
  br label %181

177:                                              ; preds = %173
  %178 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  %179 = getelementptr inbounds %"struct.std::pair.163", ptr %178, i32 0, i32 1
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %179)
          to label %180 unwind label %126

180:                                              ; preds = %177
  store i32 0, ptr %25, align 4
  br label %181

181:                                              ; preds = %180, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  %182 = load i32, ptr %25, align 4
  switch i32 %182, label %222 [
    i32 0, label %183
    i32 7, label %184
  ]

183:                                              ; preds = %181
  br label %184

184:                                              ; preds = %183, %181
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #9
  br label %85, !llvm.loop !21

186:                                              ; preds = %164, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %187

187:                                              ; preds = %186, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  br label %214

188:                                              ; preds = %88
  %189 = call ptr @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %29, i32 0, i32 0
  store ptr %189, ptr %190, align 8
  %191 = call ptr @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  %192 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %30, i32 0, i32 0
  store ptr %191, ptr %192, align 8
  store { i64, i64 } { i64 ptrtoint (ptr @_ZNK6Assimp3FBX10Connection7CompareEPKS1_ to i64), i64 0 }, ptr %32, align 8, !tbaa !22
  %193 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 0
  %194 = load i64, ptr %193, align 8
  %195 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 1
  %196 = load i64, ptr %195, align 8
  %197 = call { i64, i64 } @_ZSt6mem_fnIKFbPKN6Assimp3FBX10ConnectionEES2_ESt7_Mem_fnIMT0_T_ES9_(i64 %194, i64 %196) #9
  %198 = getelementptr inbounds %"struct.std::_Mem_fn", ptr %31, i32 0, i32 0
  %199 = getelementptr inbounds %"class.std::_Mem_fn_base", ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds { i64, i64 }, ptr %199, i32 0, i32 0
  %201 = extractvalue { i64, i64 } %197, 0
  store i64 %201, ptr %200, align 8
  %202 = getelementptr inbounds { i64, i64 }, ptr %199, i32 0, i32 1
  %203 = extractvalue { i64, i64 } %197, 1
  store i64 %203, ptr %202, align 8
  %204 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %29, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8
  %206 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.189", ptr %30, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8
  %208 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %209 = load i64, ptr %208, align 8
  %210 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %211 = load i64, ptr %210, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPKN6Assimp3FBX10ConnectionESt6vectorIS6_SaIS6_EEEESt7_Mem_fnIMS4_KFbS6_EEEvT_SG_T0_(ptr %205, ptr %207, i64 %209, i64 %211)
          to label %212 unwind label %89

212:                                              ; preds = %188
  store i1 true, ptr %18, align 1
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  %213 = load i1, ptr %18, align 1
  br i1 %213, label %216, label %215

214:                                              ; preds = %187, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #9
  call void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #9
  br label %217

215:                                              ; preds = %212
  call void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #9
  br label %216

216:                                              ; preds = %215, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #9
  ret void

217:                                              ; preds = %214
  %218 = load ptr, ptr %20, align 8
  %219 = load i32, ptr %21, align 4
  %220 = insertvalue { ptr, i32 } poison, ptr %218, 0
  %221 = insertvalue { ptr, i32 } %220, i32 %219, 1
  resume { ptr, i32 } %221

222:                                              ; preds = %181
  unreachable
}

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection21LazyDestinationObjectEv(ptr noundef nonnull align 8 dereferenceable(64)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection16LazySourceObjectEv(ptr noundef nonnull align 8 dereferenceable(64)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef, ptr noundef) #5

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 willreturn memory(read) "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 nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { "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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 8, !5}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !6, i64 8}
!19 = !{!"_ZTSSt4pairIKmPKN6Assimp3FBX10ConnectionEE", !10, i64 0, !6, i64 8}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = !{!7, !7, i64 0}


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

%"class.std::vector.181" = type { %"struct.std::_Vector_base.182" }
%"struct.std::_Vector_base.182" = type { %"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Assimp::FBX::Connection *, std::allocator<const Assimp::FBX::Connection *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.186" = type { %"struct.std::_Rb_tree_const_iterator.188", %"struct.std::_Rb_tree_const_iterator.188" }
%"struct.std::_Rb_tree_const_iterator.188" = type { ptr }

@.str.72 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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 ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZNKSt8multimapImPKN6Assimp3FBX10ConnectionESt4lessImESaISt4pairIKmS4_EEE11equal_rangeERS8_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr, ptr) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPKN6Assimp3FBX10ConnectionESt6vectorIS6_SaIS6_EEEESt7_Mem_fnIMS4_KFbS6_EEEvT_SG_T0_(ptr, ptr, i64, i64) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local { i64, i64 } @_ZSt6mem_fnIKFbPKN6Assimp3FBX10ConnectionEES2_ESt7_Mem_fnIMT0_T_ES9_(i64, i64) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6Assimp3FBX10Connection7CompareEPKS1_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Assimp3FBX8Document23GetConnectionsSequencedEmbRKSt8multimapImPKNS0_10ConnectionESt4lessImESaISt4pairIKmS5_EEEPKPKcm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.181") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(336) %1, i64 noundef %2, i1 noundef zeroext %3, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef readonly %5, i64 noundef %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i64, align 8
  %9 = alloca [6 x i64], align 16
  %10 = alloca %"struct.std::pair.186", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.188", align 8
  store i64 %2, ptr %8, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %12, label %13

12:                                               ; preds = %7
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.73, i32 noundef 561)
  br label %13

13:                                               ; preds = %12, %7
  %.not43 = icmp eq i64 %6, 0
  br i1 %.not43, label %17, label %14

14:                                               ; preds = %13
  %15 = icmp ult i64 %6, 7
  br i1 %15, label %.lr.ph.preheader, label %16

16:                                               ; preds = %14
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.73, i32 noundef 563)
  br label %.lr.ph.preheader

17:                                               ; preds = %13
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.73, i32 noundef 562)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %9, i8 0, i64 48, i1 false)
  br label %._crit_edge

.lr.ph.preheader:                                 ; preds = %16, %14
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %9, i8 0, i64 48, i1 false)
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %17
  tail call void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %18 = invoke { ptr, ptr } @_ZNKSt8multimapImPKN6Assimp3FBX10ConnectionESt4lessImESaISt4pairIKmS4_EEE11equal_rangeERS8_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %24 unwind label %89

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.053 = phi i64 [ %23, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %19 = getelementptr inbounds ptr, ptr %5, i64 %.053
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %20) #9
  %22 = getelementptr inbounds [6 x i64], ptr %9, i64 0, i64 %.053
  store i64 %21, ptr %22, align 8, !tbaa !5
  %23 = add nuw i64 %.053, 1
  %exitcond.not = icmp eq i64 %23, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

24:                                               ; preds = %._crit_edge
  %25 = extractvalue { ptr, ptr } %18, 0
  store ptr %25, ptr %10, align 8
  %26 = getelementptr inbounds i8, ptr %10, i64 8
  %27 = extractvalue { ptr, ptr } %18, 1
  store ptr %27, ptr %26, align 8
  %28 = invoke noundef i64 @_ZSt8distanceISt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEENSt15iterator_traitsIT_E15difference_typeESB_SB_(ptr %25, ptr %27)
          to label %29 unwind label %89

29:                                               ; preds = %24
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %28)
          to label %30 unwind label %89

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %31 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %31, ptr %11, align 8, !tbaa !9
  %32 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br i1 %32, label %.lr.ph59, label %._crit_edge60

.lr.ph59:                                         ; preds = %30
  br i1 %.not43, label %.lr.ph59.split, label %.lr.ph59.split.us

.lr.ph59.split.us:                                ; preds = %.lr.ph59, %63
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  br i1 %3, label %38, label %36

36:                                               ; preds = %.lr.ph59.split.us
  %37 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection16LazySourceObjectEv(ptr noundef nonnull align 8 dereferenceable(64) %35)
          to label %.lr.ph56.us unwind label %.split.us

38:                                               ; preds = %.lr.ph59.split.us
  %39 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection21LazyDestinationObjectEv(ptr noundef nonnull align 8 dereferenceable(64) %35)
          to label %.lr.ph56.us unwind label %.split.us

.lr.ph56.us:                                      ; preds = %38, %36
  %40 = phi ptr [ %39, %38 ], [ %37, %36 ]
  %41 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK6Assimp3FBX10LazyObject10GetElementEv(ptr noundef nonnull align 8 dereferenceable(36) %40)
  %42 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX7Element8KeyTokenEv(ptr noundef nonnull align 8 dereferenceable(40) %41)
  %43 = call noundef ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36) %42)
  br label %44

44:                                               ; preds = %.lr.ph56.us, %59
  %.04054.us = phi i64 [ 0, %.lr.ph56.us ], [ %60, %59 ]
  %45 = getelementptr inbounds ptr, ptr %5, i64 %.04054.us
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %.not44.us = icmp eq ptr %46, null
  br i1 %.not44.us, label %47, label %48

47:                                               ; preds = %44
  invoke void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.73, i32 noundef 586)
          to label %48 unwind label %.split62.us

48:                                               ; preds = %47, %44
  %49 = call noundef ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36) %42)
  %50 = call noundef ptr @_ZNK6Assimp3FBX5Token3endEv(ptr noundef nonnull align 8 dereferenceable(36) %42)
  %51 = invoke noundef i64 @_ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef %49, ptr noundef %50)
          to label %52 unwind label %.split62.us

52:                                               ; preds = %48
  %53 = getelementptr inbounds [6 x i64], ptr %9, i64 0, i64 %.04054.us
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = icmp eq i64 %51, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %52
  %57 = load ptr, ptr %45, align 8, !tbaa !9
  %58 = call i32 @strncmp(ptr noundef %57, ptr noundef %43, i64 noundef %51) #9
  %.not45.us = icmp eq i32 %58, 0
  br i1 %.not45.us, label %.thread50.us, label %59

59:                                               ; preds = %56, %52
  %60 = add nuw i64 %.04054.us, 1
  %exitcond75.not = icmp eq i64 %60, %6
  br i1 %exitcond75.not, label %._crit_edge57.us, label %44, !llvm.loop !15

.thread50.us:                                     ; preds = %56, %._crit_edge57.us
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %62 = getelementptr inbounds i8, ptr %61, i64 8
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %62)
          to label %63 unwind label %.split65.us

63:                                               ; preds = %.thread50.us, %._crit_edge57.us
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %65 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br i1 %65, label %.lr.ph59.split.us, label %._crit_edge60, !llvm.loop !16

._crit_edge57.us:                                 ; preds = %59
  %.not46.us = icmp eq ptr %43, null
  br i1 %.not46.us, label %.thread50.us, label %63

.split.us:                                        ; preds = %38, %36
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split62.us:                                      ; preds = %48, %47
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split65.us:                                      ; preds = %.thread50.us
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.lr.ph59.split:                                   ; preds = %.lr.ph59
  br i1 %3, label %.lr.ph59.split.split.us, label %.lr.ph59.split.split

.lr.ph59.split.split.us:                          ; preds = %.lr.ph59.split, %79
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection21LazyDestinationObjectEv(ptr noundef nonnull align 8 dereferenceable(64) %71)
          to label %73 unwind label %.split.split.us

73:                                               ; preds = %.lr.ph59.split.split.us
  %74 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK6Assimp3FBX10LazyObject10GetElementEv(ptr noundef nonnull align 8 dereferenceable(36) %72)
  %75 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX7Element8KeyTokenEv(ptr noundef nonnull align 8 dereferenceable(40) %74)
  %76 = call noundef ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36) %75)
  %.not46.us67 = icmp eq ptr %76, null
  br i1 %.not46.us67, label %.thread50.us68, label %79

.thread50.us68:                                   ; preds = %73
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %78)
          to label %79 unwind label %.split65.split.us

79:                                               ; preds = %.thread50.us68, %73
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %81 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br i1 %81, label %.lr.ph59.split.split.us, label %._crit_edge60, !llvm.loop !16

.split.split.us:                                  ; preds = %.lr.ph59.split.split.us
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split65.split.us:                                ; preds = %.thread50.us68
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %.split

._crit_edge60:                                    ; preds = %63, %103, %79, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  %84 = call ptr @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %85 = call ptr @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  %86 = call { i64, i64 } @_ZSt6mem_fnIKFbPKN6Assimp3FBX10ConnectionEES2_ESt7_Mem_fnIMT0_T_ES9_(i64 ptrtoint (ptr @_ZNK6Assimp3FBX10Connection7CompareEPKS1_ to i64), i64 0) #8
  %87 = extractvalue { i64, i64 } %86, 0
  %88 = extractvalue { i64, i64 } %86, 1
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPKN6Assimp3FBX10ConnectionESt6vectorIS6_SaIS6_EEEESt7_Mem_fnIMS4_KFbS6_EEEvT_SG_T0_(ptr %84, ptr %85, i64 %87, i64 %88)
          to label %106 unwind label %89

89:                                               ; preds = %._crit_edge60, %29, %24, %._crit_edge
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %107

.lr.ph59.split.split:                             ; preds = %.lr.ph59.split, %103
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection16LazySourceObjectEv(ptr noundef nonnull align 8 dereferenceable(64) %93)
          to label %95 unwind label %.split.split

95:                                               ; preds = %.lr.ph59.split.split
  %96 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK6Assimp3FBX10LazyObject10GetElementEv(ptr noundef nonnull align 8 dereferenceable(36) %94)
  %97 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX7Element8KeyTokenEv(ptr noundef nonnull align 8 dereferenceable(40) %96)
  %98 = call noundef ptr @_ZNK6Assimp3FBX5Token5beginEv(ptr noundef nonnull align 8 dereferenceable(36) %97)
  %.not46 = icmp eq ptr %98, null
  br i1 %.not46, label %.thread50, label %103

.split.split:                                     ; preds = %.lr.ph59.split.split
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split65.split:                                   ; preds = %.thread50
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.thread50:                                        ; preds = %95
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %102)
          to label %103 unwind label %.split65.split

103:                                              ; preds = %.thread50, %95
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  %105 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKmPKN6Assimp3FBX10ConnectionEEESA_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br i1 %105, label %.lr.ph59.split.split, label %._crit_edge60, !llvm.loop !16

.split:                                           ; preds = %.split65.us, %.split65.split.us, %.split65.split, %.split.us, %.split.split.us, %.split.split, %.split62.us
  %.pn.pn = phi { ptr, i32 } [ %67, %.split62.us ], [ %66, %.split.us ], [ %99, %.split.split ], [ %82, %.split.split.us ], [ %68, %.split65.us ], [ %100, %.split65.split ], [ %83, %.split65.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  br label %107

106:                                              ; preds = %._crit_edge60
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  ret void

107:                                              ; preds = %.split, %89
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.split ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @_ZNSt6vectorIPKN6Assimp3FBX10ConnectionESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection21LazyDestinationObjectEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(36) ptr @_ZNK6Assimp3FBX10Connection16LazySourceObjectEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZSt8distanceIPKcENSt15iterator_traitsIT_E15difference_typeES3_S3_(ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { 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 #6 = { "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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSSt4pairIKmPKN6Assimp3FBX10ConnectionEE", !6, i64 0, !10, i64 8}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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