; LLVM IR from Razakhel/RaZ :: extern/fastgltf/src/io.ll (ZNK8fastgltf6Parser15loadFileFromUriERNS_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.11" }
%"union.std::__detail::__variant::_Variadic_union.11" = type { %"union.std::__detail::__variant::_Variadic_union.13" }
%"union.std::__detail::__variant::_Variadic_union.13" = type { %"struct.std::__detail::__variant::_Uninitialized.14" }
%"struct.std::__detail::__variant::_Uninitialized.14" = type { %"struct.__gnu_cxx::__aligned_membuf" }
%"struct.__gnu_cxx::__aligned_membuf" = type { [184 x i8] }
%"class.fastgltf::URI" = type { %"class.std::__cxx11::basic_string", %"class.fastgltf::URIView" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.fastgltf::URIView" = type <{ %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", i8, [7 x i8] }>
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::filesystem::__cxx11::path" = type { %"class.std::__cxx11::basic_string", %"struct.std::filesystem::__cxx11::path::_List" }
%"struct.std::filesystem::__cxx11::path::_List" = type { %"class.std::unique_ptr.2" }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::error_code" = type { i32, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.10 }
%union.anon.10 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"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" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"struct.fastgltf::sources::Array" = type <{ %"class.fastgltf::StaticVector", i8, [7 x i8] }>
%"class.fastgltf::Parser" = type { %"class.std::unique_ptr.29", %"struct.fastgltf::ParserInternalConfig", %"class.std::variant", %"class.std::shared_ptr", %"class.std::filesystem::__cxx11::path", i64 }
%"class.std::unique_ptr.29" = type { %"struct.std::__uniq_ptr_data.30" }
%"struct.std::__uniq_ptr_data.30" = type { %"class.std::__uniq_ptr_impl.31" }
%"class.std::__uniq_ptr_impl.31" = type { %"class.std::tuple.32" }
%"class.std::tuple.32" = type { %"struct.std::_Tuple_impl.33" }
%"struct.std::_Tuple_impl.33" = type { %"struct.std::_Head_base.36" }
%"struct.std::_Head_base.36" = 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 }

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

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

; Function Attrs: nounwind
declare noundef i64 @_ZNSt10filesystem9file_sizeERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1INSt10filesystem7__cxx114pathES6_EERKT_St13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8fastgltf6Parser15loadFileFromUriERNS_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) #1 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.fastgltf::URI", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca %"class.std::filesystem::__cxx11::path", align 8
  %10 = alloca %"class.std::filesystem::__cxx11::path", align 8
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.std::error_code", align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::basic_ifstream", align 8
  %16 = alloca %"struct.fastgltf::BufferInfo", align 8
  %17 = alloca %"struct.fastgltf::sources::CustomBuffer", align 8
  %18 = alloca %"class.std::variant", align 8
  %19 = alloca %"class.fastgltf::StaticVector", align 8
  %20 = alloca %"struct.fastgltf::sources::Array", align 8
  %21 = 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
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 168, ptr %7) #8
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = call { i64, ptr } @_ZNK8fastgltf7URIView4pathEv(ptr noundef nonnull align 8 dereferenceable(129) %23) #8
  %25 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  %26 = extractvalue { i64, ptr } %24, 0
  store i64 %26, ptr %25, align 8
  %27 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  %28 = extractvalue { i64, ptr } %24, 1
  store ptr %28, ptr %27, align 8
  %29 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8
  call void @_ZN8fastgltf3URIC1ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(168) %7, i64 %30, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #8
  %33 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  %34 = call { i64, ptr } @_ZNK8fastgltf3URI4pathEv(ptr noundef nonnull align 8 dereferenceable(168) %7) #8
  %35 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 0
  %36 = extractvalue { i64, ptr } %34, 0
  store i64 %36, ptr %35, align 8
  %37 = getelementptr inbounds { i64, ptr }, ptr %11, i32 0, i32 1
  %38 = extractvalue { i64, ptr } %34, 1
  store ptr %38, ptr %37, align 8
  invoke void @_ZNSt10filesystem7__cxx116u8pathISt17basic_string_viewIcSt11char_traitsIcEENS0_4pathEcEES6_RKT_(ptr dead_on_unwind writable sret(%"class.std::filesystem::__cxx11::path") align 8 %10, ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %39 unwind label %115

39:                                               ; preds = %3
  invoke void @_ZNSt10filesystem7__cxx11dvERKNS0_4pathES3_(ptr dead_on_unwind writable sret(%"class.std::filesystem::__cxx11::path") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %40 unwind label %115

40:                                               ; preds = %39
  call void @_ZNSt10filesystem7__cxx114pathD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  %41 = call noundef zeroext i1 @_ZNSt10filesystem6existsERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br i1 %41, label %42, label %44

42:                                               ; preds = %40
  %43 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br i1 %43, label %44, label %46

44:                                               ; preds = %42, %40
  invoke void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200) %0, i64 noundef 9)
          to label %45 unwind label %115

45:                                               ; preds = %44
  store i32 1, ptr %13, align 4
  br label %114

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %47 = call noundef i64 @_ZNSt10filesystem9file_sizeERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  store i64 %47, ptr %14, align 8, !tbaa !9
  %48 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br i1 %48, label %49, label %51

49:                                               ; preds = %46
  invoke void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200) %0, i64 noundef 11)
          to label %50 unwind label %115

50:                                               ; preds = %49
  store i32 1, ptr %13, align 4
  br label %113

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 520, ptr %15) #8
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1INSt10filesystem7__cxx114pathES6_EERKT_St13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %15, ptr noundef nonnull align 8 dereferenceable(40) %9, i32 noundef 4)
          to label %52 unwind label %115

52:                                               ; preds = %51
  %53 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 1
  %54 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %102

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %58 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 1
  %59 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !11
  %61 = load i64, ptr %14, align 8, !tbaa !9
  %62 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 1
  %63 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %62, i32 0, i32 4
  %64 = load ptr, ptr %63, align 8, !tbaa !42
  %65 = invoke { ptr, i64 } %60(i64 noundef %61, ptr noundef %64)
          to label %66 unwind label %115

66:                                               ; preds = %57
  %67 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %68 = extractvalue { ptr, i64 } %65, 0
  store ptr %68, ptr %67, align 8
  %69 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %70 = extractvalue { ptr, i64 } %65, 1
  store i64 %70, ptr %69, align 8
  %71 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %16, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !43
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %98

74:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %75 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %17, i32 0, i32 0
  %76 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %16, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !45
  store i64 %77, ptr %75, align 8, !tbaa !46
  %78 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %17, i32 0, i32 1
  store i8 0, ptr %78, align 8, !tbaa !49
  %79 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %16, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !43
  %81 = load i64, ptr %14, align 8, !tbaa !9
  %82 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %80, i64 noundef %81)
          to label %83 unwind label %115

83:                                               ; preds = %74
  %84 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 1
  %85 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !50
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %96

88:                                               ; preds = %83
  %89 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 1
  %90 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %89, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8, !tbaa !50
  %92 = getelementptr inbounds %"class.fastgltf::Parser", ptr %22, i32 0, i32 1
  %93 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %92, i32 0, i32 4
  %94 = load ptr, ptr %93, align 8, !tbaa !42
  invoke void %91(ptr noundef %16, ptr noundef %94)
          to label %95 unwind label %115

95:                                               ; preds = %88
  br label %96

96:                                               ; preds = %95, %83
  call void @llvm.lifetime.start.p0(i64 192, ptr %18) #8
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRKS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %18, ptr noundef nonnull align 8 dereferenceable(9) %17) #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) %18)
          to label %97 unwind label %115

97:                                               ; preds = %96
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %18) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %18) #8
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %99

98:                                               ; preds = %66
  store i32 0, ptr %13, align 4
  br label %99

99:                                               ; preds = %98, %97
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  %100 = load i32, ptr %13, align 4
  switch i32 %100, label %112 [
    i32 0, label %101
  ]

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101, %52
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %103 = load i64, ptr %14, align 8, !tbaa !9
  invoke void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %103)
          to label %104 unwind label %115

104:                                              ; preds = %102
  %105 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  %106 = load i64, ptr %14, align 8, !tbaa !9
  %107 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %105, i64 noundef %106)
          to label %108 unwind label %115

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  %109 = getelementptr inbounds %"struct.fastgltf::sources::Array", ptr %20, i32 0, i32 0
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  %110 = getelementptr inbounds %"struct.fastgltf::sources::Array", ptr %20, i32 0, i32 1
  store i8 0, ptr %110, align 8, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 192, ptr %21) #8
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IS5_vvS5_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %21, ptr noundef nonnull align 8 dereferenceable(17) %20) #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) %21)
          to label %111 unwind label %115

111:                                              ; preds = %108
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %21) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %21) #8
  store i32 1, ptr %13, align 4
  call void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %112

112:                                              ; preds = %111, %99
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %15) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %15) #8
  br label %113

113:                                              ; preds = %112, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %114

114:                                              ; preds = %113, %45
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @_ZNSt10filesystem7__cxx114pathD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #8
  call void @_ZN8fastgltf3URID2Ev(ptr noundef nonnull align 8 dereferenceable(168) %7) #8
  call void @llvm.lifetime.end.p0(i64 168, ptr %7) #8
  ret void

115:                                              ; preds = %108, %104, %102, %96, %88, %74, %57, %51, %49, %44, %39, %3
  %116 = landingpad { ptr, i32 }
          catch ptr null
  %117 = extractvalue { ptr, i32 } %116, 0
  call void @__clang_call_terminate(ptr %117) #9
  unreachable
}

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

; Function Attrs: nounwind
declare void @_ZN8fastgltf3URIC1ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(168), i64, ptr) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10filesystem7__cxx11dvERKNS0_4pathES3_(ptr dead_on_unwind noalias writable sret(%"class.std::filesystem::__cxx11::path") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt10filesystem7__cxx116u8pathISt17basic_string_viewIcSt11char_traitsIcEENS0_4pathEcEES6_RKT_(ptr dead_on_unwind noalias writable sret(%"class.std::filesystem::__cxx11::path") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: nounwind
declare { i64, ptr } @_ZNK8fastgltf3URI4pathEv(ptr noundef nonnull align 8 dereferenceable(168)) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt10filesystem6existsERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16)) #7

; 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 #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRKS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #1 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 #1 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 #1 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)) #1 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 #1 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 #1 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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { 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 #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 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 = { 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 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN8fastgltf6ParserE", !13, i64 0, !19, i64 8, !21, i64 56, !28, i64 248, !31, i64 264, !41, i64 304}
!13 = !{!"_ZTSSt10unique_ptrIN8simdjson3dom6parserESt14default_deleteIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt15__uniq_ptr_dataIN8simdjson3dom6parserESt14default_deleteIS2_ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt15__uniq_ptr_implIN8simdjson3dom6parserESt14default_deleteIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt5tupleIJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !17, i64 0}
!17 = !{!"_ZTSSt11_Tuple_implILm0EJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_Head_baseILm0EPN8simdjson3dom6parserELb0EE", !6, i64 0}
!19 = !{!"_ZTSN8fastgltf20ParserInternalConfigE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !20, i64 40}
!20 = !{!"_ZTSN8fastgltf10ExtensionsE", !7, i64 0}
!21 = !{!"_ZTSSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEE", !22, i64 0}
!22 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !23, i64 0}
!23 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !25, i64 0}
!25 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !26, i64 0}
!26 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !27, i64 0}
!27 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !7, i64 0, !7, i64 184}
!28 = !{!"_ZTSSt10shared_ptrIN8fastgltf19ChunkMemoryResourceEE", !29, i64 0}
!29 = !{!"_ZTSSt12__shared_ptrIN8fastgltf19ChunkMemoryResourceELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !30, i64 8}
!30 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!31 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !32, i64 0, !34, i64 32}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !10, i64 8, !7, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!34 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !35, i64 0}
!35 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !36, i64 0}
!36 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !37, i64 0}
!37 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !38, i64 0}
!38 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !39, i64 0}
!39 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !40, i64 0}
!40 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !6, i64 0}
!41 = !{!"_ZTSN8fastgltf7OptionsE", !7, i64 0}
!42 = !{!12, !6, i64 40}
!43 = !{!44, !6, i64 0}
!44 = !{!"_ZTSN8fastgltf10BufferInfoE", !6, i64 0, !10, i64 8}
!45 = !{!44, !10, i64 8}
!46 = !{!47, !10, i64 0}
!47 = !{!"_ZTSN8fastgltf7sources12CustomBufferE", !10, i64 0, !48, i64 8}
!48 = !{!"_ZTSN8fastgltf8MimeTypeE", !7, i64 0}
!49 = !{!47, !48, i64 8}
!50 = !{!12, !6, i64 16}
!51 = !{!52, !48, i64 16}
!52 = !{!"_ZTSN8fastgltf7sources5ArrayE", !53, i64 0, !48, i64 16}
!53 = !{!"_ZTSN8fastgltf12StaticVectorISt4byteEE", !10, 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", !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.11" }
%"union.std::__detail::__variant::_Variadic_union.11" = type { %"union.std::__detail::__variant::_Variadic_union.13" }
%"union.std::__detail::__variant::_Variadic_union.13" = type { %"struct.std::__detail::__variant::_Uninitialized.14" }
%"struct.std::__detail::__variant::_Uninitialized.14" = type { %"struct.__gnu_cxx::__aligned_membuf" }
%"struct.__gnu_cxx::__aligned_membuf" = type { [184 x i8] }
%"class.fastgltf::URI" = type { %"class.std::__cxx11::basic_string", %"class.fastgltf::URIView" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.fastgltf::URIView" = type <{ %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", %"class.std::basic_string_view", i8, [7 x i8] }>
%"class.std::basic_string_view" = type { i64, ptr }
%"class.std::filesystem::__cxx11::path" = type { %"class.std::__cxx11::basic_string", %"struct.std::filesystem::__cxx11::path::_List" }
%"struct.std::filesystem::__cxx11::path::_List" = type { %"class.std::unique_ptr.2" }
%"class.std::unique_ptr.2" = type { %"struct.std::__uniq_ptr_data.3" }
%"struct.std::__uniq_ptr_data.3" = type { %"class.std::__uniq_ptr_impl.4" }
%"class.std::__uniq_ptr_impl.4" = type { %"class.std::tuple.5" }
%"class.std::tuple.5" = type { %"struct.std::_Tuple_impl.6" }
%"struct.std::_Tuple_impl.6" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%"class.std::error_code" = type { i32, ptr }
%"class.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.10 }
%union.anon.10 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"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" }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }
%"struct.fastgltf::sources::Array" = type <{ %"class.fastgltf::StaticVector", i8, [7 x i8] }>

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

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

; Function Attrs: nounwind
declare noundef i64 @_ZNSt10filesystem9file_sizeERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1INSt10filesystem7__cxx114pathES6_EERKT_St13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK8fastgltf6Parser15loadFileFromUriERNS_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) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.fastgltf::URI", align 8
  %5 = alloca %"class.std::filesystem::__cxx11::path", align 8
  %6 = alloca %"class.std::filesystem::__cxx11::path", align 8
  %7 = alloca %"class.std::basic_string_view", align 8
  %8 = alloca %"class.std::error_code", align 8
  %9 = alloca %"class.std::basic_ifstream", align 8
  %10 = alloca %"struct.fastgltf::BufferInfo", align 8
  %11 = alloca %"struct.fastgltf::sources::CustomBuffer", align 8
  %12 = alloca %"class.std::variant", align 8
  %13 = alloca %"class.fastgltf::StaticVector", align 8
  %14 = alloca %"struct.fastgltf::sources::Array", align 8
  %15 = alloca %"class.std::variant", align 8
  call void @llvm.lifetime.start.p0(i64 168, ptr nonnull %4) #8
  %16 = tail call { i64, ptr } @_ZNK8fastgltf7URIView4pathEv(ptr noundef nonnull align 8 dereferenceable(129) %2) #8
  %17 = extractvalue { i64, ptr } %16, 0
  %18 = extractvalue { i64, ptr } %16, 1
  call void @_ZN8fastgltf3URIC1ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(168) %4, i64 %17, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #8
  %19 = call { i64, ptr } @_ZNK8fastgltf3URI4pathEv(ptr noundef nonnull align 8 dereferenceable(168) %4) #8
  %20 = extractvalue { i64, ptr } %19, 0
  store i64 %20, ptr %7, align 8
  %21 = getelementptr inbounds i8, ptr %7, i64 8
  %22 = extractvalue { i64, ptr } %19, 1
  store ptr %22, ptr %21, align 8
  invoke void @_ZNSt10filesystem7__cxx116u8pathISt17basic_string_viewIcSt11char_traitsIcEENS0_4pathEcEES6_RKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::filesystem::__cxx11::path") align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %23 unwind label %63

23:                                               ; preds = %3
  %24 = getelementptr inbounds i8, ptr %1, i64 264
  invoke void @_ZNSt10filesystem7__cxx11dvERKNS0_4pathES3_(ptr dead_on_unwind nonnull writable sret(%"class.std::filesystem::__cxx11::path") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 8 dereferenceable(40) %6)
          to label %25 unwind label %63

25:                                               ; preds = %23
  call void @_ZNSt10filesystem7__cxx114pathD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  %26 = call noundef zeroext i1 @_ZNSt10filesystem6existsERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br i1 %26, label %27, label %29

27:                                               ; preds = %25
  %28 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br i1 %28, label %29, label %30

29:                                               ; preds = %27, %25
  call void @_ZN8fastgltf8ExpectedISt7variantIJSt9monostateNS_7sources10BufferViewENS3_3URIENS3_5ArrayENS3_6VectorENS3_12CustomBufferENS3_8ByteViewENS3_8FallbackEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(200) %0, i64 noundef 9)
  br label %62

30:                                               ; preds = %27
  %31 = call noundef i64 @_ZNSt10filesystem9file_sizeERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  %32 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  br i1 %32, label %33, label %34

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

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %9) #8
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1INSt10filesystem7__cxx114pathES6_EERKT_St13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %9, ptr noundef nonnull align 8 dereferenceable(40) %5, i32 noundef 4)
          to label %35 unwind label %63

35:                                               ; preds = %34
  %36 = getelementptr inbounds i8, ptr %1, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %.not = icmp eq ptr %37, null
  br i1 %.not, label %55, label %38

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %39 = getelementptr inbounds i8, ptr %1, i64 40
  %40 = load ptr, ptr %39, align 8, !tbaa !40
  %41 = invoke { ptr, i64 } %37(i64 noundef %31, ptr noundef %40)
          to label %42 unwind label %63

42:                                               ; preds = %38
  %43 = extractvalue { ptr, i64 } %41, 0
  store ptr %43, ptr %10, align 8
  %44 = getelementptr inbounds i8, ptr %10, i64 8
  %45 = extractvalue { ptr, i64 } %41, 1
  store i64 %45, ptr %44, align 8
  %.not7 = icmp eq ptr %43, null
  br i1 %.not7, label %.critedge, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  store i64 %45, ptr %11, align 8, !tbaa !41
  %47 = getelementptr inbounds i8, ptr %11, i64 8
  store i8 0, ptr %47, align 8, !tbaa !44
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %43, i64 noundef %31)
          to label %49 unwind label %63

49:                                               ; preds = %46
  %50 = getelementptr inbounds i8, ptr %1, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !45
  %.not8 = icmp eq ptr %51, null
  br i1 %.not8, label %54, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr %39, align 8, !tbaa !40
  invoke void %51(ptr noundef nonnull %10, ptr noundef %53)
          to label %54 unwind label %63

54:                                               ; preds = %52, %49
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %12) #8
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRKS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %12, ptr noundef nonnull align 8 dereferenceable(9) %11) #8
  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) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %61

.critedge:                                        ; preds = %42
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  br label %55

55:                                               ; preds = %.critedge, %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  invoke void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %13, i64 noundef %31)
          to label %56 unwind label %63

56:                                               ; preds = %55
  %57 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  %58 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %57, i64 noundef %31)
          to label %59 unwind label %63

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  %60 = getelementptr inbounds i8, ptr %14, i64 16
  store i8 0, ptr %60, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %15) #8
  call void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IS5_vvS5_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185) %15, ptr noundef nonnull align 8 dereferenceable(17) %14) #8
  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) %15)
  call void @_ZNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEED2Ev(ptr noundef nonnull align 8 dereferenceable(185) %15) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %15) #8
  call void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  br label %61

61:                                               ; preds = %54, %59
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %9) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %9) #8
  br label %62

62:                                               ; preds = %33, %61, %29
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #8
  call void @_ZNSt10filesystem7__cxx114pathD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  call void @_ZN8fastgltf3URID2Ev(ptr noundef nonnull align 8 dereferenceable(168) %4) #8
  call void @llvm.lifetime.end.p0(i64 168, ptr nonnull %4) #8
  ret void

63:                                               ; preds = %56, %55, %52, %46, %38, %34, %23, %3
  %64 = landingpad { ptr, i32 }
          catch ptr null
  %65 = extractvalue { ptr, i32 } %64, 0
  call void @__clang_call_terminate(ptr %65) #9
  unreachable
}

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

; Function Attrs: nounwind
declare void @_ZN8fastgltf3URIC1ESt17basic_string_viewIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(168), i64, ptr) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10filesystem7__cxx11dvERKNS0_4pathES3_(ptr dead_on_unwind noalias writable sret(%"class.std::filesystem::__cxx11::path") align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt10filesystem7__cxx116u8pathISt17basic_string_viewIcSt11char_traitsIcEENS0_4pathEcEES6_RKT_(ptr dead_on_unwind noalias writable sret(%"class.std::filesystem::__cxx11::path") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: nounwind
declare { i64, ptr } @_ZNK8fastgltf3URI4pathEv(ptr noundef nonnull align 8 dereferenceable(168)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNSt10filesystem6existsERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #7

; 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 #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEC2IRKS7_vvS7_vEEOT_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #1 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 #1 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 #1 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 #1 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 #1 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 #1 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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { 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 #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 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 = { 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, !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 = !{!42, !31, i64 0}
!42 = !{!"_ZTSN8fastgltf7sources12CustomBufferE", !31, i64 0, !43, i64 8}
!43 = !{!"_ZTSN8fastgltf8MimeTypeE", !14, i64 0}
!44 = !{!42, !43, i64 8}
!45 = !{!6, !13, i64 16}
!46 = !{!47, !43, i64 16}
!47 = !{!"_ZTSN8fastgltf7sources5ArrayE", !48, i64 0, !43, i64 16}
!48 = !{!"_ZTSN8fastgltf12StaticVectorISt4byteEE", !31, i64 0, !49, i64 8}
!49 = !{!"_ZTSSt10unique_ptrIA_St4byteSt14default_deleteIS1_EE", !50, i64 0}
!50 = !{!"_ZTSSt15__uniq_ptr_dataISt4byteSt14default_deleteIA_S0_ELb1ELb1EE", !51, i64 0}
!51 = !{!"_ZTSSt15__uniq_ptr_implISt4byteSt14default_deleteIA_S0_EE", !52, i64 0}
!52 = !{!"_ZTSSt5tupleIJPSt4byteSt14default_deleteIA_S0_EEE", !53, i64 0}
!53 = !{!"_ZTSSt11_Tuple_implILm0EJPSt4byteSt14default_deleteIA_S0_EEE", !54, i64 0}
!54 = !{!"_ZTSSt10_Head_baseILm0EPSt4byteLb0EE", !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass