; LLVM IR from Razakhel/RaZ :: extern/fastgltf/src/fastgltf.ll (ZNK8fastgltf6Parser13decodeDataUriERNS_7URIViewE)

; 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.fastgltf::Expected" = type { i64, %"class.std::variant" }
%"class.std::variant" = type { %"struct.std::__detail::__variant::_Variant_base.base", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base" = type { %"struct.std::__detail::__variant::_Move_assign_base.base" }
%"struct.std::__detail::__variant::_Move_assign_base.base" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base" }
%"struct.std::__detail::__variant::_Copy_assign_base.base" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base" }
%"struct.std::__detail::__variant::_Move_ctor_base.base" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base" = type { %"struct.std::__detail::__variant::_Variant_storage.base" }
%"struct.std::__detail::__variant::_Variant_storage.base" = type { %"union.std::__detail::__variant::_Variadic_union", i8 }
%"union.std::__detail::__variant::_Variadic_union" = type { %"union.std::__detail::__variant::_Variadic_union.40" }
%"union.std::__detail::__variant::_Variadic_union.40" = type { %"union.std::__detail::__variant::_Variadic_union.42" }
%"union.std::__detail::__variant::_Variadic_union.42" = type { %"struct.std::__detail::__variant::_Uninitialized.43" }
%"struct.std::__detail::__variant::_Uninitialized.43" = type { %"struct.__gnu_cxx::__aligned_membuf" }
%"struct.__gnu_cxx::__aligned_membuf" = type { [184 x i8] }
%"class.std::basic_string_view" = type { i64, ptr }
%"struct.fastgltf::BufferInfo" = type { ptr, i64 }
%"struct.fastgltf::sources::CustomBuffer" = type <{ i64, i8, [7 x i8] }>
%"class.fastgltf::StaticVector" = type { i64, %"class.std::unique_ptr.65" }
%"class.std::unique_ptr.65" = type { %"struct.std::__uniq_ptr_data.66" }
%"struct.std::__uniq_ptr_data.66" = type { %"class.std::__uniq_ptr_impl.67" }
%"class.std::__uniq_ptr_impl.67" = type { %"class.std::tuple.68" }
%"class.std::tuple.68" = type { %"struct.std::_Tuple_impl.69" }
%"struct.std::_Tuple_impl.69" = type { %"struct.std::_Head_base.72" }
%"struct.std::_Head_base.72" = type { ptr }
%"struct.fastgltf::sources::Array" = type <{ %"class.fastgltf::StaticVector", i8, [7 x i8] }>
%"class.fastgltf::Parser" = type { %"class.std::unique_ptr.57", %"struct.fastgltf::ParserInternalConfig", %"class.std::variant", %"class.std::shared_ptr", %"class.std::filesystem::__cxx11::path", i64 }
%"class.std::unique_ptr.57" = type { %"struct.std::__uniq_ptr_data.58" }
%"struct.std::__uniq_ptr_data.58" = type { %"class.std::__uniq_ptr_impl.59" }
%"class.std::__uniq_ptr_impl.59" = type { %"class.std::tuple.60" }
%"class.std::tuple.60" = type { %"struct.std::_Tuple_impl.61" }
%"struct.std::_Tuple_impl.61" = type { %"struct.std::_Head_base.64" }
%"struct.std::_Head_base.64" = type { ptr }
%"struct.fastgltf::ParserInternalConfig" = type { ptr, ptr, ptr, ptr, ptr, i64 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::filesystem::__cxx11::path" = type { %"class.std::__cxx11::basic_string", %"struct.std::filesystem::__cxx11::path::_List" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.30 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.30 = type { i64, [8 x i8] }
%"struct.std::filesystem::__cxx11::path::_List" = type { %"class.std::unique_ptr.31" }
%"class.std::unique_ptr.31" = type { %"struct.std::__uniq_ptr_data.32" }
%"struct.std::__uniq_ptr_data.32" = type { %"class.std::__uniq_ptr_impl.33" }
%"class.std::__uniq_ptr_impl.33" = type { %"class.std::tuple.34" }
%"class.std::tuple.34" = type { %"struct.std::_Tuple_impl.35" }
%"struct.std::_Tuple_impl.35" = type { %"struct.std::_Head_base.38" }
%"struct.std::_Head_base.38" = type { ptr }

@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, i64 noundef) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNK8fastgltf7URIView4pathEv(ptr noundef nonnull align 8 dereferenceable(129)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8fastgltf6Parser13decodeDataUriERNS_7URIViewE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected") align 8 %0, ptr noundef nonnull align 8 dereferenceable(312) %1, ptr noundef nonnull align 8 dereferenceable(129) %2) #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 %"class.std::basic_string_view", align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::basic_string_view", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.std::basic_string_view", align 8
  %13 = alloca %"class.std::basic_string_view", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca i64, align 8
  %17 = alloca %"class.std::basic_string_view", align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.fastgltf::BufferInfo", align 8
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.std::basic_string_view", align 8
  %22 = alloca %"struct.fastgltf::sources::CustomBuffer", align 8
  %23 = alloca %"class.std::basic_string_view", align 8
  %24 = alloca %"class.std::variant", align 8
  %25 = alloca i64, align 8
  %26 = alloca %"class.std::basic_string_view", align 8
  %27 = alloca %"class.fastgltf::StaticVector", align 8
  %28 = alloca %"class.std::basic_string_view", align 8
  %29 = alloca %"class.std::basic_string_view", align 8
  %30 = alloca %"struct.fastgltf::sources::Array", align 8
  %31 = alloca %"class.std::basic_string_view", align 8
  %32 = alloca %"class.std::variant", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call { i64, ptr } @_ZNK8fastgltf7URIView4pathEv(ptr noundef nonnull align 8 dereferenceable(129) %34) #8
  %36 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 0
  %37 = extractvalue { i64, ptr } %35, 0
  store i64 %37, ptr %36, align 8
  %38 = getelementptr inbounds { i64, ptr }, ptr %7, i32 0, i32 1
  %39 = extractvalue { i64, ptr } %35, 1
  store ptr %39, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %40 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(16) %7, i8 noundef signext 59, i64 noundef 0) #8
  store i64 %40, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef 0, i64 noundef %41)
          to label %43 unwind label %222

43:                                               ; preds = %3
  %44 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 0
  %45 = extractvalue { i64, ptr } %42, 0
  store i64 %45, ptr %44, align 8
  %46 = getelementptr inbounds { i64, ptr }, ptr %9, i32 0, i32 1
  %47 = extractvalue { i64, ptr } %42, 1
  store ptr %47, ptr %46, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %48 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(16) %7, i8 noundef signext 44, i64 noundef 0) #8
  store i64 %48, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = add i64 %49, 1
  %51 = load i64, ptr %10, align 8, !tbaa !9
  %52 = load i64, ptr %8, align 8, !tbaa !9
  %53 = sub i64 %51, %52
  %54 = sub i64 %53, 1
  %55 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %50, i64 noundef %54)
          to label %56 unwind label %222

56:                                               ; preds = %43
  %57 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 0
  %58 = extractvalue { i64, ptr } %55, 0
  store i64 %58, ptr %57, align 8
  %59 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 1
  %60 = extractvalue { i64, ptr } %55, 1
  store ptr %60, ptr %59, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.21) #8
  %61 = getelementptr inbounds { i64, ptr }, ptr %12, i32 0, i32 0
  %62 = load i64, ptr %61, align 8
  %63 = getelementptr inbounds { i64, ptr }, ptr %12, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8
  %65 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 0
  %66 = load i64, ptr %65, align 8
  %67 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8
  %69 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcEEbSt17basic_string_viewIT_T0_ENSt15__type_identityIS5_E4typeE(i64 %62, ptr %64, i64 %66, ptr %68) #8
  br i1 %69, label %70, label %72

70:                                               ; preds = %56
  invoke void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200) %0, i64 noundef 11)
          to label %71 unwind label %222

71:                                               ; preds = %70
  store i32 1, ptr %14, align 4
  br label %221

72:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %73 = load i64, ptr %10, align 8, !tbaa !9
  %74 = add i64 %73, 1
  %75 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %7, i64 noundef %74, i64 noundef -1)
          to label %76 unwind label %222

76:                                               ; preds = %72
  %77 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 0
  %78 = extractvalue { i64, ptr } %75, 0
  store i64 %78, ptr %77, align 8
  %79 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 1
  %80 = extractvalue { i64, ptr } %75, 1
  store ptr %80, ptr %79, align 8
  %81 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %82 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %172

85:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !11
  %86 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 0
  %87 = load i64, ptr %86, align 8
  %88 = getelementptr inbounds { i64, ptr }, ptr %17, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8
  %90 = invoke noundef i64 @_ZN8fastgltf6base6410getPaddingESt17basic_string_viewIcSt11char_traitsIcEE(i64 %87, ptr %89)
          to label %91 unwind label %222

91:                                               ; preds = %85
  store i64 %90, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %92 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %93 = load i64, ptr %16, align 8, !tbaa !9
  %94 = call noundef i64 @_ZN8fastgltf6base6413getOutputSizeEmm(i64 noundef %92, i64 noundef %93) #8
  store i64 %94, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %95 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %96 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !12
  %98 = load i64, ptr %18, align 8, !tbaa !9
  %99 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %100 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !43
  %102 = invoke { ptr, i64 } %97(i64 noundef %98, ptr noundef %101)
          to label %103 unwind label %222

103:                                              ; preds = %91
  %104 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %105 = extractvalue { ptr, i64 } %102, 0
  store ptr %105, ptr %104, align 8
  %106 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %107 = extractvalue { ptr, i64 } %102, 1
  store i64 %107, ptr %106, align 8
  %108 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %19, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !44
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %168

111:                                              ; preds = %103
  %112 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %113 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !46
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %132

116:                                              ; preds = %111
  %117 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %118 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %118, align 8, !tbaa !46
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !11
  %120 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %19, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !44
  %122 = load i64, ptr %16, align 8, !tbaa !9
  %123 = load i64, ptr %18, align 8, !tbaa !9
  %124 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %125 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !43
  %127 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 0
  %128 = load i64, ptr %127, align 8
  %129 = getelementptr inbounds { i64, ptr }, ptr %20, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8
  invoke void %119(i64 %128, ptr %130, ptr noundef %121, i64 noundef %122, i64 noundef %123, ptr noundef %126)
          to label %131 unwind label %222

131:                                              ; preds = %116
  br label %141

132:                                              ; preds = %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !11
  %133 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %19, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !44
  %135 = load i64, ptr %16, align 8, !tbaa !9
  %136 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 0
  %137 = load i64, ptr %136, align 8
  %138 = getelementptr inbounds { i64, ptr }, ptr %21, i32 0, i32 1
  %139 = load ptr, ptr %138, align 8
  invoke void @_ZN8fastgltf6base6414decode_inplaceESt17basic_string_viewIcSt11char_traitsIcEEPhm(i64 %137, ptr %139, ptr noundef %134, i64 noundef %135)
          to label %140 unwind label %222

140:                                              ; preds = %132
  br label %141

141:                                              ; preds = %140, %131
  %142 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %143 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !47
  %145 = icmp ne ptr %144, null
  br i1 %145, label %146, label %154

146:                                              ; preds = %141
  %147 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %148 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !47
  %150 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %151 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !43
  invoke void %149(ptr noundef %19, ptr noundef %152)
          to label %153 unwind label %222

153:                                              ; preds = %146
  br label %154

154:                                              ; preds = %153, %141
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  %155 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %22, i32 0, i32 0
  store i64 0, ptr %155, align 8, !tbaa !48
  %156 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %22, i32 0, i32 1
  store i8 0, ptr %156, align 8, !tbaa !51
  %157 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %19, i32 0, i32 1
  %158 = load i64, ptr %157, align 8, !tbaa !52
  %159 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %22, i32 0, i32 0
  store i64 %158, ptr %159, align 8, !tbaa !48
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !11
  %160 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 0
  %161 = load i64, ptr %160, align 8
  %162 = getelementptr inbounds { i64, ptr }, ptr %23, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8
  %164 = invoke noundef zeroext i8 @_ZN8fastgltf6Parser21getMimeTypeFromStringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %161, ptr %163)
          to label %165 unwind label %222

165:                                              ; preds = %154
  %166 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %22, i32 0, i32 1
  store i8 %164, ptr %166, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 192, ptr %24) #8
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %24, ptr noundef nonnull align 8 dereferenceable(9) %22) #8
  invoke void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2EOSB_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(185) %24)
          to label %167 unwind label %222

167:                                              ; preds = %165
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %24) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %24) #8
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  br label %169

168:                                              ; preds = %103
  store i32 0, ptr %14, align 4
  br label %169

169:                                              ; preds = %168, %167
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %170 = load i32, ptr %14, align 4
  switch i32 %170, label %220 [
    i32 0, label %171
  ]

171:                                              ; preds = %169
  br label %172

172:                                              ; preds = %171, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !11
  %173 = getelementptr inbounds { i64, ptr }, ptr %26, i32 0, i32 0
  %174 = load i64, ptr %173, align 8
  %175 = getelementptr inbounds { i64, ptr }, ptr %26, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8
  %177 = invoke noundef i64 @_ZN8fastgltf6base6410getPaddingESt17basic_string_viewIcSt11char_traitsIcEE(i64 %174, ptr %176)
          to label %178 unwind label %222

178:                                              ; preds = %172
  store i64 %177, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %179 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  %180 = load i64, ptr %25, align 8, !tbaa !9
  %181 = call noundef i64 @_ZN8fastgltf6base6413getOutputSizeEmm(i64 noundef %179, i64 noundef %180) #8
  invoke void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %181)
          to label %182 unwind label %222

182:                                              ; preds = %178
  %183 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %184 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %183, i32 0, i32 2
  %185 = load ptr, ptr %184, align 8, !tbaa !46
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %202

187:                                              ; preds = %182
  %188 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %189 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %188, i32 0, i32 2
  %190 = load ptr, ptr %189, align 8, !tbaa !46
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !11
  %191 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  %192 = load i64, ptr %25, align 8, !tbaa !9
  %193 = call noundef i64 @_ZNK8fastgltf12StaticVectorISt4byteE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  %194 = getelementptr inbounds %"class.fastgltf::Parser", ptr %33, i32 0, i32 1
  %195 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %194, i32 0, i32 4
  %196 = load ptr, ptr %195, align 8, !tbaa !43
  %197 = getelementptr inbounds { i64, ptr }, ptr %28, i32 0, i32 0
  %198 = load i64, ptr %197, align 8
  %199 = getelementptr inbounds { i64, ptr }, ptr %28, i32 0, i32 1
  %200 = load ptr, ptr %199, align 8
  invoke void %190(i64 %198, ptr %200, ptr noundef %191, i64 noundef %192, i64 noundef %193, ptr noundef %196)
          to label %201 unwind label %222

201:                                              ; preds = %187
  br label %210

202:                                              ; preds = %182
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !11
  %203 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  %204 = load i64, ptr %25, align 8, !tbaa !9
  %205 = getelementptr inbounds { i64, ptr }, ptr %29, i32 0, i32 0
  %206 = load i64, ptr %205, align 8
  %207 = getelementptr inbounds { i64, ptr }, ptr %29, i32 0, i32 1
  %208 = load ptr, ptr %207, align 8
  invoke void @_ZN8fastgltf6base6414decode_inplaceESt17basic_string_viewIcSt11char_traitsIcEEPhm(i64 %206, ptr %208, ptr noundef %203, i64 noundef %204)
          to label %209 unwind label %222

209:                                              ; preds = %202
  br label %210

210:                                              ; preds = %209, %201
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #8
  %211 = getelementptr inbounds %"struct.fastgltf::sources::Array", ptr %30, i32 0, i32 0
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %211, ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  %212 = getelementptr inbounds %"struct.fastgltf::sources::Array", ptr %30, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %31, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !11
  %213 = getelementptr inbounds { i64, ptr }, ptr %31, i32 0, i32 0
  %214 = load i64, ptr %213, align 8
  %215 = getelementptr inbounds { i64, ptr }, ptr %31, i32 0, i32 1
  %216 = load ptr, ptr %215, align 8
  %217 = invoke noundef zeroext i8 @_ZN8fastgltf6Parser21getMimeTypeFromStringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %214, ptr %216)
          to label %218 unwind label %222

218:                                              ; preds = %210
  store i8 %217, ptr %212, align 8, !tbaa !53
  call void @llvm.lifetime.start.p0(i64 192, ptr %32) #8
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IS5_vvS5_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %32, ptr noundef nonnull align 8 dereferenceable(17) %30) #8
  invoke void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2EOSB_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(185) %32)
          to label %219 unwind label %222

219:                                              ; preds = %218
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %32) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %32) #8
  store i32 1, ptr %14, align 4
  call void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #8
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %220

220:                                              ; preds = %219, %169
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %221

221:                                              ; preds = %220, %71
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  ret void

222:                                              ; preds = %218, %210, %202, %187, %178, %172, %165, %154, %146, %132, %116, %91, %85, %72, %70, %43, %3
  %223 = landingpad { ptr, i32 }
          catch ptr null
  %224 = extractvalue { ptr, i32 } %223, 0
  call void @__clang_call_terminate(ptr %224) #9
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcEEbSt17basic_string_viewIT_T0_ENSt15__type_identityIS5_E4typeE(i64, ptr, i64, ptr) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8fastgltf6base6410getPaddingESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #5

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8fastgltf6base6413getOutputSizeEmm(i64 noundef, i64 noundef) #5

declare void @_ZN8fastgltf6base6414decode_inplaceESt17basic_string_viewIcSt11char_traitsIcEEPhm(i64, ptr, ptr noundef, i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN8fastgltf6Parser21getMimeTypeFromStringESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2EOSB_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(185)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185)) unnamed_addr #0 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IS5_vvS5_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{i64 0, i64 8, !9, i64 8, i64 8, !5}
!12 = !{!13, !6, i64 8}
!13 = !{!"_ZTSN8fastgltf6ParserE", !14, i64 0, !20, i64 8, !22, i64 56, !29, i64 248, !32, i64 264, !42, i64 304}
!14 = !{!"_ZTSSt10unique_ptrIN8simdjson3dom6parserESt14default_deleteIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_dataIN8simdjson3dom6parserESt14default_deleteIS2_ELb1ELb1EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_implIN8simdjson3dom6parserESt14default_deleteIS2_EE", !17, i64 0}
!17 = !{!"_ZTSSt5tupleIJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt11_Tuple_implILm0EJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_Head_baseILm0EPN8simdjson3dom6parserELb0EE", !6, i64 0}
!20 = !{!"_ZTSN8fastgltf20ParserInternalConfigE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !21, i64 40}
!21 = !{!"_ZTSN8fastgltf10ExtensionsE", !7, i64 0}
!22 = !{!"_ZTSSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEE", !23, i64 0}
!23 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !25, i64 0}
!25 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !26, i64 0}
!26 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !27, i64 0}
!27 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !28, i64 0}
!28 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !7, i64 0, !7, i64 184}
!29 = !{!"_ZTSSt10shared_ptrIN8fastgltf19ChunkMemoryResourceEE", !30, i64 0}
!30 = !{!"_ZTSSt12__shared_ptrIN8fastgltf19ChunkMemoryResourceELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !31, i64 8}
!31 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!32 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !33, i64 0, !35, i64 32}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !10, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !36, i64 0}
!36 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !38, i64 0}
!38 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !39, i64 0}
!39 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !40, i64 0}
!40 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !41, i64 0}
!41 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !6, i64 0}
!42 = !{!"_ZTSN8fastgltf7OptionsE", !7, i64 0}
!43 = !{!13, !6, i64 40}
!44 = !{!45, !6, i64 0}
!45 = !{!"_ZTSN8fastgltf10BufferInfoE", !6, i64 0, !10, i64 8}
!46 = !{!13, !6, i64 24}
!47 = !{!13, !6, i64 16}
!48 = !{!49, !10, i64 0}
!49 = !{!"_ZTSN8fastgltf7sources12CustomBufferE", !10, i64 0, !50, i64 8}
!50 = !{!"_ZTSN8fastgltf8MimeTypeE", !7, i64 0}
!51 = !{!49, !50, i64 8}
!52 = !{!45, !10, i64 8}
!53 = !{!54, !50, i64 16}
!54 = !{!"_ZTSN8fastgltf7sources5ArrayE", !55, i64 0, !50, i64 16}
!55 = !{!"_ZTSN8fastgltf12StaticVectorISt4byteEE", !10, i64 0, !56, i64 8}
!56 = !{!"_ZTSSt10unique_ptrIA_St4byteSt14default_deleteIS1_EE", !57, i64 0}
!57 = !{!"_ZTSSt15__uniq_ptr_dataISt4byteSt14default_deleteIA_S0_ELb1ELb1EE", !58, i64 0}
!58 = !{!"_ZTSSt15__uniq_ptr_implISt4byteSt14default_deleteIA_S0_EE", !59, i64 0}
!59 = !{!"_ZTSSt5tupleIJPSt4byteSt14default_deleteIA_S0_EEE", !60, i64 0}
!60 = !{!"_ZTSSt11_Tuple_implILm0EJPSt4byteSt14default_deleteIA_S0_EEE", !61, i64 0}
!61 = !{!"_ZTSSt10_Head_baseILm0EPSt4byteLb0EE", !6, i64 0}


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

%"class.fastgltf::Expected" = type { i64, %"class.std::variant" }
%"class.std::variant" = type { %"struct.std::__detail::__variant::_Variant_base.base", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base" = type { %"struct.std::__detail::__variant::_Move_assign_base.base" }
%"struct.std::__detail::__variant::_Move_assign_base.base" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base" }
%"struct.std::__detail::__variant::_Copy_assign_base.base" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base" }
%"struct.std::__detail::__variant::_Move_ctor_base.base" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base" = type { %"struct.std::__detail::__variant::_Variant_storage.base" }
%"struct.std::__detail::__variant::_Variant_storage.base" = type { %"union.std::__detail::__variant::_Variadic_union", i8 }
%"union.std::__detail::__variant::_Variadic_union" = type { %"union.std::__detail::__variant::_Variadic_union.40" }
%"union.std::__detail::__variant::_Variadic_union.40" = type { %"union.std::__detail::__variant::_Variadic_union.42" }
%"union.std::__detail::__variant::_Variadic_union.42" = type { %"struct.std::__detail::__variant::_Uninitialized.43" }
%"struct.std::__detail::__variant::_Uninitialized.43" = type { %"struct.__gnu_cxx::__aligned_membuf" }
%"struct.__gnu_cxx::__aligned_membuf" = type { [184 x i8] }
%"class.std::basic_string_view" = type { i64, ptr }
%"struct.fastgltf::BufferInfo" = type { ptr, i64 }
%"struct.fastgltf::sources::CustomBuffer" = type <{ i64, i8, [7 x i8] }>
%"class.fastgltf::StaticVector" = type { i64, %"class.std::unique_ptr.65" }
%"class.std::unique_ptr.65" = type { %"struct.std::__uniq_ptr_data.66" }
%"struct.std::__uniq_ptr_data.66" = type { %"class.std::__uniq_ptr_impl.67" }
%"class.std::__uniq_ptr_impl.67" = type { %"class.std::tuple.68" }
%"class.std::tuple.68" = type { %"struct.std::_Tuple_impl.69" }
%"struct.std::_Tuple_impl.69" = type { %"struct.std::_Head_base.72" }
%"struct.std::_Head_base.72" = type { ptr }
%"struct.fastgltf::sources::Array" = type <{ %"class.fastgltf::StaticVector", i8, [7 x i8] }>

@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, i64 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { i64, ptr } @_ZNK8fastgltf7URIView4pathEv(ptr noundef nonnull align 8 dereferenceable(129)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8fastgltf6Parser13decodeDataUriERNS_7URIViewE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected") align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(312) %1, ptr noundef nonnull align 8 dereferenceable(129) %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca %"struct.fastgltf::BufferInfo", align 8
  %8 = alloca %"struct.fastgltf::sources::CustomBuffer", align 8
  %9 = alloca %"class.std::variant", align 8
  %10 = alloca %"class.fastgltf::StaticVector", align 8
  %11 = alloca %"struct.fastgltf::sources::Array", align 8
  %12 = alloca %"class.std::variant", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %13 = tail call { i64, ptr } @_ZNK8fastgltf7URIView4pathEv(ptr noundef nonnull align 8 dereferenceable(129) %2) #7
  %14 = extractvalue { i64, ptr } %13, 0
  store i64 %14, ptr %4, align 8
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = extractvalue { i64, ptr } %13, 1
  store ptr %16, ptr %15, align 8
  %17 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 noundef signext 59, i64 noundef 0) #7
  %18 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef 0, i64 noundef %17)
          to label %19 unwind label %91

19:                                               ; preds = %3
  %20 = extractvalue { i64, ptr } %18, 0
  %21 = extractvalue { i64, ptr } %18, 1
  %22 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4findEcm(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 noundef signext 44, i64 noundef 0) #7
  %23 = add i64 %17, 1
  %24 = xor i64 %17, -1
  %25 = add i64 %22, %24
  %26 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %23, i64 noundef %25)
          to label %27 unwind label %91

27:                                               ; preds = %19
  %28 = extractvalue { i64, ptr } %26, 0
  %29 = extractvalue { i64, ptr } %26, 1
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.21) #7
  %30 = load i64, ptr %5, align 8
  %31 = getelementptr inbounds i8, ptr %5, i64 8
  %32 = load ptr, ptr %31, align 8
  %33 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcEEbSt17basic_string_viewIT_T0_ENSt15__type_identityIS5_E4typeE(i64 %28, ptr %29, i64 %30, ptr %32) #7
  br i1 %33, label %34, label %35

34:                                               ; preds = %27
  call void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200) %0, i64 noundef 11)
  br label %90

35:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  %36 = add i64 %22, 1
  %37 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %36, i64 noundef -1)
          to label %38 unwind label %91

38:                                               ; preds = %35
  %39 = extractvalue { i64, ptr } %37, 0
  store i64 %39, ptr %6, align 8
  %40 = getelementptr inbounds i8, ptr %6, i64 8
  %41 = extractvalue { i64, ptr } %37, 1
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %.not = icmp eq ptr %43, null
  br i1 %.not, label %72, label %44

44:                                               ; preds = %38
  %45 = call noundef i64 @_ZN8fastgltf6base6410getPaddingESt17basic_string_viewIcSt11char_traitsIcEE(i64 %39, ptr %41)
  %46 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %47 = call noundef i64 @_ZN8fastgltf6base6413getOutputSizeEmm(i64 noundef %46, i64 noundef %45) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %48 = load ptr, ptr %42, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %1, i64 40
  %50 = load ptr, ptr %49, align 8, !tbaa !40
  %51 = invoke { ptr, i64 } %48(i64 noundef %47, ptr noundef %50)
          to label %52 unwind label %91

52:                                               ; preds = %44
  %53 = extractvalue { ptr, i64 } %51, 0
  store ptr %53, ptr %7, align 8
  %54 = getelementptr inbounds i8, ptr %7, i64 8
  %55 = extractvalue { ptr, i64 } %51, 1
  store i64 %55, ptr %54, align 8
  %.not38 = icmp eq ptr %53, null
  br i1 %.not38, label %.critedge, label %56

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %1, i64 24
  %58 = load ptr, ptr %57, align 8, !tbaa !41
  %.not39 = icmp eq ptr %58, null
  %.sroa.011.0.copyload = load i64, ptr %6, align 8, !tbaa !42
  %.sroa.212.0.copyload = load ptr, ptr %40, align 8, !tbaa !43
  br i1 %.not39, label %61, label %59

59:                                               ; preds = %56
  %60 = load ptr, ptr %49, align 8, !tbaa !40
  invoke void %58(i64 %.sroa.011.0.copyload, ptr %.sroa.212.0.copyload, ptr noundef nonnull %53, i64 noundef %45, i64 noundef %47, ptr noundef %60)
          to label %62 unwind label %91

61:                                               ; preds = %56
  invoke void @_ZN8fastgltf6base6414decode_inplaceESt17basic_string_viewIcSt11char_traitsIcEEPhm(i64 %.sroa.011.0.copyload, ptr %.sroa.212.0.copyload, ptr noundef nonnull %53, i64 noundef %45)
          to label %62 unwind label %91

62:                                               ; preds = %61, %59
  %63 = getelementptr inbounds i8, ptr %1, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !44
  %.not40 = icmp eq ptr %64, null
  br i1 %.not40, label %67, label %65

65:                                               ; preds = %62
  %66 = load ptr, ptr %49, align 8, !tbaa !40
  invoke void %64(ptr noundef nonnull %7, ptr noundef %66)
          to label %67 unwind label %91

67:                                               ; preds = %65, %62
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %68 = getelementptr inbounds i8, ptr %8, i64 8
  store i8 0, ptr %68, align 8, !tbaa !45
  %69 = load i64, ptr %54, align 8, !tbaa !48
  store i64 %69, ptr %8, align 8, !tbaa !50
  %70 = invoke noundef zeroext i8 @_ZN8fastgltf6Parser21getMimeTypeFromStringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %20, ptr %21)
          to label %71 unwind label %91

71:                                               ; preds = %67
  store i8 %70, ptr %68, align 8, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %9) #7
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %9, ptr noundef nonnull align 8 dereferenceable(9) %8) #7
  call void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2EOSB_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(185) %9)
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %9) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %89

.critedge:                                        ; preds = %52
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  %.sroa.05.0.copyload.pre = load i64, ptr %6, align 8, !tbaa !42
  %.sroa.26.0.copyload.pre = load ptr, ptr %40, align 8, !tbaa !43
  br label %72

72:                                               ; preds = %.critedge, %38
  %.sroa.26.0.copyload = phi ptr [ %.sroa.26.0.copyload.pre, %.critedge ], [ %41, %38 ]
  %.sroa.05.0.copyload = phi i64 [ %.sroa.05.0.copyload.pre, %.critedge ], [ %39, %38 ]
  %73 = call noundef i64 @_ZN8fastgltf6base6410getPaddingESt17basic_string_viewIcSt11char_traitsIcEE(i64 %.sroa.05.0.copyload, ptr %.sroa.26.0.copyload)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %74 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %75 = call noundef i64 @_ZN8fastgltf6base6413getOutputSizeEmm(i64 noundef %74, i64 noundef %73) #7
  invoke void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %75)
          to label %76 unwind label %91

76:                                               ; preds = %72
  %77 = getelementptr inbounds i8, ptr %1, i64 24
  %78 = load ptr, ptr %77, align 8, !tbaa !41
  %.not41 = icmp eq ptr %78, null
  %.sroa.01.0.copyload = load i64, ptr %6, align 8, !tbaa !42
  %.sroa.22.0.copyload = load ptr, ptr %40, align 8, !tbaa !43
  %79 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  br i1 %.not41, label %84, label %80

80:                                               ; preds = %76
  %81 = call noundef i64 @_ZNK8fastgltf12StaticVectorISt4byteE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  %82 = getelementptr inbounds i8, ptr %1, i64 40
  %83 = load ptr, ptr %82, align 8, !tbaa !40
  invoke void %78(i64 %.sroa.01.0.copyload, ptr %.sroa.22.0.copyload, ptr noundef %79, i64 noundef %73, i64 noundef %81, ptr noundef %83)
          to label %85 unwind label %91

84:                                               ; preds = %76
  invoke void @_ZN8fastgltf6base6414decode_inplaceESt17basic_string_viewIcSt11char_traitsIcEEPhm(i64 %.sroa.01.0.copyload, ptr %.sroa.22.0.copyload, ptr noundef %79, i64 noundef %73)
          to label %85 unwind label %91

85:                                               ; preds = %84, %80
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  %86 = invoke noundef zeroext i8 @_ZN8fastgltf6Parser21getMimeTypeFromStringESt17basic_string_viewIcSt11char_traitsIcEE(i64 %20, ptr %21)
          to label %87 unwind label %91

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %11, i64 16
  store i8 %86, ptr %88, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %12) #7
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IS5_vvS5_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %12, ptr noundef nonnull align 8 dereferenceable(17) %11) #7
  call void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2EOSB_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(185) %12)
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %12) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %12) #7
  call void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %89

89:                                               ; preds = %71, %87
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %90

90:                                               ; preds = %89, %34
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  ret void

91:                                               ; preds = %85, %84, %80, %72, %67, %65, %61, %59, %44, %35, %19, %3
  %92 = landingpad { ptr, i32 }
          catch ptr null
  %93 = extractvalue { ptr, i32 } %92, 0
  call void @__clang_call_terminate(ptr %93) #8
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcEEbSt17basic_string_viewIT_T0_ENSt15__type_identityIS5_E4typeE(i64, ptr, i64, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8fastgltf6base6410getPaddingESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8fastgltf6base6413getOutputSizeEmm(i64 noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN8fastgltf6base6414decode_inplaceESt17basic_string_viewIcSt11char_traitsIcEEPhm(i64, ptr, ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN8fastgltf6Parser21getMimeTypeFromStringESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2EOSB_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(185)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IS5_vvS5_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !13, i64 8}
!6 = !{!"_ZTSN8fastgltf6ParserE", !7, i64 0, !16, i64 8, !18, i64 56, !25, i64 248, !28, i64 264, !39, i64 304}
!7 = !{!"_ZTSSt10unique_ptrIN8simdjson3dom6parserESt14default_deleteIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt15__uniq_ptr_dataIN8simdjson3dom6parserESt14default_deleteIS2_ELb1ELb1EE", !9, i64 0}
!9 = !{!"_ZTSSt15__uniq_ptr_implIN8simdjson3dom6parserESt14default_deleteIS2_EE", !10, i64 0}
!10 = !{!"_ZTSSt5tupleIJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !11, i64 0}
!11 = !{!"_ZTSSt11_Tuple_implILm0EJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_Head_baseILm0EPN8simdjson3dom6parserELb0EE", !13, i64 0}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !15, i64 0}
!15 = !{!"Simple C++ TBAA"}
!16 = !{!"_ZTSN8fastgltf20ParserInternalConfigE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !17, i64 40}
!17 = !{!"_ZTSN8fastgltf10ExtensionsE", !14, i64 0}
!18 = !{!"_ZTSSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEE", !19, i64 0}
!19 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !21, i64 0}
!21 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !22, i64 0}
!22 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !23, i64 0}
!23 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !14, i64 0, !14, i64 184}
!25 = !{!"_ZTSSt10shared_ptrIN8fastgltf19ChunkMemoryResourceEE", !26, i64 0}
!26 = !{!"_ZTSSt12__shared_ptrIN8fastgltf19ChunkMemoryResourceELN9__gnu_cxx12_Lock_policyE2EE", !13, i64 0, !27, i64 8}
!27 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !13, i64 0}
!28 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !29, i64 0, !32, i64 32}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !31, i64 8, !14, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!31 = !{!"long", !14, i64 0}
!32 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !33, i64 0}
!33 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !34, i64 0}
!34 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !35, i64 0}
!35 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !36, i64 0}
!36 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !37, i64 0}
!37 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !38, i64 0}
!38 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !13, i64 0}
!39 = !{!"_ZTSN8fastgltf7OptionsE", !14, i64 0}
!40 = !{!6, !13, i64 40}
!41 = !{!6, !13, i64 24}
!42 = !{!31, !31, i64 0}
!43 = !{!13, !13, i64 0}
!44 = !{!6, !13, i64 16}
!45 = !{!46, !47, i64 8}
!46 = !{!"_ZTSN8fastgltf7sources12CustomBufferE", !31, i64 0, !47, i64 8}
!47 = !{!"_ZTSN8fastgltf8MimeTypeE", !14, i64 0}
!48 = !{!49, !31, i64 8}
!49 = !{!"_ZTSN8fastgltf10BufferInfoE", !13, i64 0, !31, i64 8}
!50 = !{!46, !31, i64 0}
!51 = !{!52, !47, i64 16}
!52 = !{!"_ZTSN8fastgltf7sources5ArrayE", !53, i64 0, !47, i64 16}
!53 = !{!"_ZTSN8fastgltf12StaticVectorISt4byteEE", !31, i64 0, !54, i64 8}
!54 = !{!"_ZTSSt10unique_ptrIA_St4byteSt14default_deleteIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt15__uniq_ptr_dataISt4byteSt14default_deleteIA_S0_ELb1ELb1EE", !56, i64 0}
!56 = !{!"_ZTSSt15__uniq_ptr_implISt4byteSt14default_deleteIA_S0_EE", !57, i64 0}
!57 = !{!"_ZTSSt5tupleIJPSt4byteSt14default_deleteIA_S0_EEE", !58, i64 0}
!58 = !{!"_ZTSSt11_Tuple_implILm0EJPSt4byteSt14default_deleteIA_S0_EEE", !59, i64 0}
!59 = !{!"_ZTSSt10_Head_baseILm0EPSt4byteLb0EE", !13, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass