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

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.8 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.8 = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }
%"class.Assimp::FBX::Element" = type { ptr, %"class.std::vector", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<const Assimp::FBX::Token *, std::allocator<const Assimp::FBX::Token *>>::_Vector_impl" }
%"struct.std::_Vector_base<const Assimp::FBX::Token *, std::allocator<const Assimp::FBX::Token *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const Assimp::FBX::Token *, std::allocator<const Assimp::FBX::Token *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const Assimp::FBX::Token *, std::allocator<const Assimp::FBX::Token *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp3FBX7ElementC2ERKNS0_5TokenERNS0_6ParserE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(49) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.5", align 1
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::allocator.5", align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::allocator.5", align 1
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::allocator.5", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8
  %23 = getelementptr inbounds %"class.Assimp::FBX::Element", ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %24, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.Assimp::FBX::Element", ptr %22, i32 0, i32 1
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %26 = getelementptr inbounds %"class.Assimp::FBX::Element", ptr %22, i32 0, i32 2
  store ptr null, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN6Assimp3FBX6Parser12GetAllocatorEv(ptr noundef nonnull align 8 dereferenceable(49) %27)
          to label %29 unwind label %42

29:                                               ; preds = %3
  store ptr %28, ptr %8, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %199, %29
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = invoke noundef ptr @_ZN6Assimp3FBX6Parser18AdvanceToNextTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %31)
          to label %33 unwind label %42

33:                                               ; preds = %30
  store ptr %32, ptr %7, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %55, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %37 unwind label %46

37:                                               ; preds = %36
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = invoke noundef ptr @_ZNK6Assimp3FBX6Parser9LastTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %38)
          to label %40 unwind label %50

40:                                               ; preds = %37
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %39) #7
          to label %41 unwind label %50

41:                                               ; preds = %40
  unreachable

42:                                               ; preds = %194, %189, %184, %165, %163, %156, %154, %151, %146, %60, %55, %30, %3
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %9, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %10, align 4
  br label %205

46:                                               ; preds = %36
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  br label %54

50:                                               ; preds = %40, %37
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %9, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %54

54:                                               ; preds = %50, %46
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %205

55:                                               ; preds = %33
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %56)
          to label %58 unwind label %42

58:                                               ; preds = %55
  %59 = icmp eq i32 %57, 2
  br i1 %59, label %60, label %146

60:                                               ; preds = %58
  %61 = getelementptr inbounds %"class.Assimp::FBX::Element", ptr %22, i32 0, i32 1
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %62 unwind label %42

62:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %63, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = invoke noundef ptr @_ZN6Assimp3FBX6Parser18AdvanceToNextTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %64)
          to label %66 unwind label %75

66:                                               ; preds = %62
  store ptr %65, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %88, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %70 unwind label %79

70:                                               ; preds = %69
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = invoke noundef ptr @_ZNK6Assimp3FBX6Parser9LastTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %71)
          to label %73 unwind label %83

73:                                               ; preds = %70
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef %72) #7
          to label %74 unwind label %83

74:                                               ; preds = %73
  unreachable

75:                                               ; preds = %62
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %9, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %10, align 4
  br label %145

79:                                               ; preds = %69
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %9, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %10, align 4
  br label %87

83:                                               ; preds = %73, %70
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %9, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  br label %87

87:                                               ; preds = %83, %79
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #6
  br label %145

88:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %89)
          to label %91 unwind label %111

91:                                               ; preds = %88
  store i32 %90, ptr %16, align 4, !tbaa !15
  %92 = load i32, ptr %16, align 4, !tbaa !15
  %93 = icmp eq i32 %92, 2
  br i1 %93, label %94, label %115

94:                                               ; preds = %91
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %95)
          to label %97 unwind label %111

97:                                               ; preds = %94
  %98 = icmp eq i32 %96, 2
  br i1 %98, label %99, label %115

99:                                               ; preds = %97
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4LineEv(ptr noundef nonnull align 8 dereferenceable(36) %100)
          to label %102 unwind label %111

102:                                              ; preds = %99
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4LineEv(ptr noundef nonnull align 8 dereferenceable(36) %103)
          to label %105 unwind label %111

105:                                              ; preds = %102
  %106 = add i32 %104, 1
  %107 = icmp eq i32 %101, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %105
  %109 = getelementptr inbounds %"class.Assimp::FBX::Element", ptr %22, i32 0, i32 1
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %110 unwind label %111

110:                                              ; preds = %108
  store i32 3, ptr %17, align 4
  br label %141

111:                                              ; preds = %108, %102, %99, %94, %88
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %9, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %10, align 4
  br label %144

115:                                              ; preds = %105, %97, %91
  %116 = load i32, ptr %16, align 4, !tbaa !15
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %140

118:                                              ; preds = %115
  %119 = load i32, ptr %16, align 4, !tbaa !15
  %120 = icmp ne i32 %119, 1
  br i1 %120, label %121, label %140

121:                                              ; preds = %118
  %122 = load i32, ptr %16, align 4, !tbaa !15
  %123 = icmp ne i32 %122, 4
  br i1 %123, label %124, label %140

124:                                              ; preds = %121
  %125 = load i32, ptr %16, align 4, !tbaa !15
  %126 = icmp ne i32 %125, 5
  br i1 %126, label %127, label %140

127:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %128 unwind label %131

128:                                              ; preds = %127
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef %129) #7
          to label %130 unwind label %135

130:                                              ; preds = %128
  unreachable

131:                                              ; preds = %127
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  br label %139

135:                                              ; preds = %128
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  br label %139

139:                                              ; preds = %135, %131
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  br label %144

140:                                              ; preds = %124, %121, %118, %115
  store i32 0, ptr %17, align 4
  br label %141

141:                                              ; preds = %140, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %142 = load i32, ptr %17, align 4
  switch i32 %142, label %211 [
    i32 0, label %143
    i32 3, label %189
  ]

143:                                              ; preds = %141
  br label %146

144:                                              ; preds = %139, %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %145

145:                                              ; preds = %144, %87, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %205

146:                                              ; preds = %143, %58
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %147)
          to label %149 unwind label %42

149:                                              ; preds = %146
  %150 = icmp eq i32 %148, 0
  br i1 %150, label %151, label %188

151:                                              ; preds = %149
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = invoke noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %152, i64 noundef 48)
          to label %154 unwind label %42

154:                                              ; preds = %151
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN6Assimp3FBX5ScopeC1ERNS0_6ParserEb(ptr noundef nonnull align 8 dereferenceable(48) %153, ptr noundef nonnull align 8 dereferenceable(49) %155, i1 noundef zeroext false)
          to label %156 unwind label %42

156:                                              ; preds = %154
  %157 = getelementptr inbounds %"class.Assimp::FBX::Element", ptr %22, i32 0, i32 2
  store ptr %153, ptr %157, align 8, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = invoke noundef ptr @_ZNK6Assimp3FBX6Parser12CurrentTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %158)
          to label %160 unwind label %42

160:                                              ; preds = %156
  store ptr %159, ptr %7, align 8, !tbaa !5
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = icmp ne ptr %161, null
  br i1 %162, label %165, label %163

163:                                              ; preds = %160
  invoke void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 151)
          to label %164 unwind label %42

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %160
  %166 = phi i1 [ true, %160 ], [ false, %164 ]
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %167)
          to label %169 unwind label %42

169:                                              ; preds = %165
  %170 = icmp ne i32 %168, 1
  br i1 %170, label %171, label %184

171:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %172 unwind label %175

172:                                              ; preds = %171
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef %173) #7
          to label %174 unwind label %179

174:                                              ; preds = %172
  unreachable

175:                                              ; preds = %171
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %9, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %10, align 4
  br label %183

179:                                              ; preds = %172
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %9, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %10, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #6
  br label %183

183:                                              ; preds = %179, %175
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  br label %205

184:                                              ; preds = %169
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = invoke noundef ptr @_ZN6Assimp3FBX6Parser18AdvanceToNextTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %185)
          to label %187 unwind label %42

187:                                              ; preds = %184
  store i32 1, ptr %17, align 4
  br label %202

188:                                              ; preds = %149
  br label %189

189:                                              ; preds = %188, %141
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %190)
          to label %192 unwind label %42

192:                                              ; preds = %189
  %193 = icmp ne i32 %191, 5
  br i1 %193, label %194, label %199

194:                                              ; preds = %192
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %195)
          to label %197 unwind label %42

197:                                              ; preds = %194
  %198 = icmp ne i32 %196, 1
  br label %199

199:                                              ; preds = %197, %192
  %200 = phi i1 [ false, %192 ], [ %198, %197 ]
  br i1 %200, label %30, label %201, !llvm.loop !17

201:                                              ; preds = %199
  store i32 0, ptr %17, align 4
  br label %202

202:                                              ; preds = %201, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  %203 = load i32, ptr %17, align 4
  switch i32 %203, label %211 [
    i32 0, label %204
    i32 1, label %204
  ]

204:                                              ; preds = %202, %202
  ret void

205:                                              ; preds = %183, %145, %54, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  br label %206

206:                                              ; preds = %205
  %207 = load ptr, ptr %9, align 8
  %208 = load i32, ptr %10, align 4
  %209 = insertvalue { ptr, i32 } poison, ptr %207, 0
  %210 = insertvalue { ptr, i32 } %209, i32 %208, 1
  resume { ptr, i32 } %210

211:                                              ; preds = %202, %141
  unreachable
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress noreturn uwtable
declare hidden void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

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

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

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

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

declare void @_ZN6Assimp3FBX5ScopeC1ERNS0_6ParserEb(ptr, ptr, i1)

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

!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, !6, i64 32}
!10 = !{!"_ZTSN6Assimp3FBX7ElementE", !6, i64 0, !11, i64 8, !6, i64 32}
!11 = !{!"_ZTSSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPKN6Assimp3FBX5TokenESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPKN6Assimp3FBX5TokenESaIS4_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPKN6Assimp3FBX5TokenESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTSN6Assimp3FBX9TokenTypeE", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.8 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.8 = type { i64, [8 x i8] }
%"class.std::allocator.5" = type { i8 }

@.str = external hidden unnamed_addr constant [49 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp3FBX7ElementC2ERKNS0_5TokenERNS0_6ParserE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(49) %2) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.5", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.5", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator.5", align 1
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.5", align 1
  store ptr %1, ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN6Assimp3FBX6Parser12GetAllocatorEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  br label %16

16:                                               ; preds = %96, %3
  %17 = call noundef ptr @_ZN6Assimp3FBX6Parser18AdvanceToNextTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  store ptr %17, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %18, label %27

18:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %19 unwind label %22

19:                                               ; preds = %18
  %20 = call noundef ptr @_ZNK6Assimp3FBX6Parser9LastTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %20) #7
          to label %21 unwind label %24

21:                                               ; preds = %19
  unreachable

.loopexit:                                        ; preds = %30
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %99

.loopexit.split-lp:                               ; preds = %73, %75, %78
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %99

22:                                               ; preds = %18
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %26

24:                                               ; preds = %19
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %26

26:                                               ; preds = %24, %22
  %.pn = phi { ptr, i32 } [ %25, %24 ], [ %23, %22 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %99

27:                                               ; preds = %16
  %28 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %17)
  %29 = icmp eq i32 %28, 2
  br i1 %29, label %30, label %.thread52

30:                                               ; preds = %27
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %31 unwind label %.loopexit

31:                                               ; preds = %30
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef ptr @_ZN6Assimp3FBX6Parser18AdvanceToNextTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  store ptr %33, ptr %4, align 8, !tbaa !5
  %.not36 = icmp eq ptr %33, null
  br i1 %.not36, label %34, label %43

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.1, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %35 unwind label %38

35:                                               ; preds = %34
  %36 = call noundef ptr @_ZNK6Assimp3FBX6Parser9LastTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef %36) #7
          to label %37 unwind label %40

37:                                               ; preds = %35
  unreachable

38:                                               ; preds = %34
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %35
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %42

42:                                               ; preds = %40, %38
  %.pn37 = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %99

43:                                               ; preds = %31
  %44 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %33)
  %45 = icmp eq i32 %44, 2
  br i1 %45, label %46, label %60

46:                                               ; preds = %43
  %47 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %32)
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %49, label %.thread

49:                                               ; preds = %46
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4LineEv(ptr noundef nonnull align 8 dereferenceable(36) %50)
          to label %52 unwind label %58

52:                                               ; preds = %49
  %53 = invoke noundef i32 @_ZNK6Assimp3FBX5Token4LineEv(ptr noundef nonnull align 8 dereferenceable(36) %32)
          to label %54 unwind label %58

54:                                               ; preds = %52
  %55 = add i32 %53, 1
  %56 = icmp eq i32 %51, %55
  br i1 %56, label %57, label %.thread

57:                                               ; preds = %54
  invoke void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %93 unwind label %58

58:                                               ; preds = %57, %52, %49
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %99

60:                                               ; preds = %43
  %61 = and i32 %44, -6
  %or.cond5.not = icmp eq i32 %61, 0
  br i1 %or.cond5.not, label %.thread52, label %.thread

.thread:                                          ; preds = %46, %54, %60
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull @.str.2, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %62 unwind label %65

62:                                               ; preds = %.thread
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef %63) #7
          to label %64 unwind label %67

64:                                               ; preds = %62
  unreachable

65:                                               ; preds = %.thread
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %69

67:                                               ; preds = %62
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #6
  br label %69

69:                                               ; preds = %67, %65
  %.pn39 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #6
  br label %99

.thread52:                                        ; preds = %60, %27
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %70)
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %93

73:                                               ; preds = %.thread52
  %74 = invoke noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %15, i64 noundef 48)
          to label %75 unwind label %.loopexit.split-lp

75:                                               ; preds = %73
  invoke void @_ZN6Assimp3FBX5ScopeC1ERNS0_6ParserEb(ptr noundef nonnull align 8 dereferenceable(48) %74, ptr noundef nonnull align 8 dereferenceable(49) %2, i1 noundef zeroext false)
          to label %76 unwind label %.loopexit.split-lp

76:                                               ; preds = %75
  store ptr %74, ptr %14, align 8, !tbaa !9
  %77 = call noundef ptr @_ZNK6Assimp3FBX6Parser12CurrentTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  store ptr %77, ptr %4, align 8, !tbaa !5
  %.not46 = icmp eq ptr %77, null
  br i1 %.not46, label %78, label %79

78:                                               ; preds = %76
  invoke void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 151)
          to label %._crit_edge unwind label %.loopexit.split-lp

._crit_edge:                                      ; preds = %78
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %._crit_edge, %76
  %80 = phi ptr [ %.pre, %._crit_edge ], [ %77, %76 ]
  %81 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %80)
  %.not47 = icmp eq i32 %81, 1
  br i1 %.not47, label %91, label %82

82:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.5, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %83 unwind label %86

83:                                               ; preds = %82
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef %84) #7
          to label %85 unwind label %88

85:                                               ; preds = %83
  unreachable

86:                                               ; preds = %82
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %83
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %90

90:                                               ; preds = %88, %86
  %.pn48 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %99

91:                                               ; preds = %79
  %92 = call noundef ptr @_ZN6Assimp3FBX6Parser18AdvanceToNextTokenEv(ptr noundef nonnull align 8 dereferenceable(49) %2)
  br label %.critedge

93:                                               ; preds = %57, %.thread52
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %94)
  %.not44 = icmp eq i32 %95, 5
  br i1 %.not44, label %.critedge, label %96

96:                                               ; preds = %93
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = call noundef i32 @_ZNK6Assimp3FBX5Token4TypeEv(ptr noundef nonnull align 8 dereferenceable(36) %97)
  %.not45 = icmp eq i32 %98, 1
  br i1 %.not45, label %.critedge, label %16, !llvm.loop !15

.critedge:                                        ; preds = %96, %93, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret void

99:                                               ; preds = %.loopexit, %.loopexit.split-lp, %42, %69, %58, %90, %26
  %.pn48.pn = phi { ptr, i32 } [ %.pn48, %90 ], [ %.pn, %26 ], [ %.pn37, %42 ], [ %59, %58 ], [ %.pn39, %69 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  resume { ptr, i32 } %.pn48.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress noreturn uwtable
declare hidden void @_ZN12_GLOBAL__N_110ParseErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6Assimp3FBX5TokenE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

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

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

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

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

declare void @_ZN6Assimp3FBX5ScopeC1ERNS0_6ParserEb(ptr, ptr, i1) local_unnamed_addr

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

!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, !6, i64 32}
!10 = !{!"_ZTSN6Assimp3FBX7ElementE", !6, i64 0, !11, i64 8, !6, i64 32}
!11 = !{!"_ZTSSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPKN6Assimp3FBX5TokenESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPKN6Assimp3FBX5TokenESaIS4_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPKN6Assimp3FBX5TokenESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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