; 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.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] }
%"class.fastgltf::Expected.501" = type { i64, %"struct.fastgltf::ExportResult.502" }
%"struct.fastgltf::ExportResult.502" = type { %"class.std::vector.503", %"class.std::vector.461", %"class.std::vector.461" }
%"class.std::vector.503" = type { %"struct.std::_Vector_base.504" }
%"struct.std::_Vector_base.504" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.461" = type { %"struct.std::_Vector_base.462" }
%"struct.std::_Vector_base.462" = type { %"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.508 = type { ptr }
%"struct.fastgltf::BinaryGltfHeader" = type { i32, i32, i32 }
%"struct.std::array.509" = type { [12 x i8] }
%"struct.fastgltf::BinaryGltfChunk" = type { i32, i32 }
%"struct.std::array.510" = type { [8 x i8] }
%"struct.fastgltf::visitor.511" = type { %class.anon.514, %class.anon.515, %class.anon.516 }
%class.anon.514 = type { ptr, ptr }
%class.anon.515 = type { ptr, ptr }
%class.anon.516 = type { ptr, ptr }
%class.anon.512 = type { i8 }
%"class.fastgltf::Exporter" = type { i64, i64, i8, %"class.std::filesystem::__cxx11::path", %"class.std::filesystem::__cxx11::path", ptr, ptr, %"class.std::vector.461", %"class.std::vector.461" }
%"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.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 }
%"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 }
%"struct.fastgltf::Buffer" = type { i64, %"class.std::variant", %"class.std::__cxx11::basic_string.74" }
%"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] }

@_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE5space = external hidden constant i8, align 1
@_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE4zero = external hidden constant i8, align 1

; 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fastgltf8Exporter9writeJsonB5cxx11ERKNS_5AssetE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(580)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected.501") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull align 8 dereferenceable(580) %2, i64 noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"struct.fastgltf::ExportResult.502", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i64, align 8
  %18 = alloca %class.anon.508, align 8
  %19 = alloca %"struct.fastgltf::BinaryGltfHeader", align 4
  %20 = alloca %"struct.std::array.509", align 1
  %21 = alloca { i64, i32 }, align 8
  %22 = alloca %"struct.fastgltf::BinaryGltfChunk", align 4
  %23 = alloca %"struct.std::array.510", align 1
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"struct.fastgltf::BinaryGltfChunk", align 4
  %27 = alloca %"struct.std::array.510", align 1
  %28 = alloca %"struct.fastgltf::visitor.511", align 8
  %29 = alloca %class.anon.512, align 1
  %30 = alloca %class.anon.514, align 8
  %31 = alloca %class.anon.515, align 8
  %32 = alloca %class.anon.516, align 8
  %33 = alloca i64, align 8
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !9
  %34 = load ptr, ptr %6, align 8
  %35 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 7
  call void @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  %36 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 8
  call void @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %37 = load i64, ptr %8, align 8, !tbaa !9
  %38 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 1
  store i64 %37, ptr %38, align 8, !tbaa !11
  %39 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 2
  store i8 1, ptr %39, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  store i64 4, ptr %10, align 8, !tbaa !9
  %40 = call noundef i64 @_ZN8fastgltfcoERKNS_13ExportOptionsE(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  store i64 %40, ptr %9, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 1
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8fastgltfaNERNS_13ExportOptionsERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #8
  call void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN8fastgltf8Exporter9writeJsonB5cxx11ERKNS_5AssetE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(168) %34, ptr noundef nonnull align 8 dereferenceable(580) %43)
          to label %44 unwind label %52

44:                                               ; preds = %4
  %45 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !31
  %47 = icmp ne i64 %46, 0
  br i1 %47, label %48, label %60

48:                                               ; preds = %44
  %49 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !31
  invoke void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(80) %0, i64 noundef %50)
          to label %51 unwind label %56

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

52:                                               ; preds = %4
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %13, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %14, align 4
  br label %260

56:                                               ; preds = %48
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %13, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %14, align 4
  br label %259

60:                                               ; preds = %44
  %61 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 7
  %62 = getelementptr inbounds %"struct.fastgltf::ExportResult.502", ptr %11, i32 0, i32 1
  %63 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EEaSEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(24) %61) #8
  %64 = getelementptr inbounds %"class.fastgltf::Exporter", ptr %34, i32 0, i32 8
  %65 = getelementptr inbounds %"struct.fastgltf::ExportResult.502", ptr %11, i32 0, i32 2
  %66 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EEaSEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(24) %64) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"class.fastgltf::Asset", ptr %67, i32 0, i32 7
  %69 = call noundef zeroext i1 @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #8
  br i1 %69, label %97, label %70

70:                                               ; preds = %60
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.fastgltf::Asset", ptr %71, i32 0, i32 7
  %73 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %72) #8
  %74 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %73, i32 0, i32 1
  %75 = call noundef zeroext i1 @_ZSt17holds_alternativeIN8fastgltf7sources5ArrayEJSt9monostateNS1_10BufferViewENS1_3URIES2_NS1_6VectorENS1_12CustomBufferENS1_8ByteViewENS1_8FallbackEEEbRKSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(185) %74) #8
  br i1 %75, label %88, label %76

76:                                               ; preds = %70
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.fastgltf::Asset", ptr %77, i32 0, i32 7
  %79 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #8
  %80 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %79, i32 0, i32 1
  %81 = call noundef zeroext i1 @_ZSt17holds_alternativeIN8fastgltf7sources8ByteViewEJSt9monostateNS1_10BufferViewENS1_3URIENS1_5ArrayENS1_6VectorENS1_12CustomBufferES2_NS1_8FallbackEEEbRKSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(185) %80) #8
  br i1 %81, label %88, label %82

82:                                               ; preds = %76
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.fastgltf::Asset", ptr %83, i32 0, i32 7
  %85 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #8
  %86 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %85, i32 0, i32 1
  %87 = call noundef zeroext i1 @_ZSt17holds_alternativeIN8fastgltf7sources6VectorEJSt9monostateNS1_10BufferViewENS1_3URIENS1_5ArrayES2_NS1_12CustomBufferENS1_8ByteViewENS1_8FallbackEEEbRKSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(185) %86) #8
  br i1 %87, label %88, label %97

88:                                               ; preds = %82, %76, %70
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.fastgltf::Asset", ptr %89, i32 0, i32 7
  %91 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #8
  %92 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %91, i32 0, i32 0
  %93 = load i64, ptr %92, align 8, !tbaa !32
  %94 = call noundef i32 @_ZNSt14numeric_limitsIjE3maxEv() #8
  %95 = zext i32 %94 to i64
  %96 = icmp ult i64 %93, %95
  br label %97

97:                                               ; preds = %88, %82, %60
  %98 = phi i1 [ false, %82 ], [ false, %60 ], [ %96, %88 ]
  %99 = zext i1 %98 to i8
  store i8 %99, ptr %16, align 1, !tbaa !44
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 0, ptr %17, align 8, !tbaa !45
  %100 = load i64, ptr %17, align 8, !tbaa !45
  %101 = add i64 %100, 12
  store i64 %101, ptr %17, align 8, !tbaa !45
  %102 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  %103 = invoke noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %102, i32 noundef 4)
          to label %104 unwind label %121

104:                                              ; preds = %97
  %105 = add i64 8, %103
  %106 = load i64, ptr %17, align 8, !tbaa !45
  %107 = add i64 %106, %105
  store i64 %107, ptr %17, align 8, !tbaa !45
  %108 = load i8, ptr %16, align 1, !tbaa !44, !range !46, !noundef !47
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %125

110:                                              ; preds = %104
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.fastgltf::Asset", ptr %111, i32 0, i32 7
  %113 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %112) #8
  %114 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %113, i32 0, i32 0
  %115 = load i64, ptr %114, align 8, !tbaa !32
  %116 = invoke noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %115, i32 noundef 4)
          to label %117 unwind label %121

117:                                              ; preds = %110
  %118 = add i64 8, %116
  %119 = load i64, ptr %17, align 8, !tbaa !45
  %120 = add i64 %119, %118
  store i64 %120, ptr %17, align 8, !tbaa !45
  br label %125

121:                                              ; preds = %132, %130, %110, %97
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %13, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %14, align 4
  br label %257

125:                                              ; preds = %117, %104
  %126 = load i64, ptr %17, align 8, !tbaa !45
  %127 = call noundef i32 @_ZNSt14numeric_limitsIjE3maxEv() #8
  %128 = zext i32 %127 to i64
  %129 = icmp uge i64 %126, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %125
  invoke void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(80) %0, i64 noundef 7)
          to label %131 unwind label %121

131:                                              ; preds = %130
  store i32 1, ptr %15, align 4
  br label %256

132:                                              ; preds = %125
  %133 = getelementptr inbounds %"struct.fastgltf::ExportResult.502", ptr %11, i32 0, i32 0
  %134 = load i64, ptr %17, align 8, !tbaa !45
  invoke void @_ZNSt6vectorISt4byteSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %134)
          to label %135 unwind label %121

135:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %136 = getelementptr inbounds %class.anon.508, ptr %18, i32 0, i32 0
  %137 = getelementptr inbounds %"struct.fastgltf::ExportResult.502", ptr %11, i32 0, i32 0
  %138 = call noundef ptr @_ZNSt6vectorISt4byteSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #8
  store ptr %138, ptr %136, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  call void @llvm.memset.p0.i64(ptr align 4 %19, i8 0, i64 12, i1 false)
  %139 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %19, i32 0, i32 0
  store i32 1179937895, ptr %139, align 4, !tbaa !50
  %140 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %19, i32 0, i32 1
  store i32 2, ptr %140, align 4, !tbaa !53
  %141 = load i64, ptr %17, align 8, !tbaa !45
  %142 = trunc i64 %141 to i32
  %143 = getelementptr inbounds %"struct.fastgltf::BinaryGltfHeader", ptr %19, i32 0, i32 2
  store i32 %142, ptr %143, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #8
  %144 = call { i64, i32 } @_ZN8fastgltf17writeBinaryHeaderERKNS_16BinaryGltfHeaderE(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  %145 = getelementptr inbounds %"struct.std::array.509", ptr %20, i32 0, i32 0
  store { i64, i32 } %144, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %145, ptr align 8 %21, i64 12, i1 false)
  %146 = call noundef ptr @_ZNSt5arrayISt4byteLm12EE4dataEv(ptr noundef nonnull align 1 dereferenceable(12) %20) #9
  %147 = call noundef i64 @_ZNKSt5arrayISt4byteLm12EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(12) %20) #9
  invoke void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %146, i64 noundef %147)
          to label %148 unwind label %169

148:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  call void @llvm.memset.p0.i64(ptr align 4 %22, i8 0, i64 8, i1 false)
  %149 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 1
  store i32 1313821514, ptr %149, align 4, !tbaa !55
  %150 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  %151 = invoke noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %150, i32 noundef 4)
          to label %152 unwind label %173

152:                                              ; preds = %148
  %153 = trunc i64 %151 to i32
  %154 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %22, i32 0, i32 0
  store i32 %153, ptr %154, align 4, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %155 = call i64 @_ZN8fastgltf16writeBinaryChunkERKNS_15BinaryGltfChunkE(ptr noundef nonnull align 4 dereferenceable(8) %22) #8
  %156 = getelementptr inbounds %"struct.std::array.510", ptr %23, i32 0, i32 0
  store i64 %155, ptr %156, align 1
  %157 = call noundef ptr @_ZNSt5arrayISt4byteLm8EE4dataEv(ptr noundef nonnull align 1 dereferenceable(8) %23) #9
  %158 = call noundef i64 @_ZNKSt5arrayISt4byteLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8) %23) #9
  invoke void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %157, i64 noundef %158)
          to label %159 unwind label %177

159:                                              ; preds = %152
  %160 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  %161 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  invoke void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %160, i64 noundef %161)
          to label %162 unwind label %177

162:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %163 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  store i64 %163, ptr %24, align 8, !tbaa !45
  br label %164

164:                                              ; preds = %183, %162
  %165 = load i64, ptr %24, align 8, !tbaa !45
  %166 = urem i64 %165, 4
  %167 = icmp ne i64 %166, 0
  br i1 %167, label %181, label %168

168:                                              ; preds = %164
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %190

169:                                              ; preds = %135
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %13, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %14, align 4
  br label %255

173:                                              ; preds = %148
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %13, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %14, align 4
  br label %254

177:                                              ; preds = %251, %159, %152
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %13, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %14, align 4
  br label %253

181:                                              ; preds = %164
  invoke void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE5space, i64 noundef 1)
          to label %182 unwind label %186

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  %184 = load i64, ptr %24, align 8, !tbaa !45
  %185 = add i64 %184, 1
  store i64 %185, ptr %24, align 8, !tbaa !45
  br label %164, !llvm.loop !58

186:                                              ; preds = %181
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %13, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %253

190:                                              ; preds = %168
  %191 = load i8, ptr %16, align 1, !tbaa !44, !range !46, !noundef !47
  %192 = trunc i8 %191 to i1
  br i1 %192, label %193, label %251

193:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.fastgltf::Asset", ptr %194, i32 0, i32 7
  %196 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %195) #8
  store ptr %196, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.memset.p0.i64(ptr align 4 %26, i8 0, i64 8, i1 false)
  %197 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %26, i32 0, i32 1
  store i32 5130562, ptr %197, align 4, !tbaa !55
  %198 = load ptr, ptr %25, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %198, i32 0, i32 0
  %200 = load i64, ptr %199, align 8, !tbaa !32
  %201 = invoke noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %200, i32 noundef 4)
          to label %202 unwind label %232

202:                                              ; preds = %193
  %203 = trunc i64 %201 to i32
  %204 = getelementptr inbounds %"struct.fastgltf::BinaryGltfChunk", ptr %26, i32 0, i32 0
  store i32 %203, ptr %204, align 4, !tbaa !57
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %205 = call i64 @_ZN8fastgltf16writeBinaryChunkERKNS_15BinaryGltfChunkE(ptr noundef nonnull align 4 dereferenceable(8) %26) #8
  %206 = getelementptr inbounds %"struct.std::array.510", ptr %27, i32 0, i32 0
  store i64 %205, ptr %206, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 %27, i64 8, i1 false), !tbaa.struct !60
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %207 = call noundef ptr @_ZNSt5arrayISt4byteLm8EE4dataEv(ptr noundef nonnull align 1 dereferenceable(8) %23) #9
  %208 = call noundef i64 @_ZNKSt5arrayISt4byteLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8) %23) #9
  invoke void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %207, i64 noundef %208)
          to label %209 unwind label %232

209:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 48, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  %210 = getelementptr inbounds %class.anon.514, ptr %30, i32 0, i32 0
  store ptr %18, ptr %210, align 8, !tbaa !5
  %211 = getelementptr inbounds %class.anon.514, ptr %30, i32 0, i32 1
  %212 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %212, ptr %211, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %30, i64 16, i1 false), !tbaa.struct !62
  %213 = getelementptr inbounds i8, ptr %28, i64 16
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  %214 = getelementptr inbounds %class.anon.515, ptr %31, i32 0, i32 0
  store ptr %18, ptr %214, align 8, !tbaa !5
  %215 = getelementptr inbounds %class.anon.515, ptr %31, i32 0, i32 1
  %216 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %216, ptr %215, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %213, ptr align 8 %31, i64 16, i1 false), !tbaa.struct !62
  %217 = getelementptr inbounds i8, ptr %28, i64 32
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %218 = getelementptr inbounds %class.anon.516, ptr %32, i32 0, i32 0
  store ptr %18, ptr %218, align 8, !tbaa !5
  %219 = getelementptr inbounds %class.anon.516, ptr %32, i32 0, i32 1
  %220 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %220, ptr %219, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %217, ptr align 8 %32, i64 16, i1 false), !tbaa.struct !62
  %221 = load ptr, ptr %25, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %221, i32 0, i32 1
  invoke void @"_ZSt5visitIN8fastgltf7visitorIJZNS0_8Exporter15writeGltfBinaryERKNS0_5AssetENS0_13ExportOptionsEE3$_0ZNS2_15writeGltfBinaryES5_S6_E3$_1ZNS2_15writeGltfBinaryES5_S6_E3$_2ZNS2_15writeGltfBinaryES5_S6_E3$_3EEEJRKSt7variantIJSt9monostateNS0_7sources10BufferViewENSE_3URIENSE_5ArrayENSE_6VectorENSE_12CustomBufferENSE_8ByteViewENSE_8FallbackEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISS_EEEEE4typeEE4typeEOS11_EEEE4typeEOSQ_DpOSS_"(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 8 dereferenceable(185) %222)
          to label %223 unwind label %236

223:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %224 = load ptr, ptr %25, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.fastgltf::Buffer", ptr %224, i32 0, i32 0
  %226 = load i64, ptr %225, align 8, !tbaa !32
  store i64 %226, ptr %33, align 8, !tbaa !45
  br label %227

227:                                              ; preds = %242, %223
  %228 = load i64, ptr %33, align 8, !tbaa !45
  %229 = urem i64 %228, 4
  %230 = icmp ne i64 %229, 0
  br i1 %230, label %240, label %231

231:                                              ; preds = %227
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %249

232:                                              ; preds = %202, %193
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %13, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %14, align 4
  br label %250

236:                                              ; preds = %209
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %13, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %28) #8
  br label %250

240:                                              ; preds = %227
  invoke void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE4zero, i64 noundef 1)
          to label %241 unwind label %245

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %33, align 8, !tbaa !45
  %244 = add i64 %243, 1
  store i64 %244, ptr %33, align 8, !tbaa !45
  br label %227, !llvm.loop !63

245:                                              ; preds = %240
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %13, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %250

249:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %251

250:                                              ; preds = %245, %236, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %253

251:                                              ; preds = %249, %190
  invoke void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %252 unwind label %177

252:                                              ; preds = %251
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %256

253:                                              ; preds = %250, %186, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %254

254:                                              ; preds = %253, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %255

255:                                              ; preds = %254, %169
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %257

256:                                              ; preds = %252, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  br label %258

257:                                              ; preds = %255, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  br label %259

258:                                              ; preds = %256, %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #8
  ret void

259:                                              ; preds = %257, %56
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %260

260:                                              ; preds = %259, %52
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  call void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #8
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %13, align 8
  %263 = load i32, ptr %14, align 4
  %264 = insertvalue { ptr, i32 } poison, ptr %262, 0
  %265 = insertvalue { ptr, i32 } %264, i32 %263, 1
  resume { ptr, i32 } %265
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIjE3maxEv() #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef, i32 noundef) #2

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local { i64, i32 } @_ZN8fastgltf17writeBinaryHeaderERKNS_16BinaryGltfHeaderE(ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayISt4byteLm12EE4dataEv(ptr noundef nonnull align 1 dereferenceable(12)) #7 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayISt4byteLm12EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(12)) #7 align 2

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayISt4byteLm8EE4dataEv(ptr noundef nonnull align 1 dereferenceable(8)) #7 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayISt4byteLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8)) #7 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5visitIN8fastgltf7visitorIJZNS0_8Exporter15writeGltfBinaryERKNS0_5AssetENS0_13ExportOptionsEE3$_0ZNS2_15writeGltfBinaryES5_S6_E3$_1ZNS2_15writeGltfBinaryES5_S6_E3$_2ZNS2_15writeGltfBinaryES5_S6_E3$_3EEEJRKSt7variantIJSt9monostateNS0_7sources10BufferViewENSE_3URIENSE_5ArrayENSE_6VectorENSE_12CustomBufferENSE_8ByteViewENSE_8FallbackEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISS_EEEEE4typeEE4typeEOS11_EEEE4typeEOSQ_DpOSS_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(185)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { 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 #7 = { mustprogress nounwind willreturn memory(none) 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 = { nounwind willreturn memory(none) }

!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 = !{!"_ZTSN8fastgltf13ExportOptionsE", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN8fastgltf8ExporterE", !13, i64 0, !10, i64 8, !14, i64 16, !15, i64 24, !15, i64 64, !6, i64 104, !6, i64 112, !26, i64 120, !26, i64 144}
!13 = !{!"_ZTSN8fastgltf5ErrorE", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !16, i64 0, !19, i64 32}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !20, i64 0}
!20 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !23, i64 0}
!23 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !24, i64 0}
!24 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !25, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !6, i64 0}
!26 = !{!"_ZTSSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!12, !14, i64 16}
!31 = !{!12, !13, i64 0}
!32 = !{!33, !18, i64 0}
!33 = !{!"_ZTSN8fastgltf6BufferE", !18, i64 0, !34, i64 8, !41, i64 200}
!34 = !{!"_ZTSSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEE", !35, i64 0}
!35 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !36, i64 0}
!36 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !37, i64 0}
!37 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !38, i64 0}
!38 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !39, i64 0}
!39 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !40, i64 0}
!40 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !7, i64 0, !7, i64 184}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcENSt3pmr21polymorphic_allocatorIcEEEE", !42, i64 0, !18, i64 16, !7, i64 24}
!42 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcENSt3pmr21polymorphic_allocatorIcEEE12_Alloc_hiderE", !43, i64 0, !6, i64 8}
!43 = !{!"_ZTSNSt3pmr21polymorphic_allocatorIcEE", !6, i64 0}
!44 = !{!14, !14, i64 0}
!45 = !{!18, !18, i64 0}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!49, !6, i64 0}
!49 = !{!"_ZTSZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE3$_4", !6, i64 0}
!50 = !{!51, !52, i64 0}
!51 = !{!"_ZTSN8fastgltf16BinaryGltfHeaderE", !52, i64 0, !52, i64 4, !52, i64 8}
!52 = !{!"int", !7, i64 0}
!53 = !{!51, !52, i64 4}
!54 = !{!51, !52, i64 8}
!55 = !{!56, !52, i64 4}
!56 = !{!"_ZTSN8fastgltf15BinaryGltfChunkE", !52, i64 0, !52, i64 4}
!57 = !{!56, !52, i64 0}
!58 = distinct !{!58, !59}
!59 = !{!"llvm.loop.mustprogress"}
!60 = !{i64 0, i64 8, !61}
!61 = !{!7, !7, i64 0}
!62 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!63 = distinct !{!63, !59}


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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.30 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.30 = type { i64, [8 x i8] }
%"class.fastgltf::Expected.501" = type { i64, %"struct.fastgltf::ExportResult.502" }
%"struct.fastgltf::ExportResult.502" = type { %"class.std::vector.503", %"class.std::vector.461", %"class.std::vector.461" }
%"class.std::vector.503" = type { %"struct.std::_Vector_base.504" }
%"struct.std::_Vector_base.504" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::byte, std::allocator<std::byte>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.461" = type { %"struct.std::_Vector_base.462" }
%"struct.std::_Vector_base.462" = type { %"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::optional<std::filesystem::__cxx11::path>, std::allocator<std::optional<std::filesystem::__cxx11::path>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.508 = type { ptr }
%"struct.fastgltf::BinaryGltfHeader" = type { i32, i32, i32 }
%"struct.std::array.509" = type { [12 x i8] }
%"struct.fastgltf::BinaryGltfChunk" = type { i32, i32 }
%"struct.std::array.510" = type { [8 x i8] }
%"struct.fastgltf::visitor.511" = type { %class.anon.514, %class.anon.515, %class.anon.516 }
%class.anon.514 = type { ptr, ptr }
%class.anon.515 = type { ptr, ptr }
%class.anon.516 = type { ptr, ptr }

@_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE5space = external hidden constant i8, align 1
@_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE4zero = external hidden constant i8, align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8fastgltf8Exporter9writeJsonB5cxx11ERKNS_5AssetE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(580)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsE(ptr dead_on_unwind noalias writable sret(%"class.fastgltf::Expected.501") align 8 %0, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull align 8 dereferenceable(580) %2, i64 noundef %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.fastgltf::ExportResult.502", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %class.anon.508, align 8
  %10 = alloca %"struct.fastgltf::BinaryGltfHeader", align 4
  %11 = alloca %"struct.std::array.509", align 8
  %12 = alloca %"struct.fastgltf::BinaryGltfChunk", align 8
  %13 = alloca %"struct.std::array.510", align 8
  %14 = alloca %"struct.fastgltf::BinaryGltfChunk", align 8
  %15 = alloca %"struct.fastgltf::visitor.511", align 8
  %16 = getelementptr inbounds i8, ptr %1, i64 120
  tail call void @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %17 = getelementptr inbounds i8, ptr %1, i64 144
  tail call void @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  store i64 %3, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  store i8 1, ptr %19, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  store i64 4, ptr %6, align 8, !tbaa !29
  %20 = call noundef i64 @_ZN8fastgltfcoERKNS_13ExportOptionsE(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  store i64 %20, ptr %5, align 8, !tbaa !29
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN8fastgltfaNERNS_13ExportOptionsERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #6
  call void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  invoke void @_ZN8fastgltf8Exporter9writeJsonB5cxx11ERKNS_5AssetE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(168) %1, ptr noundef nonnull align 8 dereferenceable(580) %2)
          to label %22 unwind label %25

22:                                               ; preds = %4
  %23 = load i64, ptr %1, align 8, !tbaa !30
  %.not = icmp eq i64 %23, 0
  br i1 %.not, label %27, label %24

24:                                               ; preds = %22
  call void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(80) %0, i64 noundef %23)
  br label %108

25:                                               ; preds = %4
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %109

27:                                               ; preds = %22
  %28 = getelementptr inbounds i8, ptr %7, i64 24
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EEaSEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %30 = getelementptr inbounds i8, ptr %7, i64 48
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EEaSEOS6_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %32 = getelementptr inbounds i8, ptr %2, i64 264
  %33 = call noundef zeroext i1 @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br i1 %33, label %52, label %34

34:                                               ; preds = %27
  %35 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = call noundef zeroext i1 @_ZSt17holds_alternativeIN8fastgltf7sources5ArrayEJSt9monostateNS1_10BufferViewENS1_3URIES2_NS1_6VectorENS1_12CustomBufferENS1_8ByteViewENS1_8FallbackEEEbRKSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(185) %36) #6
  br i1 %37, label %46, label %38

38:                                               ; preds = %34
  %39 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = call noundef zeroext i1 @_ZSt17holds_alternativeIN8fastgltf7sources8ByteViewEJSt9monostateNS1_10BufferViewENS1_3URIENS1_5ArrayENS1_6VectorENS1_12CustomBufferES2_NS1_8FallbackEEEbRKSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(185) %40) #6
  br i1 %41, label %46, label %42

42:                                               ; preds = %38
  %43 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = call noundef zeroext i1 @_ZSt17holds_alternativeIN8fastgltf7sources6VectorEJSt9monostateNS1_10BufferViewENS1_3URIENS1_5ArrayES2_NS1_12CustomBufferENS1_8ByteViewENS1_8FallbackEEEbRKSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(185) %44) #6
  br i1 %45, label %46, label %52

46:                                               ; preds = %42, %38, %34
  %47 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %48 = load i64, ptr %47, align 8, !tbaa !31
  %49 = call noundef i32 @_ZNSt14numeric_limitsIjE3maxEv() #6
  %50 = zext i32 %49 to i64
  %51 = icmp ult i64 %48, %50
  br label %52

52:                                               ; preds = %46, %42, %27
  %53 = phi i1 [ false, %42 ], [ false, %27 ], [ %51, %46 ]
  %54 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %55 = call noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %54, i32 noundef 4)
  %56 = add i64 %55, 20
  br i1 %53, label %57, label %65

57:                                               ; preds = %52
  %58 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %59 = load i64, ptr %58, align 8, !tbaa !31
  %60 = call noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %59, i32 noundef 4)
  %61 = add i64 %55, 28
  %62 = add i64 %61, %60
  br label %65

63:                                               ; preds = %69
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %107

65:                                               ; preds = %57, %52
  %.039 = phi i64 [ %62, %57 ], [ %56, %52 ]
  %66 = call noundef i32 @_ZNSt14numeric_limitsIjE3maxEv() #6
  %67 = zext i32 %66 to i64
  %.not42 = icmp ult i64 %.039, %67
  br i1 %.not42, label %69, label %68

68:                                               ; preds = %65
  call void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2ENS_5ErrorE(ptr noundef nonnull align 8 dereferenceable(80) %0, i64 noundef 7)
  br label %108

69:                                               ; preds = %65
  invoke void @_ZNSt6vectorISt4byteSaIS0_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.039)
          to label %70 unwind label %63

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %71 = call noundef ptr @_ZNSt6vectorISt4byteSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %71, ptr %9, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #6
  store i32 1179937895, ptr %10, align 4, !tbaa !45
  %72 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 2, ptr %72, align 4, !tbaa !48
  %73 = trunc nuw i64 %.039 to i32
  %74 = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %73, ptr %74, align 4, !tbaa !49
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #6
  %75 = call { i64, i32 } @_ZN8fastgltf17writeBinaryHeaderERKNS_16BinaryGltfHeaderE(ptr noundef nonnull align 4 dereferenceable(12) %10) #6
  %.fca.0.extract = extractvalue { i64, i32 } %75, 0
  %.fca.1.extract = extractvalue { i64, i32 } %75, 1
  store i64 %.fca.0.extract, ptr %11, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %76 = call noundef ptr @_ZNSt5arrayISt4byteLm12EE4dataEv(ptr noundef nonnull align 1 dereferenceable(12) %11) #7
  %77 = call noundef i64 @_ZNKSt5arrayISt4byteLm12EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(12) %11) #7
  call void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %76, i64 noundef %77)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  store i64 5642820435411206144, ptr %12, align 8
  %78 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %79 = call noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %78, i32 noundef 4)
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %12, align 8, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %81 = call i64 @_ZN8fastgltf16writeBinaryChunkERKNS_15BinaryGltfChunkE(ptr noundef nonnull align 4 dereferenceable(8) %12) #6
  store i64 %81, ptr %13, align 8
  %82 = call noundef ptr @_ZNSt5arrayISt4byteLm8EE4dataEv(ptr noundef nonnull align 1 dereferenceable(8) %13) #7
  %83 = call noundef i64 @_ZNKSt5arrayISt4byteLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8) %13) #7
  call void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %82, i64 noundef %83)
  %84 = call noundef ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %85 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %84, i64 noundef %85)
  %86 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %87 = and i64 %86, 3
  %.not4347 = icmp eq i64 %87, 0
  br i1 %.not4347, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %70
  br i1 %53, label %90, label %106

.lr.ph:                                           ; preds = %70, %.lr.ph
  %.04048 = phi i64 [ %88, %.lr.ph ], [ %86, %70 ]
  call void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE5space, i64 noundef 1)
  %88 = add i64 %.04048, 1
  %89 = and i64 %88, 3
  %.not43 = icmp eq i64 %89, 0
  br i1 %.not43, label %._crit_edge, label %.lr.ph, !llvm.loop !52

90:                                               ; preds = %._crit_edge
  %91 = call noundef nonnull align 8 dereferenceable(240) ptr @_ZNKSt6vectorIN8fastgltf6BufferESaIS1_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store i64 22035596000100352, ptr %14, align 8
  %92 = load i64, ptr %91, align 8, !tbaa !31
  %93 = call noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef %92, i32 noundef 4)
  %94 = trunc i64 %93 to i32
  store i32 %94, ptr %14, align 8, !tbaa !50
  %95 = call i64 @_ZN8fastgltf16writeBinaryChunkERKNS_15BinaryGltfChunkE(ptr noundef nonnull align 4 dereferenceable(8) %14) #6
  store i64 %95, ptr %13, align 8, !tbaa !54
  call void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %82, i64 noundef %83)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #6
  store ptr %9, ptr %15, align 8, !tbaa !55
  %.sroa.55.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 8
  store ptr %91, ptr %.sroa.55.0..sroa_idx, align 8, !tbaa !55
  %96 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr %9, ptr %96, align 8, !tbaa !55
  %.sroa.53.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %91, ptr %.sroa.53.0..sroa_idx, align 8, !tbaa !55
  %97 = getelementptr inbounds i8, ptr %15, i64 32
  store ptr %9, ptr %97, align 8, !tbaa !55
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %15, i64 40
  store ptr %91, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !55
  %98 = getelementptr inbounds i8, ptr %91, i64 8
  invoke void @"_ZSt5visitIN8fastgltf7visitorIJZNS0_8Exporter15writeGltfBinaryERKNS0_5AssetENS0_13ExportOptionsEE3$_0ZNS2_15writeGltfBinaryES5_S6_E3$_1ZNS2_15writeGltfBinaryES5_S6_E3$_2ZNS2_15writeGltfBinaryES5_S6_E3$_3EEEJRKSt7variantIJSt9monostateNS0_7sources10BufferViewENSE_3URIENSE_5ArrayENSE_6VectorENSE_12CustomBufferENSE_8ByteViewENSE_8FallbackEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISS_EEEEE4typeEE4typeEOS11_EEEE4typeEOSQ_DpOSS_"(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(185) %98)
          to label %99 unwind label %102

99:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #6
  %100 = load i64, ptr %91, align 8, !tbaa !31
  %101 = and i64 %100, 3
  %.not4649 = icmp eq i64 %101, 0
  br i1 %.not4649, label %._crit_edge53, label %.lr.ph52

._crit_edge53:                                    ; preds = %.lr.ph52, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %106

102:                                              ; preds = %90
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %107

.lr.ph52:                                         ; preds = %99, %.lr.ph52
  %.050 = phi i64 [ %104, %.lr.ph52 ], [ %100, %99 ]
  call void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE4zero, i64 noundef 1)
  %104 = add i64 %.050, 1
  %105 = and i64 %104, 3
  %.not46 = icmp eq i64 %105, 0
  br i1 %.not46, label %._crit_edge53, label %.lr.ph52, !llvm.loop !56

106:                                              ; preds = %._crit_edge53, %._crit_edge
  call void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 8 dereferenceable(72) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %108

107:                                              ; preds = %102, %63
  %.pn = phi { ptr, i32 } [ %103, %102 ], [ %64, %63 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  br label %109

108:                                              ; preds = %68, %106, %24
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #6
  ret void

109:                                              ; preds = %107, %25
  %.pn.pn = phi { ptr, i32 } [ %.pn, %107 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIjE3maxEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN8fastgltf7alignUpImiEET_S1_T0_(i64 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEEN3$_4clEPKvm"(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayISt4byteLm12EE4dataEv(ptr noundef nonnull align 1 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayISt4byteLm12EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(12)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayISt4byteLm8EE4dataEv(ptr noundef nonnull align 1 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayISt4byteLm8EE4sizeEv(ptr noundef nonnull align 1 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZSt5visitIN8fastgltf7visitorIJZNS0_8Exporter15writeGltfBinaryERKNS0_5AssetENS0_13ExportOptionsEE3$_0ZNS2_15writeGltfBinaryES5_S6_E3$_1ZNS2_15writeGltfBinaryES5_S6_E3$_2ZNS2_15writeGltfBinaryES5_S6_E3$_3EEEJRKSt7variantIJSt9monostateNS0_7sources10BufferViewENSE_3URIENSE_5ArrayENSE_6VectorENSE_12CustomBufferENSE_8ByteViewENSE_8FallbackEEEEENSt13invoke_resultIT_JDpNSt13__conditionalIX21is_lvalue_reference_vIT0_EEE4typeIRNSt19variant_alternativeILm0ENSt16remove_referenceIDTclsr9__variantE4__asclsr3stdE7declvalISS_EEEEE4typeEE4typeEOS11_EEEE4typeEOSQ_DpOSS_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(185)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf8ExpectedINS_12ExportResultISt6vectorISt4byteSaIS3_EEEEEC2EOS6_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8fastgltf12ExportResultISt6vectorISt4byteSaIS2_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #3 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 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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, !10, i64 8}
!6 = !{!"_ZTSN8fastgltf8ExporterE", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 24, !12, i64 64, !15, i64 104, !15, i64 112, !24, i64 120, !24, i64 144}
!7 = !{!"_ZTSN8fastgltf5ErrorE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN8fastgltf13ExportOptionsE", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSNSt10filesystem7__cxx114pathE", !13, i64 0, !17, i64 32}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !8, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"_ZTSNSt10filesystem7__cxx114path5_ListE", !18, i64 0}
!18 = !{!"_ZTSSt10unique_ptrINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !19, i64 0}
!19 = !{!"_ZTSSt15__uniq_ptr_dataINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterELb1ELb1EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_implINSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEE", !21, i64 0}
!21 = !{!"_ZTSSt5tupleIJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !22, i64 0}
!22 = !{!"_ZTSSt11_Tuple_implILm0EJPNSt10filesystem7__cxx114path5_List5_ImplENS3_13_Impl_deleterEEE", !23, i64 0}
!23 = !{!"_ZTSSt10_Head_baseILm0EPNSt10filesystem7__cxx114path5_List5_ImplELb0EE", !15, i64 0}
!24 = !{!"_ZTSSt6vectorISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseISt8optionalINSt10filesystem7__cxx114pathEESaIS4_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!28 = !{!6, !11, i64 16}
!29 = !{!10, !10, i64 0}
!30 = !{!6, !7, i64 0}
!31 = !{!32, !16, i64 0}
!32 = !{!"_ZTSN8fastgltf6BufferE", !16, i64 0, !33, i64 8, !40, i64 200}
!33 = !{!"_ZTSSt7variantIJSt9monostateN8fastgltf7sources10BufferViewENS2_3URIENS2_5ArrayENS2_6VectorENS2_12CustomBufferENS2_8ByteViewENS2_8FallbackEEE", !34, i64 0}
!34 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !35, i64 0}
!35 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !36, i64 0}
!36 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !37, i64 0}
!37 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !38, i64 0}
!38 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !39, i64 0}
!39 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJSt9monostateN8fastgltf7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEE", !8, i64 0, !8, i64 184}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcENSt3pmr21polymorphic_allocatorIcEEEE", !41, i64 0, !16, i64 16, !8, i64 24}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcENSt3pmr21polymorphic_allocatorIcEEE12_Alloc_hiderE", !42, i64 0, !15, i64 8}
!42 = !{!"_ZTSNSt3pmr21polymorphic_allocatorIcEE", !15, i64 0}
!43 = !{!44, !15, i64 0}
!44 = !{!"_ZTSZN8fastgltf8Exporter15writeGltfBinaryERKNS_5AssetENS_13ExportOptionsEE3$_4", !15, i64 0}
!45 = !{!46, !47, i64 0}
!46 = !{!"_ZTSN8fastgltf16BinaryGltfHeaderE", !47, i64 0, !47, i64 4, !47, i64 8}
!47 = !{!"int", !8, i64 0}
!48 = !{!46, !47, i64 4}
!49 = !{!46, !47, i64 8}
!50 = !{!51, !47, i64 0}
!51 = !{!"_ZTSN8fastgltf15BinaryGltfChunkE", !47, i64 0, !47, i64 4}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}
!54 = !{!8, !8, i64 0}
!55 = !{!15, !15, i64 0}
!56 = distinct !{!56, !53}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass