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

; 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.408" = type { i64, %"class.fastgltf::Asset" }
%"class.fastgltf::Asset" = type <{ %"class.std::shared_ptr", %"class.std::optional", %"class.std::vector.88", %"class.std::vector.88", %"class.fastgltf::OptionalWithFlagValue", %"class.std::vector.91", %"class.std::vector.96", %"class.std::vector.101", %"class.std::vector.106", %"class.std::vector.111", %"class.std::vector.116", %"class.std::vector.121", %"class.std::vector.126", %"class.std::vector.131", %"class.std::vector.136", %"class.std::vector.141", %"class.std::vector.146", %"class.std::vector.151", %"class.std::vector.156", %"class.std::vector.161", i32, [4 x i8] }>
%"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::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<fastgltf::AssetInfo>::_Storage", i8 }>
%"union.std::_Optional_payload_base<fastgltf::AssetInfo>::_Storage" = type { %"struct.fastgltf::AssetInfo" }
%"struct.fastgltf::AssetInfo" = type { %"class.std::__cxx11::basic_string.74", %"class.std::__cxx11::basic_string.74", %"class.std::__cxx11::basic_string.74" }
%"class.std::__cxx11::basic_string.74" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>::_Alloc_hider", i64, %union.anon.76 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>::_Alloc_hider" = type { %"class.std::pmr::polymorphic_allocator.75", ptr }
%"class.std::pmr::polymorphic_allocator.75" = type { ptr }
%union.anon.76 = type { i64, [8 x i8] }
%"class.std::vector.88" = type { %"struct.std::_Vector_base.89" }
%"struct.std::_Vector_base.89" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl" = type { %"class.std::pmr::polymorphic_allocator.90", %"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl_data" }
%"class.std::pmr::polymorphic_allocator.90" = type { ptr }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastgltf::OptionalWithFlagValue" = type { %union.anon }
%union.anon = type { i64 }
%"class.std::vector.91" = type { %"struct.std::_Vector_base.92" }
%"struct.std::_Vector_base.92" = type { %"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.96" = type { %"struct.std::_Vector_base.97" }
%"struct.std::_Vector_base.97" = type { %"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.101" = type { %"struct.std::_Vector_base.102" }
%"struct.std::_Vector_base.102" = type { %"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = type { %"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.116" = type { %"struct.std::_Vector_base.117" }
%"struct.std::_Vector_base.117" = type { %"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.121" = type { %"struct.std::_Vector_base.122" }
%"struct.std::_Vector_base.122" = type { %"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.126" = type { %"struct.std::_Vector_base.127" }
%"struct.std::_Vector_base.127" = type { %"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.131" = type { %"struct.std::_Vector_base.132" }
%"struct.std::_Vector_base.132" = type { %"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.136" = type { %"struct.std::_Vector_base.137" }
%"struct.std::_Vector_base.137" = type { %"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.141" = type { %"struct.std::_Vector_base.142" }
%"struct.std::_Vector_base.142" = type { %"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.151" = type { %"struct.std::_Vector_base.152" }
%"struct.std::_Vector_base.152" = type { %"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.156" = type { %"struct.std::_Vector_base.157" }
%"struct.std::_Vector_base.157" = type { %"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.161" = type { %"struct.std::_Vector_base.162" }
%"struct.std::_Vector_base.162" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::error_code" = type { i32, ptr }
%"struct.fastgltf::BinaryGltfHeader" = type { i32, i32, i32 }
%"struct.fastgltf::BinaryGltfChunk" = type { i32, i32 }
%"class.fastgltf::span.427" = type { ptr, i64 }
%"class.simdjson::padded_string_view" = type { %"class.std::basic_string_view", i64 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.simdjson::dom::object" = type { %"class.simdjson::internal::tape_ref" }
%"class.simdjson::internal::tape_ref" = type { ptr, i64 }
%"struct.simdjson::simdjson_result.0" = type { %"struct.simdjson::internal::simdjson_result_base.base.5", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.5" = type { %"struct.std::pair.base.4" }
%"struct.std::pair.base.4" = type <{ %"class.simdjson::dom::element", i32 }>
%"class.simdjson::dom::element" = type { %"class.simdjson::internal::tape_ref" }
%"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::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::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 }

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

; 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) #1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i1 @llvm.expect.i1(i1, i1) #3

; 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)) #5 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 #5 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS5_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(17)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fastgltf6Parser5parseEN8simdjson3dom6objectENS_8CategoryE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected.408") align 8, ptr noundef nonnull align 8 dereferenceable(312), ptr, i64, i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8fastgltf6hasBitINS_7OptionsES1_EEbT_T0_(i64 noundef, i64 noundef) #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8fastgltf6Parser14loadGltfBinaryERNS_14GltfDataGetterENSt10filesystem7__cxx114pathENS_7OptionsENS_8CategoryE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected.408") align 8 %0, ptr noundef nonnull align 8 dereferenceable(312) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i64 noundef %4, i32 noundef %5) #4 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::error_code", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.fastgltf::BinaryGltfHeader", align 4
  %16 = alloca { i64, i32 }, align 8
  %17 = alloca %"struct.fastgltf::BinaryGltfChunk", align 4
  %18 = alloca %"class.fastgltf::span.427", align 8
  %19 = alloca %"class.simdjson::padded_string_view", align 8
  %20 = alloca %"class.simdjson::dom::object", align 8
  %21 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %22 = alloca %"struct.fastgltf::BinaryGltfChunk", align 4
  %23 = alloca %"struct.fastgltf::BufferInfo", align 8
  %24 = alloca %"struct.fastgltf::sources::CustomBuffer", align 8
  %25 = alloca %"class.fastgltf::StaticVector", align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"struct.fastgltf::sources::Array", align 8
  %29 = alloca %"class.simdjson::dom::object", align 8
  store ptr %0, ptr %7, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !11
  %30 = load ptr, ptr %8, align 8
  %31 = load i64, ptr %11, align 8, !tbaa !9
  %32 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 5
  store i64 %31, ptr %32, align 8, !tbaa !13
  %33 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 4
  %34 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt10filesystem7__cxx114pathaSEOS1_(ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  %35 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 5
  %36 = load i64, ptr %35, align 8, !tbaa !13
  %37 = call noundef zeroext i1 @_ZN8fastgltf6hasBitINS_7OptionsES1_EEbT_T0_(i64 noundef %36, i64 noundef 16)
  br i1 %37, label %38, label %44

38:                                               ; preds = %6
  %39 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 4
  %40 = call noundef zeroext i1 @_ZNSt10filesystem12is_directoryERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40) %39, ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br i1 %40, label %41, label %43

41:                                               ; preds = %38
  %42 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br i1 %42, label %43, label %44

43:                                               ; preds = %41, %38
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 1)
  store i32 1, ptr %14, align 4
  br label %45

44:                                               ; preds = %41, %6
  store i32 0, ptr %14, align 4
  br label %45

45:                                               ; preds = %44, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  %46 = load i32, ptr %14, align 4
  switch i32 %46, label %223 [
    i32 0, label %47
    i32 1, label %217
  ]

47:                                               ; preds = %45
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %48, align 8, !tbaa !44
  %50 = getelementptr inbounds ptr, ptr %49, i64 4
  %51 = load ptr, ptr %50, align 8
  call void %51(ptr noundef nonnull align 8 dereferenceable(8) %48)
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call { i64, i32 } @_ZN8fastgltf16readBinaryHeaderERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8) %52) #7
  store { i64, i32 } %53, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 12, i1 false)
  %54 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %15, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !46
  %56 = icmp ne i32 %55, 1179937895
  br i1 %56, label %57, label %58

57:                                               ; preds = %47
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  store i32 1, ptr %14, align 4
  br label %216

58:                                               ; preds = %47
  %59 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %15, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !49
  %61 = icmp ne i32 %60, 2
  br i1 %61, label %62, label %63

62:                                               ; preds = %58
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 10)
  store i32 1, ptr %14, align 4
  br label %216

63:                                               ; preds = %58
  %64 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %15, i32 0, i32 2
  %65 = load i32, ptr %64, align 4, !tbaa !50
  %66 = zext i32 %65 to i64
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !44
  %69 = getelementptr inbounds ptr, ptr %68, i64 6
  %70 = load ptr, ptr %69, align 8
  %71 = call noundef i64 %70(ptr noundef nonnull align 8 dereferenceable(8) %67)
  %72 = icmp ugt i64 %66, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %63
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  store i32 1, ptr %14, align 4
  br label %216

74:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = call i64 @_ZN8fastgltf15readBinaryChunkERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  store i64 %76, ptr %17, align 4
  %77 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %17, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !51
  %79 = icmp ne i32 %78, 1313821514
  br i1 %79, label %80, label %81

80:                                               ; preds = %74
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  store i32 1, ptr %14, align 4
  br label %215

81:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #7
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %17, i32 0, i32 0
  %84 = load i32, ptr %83, align 4, !tbaa !53
  %85 = zext i32 %84 to i64
  %86 = load ptr, ptr %82, align 8, !tbaa !44
  %87 = getelementptr inbounds ptr, ptr %86, i64 3
  %88 = load ptr, ptr %87, align 8
  %89 = call { ptr, i64 } %88(ptr noundef nonnull align 8 dereferenceable(8) %82, i64 noundef %85, i64 noundef 64)
  %90 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %91 = extractvalue { ptr, i64 } %89, 0
  store ptr %91, ptr %90, align 8
  %92 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %93 = extractvalue { ptr, i64 } %89, 1
  store i64 %93, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  %94 = call noundef ptr @_ZNK8fastgltf4spanISt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  %95 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %17, i32 0, i32 0
  %96 = load i32, ptr %95, align 4, !tbaa !53
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %17, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !53
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 64
  call void @_ZN8simdjson18padded_string_viewC2EPKhmm(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef %94, i64 noundef %97, i64 noundef %101) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  %102 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 0
  %103 = call noundef ptr @_ZNKSt10unique_ptrIN8simdjson3dom6parserESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %102) #7
  call void @_ZNR8simdjson3dom6parser5parseERKNS_18padded_string_viewE(ptr dead_on_unwind writable sret(%"struct.simdjson::simdjson_result.0") align 8 %21, ptr noundef nonnull align 8 dereferenceable(64) %103, ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %104 = call noundef i32 @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE3getINS1_6objectEEENS_10error_codeERT_(ptr noundef nonnull align 8 dereferenceable(20) %21, ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  %105 = icmp ne i32 %104, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  %106 = call i1 @llvm.expect.i1(i1 %105, i1 false)
  br i1 %106, label %107, label %108

107:                                              ; preds = %81
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 4)
  store i32 1, ptr %14, align 4
  br label %214

108:                                              ; preds = %81
  %109 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %15, i32 0, i32 2
  %110 = load i32, ptr %109, align 4, !tbaa !50
  %111 = zext i32 %110 to i64
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %112, align 8, !tbaa !44
  %114 = getelementptr inbounds ptr, ptr %113, i64 5
  %115 = load ptr, ptr %114, align 8
  %116 = call noundef i64 %115(ptr noundef nonnull align 8 dereferenceable(8) %112)
  %117 = add i64 %116, 8
  %118 = icmp ugt i64 %111, %117
  br i1 %118, label %119, label %208

119:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = call i64 @_ZN8fastgltf15readBinaryChunkERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8) %120) #7
  store i64 %121, ptr %22, align 4
  %122 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !51
  %124 = icmp ne i32 %123, 5130562
  br i1 %124, label %125, label %126

125:                                              ; preds = %119
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  store i32 1, ptr %14, align 4
  br label %205

126:                                              ; preds = %119
  %127 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 0
  %128 = load i32, ptr %127, align 4, !tbaa !53
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %204

130:                                              ; preds = %126
  %131 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 1
  %132 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !54
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %182

135:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %136 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 1
  %137 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %137, align 8, !tbaa !54
  %139 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 0
  %140 = load i32, ptr %139, align 4, !tbaa !53
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 1
  %143 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %142, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !55
  %145 = call { ptr, i64 } %138(i64 noundef %141, ptr noundef %144)
  %146 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %147 = extractvalue { ptr, i64 } %145, 0
  store ptr %147, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %149 = extractvalue { ptr, i64 } %145, 1
  store i64 %149, ptr %148, align 8
  %150 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %23, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !56
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %181

153:                                              ; preds = %135
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %23, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !56
  %157 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 0
  %158 = load i32, ptr %157, align 4, !tbaa !53
  %159 = zext i32 %158 to i64
  %160 = load ptr, ptr %154, align 8, !tbaa !44
  %161 = getelementptr inbounds ptr, ptr %160, i64 2
  %162 = load ptr, ptr %161, align 8
  call void %162(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef %156, i64 noundef %159)
  %163 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 1
  %164 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %163, i32 0, i32 1
  %165 = load ptr, ptr %164, align 8, !tbaa !58
  %166 = icmp ne ptr %165, null
  br i1 %166, label %167, label %174

167:                                              ; preds = %153
  %168 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 1
  %169 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %168, i32 0, i32 1
  %170 = load ptr, ptr %169, align 8, !tbaa !58
  %171 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 1
  %172 = getelementptr inbounds %"struct.fastgltf::ParserInternalConfig", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !55
  call void %170(ptr noundef %23, ptr noundef %173)
  br label %174

174:                                              ; preds = %167, %153
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %175 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %24, i32 0, i32 0
  %176 = getelementptr inbounds %"struct.fastgltf::BufferInfo", ptr %23, i32 0, i32 1
  %177 = load i64, ptr %176, align 8, !tbaa !59
  store i64 %177, ptr %175, align 8, !tbaa !60
  %178 = getelementptr inbounds %"struct.fastgltf::sources::CustomBuffer", ptr %24, i32 0, i32 1
  store i8 0, ptr %178, align 8, !tbaa !63
  %179 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 2
  %180 = call noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS7_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185) %179, ptr noundef nonnull align 8 dereferenceable(9) %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  br label %181

181:                                              ; preds = %174, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %203

182:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %183 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 0
  %184 = load i32, ptr %183, align 4, !tbaa !53
  %185 = zext i32 %184 to i64
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %185)
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  %188 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 0
  %189 = load i32, ptr %188, align 4, !tbaa !53
  %190 = zext i32 %189 to i64
  %191 = load ptr, ptr %186, align 8, !tbaa !44
  %192 = getelementptr inbounds ptr, ptr %191, i64 2
  %193 = load ptr, ptr %192, align 8
  invoke void %193(ptr noundef nonnull align 8 dereferenceable(8) %186, ptr noundef %187, i64 noundef %190)
          to label %194 unwind label %199

194:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #7
  %195 = getelementptr inbounds %"struct.fastgltf::sources::Array", ptr %28, i32 0, i32 0
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %195, ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  %196 = getelementptr inbounds %"struct.fastgltf::sources::Array", ptr %28, i32 0, i32 1
  store i8 5, ptr %196, align 8, !tbaa !64
  %197 = getelementptr inbounds %"class.fastgltf::Parser", ptr %30, i32 0, i32 2
  %198 = call noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS5_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185) %197, ptr noundef nonnull align 8 dereferenceable(17) %28) #7
  call void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %28) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #7
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %203

199:                                              ; preds = %182
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %26, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %27, align 4
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  br label %218

203:                                              ; preds = %194, %181
  br label %204

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

205:                                              ; preds = %204, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %206 = load i32, ptr %14, align 4
  switch i32 %206, label %214 [
    i32 0, label %207
  ]

207:                                              ; preds = %205
  br label %208

208:                                              ; preds = %207, %108
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !73
  %209 = load i32, ptr %12, align 4, !tbaa !11
  %210 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8
  %212 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %213 = load i64, ptr %212, align 8
  call void @_ZN8fastgltf6Parser5parseEN8simdjson3dom6objectENS_8CategoryE(ptr dead_on_unwind writable sret(%"class.fastgltf::Expected.408") align 8 %0, ptr noundef nonnull align 8 dereferenceable(312) %30, ptr %211, i64 %213, i32 noundef %209)
  store i32 1, ptr %14, align 4
  br label %214

214:                                              ; preds = %208, %205, %107
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #7
  br label %215

215:                                              ; preds = %214, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %216

216:                                              ; preds = %215, %73, %62, %57
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  br label %217

217:                                              ; preds = %216, %45
  ret void

218:                                              ; preds = %199
  %219 = load ptr, ptr %26, align 8
  %220 = load i32, ptr %27, align 4
  %221 = insertvalue { ptr, i32 } poison, ptr %219, 0
  %222 = insertvalue { ptr, i32 } %221, i32 %220, 1
  resume { ptr, i32 } %222

223:                                              ; preds = %45
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNR8simdjson3dom6parser5parseERKNS_18padded_string_viewE(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE3getINS1_6objectEEENS_10error_codeERT_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS7_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(9)) #5 align 2

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

!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 = !{!"_ZTSN8fastgltf7OptionsE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN8fastgltf8CategoryE", !7, i64 0}
!13 = !{!14, !10, i64 304}
!14 = !{!"_ZTSN8fastgltf6ParserE", !15, i64 0, !21, i64 8, !23, i64 56, !30, i64 248, !33, i64 264, !10, i64 304}
!15 = !{!"_ZTSSt10unique_ptrIN8simdjson3dom6parserESt14default_deleteIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN8simdjson3dom6parserESt14default_deleteIS2_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN8simdjson3dom6parserESt14default_deleteIS2_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN8simdjson3dom6parserESt14default_deleteIS2_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN8simdjson3dom6parserELb0EE", !6, i64 0}
!21 = !{!"_ZTSN8fastgltf20ParserInternalConfigE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !22, i64 40}
!22 = !{!"_ZTSN8fastgltf10ExtensionsE", !7, i64 0}
!23 = !{!"_ZTSSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEE", !24, i64 0}
!24 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !25, i64 0}
!25 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !26, i64 0}
!26 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !27, i64 0}
!27 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !28, i64 0}
!28 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !29, i64 0}
!29 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !7, i64 0, !7, i64 184}
!30 = !{!"_ZTSSt10shared_ptrIN8fastgltf19ChunkMemoryResourceEE", !31, i64 0}
!31 = !{!"_ZTSSt12__shared_ptrIN8fastgltf19ChunkMemoryResourceELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !32, i64 8}
!32 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!33 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !34, i64 0, !37, i64 32}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !35, i64 0, !36, i64 8, !7, i64 16}
!35 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!36 = !{!"long", !7, i64 0}
!37 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !38, i64 0}
!38 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !39, i64 0}
!39 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !40, i64 0}
!40 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !41, i64 0}
!41 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !42, i64 0}
!42 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !43, i64 0}
!43 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !6, i64 0}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !8, i64 0}
!46 = !{!47, !48, i64 0}
!47 = !{!"_ZTSN8fastgltf16BinaryGltfHeaderE", !48, i64 0, !48, i64 4, !48, i64 8}
!48 = !{!"int", !7, i64 0}
!49 = !{!47, !48, i64 4}
!50 = !{!47, !48, i64 8}
!51 = !{!52, !48, i64 4}
!52 = !{!"_ZTSN8fastgltf15BinaryGltfChunkE", !48, i64 0, !48, i64 4}
!53 = !{!52, !48, i64 0}
!54 = !{!14, !6, i64 8}
!55 = !{!14, !6, i64 40}
!56 = !{!57, !6, i64 0}
!57 = !{!"_ZTSN8fastgltf10BufferInfoE", !6, i64 0, !36, i64 8}
!58 = !{!14, !6, i64 16}
!59 = !{!57, !36, i64 8}
!60 = !{!61, !36, i64 0}
!61 = !{!"_ZTSN8fastgltf7sources12CustomBufferE", !36, i64 0, !62, i64 8}
!62 = !{!"_ZTSN8fastgltf8MimeTypeE", !7, i64 0}
!63 = !{!61, !62, i64 8}
!64 = !{!65, !62, i64 16}
!65 = !{!"_ZTSN8fastgltf7sources5ArrayE", !66, i64 0, !62, i64 16}
!66 = !{!"_ZTSN8fastgltf12StaticVectorISt4byteEE", !36, i64 0, !67, i64 8}
!67 = !{!"_ZTSSt10unique_ptrIA_St4byteSt14default_deleteIS1_EE", !68, i64 0}
!68 = !{!"_ZTSSt15__uniq_ptr_dataISt4byteSt14default_deleteIA_S0_ELb1ELb1EE", !69, i64 0}
!69 = !{!"_ZTSSt15__uniq_ptr_implISt4byteSt14default_deleteIA_S0_EE", !70, i64 0}
!70 = !{!"_ZTSSt5tupleIJPSt4byteSt14default_deleteIA_S0_EEE", !71, i64 0}
!71 = !{!"_ZTSSt11_Tuple_implILm0EJPSt4byteSt14default_deleteIA_S0_EEE", !72, i64 0}
!72 = !{!"_ZTSSt10_Head_baseILm0EPSt4byteLb0EE", !6, i64 0}
!73 = !{i64 0, i64 8, !5, i64 8, i64 8, !74}
!74 = !{!36, !36, 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.408" = type { i64, %"class.fastgltf::Asset" }
%"class.fastgltf::Asset" = type <{ %"class.std::shared_ptr", %"class.std::optional", %"class.std::vector.88", %"class.std::vector.88", %"class.fastgltf::OptionalWithFlagValue", %"class.std::vector.91", %"class.std::vector.96", %"class.std::vector.101", %"class.std::vector.106", %"class.std::vector.111", %"class.std::vector.116", %"class.std::vector.121", %"class.std::vector.126", %"class.std::vector.131", %"class.std::vector.136", %"class.std::vector.141", %"class.std::vector.146", %"class.std::vector.151", %"class.std::vector.156", %"class.std::vector.161", i32, [4 x i8] }>
%"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::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<fastgltf::AssetInfo>::_Storage", i8 }>
%"union.std::_Optional_payload_base<fastgltf::AssetInfo>::_Storage" = type { %"struct.fastgltf::AssetInfo" }
%"struct.fastgltf::AssetInfo" = type { %"class.std::__cxx11::basic_string.74", %"class.std::__cxx11::basic_string.74", %"class.std::__cxx11::basic_string.74" }
%"class.std::__cxx11::basic_string.74" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>::_Alloc_hider", i64, %union.anon.76 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>::_Alloc_hider" = type { %"class.std::pmr::polymorphic_allocator.75", ptr }
%"class.std::pmr::polymorphic_allocator.75" = type { ptr }
%union.anon.76 = type { i64, [8 x i8] }
%"class.std::vector.88" = type { %"struct.std::_Vector_base.89" }
%"struct.std::_Vector_base.89" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl" = type { %"class.std::pmr::polymorphic_allocator.90", %"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl_data" }
%"class.std::pmr::polymorphic_allocator.90" = type { ptr }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>, std::pmr::polymorphic_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::pmr::polymorphic_allocator<char>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.fastgltf::OptionalWithFlagValue" = type { %union.anon }
%union.anon = type { i64 }
%"class.std::vector.91" = type { %"struct.std::_Vector_base.92" }
%"struct.std::_Vector_base.92" = type { %"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Accessor, std::allocator<fastgltf::Accessor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.96" = type { %"struct.std::_Vector_base.97" }
%"struct.std::_Vector_base.97" = type { %"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Animation, std::allocator<fastgltf::Animation>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.101" = type { %"struct.std::_Vector_base.102" }
%"struct.std::_Vector_base.102" = type { %"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Buffer, std::allocator<fastgltf::Buffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::BufferView, std::allocator<fastgltf::BufferView>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.111" = type { %"struct.std::_Vector_base.112" }
%"struct.std::_Vector_base.112" = type { %"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Camera, std::allocator<fastgltf::Camera>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.116" = type { %"struct.std::_Vector_base.117" }
%"struct.std::_Vector_base.117" = type { %"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Image, std::allocator<fastgltf::Image>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.121" = type { %"struct.std::_Vector_base.122" }
%"struct.std::_Vector_base.122" = type { %"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Light, std::allocator<fastgltf::Light>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.126" = type { %"struct.std::_Vector_base.127" }
%"struct.std::_Vector_base.127" = type { %"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Material, std::allocator<fastgltf::Material>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.131" = type { %"struct.std::_Vector_base.132" }
%"struct.std::_Vector_base.132" = type { %"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Mesh, std::allocator<fastgltf::Mesh>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.136" = type { %"struct.std::_Vector_base.137" }
%"struct.std::_Vector_base.137" = type { %"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Node, std::allocator<fastgltf::Node>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.141" = type { %"struct.std::_Vector_base.142" }
%"struct.std::_Vector_base.142" = type { %"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Sampler, std::allocator<fastgltf::Sampler>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.146" = type { %"struct.std::_Vector_base.147" }
%"struct.std::_Vector_base.147" = type { %"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Scene, std::allocator<fastgltf::Scene>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.151" = type { %"struct.std::_Vector_base.152" }
%"struct.std::_Vector_base.152" = type { %"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Skin, std::allocator<fastgltf::Skin>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.156" = type { %"struct.std::_Vector_base.157" }
%"struct.std::_Vector_base.157" = type { %"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl" }
%"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl" = type { %"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl_data" }
%"struct.std::_Vector_base<fastgltf::Texture, std::allocator<fastgltf::Texture>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.161" = type { %"struct.std::_Vector_base.162" }
%"struct.std::_Vector_base.162" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::error_code" = type { i32, ptr }
%"class.fastgltf::span.427" = type { ptr, i64 }
%"class.simdjson::padded_string_view" = type { %"class.std::basic_string_view", i64 }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.simdjson::dom::object" = type { %"class.simdjson::internal::tape_ref" }
%"class.simdjson::internal::tape_ref" = type { ptr, i64 }
%"struct.simdjson::simdjson_result.0" = type { %"struct.simdjson::internal::simdjson_result_base.base.5", [4 x i8] }
%"struct.simdjson::internal::simdjson_result_base.base.5" = type { %"struct.std::pair.base.4" }
%"struct.std::pair.base.4" = type <{ %"class.simdjson::dom::element", i32 }>
%"class.simdjson::dom::element" = type { %"class.simdjson::internal::tape_ref" }
%"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] }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 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 #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS5_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fastgltf6Parser5parseEN8simdjson3dom6objectENS_8CategoryE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected.408") align 8, ptr noundef nonnull align 8 dereferenceable(312), ptr, i64, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8fastgltf6hasBitINS_7OptionsES1_EEbT_T0_(i64 noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZN8fastgltf16readBinaryHeaderERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8fastgltf6Parser14loadGltfBinaryERNS_14GltfDataGetterENSt10filesystem7__cxx114pathENS_7OptionsENS_8CategoryE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected.408") align 8 %0, ptr noundef nonnull align 8 dereferenceable(312) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %3, i64 noundef %4, i32 noundef %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::error_code", align 8
  %8 = alloca %"class.fastgltf::span.427", align 8
  %9 = alloca %"class.simdjson::padded_string_view", align 8
  %10 = alloca %"class.simdjson::dom::object", align 8
  %11 = alloca %"struct.simdjson::simdjson_result.0", align 8
  %12 = alloca %"struct.fastgltf::BufferInfo", align 8
  %13 = alloca %"struct.fastgltf::sources::CustomBuffer", align 8
  %14 = alloca %"class.fastgltf::StaticVector", align 8
  %15 = alloca %"struct.fastgltf::sources::Array", align 8
  %16 = getelementptr inbounds i8, ptr %1, i64 304
  store i64 %4, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %1, i64 264
  %18 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt10filesystem7__cxx114pathaSEOS1_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(40) %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @_ZNSt10error_codeC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  %19 = load i64, ptr %16, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZN8fastgltf6hasBitINS_7OptionsES1_EEbT_T0_(i64 noundef %19, i64 noundef 16)
  br i1 %20, label %21, label %26

21:                                               ; preds = %6
  %22 = call noundef zeroext i1 @_ZNSt10filesystem12is_directoryERKNS_7__cxx114pathERSt10error_code(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  %24 = call noundef zeroext i1 @_ZNKSt10error_codecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #5
  br i1 %24, label %25, label %26

25:                                               ; preds = %21, %23
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 1)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  br label %108

26:                                               ; preds = %23, %6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  %27 = load ptr, ptr %2, align 8, !tbaa !40
  %28 = getelementptr inbounds i8, ptr %27, i64 32
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %30 = call { i64, i32 } @_ZN8fastgltf16readBinaryHeaderERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %.fca.0.extract = extractvalue { i64, i32 } %30, 0
  %.fca.1.extract = extractvalue { i64, i32 } %30, 1
  %31 = and i64 %.fca.0.extract, 4294967295
  %.not = icmp eq i64 %31, 1179937895
  br i1 %.not, label %33, label %32

32:                                               ; preds = %26
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  br label %108

33:                                               ; preds = %26
  %.sroa.011.4.extract.shift.mask = and i64 %.fca.0.extract, -4294967296
  %.not30 = icmp eq i64 %.sroa.011.4.extract.shift.mask, 8589934592
  br i1 %.not30, label %35, label %34

34:                                               ; preds = %33
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 10)
  br label %108

35:                                               ; preds = %33
  %36 = zext i32 %.fca.1.extract to i64
  %37 = load ptr, ptr %2, align 8, !tbaa !40
  %38 = getelementptr inbounds i8, ptr %37, i64 48
  %39 = load ptr, ptr %38, align 8
  %40 = call noundef i64 %39(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %41 = icmp ult i64 %40, %36
  br i1 %41, label %42, label %43

42:                                               ; preds = %35
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  br label %108

43:                                               ; preds = %35
  %44 = call i64 @_ZN8fastgltf15readBinaryChunkERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %.sroa.7.0.extract.shift.mask = and i64 %44, -4294967296
  %.not31 = icmp eq i64 %.sroa.7.0.extract.shift.mask, 5642820435411206144
  br i1 %.not31, label %46, label %45

45:                                               ; preds = %43
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  br label %108

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %47 = and i64 %44, 4294967295
  %48 = load ptr, ptr %2, align 8, !tbaa !40
  %49 = getelementptr inbounds i8, ptr %48, i64 24
  %50 = load ptr, ptr %49, align 8
  %51 = call { ptr, i64 } %50(ptr noundef nonnull align 8 dereferenceable(8) %2, i64 noundef %47, i64 noundef 64)
  %52 = extractvalue { ptr, i64 } %51, 0
  store ptr %52, ptr %8, align 8
  %53 = getelementptr inbounds i8, ptr %8, i64 8
  %54 = extractvalue { ptr, i64 } %51, 1
  store i64 %54, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %55 = call noundef ptr @_ZNK8fastgltf4spanISt4byteLm18446744073709551615EE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  %56 = add nuw nsw i64 %47, 64
  call void @_ZN8simdjson18padded_string_viewC2EPKhmm(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef %55, i64 noundef %47, i64 noundef %56) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @_ZN8simdjson3dom6objectC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  %57 = call noundef ptr @_ZNKSt10unique_ptrIN8simdjson3dom6parserESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #5
  call void @_ZNR8simdjson3dom6parser5parseERKNS_18padded_string_viewE(ptr dead_on_unwind nonnull writable sret(%"struct.simdjson::simdjson_result.0") align 8 %11, ptr noundef nonnull align 8 dereferenceable(64) %57, ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %58 = call noundef i32 @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE3getINS1_6objectEEENS_10error_codeERT_(ptr noundef nonnull align 8 dereferenceable(20) %11, ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  %.not32 = icmp eq i32 %58, 0
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br i1 %.not32, label %60, label %59, !prof !42

59:                                               ; preds = %46
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 4)
  br label %107

60:                                               ; preds = %46
  %61 = load ptr, ptr %2, align 8, !tbaa !40
  %62 = getelementptr inbounds i8, ptr %61, i64 40
  %63 = load ptr, ptr %62, align 8
  %64 = call noundef i64 %63(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %65 = add i64 %64, 8
  %66 = icmp ult i64 %65, %36
  br i1 %66, label %67, label %.thread41

67:                                               ; preds = %60
  %68 = call i64 @_ZN8fastgltf15readBinaryChunkERNS_14GltfDataGetterE(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %.sroa.9.0.extract.shift.mask = and i64 %68, -4294967296
  %.not33 = icmp eq i64 %.sroa.9.0.extract.shift.mask, 22035596000100352
  br i1 %.not33, label %69, label %106

69:                                               ; preds = %67
  %70 = and i64 %68, 4294967295
  %.not34 = icmp eq i64 %70, 0
  br i1 %.not34, label %.thread41, label %71

71:                                               ; preds = %69
  %72 = getelementptr inbounds i8, ptr %1, i64 8
  %73 = load ptr, ptr %72, align 8, !tbaa !43
  %.not35 = icmp eq ptr %73, null
  br i1 %.not35, label %95, label %74

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %75 = getelementptr inbounds i8, ptr %1, i64 40
  %76 = load ptr, ptr %75, align 8, !tbaa !44
  %77 = call { ptr, i64 } %73(i64 noundef %70, ptr noundef %76)
  %78 = extractvalue { ptr, i64 } %77, 0
  store ptr %78, ptr %12, align 8
  %79 = getelementptr inbounds i8, ptr %12, i64 8
  %80 = extractvalue { ptr, i64 } %77, 1
  store i64 %80, ptr %79, align 8
  %.not36 = icmp eq ptr %78, null
  br i1 %.not36, label %94, label %81

81:                                               ; preds = %74
  %82 = load ptr, ptr %2, align 8, !tbaa !40
  %83 = getelementptr inbounds i8, ptr %82, i64 16
  %84 = load ptr, ptr %83, align 8
  call void %84(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %78, i64 noundef %70)
  %85 = getelementptr inbounds i8, ptr %1, i64 16
  %86 = load ptr, ptr %85, align 8, !tbaa !45
  %.not37 = icmp eq ptr %86, null
  br i1 %.not37, label %89, label %87

87:                                               ; preds = %81
  %88 = load ptr, ptr %75, align 8, !tbaa !44
  call void %86(ptr noundef nonnull %12, ptr noundef %88)
  br label %89

89:                                               ; preds = %87, %81
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  %90 = load i64, ptr %79, align 8, !tbaa !46
  store i64 %90, ptr %13, align 8, !tbaa !48
  %91 = getelementptr inbounds i8, ptr %13, i64 8
  store i8 0, ptr %91, align 8, !tbaa !51
  %92 = getelementptr inbounds i8, ptr %1, i64 56
  %93 = call noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS7_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185) %92, ptr noundef nonnull align 8 dereferenceable(9) %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  br label %94

94:                                               ; preds = %89, %74
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  br label %.thread41

95:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %14, i64 noundef %70)
  %96 = call noundef ptr @_ZN8fastgltf12StaticVectorISt4byteE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  %97 = load ptr, ptr %2, align 8, !tbaa !40
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %99 = load ptr, ptr %98, align 8
  invoke void %99(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %96, i64 noundef %70)
          to label %100 unwind label %104

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  call void @_ZN8fastgltf12StaticVectorISt4byteEC2EOS2_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  %101 = getelementptr inbounds i8, ptr %15, i64 16
  store i8 5, ptr %101, align 8, !tbaa !52
  %102 = getelementptr inbounds i8, ptr %1, i64 56
  %103 = call noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS5_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185) %102, ptr noundef nonnull align 8 dereferenceable(17) %15) #5
  call void @_ZN8fastgltf7sources5ArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(17) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %.thread41

104:                                              ; preds = %95
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8fastgltf12StaticVectorISt4byteED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  resume { ptr, i32 } %105

106:                                              ; preds = %67
  call void @_ZN8fastgltf8ExpectedINS_5AssetEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(592) %0, i64 noundef 7)
  br label %107

.thread41:                                        ; preds = %94, %100, %69, %60
  %.sroa.0.0.copyload = load ptr, ptr %10, align 8, !tbaa !61
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  %.sroa.2.0.copyload = load i64, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !62
  call void @_ZN8fastgltf6Parser5parseEN8simdjson3dom6objectENS_8CategoryE(ptr dead_on_unwind writable sret(%"class.fastgltf::Expected.408") align 8 %0, ptr noundef nonnull align 8 dereferenceable(312) %1, ptr %.sroa.0.0.copyload, i64 %.sroa.2.0.copyload, i32 noundef %5)
  br label %107

107:                                              ; preds = %106, %.thread41, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  br label %108

108:                                              ; preds = %25, %32, %34, %42, %107, %45
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZNR8simdjson3dom6parser5parseERKNS_18padded_string_viewE(ptr dead_on_unwind noalias writable sret(%"struct.simdjson::simdjson_result.0") align 8, ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8simdjson15simdjson_resultINS_3dom7elementEE3getINS1_6objectEEENS_10error_codeERT_(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(185) ptr @_ZNSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEEaSIS7_EENSt9enable_ifIXaaaa14__exactly_onceINSt9_Nth_typeIX16__accepted_indexIOT_EEJS0_S3_S4_S5_S6_S7_S8_S9_EE4typeEE18is_constructible_vISH_SE_E15is_assignable_vIRSH_SE_EERSA_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(185), ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !39, i64 304}
!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 = !{!41, !41, i64 0}
!41 = !{!"vtable pointer", !15, i64 0}
!42 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!43 = !{!6, !13, i64 8}
!44 = !{!6, !13, i64 40}
!45 = !{!6, !13, i64 16}
!46 = !{!47, !31, i64 8}
!47 = !{!"_ZTSN8fastgltf10BufferInfoE", !13, i64 0, !31, i64 8}
!48 = !{!49, !31, i64 0}
!49 = !{!"_ZTSN8fastgltf7sources12CustomBufferE", !31, i64 0, !50, i64 8}
!50 = !{!"_ZTSN8fastgltf8MimeTypeE", !14, i64 0}
!51 = !{!49, !50, i64 8}
!52 = !{!53, !50, i64 16}
!53 = !{!"_ZTSN8fastgltf7sources5ArrayE", !54, i64 0, !50, i64 16}
!54 = !{!"_ZTSN8fastgltf12StaticVectorISt4byteEE", !31, i64 0, !55, i64 8}
!55 = !{!"_ZTSSt10unique_ptrIA_St4byteSt14default_deleteIS1_EE", !56, i64 0}
!56 = !{!"_ZTSSt15__uniq_ptr_dataISt4byteSt14default_deleteIA_S0_ELb1ELb1EE", !57, i64 0}
!57 = !{!"_ZTSSt15__uniq_ptr_implISt4byteSt14default_deleteIA_S0_EE", !58, i64 0}
!58 = !{!"_ZTSSt5tupleIJPSt4byteSt14default_deleteIA_S0_EEE", !59, i64 0}
!59 = !{!"_ZTSSt11_Tuple_implILm0EJPSt4byteSt14default_deleteIA_S0_EEE", !60, i64 0}
!60 = !{!"_ZTSSt10_Head_baseILm0EPSt4byteLb0EE", !13, i64 0}
!61 = !{!13, !13, i64 0}
!62 = !{!31, !31, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass