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

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

@.str.1 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp3FBX8TokenizeERSt6vectorIPKNS0_5TokenESaIS4_EEPKcRNS_14StackAllocatorE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(40) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::allocator.5", align 1
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::allocator.5", align 1
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  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
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %31, label %30

30:                                               ; preds = %3
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 136)
  br label %31

31:                                               ; preds = %30, %3
  %32 = phi i1 [ true, %3 ], [ false, %30 ]
  %33 = call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %33, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #7
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  store i8 0, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %34, ptr %14, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %208, %31
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = load i8, ptr %36, align 1, !tbaa !13
  %38 = icmp ne i8 %37, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %220

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #7
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = load i8, ptr %41, align 1, !tbaa !13
  store i8 %42, ptr %16, align 1, !tbaa !13
  %43 = load i8, ptr %16, align 1, !tbaa !13
  %44 = call noundef zeroext i1 @_ZN6Assimp9IsLineEndIcEEbT_(i8 noundef signext %43)
  br i1 %44, label %45, label %48

45:                                               ; preds = %40
  store i8 0, ptr %9, align 1, !tbaa !11
  store i32 0, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = add i32 %46, 1
  store i32 %47, ptr %7, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %45, %40
  %49 = load i8, ptr %9, align 1, !tbaa !11, !range !14, !noundef !15
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 4, ptr %15, align 4
  br label %205

52:                                               ; preds = %48
  %53 = load i8, ptr %10, align 1, !tbaa !11, !range !14, !noundef !15
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %66

55:                                               ; preds = %52
  %56 = load i8, ptr %16, align 1, !tbaa !13
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 34
  br i1 %58, label %59, label %65

59:                                               ; preds = %55
  store i8 0, ptr %10, align 1, !tbaa !11
  %60 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %60, ptr %13, align 8, !tbaa !5
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(40) %62, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %63, i32 noundef %64, i32 noundef 2, i1 noundef zeroext false)
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %65

65:                                               ; preds = %59, %55
  store i32 4, ptr %15, align 4
  br label %205

66:                                               ; preds = %52
  %67 = load i8, ptr %16, align 1, !tbaa !13
  %68 = sext i8 %67 to i32
  switch i32 %68, label %159 [
    i32 34, label %69
    i32 59, label %88
    i32 123, label %93
    i32 125, label %106
    i32 44, label %119
    i32 58, label %136
  ]

69:                                               ; preds = %66
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %86

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %73 unwind label %77

73:                                               ; preds = %72
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN6Assimp3FBX12_GLOBAL__N_113TokenizeErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjj(ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef %74, i32 noundef %75) #8
          to label %76 unwind label %81

76:                                               ; preds = %73
  unreachable

77:                                               ; preds = %72
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %19, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %20, align 4
  br label %85

81:                                               ; preds = %73
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %19, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %85

85:                                               ; preds = %81, %77
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  br label %219

86:                                               ; preds = %69
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %87, ptr %12, align 8, !tbaa !5
  store i8 1, ptr %10, align 1, !tbaa !11
  store i32 4, ptr %15, align 4
  br label %205

88:                                               ; preds = %66
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(40) %90, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %91, i32 noundef %92, i32 noundef 2, i1 noundef zeroext false)
  store i8 1, ptr %9, align 1, !tbaa !11
  store i32 4, ptr %15, align 4
  br label %205

93:                                               ; preds = %66
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !9
  %97 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(40) %95, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %96, i32 noundef %97, i32 noundef 2, i1 noundef zeroext false)
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = call noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %99, i64 noundef 40)
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 1
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr noundef nonnull align 8 dereferenceable(36) %100, ptr noundef %101, ptr noundef %103, i32 noundef 0, i32 noundef %104, i32 noundef %105)
  store ptr %100, ptr %21, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %98, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  store i32 4, ptr %15, align 4
  br label %205

106:                                              ; preds = %66
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(40) %108, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %109, i32 noundef %110, i32 noundef 2, i1 noundef zeroext false)
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = call noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %112, i64 noundef 40)
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 1
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr noundef nonnull align 8 dereferenceable(36) %113, ptr noundef %114, ptr noundef %116, i32 noundef 1, i32 noundef %117, i32 noundef %118)
  store ptr %113, ptr %22, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %111, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  store i32 4, ptr %15, align 4
  br label %205

119:                                              ; preds = %66
  %120 = load i8, ptr %11, align 1, !tbaa !11, !range !14, !noundef !15
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %127

122:                                              ; preds = %119
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(40) %124, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %125, i32 noundef %126, i32 noundef 2, i1 noundef zeroext true)
  br label %127

127:                                              ; preds = %122, %119
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = call noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %129, i64 noundef 40)
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 1
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr noundef nonnull align 8 dereferenceable(36) %130, ptr noundef %131, ptr noundef %133, i32 noundef 4, i32 noundef %134, i32 noundef %135)
  store ptr %130, ptr %23, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %128, ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  store i32 4, ptr %15, align 4
  br label %205

136:                                              ; preds = %66
  %137 = load i8, ptr %11, align 1, !tbaa !11, !range !14, !noundef !15
  %138 = trunc i8 %137 to i1
  br i1 %138, label %139, label %144

139:                                              ; preds = %136
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load i32, ptr %7, align 4, !tbaa !9
  %143 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 8 dereferenceable(40) %141, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %142, i32 noundef %143, i32 noundef 5, i1 noundef zeroext true)
  br label %158

144:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %145 unwind label %149

145:                                              ; preds = %144
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = load i32, ptr %8, align 4, !tbaa !9
  invoke void @_ZN6Assimp3FBX12_GLOBAL__N_113TokenizeErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjj(ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef %146, i32 noundef %147) #8
          to label %148 unwind label %153

148:                                              ; preds = %145
  unreachable

149:                                              ; preds = %144
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %19, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %20, align 4
  br label %157

153:                                              ; preds = %145
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %19, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %20, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %157

157:                                              ; preds = %153, %149
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  br label %219

158:                                              ; preds = %139
  store i32 4, ptr %15, align 4
  br label %205

159:                                              ; preds = %66
  %160 = load i8, ptr %16, align 1, !tbaa !13
  %161 = call noundef zeroext i1 @_ZN6Assimp16IsSpaceOrNewLineIcEEbT_(i8 noundef signext %160)
  br i1 %161, label %162, label %197

162:                                              ; preds = %159
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %196

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 2, ptr %26, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %166, ptr %27, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %186, %165
  %168 = load ptr, ptr %27, align 8, !tbaa !5
  %169 = load i8, ptr %168, align 1, !tbaa !13
  %170 = icmp ne i8 %169, 0
  br i1 %170, label %171, label %175

171:                                              ; preds = %167
  %172 = load ptr, ptr %27, align 8, !tbaa !5
  %173 = load i8, ptr %172, align 1, !tbaa !13
  %174 = call noundef zeroext i1 @_ZN6Assimp16IsSpaceOrNewLineIcEEbT_(i8 noundef signext %173)
  br label %175

175:                                              ; preds = %171, %167
  %176 = phi i1 [ false, %167 ], [ %174, %171 ]
  br i1 %176, label %178, label %177

177:                                              ; preds = %175
  store i32 6, ptr %15, align 4
  br label %189

178:                                              ; preds = %175
  %179 = load ptr, ptr %27, align 8, !tbaa !5
  %180 = load i8, ptr %179, align 1, !tbaa !13
  %181 = sext i8 %180 to i32
  %182 = icmp eq i32 %181, 58
  br i1 %182, label %183, label %185

183:                                              ; preds = %178
  store i32 5, ptr %26, align 4, !tbaa !16
  %184 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %184, ptr %14, align 8, !tbaa !5
  store i32 6, ptr %15, align 4
  br label %189

185:                                              ; preds = %178
  br label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %27, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %187, i32 1
  store ptr %188, ptr %27, align 8, !tbaa !5
  br label %167, !llvm.loop !18

189:                                              ; preds = %183, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load i32, ptr %7, align 4, !tbaa !9
  %194 = load i32, ptr %8, align 4, !tbaa !9
  %195 = load i32, ptr %26, align 4, !tbaa !16
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %191, ptr noundef nonnull align 8 dereferenceable(40) %192, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13, i32 noundef %193, i32 noundef %194, i32 noundef %195, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %196

196:                                              ; preds = %190, %162
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %204

197:                                              ; preds = %159
  %198 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %198, ptr %13, align 8, !tbaa !5
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = icmp ne ptr %199, null
  br i1 %200, label %203, label %201

201:                                              ; preds = %197
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %202, ptr %12, align 8, !tbaa !5
  br label %203

203:                                              ; preds = %201, %197
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %204

204:                                              ; preds = %203, %196
  store i32 0, ptr %15, align 4
  br label %205

205:                                              ; preds = %204, %158, %127, %106, %93, %88, %86, %65, %51
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  %206 = load i32, ptr %15, align 4
  switch i32 %206, label %226 [
    i32 0, label %207
    i32 4, label %208
  ]

207:                                              ; preds = %205
  br label %208

208:                                              ; preds = %207, %205
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = load i8, ptr %209, align 1, !tbaa !13
  %211 = sext i8 %210 to i32
  %212 = icmp eq i32 %211, 9
  %213 = zext i1 %212 to i64
  %214 = select i1 %212, i32 4, i32 1
  %215 = load i32, ptr %8, align 4, !tbaa !9
  %216 = add i32 %215, %214
  store i32 %216, ptr %8, align 4, !tbaa !9
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i32 1
  store ptr %218, ptr %14, align 8, !tbaa !5
  br label %35, !llvm.loop !20

219:                                              ; preds = %157, %85
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %221

220:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void

221:                                              ; preds = %219
  %222 = load ptr, ptr %19, align 8
  %223 = load i32, ptr %20, align 4
  %224 = insertvalue { ptr, i32 } poison, ptr %222, 0
  %225 = insertvalue { ptr, i32 } %224, i32 %223, 1
  resume { ptr, i32 } %225

226:                                              ; preds = %205
  unreachable
}

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #0

declare void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp9IsLineEndIcEEbT_(i8 noundef signext) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 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 uwtable
declare dso_local void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp16IsSpaceOrNewLineIcEEbT_(i8 noundef signext) #6

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

declare void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr, ptr, ptr, i32, i32, i32)

attributes #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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = { 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 #7 = { nounwind }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTSN6Assimp3FBX9TokenTypeE", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}


; 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.1 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp3FBX8TokenizeERSt6vectorIPKNS0_5TokenESaIS4_EEPKcRNS_14StackAllocatorE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(40) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator.5", align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.5", align 1
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %13, label %14

13:                                               ; preds = %3
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 136)
  br label %14

14:                                               ; preds = %13, %3
  %15 = tail call noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
  tail call void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %15, ptr noundef nonnull @.str.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr null, ptr %5, align 8, !tbaa !5
  %16 = load i8, ptr %1, align 1, !tbaa !9
  %.not102122 = icmp eq i8 %16, 0
  br i1 %.not102122, label %._crit_edge, label %.lr.ph129

._crit_edge:                                      ; preds = %76, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  ret void

.lr.ph129:                                        ; preds = %14, %76
  %17 = phi i8 [ %82, %76 ], [ %16, %14 ]
  %.083128 = phi i32 [ %.184, %76 ], [ 1, %14 ]
  %.085127 = phi ptr [ %81, %76 ], [ %1, %14 ]
  %.088126 = phi i8 [ %.391, %76 ], [ 0, %14 ]
  %.092125 = phi i1 [ %.294, %76 ], [ false, %14 ]
  %.095124 = phi i1 [ %.297, %76 ], [ false, %14 ]
  %.098123 = phi i32 [ %80, %76 ], [ 1, %14 ]
  %18 = call noundef zeroext i1 @_ZN6Assimp9IsLineEndIcEEbT_(i8 noundef signext %17)
  %.199 = select i1 %18, i32 0, i32 %.098123
  %not. = xor i1 %18, true
  %.196 = and i1 %.095124, %not.
  %19 = zext i1 %18 to i32
  %.184 = add i32 %.083128, %19
  br i1 %.196, label %76, label %20

20:                                               ; preds = %.lr.ph129
  br i1 %.092125, label %21, label %24

21:                                               ; preds = %20
  %22 = icmp eq i8 %17, 34
  br i1 %22, label %23, label %76

23:                                               ; preds = %21
  store ptr %.085127, ptr %5, align 8, !tbaa !5
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef 2, i1 noundef zeroext false)
  br label %76

24:                                               ; preds = %20
  switch i8 %17, label %60 [
    i8 34, label %25
    i8 59, label %36
    i8 123, label %37
    i8 125, label %40
    i8 44, label %43
    i8 58, label %49
  ]

25:                                               ; preds = %24
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %.not104 = icmp eq ptr %26, null
  br i1 %.not104, label %35, label %27

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

28:                                               ; preds = %27
  invoke void @_ZN6Assimp3FBX12_GLOBAL__N_113TokenizeErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjj(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %.184, i32 noundef %.199) #8
          to label %29 unwind label %32

29:                                               ; preds = %28
  unreachable

30:                                               ; preds = %27
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %34

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

34:                                               ; preds = %32, %30
  %.pn105 = phi { ptr, i32 } [ %33, %32 ], [ %31, %30 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  br label %83

35:                                               ; preds = %25
  store ptr %.085127, ptr %4, align 8, !tbaa !5
  br label %76

36:                                               ; preds = %24
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef 2, i1 noundef zeroext false)
  br label %76

37:                                               ; preds = %24
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef 2, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %38 = call noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 40)
  %39 = getelementptr inbounds i8, ptr %.085127, i64 1
  call void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr noundef nonnull align 8 dereferenceable(36) %38, ptr noundef nonnull %.085127, ptr noundef nonnull %39, i32 noundef 0, i32 noundef %.184, i32 noundef %.199)
  store ptr %38, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %76

40:                                               ; preds = %24
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef 2, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %41 = call noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 40)
  %42 = getelementptr inbounds i8, ptr %.085127, i64 1
  call void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr noundef nonnull align 8 dereferenceable(36) %41, ptr noundef nonnull %.085127, ptr noundef nonnull %42, i32 noundef 1, i32 noundef %.184, i32 noundef %.199)
  store ptr %41, ptr %9, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %76

43:                                               ; preds = %24
  %44 = trunc nuw i8 %.088126 to i1
  br i1 %44, label %45, label %46

45:                                               ; preds = %43
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef 2, i1 noundef zeroext true)
  br label %46

46:                                               ; preds = %45, %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %47 = call noundef ptr @_ZN6Assimp14StackAllocator8AllocateEm(ptr noundef nonnull align 8 dereferenceable(40) %2, i64 noundef 40)
  %48 = getelementptr inbounds i8, ptr %.085127, i64 1
  call void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr noundef nonnull align 8 dereferenceable(36) %47, ptr noundef nonnull %.085127, ptr noundef nonnull %48, i32 noundef 4, i32 noundef %.184, i32 noundef %.199)
  store ptr %47, ptr %10, align 8, !tbaa !5
  call void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %76

49:                                               ; preds = %24
  %50 = trunc nuw i8 %.088126 to i1
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef 5, i1 noundef zeroext true)
  br label %76

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull @.str.7, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %53 unwind label %55

53:                                               ; preds = %52
  invoke void @_ZN6Assimp3FBX12_GLOBAL__N_113TokenizeErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjj(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %.184, i32 noundef %.199) #8
          to label %54 unwind label %57

54:                                               ; preds = %53
  unreachable

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %53
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %83

60:                                               ; preds = %24
  %61 = call noundef zeroext i1 @_ZN6Assimp16IsSpaceOrNewLineIcEEbT_(i8 noundef signext %17)
  br i1 %61, label %62, label %73

62:                                               ; preds = %60
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %.not109 = icmp eq ptr %63, null
  br i1 %.not109, label %76, label %.preheader

.preheader:                                       ; preds = %62
  %64 = load i8, ptr %.085127, align 1, !tbaa !9
  %.not110113 = icmp eq i8 %64, 0
  br i1 %.not110113, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %70
  %65 = phi i8 [ %72, %70 ], [ %64, %.preheader ]
  %.0114 = phi ptr [ %71, %70 ], [ %.085127, %.preheader ]
  %66 = call noundef zeroext i1 @_ZN6Assimp16IsSpaceOrNewLineIcEEbT_(i8 noundef signext %65)
  br i1 %66, label %67, label %.critedge

67:                                               ; preds = %.lr.ph
  %68 = load i8, ptr %.0114, align 1, !tbaa !9
  %69 = icmp eq i8 %68, 58
  br i1 %69, label %.critedge, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %.0114, i64 1
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %.not110 = icmp eq i8 %72, 0
  br i1 %.not110, label %.critedge, label %.lr.ph, !llvm.loop !10

.critedge:                                        ; preds = %70, %.lr.ph, %67, %.preheader
  %.186 = phi ptr [ %.085127, %.preheader ], [ %.0114, %67 ], [ %.085127, %.lr.ph ], [ %.085127, %70 ]
  %.078 = phi i32 [ 2, %.preheader ], [ 5, %67 ], [ 2, %.lr.ph ], [ 2, %70 ]
  call void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %.184, i32 noundef %.199, i32 noundef %.078, i1 noundef zeroext false)
  br label %76

73:                                               ; preds = %60
  store ptr %.085127, ptr %5, align 8, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %.not108 = icmp eq ptr %74, null
  br i1 %.not108, label %75, label %76

75:                                               ; preds = %73
  store ptr %.085127, ptr %4, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %.critedge, %62, %75, %73, %21, %23, %.lr.ph129, %51, %46, %40, %37, %36, %35
  %.297 = phi i1 [ false, %51 ], [ false, %46 ], [ false, %40 ], [ false, %37 ], [ true, %36 ], [ false, %35 ], [ true, %.lr.ph129 ], [ false, %23 ], [ false, %21 ], [ false, %73 ], [ false, %75 ], [ false, %62 ], [ false, %.critedge ]
  %.294 = phi i1 [ false, %51 ], [ false, %46 ], [ false, %40 ], [ false, %37 ], [ false, %36 ], [ true, %35 ], [ %.092125, %.lr.ph129 ], [ false, %23 ], [ true, %21 ], [ false, %73 ], [ false, %75 ], [ false, %62 ], [ false, %.critedge ]
  %.391 = phi i8 [ %.088126, %51 ], [ %.088126, %46 ], [ %.088126, %40 ], [ %.088126, %37 ], [ %.088126, %36 ], [ %.088126, %35 ], [ %.088126, %.lr.ph129 ], [ 0, %23 ], [ %.088126, %21 ], [ 1, %73 ], [ 1, %75 ], [ 0, %62 ], [ 0, %.critedge ]
  %.4 = phi ptr [ %.085127, %51 ], [ %.085127, %46 ], [ %.085127, %40 ], [ %.085127, %37 ], [ %.085127, %36 ], [ %.085127, %35 ], [ %.085127, %.lr.ph129 ], [ %.085127, %23 ], [ %.085127, %21 ], [ %.085127, %73 ], [ %.085127, %75 ], [ %.085127, %62 ], [ %.186, %.critedge ]
  %77 = load i8, ptr %.4, align 1, !tbaa !9
  %78 = icmp eq i8 %77, 9
  %79 = select i1 %78, i32 4, i32 1
  %80 = add i32 %79, %.199
  %81 = getelementptr inbounds i8, ptr %.4, i64 1
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %.not102 = icmp eq i8 %82, 0
  br i1 %.not102, label %._crit_edge, label %.lr.ph129, !llvm.loop !12

83:                                               ; preds = %59, %34
  %.pn.pn = phi { ptr, i32 } [ %.pn, %59 ], [ %.pn105, %34 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn.pn
}

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #0

declare void @_ZN6Assimp6Logger5debugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp9IsLineEndIcEEbT_(i8 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN6Assimp3FBX12_GLOBAL__N_116ProcessDataTokenERSt6vectorIPKNS0_5TokenESaIS5_EERNS_14StackAllocatorERPKcSD_jjNS0_9TokenTypeEb(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 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 uwtable
declare dso_local void @_ZNSt6vectorIPKN6Assimp3FBX5TokenESaIS4_EE9push_backEOS4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 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 #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6Assimp16IsSpaceOrNewLineIcEEbT_(i8 noundef signext) local_unnamed_addr #6

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

declare void @_ZN6Assimp3FBX5TokenC1EPKcS3_NS0_9TokenTypeEjj(ptr, ptr, ptr, i32, i32, i32) local_unnamed_addr

attributes #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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = { 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 #7 = { nounwind }
attributes #8 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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