_ZN8fastgltf6base6410getPaddingENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   45|  18.3k|	FASTGLTF_EXPORT constexpr std::size_t getPadding(const std::string_view string) {
   46|  18.3k|		assert(string.size() >= 4 && string.size() % 4 == 0);
  ------------------
  |  Branch (46:3): [True: 18.3k, False: 0]
  |  Branch (46:3): [True: 18.3k, False: 0]
  |  Branch (46:3): [True: 18.3k, False: 0]
  ------------------
   47|  18.3k|		const auto size = string.size();
   48|  20.6k|		for (auto i = 1; i < 4; ++i)
  ------------------
  |  Branch (48:20): [True: 20.6k, False: 2]
  ------------------
   49|  20.6k|			if (string[size - i] != '=')
  ------------------
  |  Branch (49:8): [True: 18.3k, False: 2.39k]
  ------------------
   50|  18.3k|				return i - 1;
   51|      2|		return 0;
   52|  18.3k|	}
_ZN8fastgltf6base6414getDecodedSizeEmm:
   59|  36.6k|			const std::size_t encodedSize, const std::size_t padding) {
   60|  36.6k|		assert(encodedSize % 4 == 0);
  ------------------
  |  Branch (60:3): [True: 36.6k, False: 0]
  ------------------
   61|  36.6k|		return (encodedSize / 4) * 3 - padding;
   62|  36.6k|	}

_ZN8fastgltf8internal17allocator_destroyINSt3__19allocatorINS_9PrimitiveEEEPS4_S6_EEvRT_T0_T1_:
   38|  76.3k|	void allocator_destroy(Allocator& a, Iterator first, Sentinel last) {
   39|   164k|		while (first != last) {
  ------------------
  |  Branch (39:10): [True: 88.0k, False: 76.3k]
  ------------------
   40|  88.0k|			std::allocator_traits<Allocator>::destroy(a, std::addressof(*first));
   41|  88.0k|			++first;
   42|  88.0k|		}
   43|  76.3k|	}
_ZN8fastgltf8internal17allocator_destroyINSt3__19allocatorISt4byteEEPS4_S6_EEvRT_T0_T1_:
   38|  31.2k|	void allocator_destroy(Allocator& a, Iterator first, Sentinel last) {
   39|  4.82G|		while (first != last) {
  ------------------
  |  Branch (39:10): [True: 4.82G, False: 31.2k]
  ------------------
   40|  4.82G|			std::allocator_traits<Allocator>::destroy(a, std::addressof(*first));
   41|  4.82G|			++first;
   42|  4.82G|		}
   43|  31.2k|	}
_ZN8fastgltf8internal32uninitialized_allocator_relocateINSt3__19allocatorINS_9PrimitiveEEETkNS2_19contiguous_iteratorEPS4_EEvRT_T0_S9_S9_:
  112|  3.96k|	void uninitialized_allocator_relocate(Allocator& a, Iterator first, Iterator last, Iterator result) {
  113|  3.96k|		using value_type = std::iterator_traits<Iterator>::value_type;
  114|       |		if constexpr (std::is_trivially_copyable_v<value_type> && !std::uses_allocator_v<value_type, Allocator>) {
  115|       |			std::memcpy(std::to_address(result), std::to_address(first),
  116|       |				sizeof(value_type) * static_cast<std::size_t>(std::distance(first, last)));
  117|  3.96k|		} else {
  118|  3.96k|			auto destruct_last = result;
  119|  3.96k|			auto guard = make_exception_guard([&] {
  120|  3.96k|				allocator_destroy(a, std::reverse_iterator(result), std::reverse_iterator(destruct_last));
  121|  3.96k|			});
  122|       |
  123|  3.96k|			auto it = first;
  124|  4.22k|			while (it != last) {
  ------------------
  |  Branch (124:11): [True: 260, False: 3.96k]
  ------------------
  125|    260|#if __cpp_exceptions
  126|    260|				std::allocator_traits<Allocator>::construct(a, std::to_address(result), std::move_if_noexcept(*it));
  127|       |#else
  128|       |				std::allocator_traits<Allocator>::construct(a, std::to_address(result), std::move(*it));
  129|       |#endif
  130|    260|				++it;
  131|    260|				++result;
  132|    260|			}
  133|       |
  134|  3.96k|			guard.complete();
  135|  3.96k|			allocator_destroy(a, first, last);
  136|  3.96k|		}
  137|  3.96k|	}
_ZN8fastgltf8internal28uninitialized_allocator_copyINSt3__19allocatorINS_9PrimitiveEEENS2_13move_iteratorIPS4_EES8_S7_EENS2_4pairIT0_T2_EERT_SA_T1_SB_:
   95|     10|	std::pair<Iterator, OutputIterator> uninitialized_allocator_copy(Allocator& a, Iterator first, Sentinel last, OutputIterator out) {
   96|     10|		const auto destruct_last = out;
   97|     10|		auto guard = make_exception_guard([&] {
   98|     10|			allocator_destroy(a, std::reverse_iterator(out), std::reverse_iterator(destruct_last));
   99|     10|		});
  100|       |
  101|     20|		while (first != last) {
  ------------------
  |  Branch (101:10): [True: 10, False: 10]
  ------------------
  102|     10|			std::allocator_traits<Allocator>::construct(a, std::to_address(out), *first);
  103|     10|			++first;
  104|     10|			++out;
  105|     10|		}
  106|       |
  107|     10|		guard.complete();
  108|     10|		return { first, out };
  109|     10|	}

_ZN8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEED2Ev:
  155|   470k|		constexpr ~box() noexcept {
  156|   470k|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 78.9k, False: 391k]
  ------------------
  157|  78.9k|				dispose(_allocator, _ptr);
  158|  78.9k|			}
  159|   470k|		}
_ZN8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  78.9k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  78.9k|			traits::destroy(a, p);
   82|  78.9k|			traits::deallocate(a, p, 1);
   83|  78.9k|			p = nullptr;
   84|  78.9k|		}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEED2Ev:
  155|  98.5k|		constexpr ~box() noexcept {
  156|  98.5k|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 10.4k, False: 88.0k]
  ------------------
  157|  10.4k|				dispose(_allocator, _ptr);
  158|  10.4k|			}
  159|  98.5k|		}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  10.4k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  10.4k|			traits::destroy(a, p);
   82|  10.4k|			traits::deallocate(a, p, 1);
   83|  10.4k|			p = nullptr;
   84|  10.4k|		}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEED2Ev:
  155|  1.04M|		constexpr ~box() noexcept {
  156|  1.04M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 1, False: 1.04M]
  ------------------
  157|      1|				dispose(_allocator, _ptr);
  158|      1|			}
  159|  1.04M|		}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|      1|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|      1|			traits::destroy(a, p);
   82|      1|			traits::deallocate(a, p, 1);
   83|      1|			p = nullptr;
   84|      1|		}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEED2Ev:
  155|  9.12M|		constexpr ~box() noexcept {
  156|  9.12M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 203k, False: 8.91M]
  ------------------
  157|   203k|				dispose(_allocator, _ptr);
  158|   203k|			}
  159|  9.12M|		}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|   203k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|   203k|			traits::destroy(a, p);
   82|   203k|			traits::deallocate(a, p, 1);
   83|   203k|			p = nullptr;
   84|   203k|		}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEED2Ev:
  155|  2.10M|		constexpr ~box() noexcept {
  156|  2.10M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 26.2k, False: 2.08M]
  ------------------
  157|  26.2k|				dispose(_allocator, _ptr);
  158|  26.2k|			}
  159|  2.10M|		}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  26.2k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  26.2k|			traits::destroy(a, p);
   82|  26.2k|			traits::deallocate(a, p, 1);
   83|  26.2k|			p = nullptr;
   84|  26.2k|		}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEED2Ev:
  155|  1.08M|		constexpr ~box() noexcept {
  156|  1.08M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 48.6k, False: 1.04M]
  ------------------
  157|  48.6k|				dispose(_allocator, _ptr);
  158|  48.6k|			}
  159|  1.08M|		}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  48.6k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  48.6k|			traits::destroy(a, p);
   82|  48.6k|			traits::deallocate(a, p, 1);
   83|  48.6k|			p = nullptr;
   84|  48.6k|		}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEED2Ev:
  155|  1.07M|		constexpr ~box() noexcept {
  156|  1.07M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 38.6k, False: 1.04M]
  ------------------
  157|  38.6k|				dispose(_allocator, _ptr);
  158|  38.6k|			}
  159|  1.07M|		}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  38.6k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  38.6k|			traits::destroy(a, p);
   82|  38.6k|			traits::deallocate(a, p, 1);
   83|  38.6k|			p = nullptr;
   84|  38.6k|		}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEED2Ev:
  155|  1.05M|		constexpr ~box() noexcept {
  156|  1.05M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 10.9k, False: 1.04M]
  ------------------
  157|  10.9k|				dispose(_allocator, _ptr);
  158|  10.9k|			}
  159|  1.05M|		}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  10.9k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  10.9k|			traits::destroy(a, p);
   82|  10.9k|			traits::deallocate(a, p, 1);
   83|  10.9k|			p = nullptr;
   84|  10.9k|		}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEED2Ev:
  155|  1.06M|		constexpr ~box() noexcept {
  156|  1.06M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 23.1k, False: 1.04M]
  ------------------
  157|  23.1k|				dispose(_allocator, _ptr);
  158|  23.1k|			}
  159|  1.06M|		}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  23.1k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  23.1k|			traits::destroy(a, p);
   82|  23.1k|			traits::deallocate(a, p, 1);
   83|  23.1k|			p = nullptr;
   84|  23.1k|		}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEED2Ev:
  155|  1.08M|		constexpr ~box() noexcept {
  156|  1.08M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 48.6k, False: 1.04M]
  ------------------
  157|  48.6k|				dispose(_allocator, _ptr);
  158|  48.6k|			}
  159|  1.08M|		}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  48.6k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  48.6k|			traits::destroy(a, p);
   82|  48.6k|			traits::deallocate(a, p, 1);
   83|  48.6k|			p = nullptr;
   84|  48.6k|		}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEED2Ev:
  155|  1.04M|		constexpr ~box() noexcept {
  156|  1.04M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 4.99k, False: 1.04M]
  ------------------
  157|  4.99k|				dispose(_allocator, _ptr);
  158|  4.99k|			}
  159|  1.04M|		}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  4.99k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  4.99k|			traits::destroy(a, p);
   82|  4.99k|			traits::deallocate(a, p, 1);
   83|  4.99k|			p = nullptr;
   84|  4.99k|		}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEED2Ev:
  155|  1.14M|		constexpr ~box() noexcept {
  156|  1.14M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 104k, False: 1.04M]
  ------------------
  157|   104k|				dispose(_allocator, _ptr);
  158|   104k|			}
  159|  1.14M|		}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|   104k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|   104k|			traits::destroy(a, p);
   82|   104k|			traits::deallocate(a, p, 1);
   83|   104k|			p = nullptr;
   84|   104k|		}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEED2Ev:
  155|  1.09M|		constexpr ~box() noexcept {
  156|  1.09M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 54.0k, False: 1.04M]
  ------------------
  157|  54.0k|				dispose(_allocator, _ptr);
  158|  54.0k|			}
  159|  1.09M|		}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  54.0k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  54.0k|			traits::destroy(a, p);
   82|  54.0k|			traits::deallocate(a, p, 1);
   83|  54.0k|			p = nullptr;
   84|  54.0k|		}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEED2Ev:
  155|  1.15M|		constexpr ~box() noexcept {
  156|  1.15M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 109k, False: 1.04M]
  ------------------
  157|   109k|				dispose(_allocator, _ptr);
  158|   109k|			}
  159|  1.15M|		}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|   109k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|   109k|			traits::destroy(a, p);
   82|   109k|			traits::deallocate(a, p, 1);
   83|   109k|			p = nullptr;
   84|   109k|		}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEED2Ev:
  155|  1.13M|		constexpr ~box() noexcept {
  156|  1.13M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 96.6k, False: 1.04M]
  ------------------
  157|  96.6k|				dispose(_allocator, _ptr);
  158|  96.6k|			}
  159|  1.13M|		}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  96.6k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  96.6k|			traits::destroy(a, p);
   82|  96.6k|			traits::deallocate(a, p, 1);
   83|  96.6k|			p = nullptr;
   84|  96.6k|		}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEED2Ev:
  155|  1.15M|		constexpr ~box() noexcept {
  156|  1.15M|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 116k, False: 1.04M]
  ------------------
  157|   116k|				dispose(_allocator, _ptr);
  158|   116k|			}
  159|  1.15M|		}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|   116k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|   116k|			traits::destroy(a, p);
   82|   116k|			traits::deallocate(a, p, 1);
   83|   116k|			p = nullptr;
   84|   116k|		}
_ZN8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEED2Ev:
  155|   353k|		constexpr ~box() noexcept {
  156|   353k|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 175k, False: 178k]
  ------------------
  157|   175k|				dispose(_allocator, _ptr);
  158|   175k|			}
  159|   353k|		}
_ZN8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|   175k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|   175k|			traits::destroy(a, p);
   82|   175k|			traits::deallocate(a, p, 1);
   83|   175k|			p = nullptr;
   84|   175k|		}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEED2Ev:
  155|   381k|		constexpr ~box() noexcept {
  156|   381k|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 45.0k, False: 336k]
  ------------------
  157|  45.0k|				dispose(_allocator, _ptr);
  158|  45.0k|			}
  159|   381k|		}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  45.0k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  45.0k|			traits::destroy(a, p);
   82|  45.0k|			traits::deallocate(a, p, 1);
   83|  45.0k|			p = nullptr;
   84|  45.0k|		}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEED2Ev:
  155|   447k|		constexpr ~box() noexcept {
  156|   447k|			if (_ptr != nullptr) {
  ------------------
  |  Branch (156:8): [True: 30.3k, False: 417k]
  ------------------
  157|  30.3k|				dispose(_allocator, _ptr);
  158|  30.3k|			}
  159|   447k|		}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEE7disposeERS4_RPS1_:
   80|  30.3k|		static constexpr void dispose(Allocator& a, pointer& p) noexcept {
   81|  30.3k|			traits::destroy(a, p);
   82|  30.3k|			traits::deallocate(a, p, 1);
   83|  30.3k|			p = nullptr;
   84|  30.3k|		}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  4.85M|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  4.85M|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 4.85M, False: 0]
  ------------------
  190|  4.85M|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  4.85M|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 4.65M, False: 203k]
  ------------------
  192|  4.65M|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 4.65M]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  4.65M|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 203k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|   203k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 203k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|   203k|					_ptr = std::exchange(other._ptr, nullptr);
  200|   203k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  4.85M|					_allocator = other._allocator;
  213|  4.85M|			}
  214|  4.85M|			return *this;
  215|  4.85M|		}
_ZNK8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   394k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   394k|			return _ptr == nullptr;
  250|   394k|		}
_ZNKR8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEEdeEv:
  234|  73.2k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  73.2k|			return *_ptr;
  236|  73.2k|		}
_ZNK8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEEptEv:
  227|  71.5k|		constexpr const_pointer operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  228|  71.5k|			return _ptr;
  229|  71.5k|		}
_ZNK8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   637k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   637k|			return _ptr == nullptr;
  250|   637k|		}
_ZNKR8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEdeEv:
  234|  89.9k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  89.9k|			return *_ptr;
  236|  89.9k|		}
_ZNK8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.16M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.16M|			return _ptr == nullptr;
  250|  1.16M|		}
_ZNKR8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEdeEv:
  234|   188k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   188k|			return *_ptr;
  236|   188k|		}
_ZNK8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.33M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.33M|			return _ptr == nullptr;
  250|  1.33M|		}
_ZNKR8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEdeEv:
  234|   355k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   355k|			return *_ptr;
  236|   355k|		}
_ZNK8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.12M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.12M|			return _ptr == nullptr;
  250|  1.12M|		}
_ZNKR8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEdeEv:
  234|   143k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   143k|			return *_ptr;
  236|   143k|		}
_ZNK8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.37M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.37M|			return _ptr == nullptr;
  250|  1.37M|		}
_ZNKR8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEdeEv:
  234|   395k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   395k|			return *_ptr;
  236|   395k|		}
_ZNK8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   495k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   495k|			return _ptr == nullptr;
  250|   495k|		}
_ZNKR8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEdeEv:
  234|  7.51k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  7.51k|			return *_ptr;
  236|  7.51k|		}
_ZNK8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.10M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.10M|			return _ptr == nullptr;
  250|  1.10M|		}
_ZNKR8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEEdeEv:
  234|   123k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   123k|			return *_ptr;
  236|   123k|		}
_ZNK8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.03M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.03M|			return _ptr == nullptr;
  250|  1.03M|		}
_ZNKR8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEEdeEv:
  234|  55.1k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  55.1k|			return *_ptr;
  236|  55.1k|		}
_ZNK8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.00M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.00M|			return _ptr == nullptr;
  250|  1.00M|		}
_ZNKR8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEdeEv:
  234|  29.0k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  29.0k|			return *_ptr;
  236|  29.0k|		}
_ZNK8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.02M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.02M|			return _ptr == nullptr;
  250|  1.02M|		}
_ZNKR8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEdeEv:
  234|  47.6k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  47.6k|			return *_ptr;
  236|  47.6k|		}
_ZNK8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.10M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.10M|			return _ptr == nullptr;
  250|  1.10M|		}
_ZNKR8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEEdeEv:
  234|   126k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   126k|			return *_ptr;
  236|   126k|		}
_ZNK8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.98M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.98M|			return _ptr == nullptr;
  250|  1.98M|		}
_ZNKR8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEEdeEv:
  234|  25.8k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  25.8k|			return *_ptr;
  236|  25.8k|		}
_ZNK8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   977k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   977k|			return _ptr == nullptr;
  250|   977k|		}
_ZNK8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|  1.08M|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|  1.08M|			return _ptr == nullptr;
  250|  1.08M|		}
_ZNKR8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEdeEv:
  234|   108k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   108k|			return *_ptr;
  236|   108k|		}
_ZNK8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   146k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   146k|			return _ptr == nullptr;
  250|   146k|		}
_ZNKR8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEdeEv:
  234|  66.6k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  66.6k|			return *_ptr;
  236|  66.6k|		}
_ZNK8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   416k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   416k|			return _ptr == nullptr;
  250|   416k|		}
_ZNKR8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEEdeEv:
  234|   193k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|   193k|			return *_ptr;
  236|   193k|		}
_ZNK8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEE20valueless_after_moveEv:
  248|   420k|		[[nodiscard]] constexpr bool valueless_after_move() const noexcept {
  249|   420k|			return _ptr == nullptr;
  250|   420k|		}
_ZNKR8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEEdeEv:
  234|  97.9k|		constexpr const T& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  235|  97.9k|			return *_ptr;
  236|  97.9k|		}
_ZN8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEEC2EOS5_:
  139|   178k|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|   275k|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEC2EOS5_:
  139|  61.0k|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|   337k|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEEC2EOS5_:
  139|  80.2k|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEEC2EvQsr3stdE26is_default_constructible_vIT0_E:
   91|   175k|			: _ptr(create(_allocator)) {}
_ZN8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|   175k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|   175k|			pointer ptr = traits::allocate(a, 1);
   73|   175k|			auto guard = make_exception_guard([&] {
   74|   175k|				traits::deallocate(a, ptr, 1);
   75|   175k|			});
   76|   175k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|   175k|			guard.complete();
   78|   175k|			return ptr;
   79|   175k|		}
_ZN8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEEaSIRNS_7URIViewEQaaaantsr3stdE7same_asIu14__remove_cvrefITL0__ENS0_IT_T0_EEEsr3stdE18is_constructible_vISB_S9_Esr3stdE15is_assignable_vIRSB_S9_EEERS5_OSB_:
  218|   175k|		constexpr box& operator=(U&& value) {
  219|   175k|			if (_ptr == nullptr) {
  ------------------
  |  Branch (219:8): [True: 0, False: 175k]
  ------------------
  220|      0|				_ptr = create(_allocator, std::forward<U>(value));
  221|   175k|			} else {
  222|   175k|				**this = std::forward<U>(value);
  223|   175k|			}
  224|   175k|			return *this;
  225|   175k|		}
_ZNR8fastgltf3boxINS_3URIENSt3__19allocatorIS1_EEEdeEv:
  237|   175k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|   175k|			return *_ptr;
  239|   175k|		}
_ZNR8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEdeEv:
  237|  45.0k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  45.0k|			return *_ptr;
  239|  45.0k|		}
_ZNK8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  45.0k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  45.0k|			return _allocator;
  254|  45.0k|		}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEC2IJS1_EQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  45.0k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE6createIJS1_EEEPS1_RS4_DpOT_:
   71|  45.0k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  45.0k|			pointer ptr = traits::allocate(a, 1);
   73|  45.0k|			auto guard = make_exception_guard([&] {
   74|  45.0k|				traits::deallocate(a, ptr, 1);
   75|  45.0k|			});
   76|  45.0k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  45.0k|			guard.complete();
   78|  45.0k|			return ptr;
   79|  45.0k|		}
_ZN8fastgltf3boxINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  45.0k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  45.0k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 45.0k, False: 0]
  ------------------
  190|  45.0k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  45.0k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 45.0k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  45.0k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 45.0k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  45.0k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 45.0k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  45.0k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  45.0k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  45.0k|					_allocator = other._allocator;
  213|  45.0k|			}
  214|  45.0k|			return *this;
  215|  45.0k|		}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  8.91M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  2.08M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  1.04M|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    702|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    468|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    234|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|  87.7k|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEC2EOS5_:
  139|    270|		: _allocator(std::move(other._allocator)), _ptr(std::exchange(other._ptr, nullptr)) {}
_ZN8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEEC2ENS_15valueless_tag_tE:
   86|   391k|		constexpr explicit box(valueless_tag_t) noexcept {}
_ZNK8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  78.9k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  78.9k|			return _allocator;
  254|  78.9k|		}
_ZN8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  78.9k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  78.9k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  78.9k|			pointer ptr = traits::allocate(a, 1);
   73|  78.9k|			auto guard = make_exception_guard([&] {
   74|  78.9k|				traits::deallocate(a, ptr, 1);
   75|  78.9k|			});
   76|  78.9k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  78.9k|			guard.complete();
   78|  78.9k|			return ptr;
   79|  78.9k|		}
_ZN8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  78.9k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  78.9k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 78.9k, False: 0]
  ------------------
  190|  78.9k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  78.9k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 78.9k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  78.9k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 78.9k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  78.9k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 78.9k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  78.9k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  78.9k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  78.9k|					_allocator = other._allocator;
  213|  78.9k|			}
  214|  78.9k|			return *this;
  215|  78.9k|		}
_ZNR8fastgltf3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEEdeEv:
  237|  78.9k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  78.9k|			return *_ptr;
  239|  78.9k|		}
_ZNK8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  30.3k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  30.3k|			return _allocator;
  254|  30.3k|		}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  30.3k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  30.3k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  30.3k|			pointer ptr = traits::allocate(a, 1);
   73|  30.3k|			auto guard = make_exception_guard([&] {
   74|  30.3k|				traits::deallocate(a, ptr, 1);
   75|  30.3k|			});
   76|  30.3k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  30.3k|			guard.complete();
   78|  30.3k|			return ptr;
   79|  30.3k|		}
_ZN8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  30.3k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  30.3k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 30.3k, False: 0]
  ------------------
  190|  30.3k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  30.3k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 30.3k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  30.3k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 30.3k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  30.3k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 30.3k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  30.3k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  30.3k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  30.3k|					_allocator = other._allocator;
  213|  30.3k|			}
  214|  30.3k|			return *this;
  215|  30.3k|		}
_ZNR8fastgltf3boxINS_14SparseAccessorENSt3__19allocatorIS1_EEEdeEv:
  237|  30.3k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  30.3k|			return *_ptr;
  239|  30.3k|		}
_ZNK8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  96.6k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  96.6k|			return _allocator;
  254|  96.6k|		}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  96.6k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  96.6k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  96.6k|			pointer ptr = traits::allocate(a, 1);
   73|  96.6k|			auto guard = make_exception_guard([&] {
   74|  96.6k|				traits::deallocate(a, ptr, 1);
   75|  96.6k|			});
   76|  96.6k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  96.6k|			guard.complete();
   78|  96.6k|			return ptr;
   79|  96.6k|		}
_ZN8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  96.6k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  96.6k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 96.6k, False: 0]
  ------------------
  190|  96.6k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  96.6k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 96.6k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  96.6k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 96.6k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  96.6k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 96.6k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  96.6k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  96.6k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  96.6k|					_allocator = other._allocator;
  213|  96.6k|			}
  214|  96.6k|			return *this;
  215|  96.6k|		}
_ZNR8fastgltf3boxINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEdeEv:
  237|  96.6k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  96.6k|			return *_ptr;
  239|  96.6k|		}
_ZNK8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|   203k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|   203k|			return _allocator;
  254|   203k|		}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|   203k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|   203k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|   203k|			pointer ptr = traits::allocate(a, 1);
   73|   203k|			auto guard = make_exception_guard([&] {
   74|   203k|				traits::deallocate(a, ptr, 1);
   75|   203k|			});
   76|   203k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|   203k|			guard.complete();
   78|   203k|			return ptr;
   79|   203k|		}
_ZNR8fastgltf3boxINS_16TextureTransformENSt3__19allocatorIS1_EEEdeEv:
  237|   203k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|   203k|			return *_ptr;
  239|   203k|		}
_ZNK8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|   109k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|   109k|			return _allocator;
  254|   109k|		}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|   109k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|   109k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|   109k|			pointer ptr = traits::allocate(a, 1);
   73|   109k|			auto guard = make_exception_guard([&] {
   74|   109k|				traits::deallocate(a, ptr, 1);
   75|   109k|			});
   76|   109k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|   109k|			guard.complete();
   78|   109k|			return ptr;
   79|   109k|		}
_ZN8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEaSEOS5_:
  188|   109k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|   109k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 109k, False: 0]
  ------------------
  190|   109k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|   109k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 109k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|   109k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 109k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|   109k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 109k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|   109k|					_ptr = std::exchange(other._ptr, nullptr);
  200|   109k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|   109k|					_allocator = other._allocator;
  213|   109k|			}
  214|   109k|			return *this;
  215|   109k|		}
_ZNR8fastgltf3boxINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEdeEv:
  237|   109k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|   109k|			return *_ptr;
  239|   109k|		}
_ZNK8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|   104k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|   104k|			return _allocator;
  254|   104k|		}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|   104k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|   104k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|   104k|			pointer ptr = traits::allocate(a, 1);
   73|   104k|			auto guard = make_exception_guard([&] {
   74|   104k|				traits::deallocate(a, ptr, 1);
   75|   104k|			});
   76|   104k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|   104k|			guard.complete();
   78|   104k|			return ptr;
   79|   104k|		}
_ZN8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEaSEOS5_:
  188|   104k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|   104k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 104k, False: 0]
  ------------------
  190|   104k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|   104k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 104k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|   104k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 104k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|   104k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 104k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|   104k|					_ptr = std::exchange(other._ptr, nullptr);
  200|   104k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|   104k|					_allocator = other._allocator;
  213|   104k|			}
  214|   104k|			return *this;
  215|   104k|		}
_ZNR8fastgltf3boxINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEdeEv:
  237|   104k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|   104k|			return *_ptr;
  239|   104k|		}
_ZNK8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  4.99k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  4.99k|			return _allocator;
  254|  4.99k|		}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  4.99k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  4.99k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  4.99k|			pointer ptr = traits::allocate(a, 1);
   73|  4.99k|			auto guard = make_exception_guard([&] {
   74|  4.99k|				traits::deallocate(a, ptr, 1);
   75|  4.99k|			});
   76|  4.99k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  4.99k|			guard.complete();
   78|  4.99k|			return ptr;
   79|  4.99k|		}
_ZN8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  4.99k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  4.99k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 4.99k, False: 0]
  ------------------
  190|  4.99k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  4.99k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 4.99k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  4.99k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 4.99k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  4.99k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 4.99k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  4.99k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  4.99k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  4.99k|					_allocator = other._allocator;
  213|  4.99k|			}
  214|  4.99k|			return *this;
  215|  4.99k|		}
_ZNR8fastgltf3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEdeEv:
  237|  4.99k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  4.99k|			return *_ptr;
  239|  4.99k|		}
_ZNK8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  54.0k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  54.0k|			return _allocator;
  254|  54.0k|		}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  54.0k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  54.0k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  54.0k|			pointer ptr = traits::allocate(a, 1);
   73|  54.0k|			auto guard = make_exception_guard([&] {
   74|  54.0k|				traits::deallocate(a, ptr, 1);
   75|  54.0k|			});
   76|  54.0k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  54.0k|			guard.complete();
   78|  54.0k|			return ptr;
   79|  54.0k|		}
_ZN8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  54.0k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  54.0k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 54.0k, False: 0]
  ------------------
  190|  54.0k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  54.0k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 54.0k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  54.0k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 54.0k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  54.0k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 54.0k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  54.0k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  54.0k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  54.0k|					_allocator = other._allocator;
  213|  54.0k|			}
  214|  54.0k|			return *this;
  215|  54.0k|		}
_ZNR8fastgltf3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEdeEv:
  237|  54.0k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  54.0k|			return *_ptr;
  239|  54.0k|		}
_ZNK8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  48.6k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  48.6k|			return _allocator;
  254|  48.6k|		}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  48.6k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  48.6k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  48.6k|			pointer ptr = traits::allocate(a, 1);
   73|  48.6k|			auto guard = make_exception_guard([&] {
   74|  48.6k|				traits::deallocate(a, ptr, 1);
   75|  48.6k|			});
   76|  48.6k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  48.6k|			guard.complete();
   78|  48.6k|			return ptr;
   79|  48.6k|		}
_ZN8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  48.6k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  48.6k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 48.6k, False: 0]
  ------------------
  190|  48.6k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  48.6k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 48.6k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  48.6k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 48.6k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  48.6k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 48.6k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  48.6k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  48.6k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  48.6k|					_allocator = other._allocator;
  213|  48.6k|			}
  214|  48.6k|			return *this;
  215|  48.6k|		}
_ZNR8fastgltf3boxINS_13MaterialSheenENSt3__19allocatorIS1_EEEdeEv:
  237|  48.6k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  48.6k|			return *_ptr;
  239|  48.6k|		}
_ZNK8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  23.1k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  23.1k|			return _allocator;
  254|  23.1k|		}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  23.1k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  23.1k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  23.1k|			pointer ptr = traits::allocate(a, 1);
   73|  23.1k|			auto guard = make_exception_guard([&] {
   74|  23.1k|				traits::deallocate(a, ptr, 1);
   75|  23.1k|			});
   76|  23.1k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  23.1k|			guard.complete();
   78|  23.1k|			return ptr;
   79|  23.1k|		}
_ZN8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  23.1k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  23.1k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 23.1k, False: 0]
  ------------------
  190|  23.1k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  23.1k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 23.1k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  23.1k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 23.1k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  23.1k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 23.1k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  23.1k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  23.1k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  23.1k|					_allocator = other._allocator;
  213|  23.1k|			}
  214|  23.1k|			return *this;
  215|  23.1k|		}
_ZNR8fastgltf3boxINS_16MaterialSpecularENSt3__19allocatorIS1_EEEdeEv:
  237|  23.1k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  23.1k|			return *_ptr;
  239|  23.1k|		}
_ZNK8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  38.6k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  38.6k|			return _allocator;
  254|  38.6k|		}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  38.6k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  38.6k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  38.6k|			pointer ptr = traits::allocate(a, 1);
   73|  38.6k|			auto guard = make_exception_guard([&] {
   74|  38.6k|				traits::deallocate(a, ptr, 1);
   75|  38.6k|			});
   76|  38.6k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  38.6k|			guard.complete();
   78|  38.6k|			return ptr;
   79|  38.6k|		}
_ZN8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  38.6k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  38.6k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 38.6k, False: 0]
  ------------------
  190|  38.6k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  38.6k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 38.6k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  38.6k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 38.6k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  38.6k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 38.6k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  38.6k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  38.6k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  38.6k|					_allocator = other._allocator;
  213|  38.6k|			}
  214|  38.6k|			return *this;
  215|  38.6k|		}
_ZNR8fastgltf3boxINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEdeEv:
  237|  38.6k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  38.6k|			return *_ptr;
  239|  38.6k|		}
_ZNK8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  48.6k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  48.6k|			return _allocator;
  254|  48.6k|		}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  48.6k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  48.6k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  48.6k|			pointer ptr = traits::allocate(a, 1);
   73|  48.6k|			auto guard = make_exception_guard([&] {
   74|  48.6k|				traits::deallocate(a, ptr, 1);
   75|  48.6k|			});
   76|  48.6k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  48.6k|			guard.complete();
   78|  48.6k|			return ptr;
   79|  48.6k|		}
_ZN8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  48.6k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  48.6k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 48.6k, False: 0]
  ------------------
  190|  48.6k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  48.6k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 48.6k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  48.6k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 48.6k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  48.6k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 48.6k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  48.6k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  48.6k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  48.6k|					_allocator = other._allocator;
  213|  48.6k|			}
  214|  48.6k|			return *this;
  215|  48.6k|		}
_ZNR8fastgltf3boxINS_14MaterialVolumeENSt3__19allocatorIS1_EEEdeEv:
  237|  48.6k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  48.6k|			return *_ptr;
  239|  48.6k|		}
_ZNK8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  26.2k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  26.2k|			return _allocator;
  254|  26.2k|		}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  26.2k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  26.2k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  26.2k|			pointer ptr = traits::allocate(a, 1);
   73|  26.2k|			auto guard = make_exception_guard([&] {
   74|  26.2k|				traits::deallocate(a, ptr, 1);
   75|  26.2k|			});
   76|  26.2k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  26.2k|			guard.complete();
   78|  26.2k|			return ptr;
   79|  26.2k|		}
_ZN8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  26.2k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  26.2k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 26.2k, False: 0]
  ------------------
  190|  26.2k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  26.2k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 26.2k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  26.2k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 26.2k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  26.2k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 26.2k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  26.2k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  26.2k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  26.2k|					_allocator = other._allocator;
  213|  26.2k|			}
  214|  26.2k|			return *this;
  215|  26.2k|		}
_ZNR8fastgltf3boxINS_11TextureInfoENSt3__19allocatorIS1_EEEdeEv:
  237|  26.2k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  26.2k|			return *_ptr;
  239|  26.2k|		}
_ZNK8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|      1|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|      1|			return _allocator;
  254|      1|		}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|      1|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|      1|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|      1|			pointer ptr = traits::allocate(a, 1);
   73|      1|			auto guard = make_exception_guard([&] {
   74|      1|				traits::deallocate(a, ptr, 1);
   75|      1|			});
   76|      1|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|      1|			guard.complete();
   78|      1|			return ptr;
   79|      1|		}
_ZN8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEEaSEOS5_:
  188|      1|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|      1|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 1, False: 0]
  ------------------
  190|      1|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|      1|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 1]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|      1|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 1, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|      1|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 1]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|      1|					_ptr = std::exchange(other._ptr, nullptr);
  200|      1|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|      1|					_allocator = other._allocator;
  213|      1|			}
  214|      1|			return *this;
  215|      1|		}
_ZNR8fastgltf3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEEdeEv:
  237|      1|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|      1|			return *_ptr;
  239|      1|		}
_ZNK8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  10.9k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  10.9k|			return _allocator;
  254|  10.9k|		}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  10.9k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  10.9k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  10.9k|			pointer ptr = traits::allocate(a, 1);
   73|  10.9k|			auto guard = make_exception_guard([&] {
   74|  10.9k|				traits::deallocate(a, ptr, 1);
   75|  10.9k|			});
   76|  10.9k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  10.9k|			guard.complete();
   78|  10.9k|			return ptr;
   79|  10.9k|		}
_ZN8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  10.9k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  10.9k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 10.9k, False: 0]
  ------------------
  190|  10.9k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  10.9k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 10.9k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  10.9k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 10.9k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  10.9k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 10.9k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  10.9k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  10.9k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  10.9k|					_allocator = other._allocator;
  213|  10.9k|			}
  214|  10.9k|			return *this;
  215|  10.9k|		}
_ZNR8fastgltf3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEdeEv:
  237|  10.9k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  10.9k|			return *_ptr;
  239|  10.9k|		}
_ZNK8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|   116k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|   116k|			return _allocator;
  254|   116k|		}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|   116k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|   116k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|   116k|			pointer ptr = traits::allocate(a, 1);
   73|   116k|			auto guard = make_exception_guard([&] {
   74|   116k|				traits::deallocate(a, ptr, 1);
   75|   116k|			});
   76|   116k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|   116k|			guard.complete();
   78|   116k|			return ptr;
   79|   116k|		}
_ZN8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEaSEOS5_:
  188|   116k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|   116k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 116k, False: 0]
  ------------------
  190|   116k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|   116k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 116k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|   116k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 116k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|   116k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 116k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|   116k|					_ptr = std::exchange(other._ptr, nullptr);
  200|   116k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|   116k|					_allocator = other._allocator;
  213|   116k|			}
  214|   116k|			return *this;
  215|   116k|		}
_ZNR8fastgltf3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEdeEv:
  237|   116k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|   116k|			return *_ptr;
  239|   116k|		}
_ZNK8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE13get_allocatorEv:
  252|  10.4k|		[[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
  253|  10.4k|			return _allocator;
  254|  10.4k|		}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEC2IJEQsr3stdE18is_constructible_vIT_DpTL0__EEENS2_15allocator_arg_tERKS4_NS2_10in_place_tEDpOT_:
  115|  10.4k|			: _allocator(a), _ptr(create(_allocator, std::forward<Args>(args)...)) {}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE6createIJEEEPS1_RS4_DpOT_:
   71|  10.4k|		static constexpr pointer create(Allocator& a, Args&&... args) {
   72|  10.4k|			pointer ptr = traits::allocate(a, 1);
   73|  10.4k|			auto guard = make_exception_guard([&] {
   74|  10.4k|				traits::deallocate(a, ptr, 1);
   75|  10.4k|			});
   76|  10.4k|			traits::construct(a, ptr, std::forward<Args>(args)...);
   77|  10.4k|			guard.complete();
   78|  10.4k|			return ptr;
   79|  10.4k|		}
_ZN8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEaSEOS5_:
  188|  10.4k|		noexcept(traits::propagate_on_container_move_assignment::value || traits::is_always_equal::value) {
  189|  10.4k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (189:8): [True: 10.4k, False: 0]
  ------------------
  190|  10.4k|				constexpr auto need_update = traits::propagate_on_container_move_assignment::value;
  191|  10.4k|				if (other._ptr == nullptr) {
  ------------------
  |  Branch (191:9): [True: 0, False: 10.4k]
  ------------------
  192|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (192:10): [True: 0, False: 0]
  ------------------
  193|      0|						dispose(_allocator, _ptr);
  194|      0|					}
  195|  10.4k|				} else if (need_update || _allocator == other._allocator) {
  ------------------
  |  Branch (195:16): [True: 10.4k, Folded]
  |  Branch (195:31): [True: 0, False: 0]
  ------------------
  196|  10.4k|					if (_ptr != nullptr) {
  ------------------
  |  Branch (196:10): [True: 0, False: 10.4k]
  ------------------
  197|      0|						dispose(_allocator, _ptr);
  198|      0|					}
  199|  10.4k|					_ptr = std::exchange(other._ptr, nullptr);
  200|  10.4k|				} else {
  201|      0|					pointer ptr = create(_allocator, *std::move(other));
  202|       |
  203|      0|					dispose(other._allocator, other._ptr);
  204|       |
  205|      0|					if (_ptr != nullptr) {
  ------------------
  |  Branch (205:10): [True: 0, False: 0]
  ------------------
  206|      0|						dispose(_allocator, _ptr);
  207|      0|					}
  208|      0|					_ptr = ptr;
  209|      0|				}
  210|       |
  211|       |				if constexpr (need_update)
  212|  10.4k|					_allocator = other._allocator;
  213|  10.4k|			}
  214|  10.4k|			return *this;
  215|  10.4k|		}
_ZNR8fastgltf3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEdeEv:
  237|  10.4k|		constexpr T& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  238|  10.4k|			return *_ptr;
  239|  10.4k|		}

_ZN8fastgltf20make_exception_guardIZNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEE22allocate_and_constructIZNS6_C1ENS_15for_overwrite_tEmRKS5_Qsr3stdE36is_trivially_default_constructible_vIT_EEUlPS2_E_EEvmOSB_EUlvE_EENS_26exception_guard_exceptionsISB_EESB_:
  109|  31.2k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  31.2k|		return exception_guard<Rollback>(std::move(rollback));
  111|  31.2k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEE22allocate_and_constructIZNS6_C1ENS_15for_overwrite_tEmRKS5_Qsr3stdE36is_trivially_default_constructible_vIT_EEUlPS2_E_EEvmOSB_EUlvE_EC2ESF_:
   48|  31.2k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEE22allocate_and_constructIZNS6_C1ENS_15for_overwrite_tEmRKS5_Qsr3stdE36is_trivially_default_constructible_vIT_EEUlPS2_E_EEvmOSB_EUlvE_E8completeEv:
   66|  31.2k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  31.2k|			completed = true;
   68|  31.2k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEE22allocate_and_constructIZNS6_C1ENS_15for_overwrite_tEmRKS5_Qsr3stdE36is_trivially_default_constructible_vIT_EEUlPS2_E_EEvmOSB_EUlvE_ED2Ev:
   61|  31.2k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  31.2k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 31.2k]
  ------------------
   63|      0|				rollback();
   64|  31.2k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_3URIENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|   175k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|   175k|		return exception_guard<Rollback>(std::move(rollback));
  111|   175k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_3URIENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|   175k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_3URIENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|   175k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|   175k|			completed = true;
   68|   175k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_3URIENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|   175k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|   175k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 175k]
  ------------------
   63|      0|				rollback();
   64|   175k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_20CompressedBufferViewENSt3__19allocatorIS2_EEE6createIJS2_EEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  45.0k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  45.0k|		return exception_guard<Rollback>(std::move(rollback));
  111|  45.0k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20CompressedBufferViewENSt3__19allocatorIS2_EEE6createIJS2_EEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  45.0k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20CompressedBufferViewENSt3__19allocatorIS2_EEE6createIJS2_EEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  45.0k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  45.0k|			completed = true;
   68|  45.0k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20CompressedBufferViewENSt3__19allocatorIS2_EEE6createIJS2_EEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  45.0k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  45.0k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 45.0k]
  ------------------
   63|      0|				rollback();
   64|  45.0k|		}
_ZN8fastgltf20make_exception_guardIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESD_:
  109|     10|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|     10|		return exception_guard<Rollback>(std::move(rollback));
  111|     10|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE_EC2ESB_:
   48|     10|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf20make_exception_guardIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE0_EENS_26exception_guard_exceptionsIT_EESD_:
  109|     10|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|     10|		return exception_guard<Rollback>(std::move(rollback));
  111|     10|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE0_EC2ESB_:
   48|     10|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf20make_exception_guardIZNS_8internal32uninitialized_allocator_relocateINSt3__19allocatorINS_9PrimitiveEEETkNS3_19contiguous_iteratorEPS5_EEvRT_T0_SA_SA_EUlvE_EENS_26exception_guard_exceptionsIS8_EES8_:
  109|  3.96k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  3.96k|		return exception_guard<Rollback>(std::move(rollback));
  111|  3.96k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_8internal32uninitialized_allocator_relocateINSt3__19allocatorINS_9PrimitiveEEETkNS3_19contiguous_iteratorEPS5_EEvRT_T0_SA_SA_EUlvE_EC2ESB_:
   48|  3.96k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_8internal32uninitialized_allocator_relocateINSt3__19allocatorINS_9PrimitiveEEETkNS3_19contiguous_iteratorEPS5_EEvRT_T0_SA_SA_EUlvE_E8completeEv:
   66|  3.96k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  3.96k|			completed = true;
   68|  3.96k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_8internal32uninitialized_allocator_relocateINSt3__19allocatorINS_9PrimitiveEEETkNS3_19contiguous_iteratorEPS5_EEvRT_T0_SA_SA_EUlvE_ED2Ev:
   61|  3.96k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  3.96k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 3.96k]
  ------------------
   63|      0|				rollback();
   64|  3.96k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE0_E8completeEv:
   66|     10|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|     10|			completed = true;
   68|     10|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE_E8completeEv:
   66|     10|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|     10|			completed = true;
   68|     10|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE0_ED2Ev:
   61|     10|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|     10|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 10]
  ------------------
   63|      0|				rollback();
   64|     10|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE12emplace_backIJEEEDcDpOT_EUlvE_ED2Ev:
   61|     10|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|     10|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 10]
  ------------------
   63|      0|				rollback();
   64|     10|		}
_ZN8fastgltf20make_exception_guardIZNS_8internal28uninitialized_allocator_copyINSt3__19allocatorINS_9PrimitiveEEENS3_13move_iteratorIPS5_EES9_S8_EENS3_4pairIT0_T2_EERT_SB_T1_SC_EUlvE_EENS_26exception_guard_exceptionsISE_EESE_:
  109|     10|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|     10|		return exception_guard<Rollback>(std::move(rollback));
  111|     10|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_8internal28uninitialized_allocator_copyINSt3__19allocatorINS_9PrimitiveEEENS3_13move_iteratorIPS5_EES9_S8_EENS3_4pairIT0_T2_EERT_SB_T1_SC_EUlvE_EC2ESH_:
   48|     10|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_8internal28uninitialized_allocator_copyINSt3__19allocatorINS_9PrimitiveEEENS3_13move_iteratorIPS5_EES9_S8_EENS3_4pairIT0_T2_EERT_SB_T1_SC_EUlvE_E8completeEv:
   66|     10|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|     10|			completed = true;
   68|     10|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_8internal28uninitialized_allocator_copyINSt3__19allocatorINS_9PrimitiveEEENS3_13move_iteratorIPS5_EES9_S8_EENS3_4pairIT0_T2_EERT_SB_T1_SC_EUlvE_ED2Ev:
   61|     10|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|     10|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 10]
  ------------------
   63|      0|				rollback();
   64|     10|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  78.9k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  78.9k|		return exception_guard<Rollback>(std::move(rollback));
  111|  78.9k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  78.9k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  78.9k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  78.9k|			completed = true;
   68|  78.9k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16PhysicsRigidBodyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  78.9k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  78.9k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 78.9k]
  ------------------
   63|      0|				rollback();
   64|  78.9k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_14SparseAccessorENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  30.3k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  30.3k|		return exception_guard<Rollback>(std::move(rollback));
  111|  30.3k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_14SparseAccessorENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  30.3k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_14SparseAccessorENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  30.3k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  30.3k|			completed = true;
   68|  30.3k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_14SparseAccessorENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  30.3k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  30.3k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 30.3k]
  ------------------
   63|      0|				rollback();
   64|  30.3k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_18MaterialAnisotropyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  96.6k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  96.6k|		return exception_guard<Rollback>(std::move(rollback));
  111|  96.6k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_18MaterialAnisotropyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  96.6k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_18MaterialAnisotropyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  96.6k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  96.6k|			completed = true;
   68|  96.6k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_18MaterialAnisotropyENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  96.6k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  96.6k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 96.6k]
  ------------------
   63|      0|				rollback();
   64|  96.6k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_16TextureTransformENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|   203k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|   203k|		return exception_guard<Rollback>(std::move(rollback));
  111|   203k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16TextureTransformENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|   203k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16TextureTransformENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|   203k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|   203k|			completed = true;
   68|   203k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16TextureTransformENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|   203k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|   203k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 203k]
  ------------------
   63|      0|				rollback();
   64|   203k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_17MaterialClearcoatENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|   109k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|   109k|		return exception_guard<Rollback>(std::move(rollback));
  111|   109k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_17MaterialClearcoatENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|   109k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_17MaterialClearcoatENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|   109k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|   109k|			completed = true;
   68|   109k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_17MaterialClearcoatENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|   109k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|   109k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 109k]
  ------------------
   63|      0|				rollback();
   64|   109k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_19MaterialIridescenceENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|   104k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|   104k|		return exception_guard<Rollback>(std::move(rollback));
  111|   104k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_19MaterialIridescenceENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|   104k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_19MaterialIridescenceENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|   104k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|   104k|			completed = true;
   68|   104k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_19MaterialIridescenceENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|   104k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|   104k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 104k]
  ------------------
   63|      0|				rollback();
   64|   104k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  4.99k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  4.99k|		return exception_guard<Rollback>(std::move(rollback));
  111|  4.99k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  4.99k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  4.99k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  4.99k|			completed = true;
   68|  4.99k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_23MaterialRetroreflectionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  4.99k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  4.99k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 4.99k]
  ------------------
   63|      0|				rollback();
   64|  4.99k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  54.0k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  54.0k|		return exception_guard<Rollback>(std::move(rollback));
  111|  54.0k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  54.0k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  54.0k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  54.0k|			completed = true;
   68|  54.0k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  54.0k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  54.0k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 54.0k]
  ------------------
   63|      0|				rollback();
   64|  54.0k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_13MaterialSheenENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  48.6k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  48.6k|		return exception_guard<Rollback>(std::move(rollback));
  111|  48.6k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_13MaterialSheenENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  48.6k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_13MaterialSheenENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  48.6k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  48.6k|			completed = true;
   68|  48.6k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_13MaterialSheenENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  48.6k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  48.6k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 48.6k]
  ------------------
   63|      0|				rollback();
   64|  48.6k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_16MaterialSpecularENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  23.1k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  23.1k|		return exception_guard<Rollback>(std::move(rollback));
  111|  23.1k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16MaterialSpecularENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  23.1k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16MaterialSpecularENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  23.1k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  23.1k|			completed = true;
   68|  23.1k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_16MaterialSpecularENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  23.1k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  23.1k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 23.1k]
  ------------------
   63|      0|				rollback();
   64|  23.1k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_20MaterialTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  38.6k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  38.6k|		return exception_guard<Rollback>(std::move(rollback));
  111|  38.6k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20MaterialTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  38.6k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20MaterialTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  38.6k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  38.6k|			completed = true;
   68|  38.6k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20MaterialTransmissionENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  38.6k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  38.6k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 38.6k]
  ------------------
   63|      0|				rollback();
   64|  38.6k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_14MaterialVolumeENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  48.6k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  48.6k|		return exception_guard<Rollback>(std::move(rollback));
  111|  48.6k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_14MaterialVolumeENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  48.6k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_14MaterialVolumeENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  48.6k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  48.6k|			completed = true;
   68|  48.6k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_14MaterialVolumeENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  48.6k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  48.6k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 48.6k]
  ------------------
   63|      0|				rollback();
   64|  48.6k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_11TextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  26.2k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  26.2k|		return exception_guard<Rollback>(std::move(rollback));
  111|  26.2k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_11TextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  26.2k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_11TextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  26.2k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  26.2k|			completed = true;
   68|  26.2k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_11TextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  26.2k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  26.2k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 26.2k]
  ------------------
   63|      0|				rollback();
   64|  26.2k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|      1|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|      1|		return exception_guard<Rollback>(std::move(rollback));
  111|      1|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|      1|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|      1|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|      1|			completed = true;
   68|      1|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_22MaterialPackedTexturesENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|      1|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|      1|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 1]
  ------------------
   63|      0|				rollback();
   64|      1|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  10.9k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  10.9k|		return exception_guard<Rollback>(std::move(rollback));
  111|  10.9k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  10.9k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  10.9k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  10.9k|			completed = true;
   68|  10.9k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_26MaterialSpecularGlossinessENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  10.9k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  10.9k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 10.9k]
  ------------------
   63|      0|				rollback();
   64|  10.9k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|   116k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|   116k|		return exception_guard<Rollback>(std::move(rollback));
  111|   116k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|   116k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|   116k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|   116k|			completed = true;
   68|   116k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_20OcclusionTextureInfoENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|   116k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|   116k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 116k]
  ------------------
   63|      0|				rollback();
   64|   116k|		}
_ZN8fastgltf20make_exception_guardIZNS_3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EENS_26exception_guard_exceptionsIT_EESF_:
  109|  10.4k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  10.4k|		return exception_guard<Rollback>(std::move(rollback));
  111|  10.4k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_EC2ESD_:
   48|  10.4k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_E8completeEv:
   66|  10.4k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  10.4k|			completed = true;
   68|  10.4k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_3boxINS_24DracoCompressedPrimitiveENSt3__19allocatorIS2_EEE6createIJEEEPS2_RS5_DpOT_EUlvE_ED2Ev:
   61|  10.4k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  10.4k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 10.4k]
  ------------------
   63|      0|				rollback();
   64|  10.4k|		}
_ZN8fastgltf20make_exception_guardIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE10reallocateEmEUlvE_EENS_26exception_guard_exceptionsIT_EES9_:
  109|  3.95k|	constexpr exception_guard<Rollback> make_exception_guard(Rollback rollback) {
  110|  3.95k|		return exception_guard<Rollback>(std::move(rollback));
  111|  3.95k|	}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE10reallocateEmEUlvE_EC2ES7_:
   48|  3.95k|		FASTGLTF_NODEBUG constexpr explicit exception_guard_exceptions(Rollback rollback) : rollback(std::move(rollback)) {}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE10reallocateEmEUlvE_E8completeEv:
   66|  3.95k|		FASTGLTF_NODEBUG constexpr void complete() noexcept {
   67|  3.95k|			completed = true;
   68|  3.95k|		}
_ZN8fastgltf26exception_guard_exceptionsIZNS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEE10reallocateEmEUlvE_ED2Ev:
   61|  3.95k|		FASTGLTF_NODEBUG constexpr ~exception_guard_exceptions() {
   62|  3.95k|			if (!completed)
  ------------------
  |  Branch (62:8): [True: 0, False: 3.95k]
  ------------------
   63|      0|				rollback();
   64|  3.95k|		}

_ZNK8fastgltf14inplace_vectorIhLm3EE5emptyEv:
  263|     54|		[[nodiscard]] bool empty() const noexcept { return size() == 0; }
_ZNK8fastgltf14inplace_vectorIhLm3EE4sizeEv:
  264|     54|		[[nodiscard]] size_type size() const noexcept { return _size; }
_ZN8fastgltf14inplace_vectorIhLm3EEC2Ev:
  101|    324|		inplace_vector() noexcept = default;

_ZN8fastgltf14basic_optionalINS_16PhysicsRigidBodyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|   391k|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  88.0k|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_22MaterialPackedTexturesENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEED2Ev:
  248|  2.97M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  4.79M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  2.08M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|  1.04M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEED2Ev:
  248|  1.15M|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|   336k|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEED2Ev:
  248|   417k|		constexpr ~basic_optional() = default;
_ZN8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEED2Ev:
  248|   835k|		constexpr ~basic_optional() = default;
_ZN8fastgltf19sentinel_flag_valueImLm18446744073709551615EE8is_emptyERKm:
   46|  45.9M|		static constexpr bool is_empty(const T& value) noexcept {
   47|  45.9M|			return value == Sentinel;
   48|  45.9M|		}
_ZN8fastgltf19sentinel_flag_valueImLm18446744073709551615EE9set_emptyERm:
   49|  10.2M|		static constexpr void set_empty(T& value) noexcept {
   50|  10.2M|			value = Sentinel;
   51|  10.2M|		}
_ZN8fastgltf13boxed_storageINS_16TextureTransformENSt3__19allocatorIS1_EEE5resetEv:
  150|  4.12M|		constexpr void reset() noexcept { _value = box_type(valueless_tag); }
_ZN8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE5resetEv:
  415|  4.12M|		constexpr void reset() noexcept {
  416|  4.12M|			_storage.reset();
  417|  4.12M|		}
_ZNK8fastgltf15flagged_storageINS_19AccessorBoundsArrayEE9has_valueEv:
  124|  3.33M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZNK8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEE9has_valueEv:
  292|  3.33M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  3.33M|			return _storage.has_value();
  294|  3.33M|		}
_ZN8fastgltf15flagged_storageINS_19AccessorBoundsArrayEE3getEv:
  125|   359k|		[[nodiscard]] constexpr T& get() noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZN8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEEptEv:
  436|   359k|		constexpr value_type* operator->() noexcept FASTGLTF_LIFETIMEBOUND {
  437|   359k|			assert(has_value());
  ------------------
  |  Branch (437:4): [True: 359k, False: 0]
  ------------------
  438|   359k|			return std::addressof(_storage.get());
  439|   359k|		}
_ZNK8fastgltf14basic_optionalImNS_15flagged_storageImEEE9has_valueEv:
  292|  38.9M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  38.9M|			return _storage.has_value();
  294|  38.9M|		}
_ZNK8fastgltf15flagged_storageImE9has_valueEv:
  124|  38.9M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZNKR8fastgltf14basic_optionalImNS_15flagged_storageImEEE5valueEv:
  303|   449k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|   449k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 449k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|   449k|			return _storage.get();
  308|   449k|		}
_ZNK8fastgltf15flagged_storageImE3getEv:
  126|  11.5M|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   394k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   394k|			return _storage.has_value();
  294|   394k|		}
_ZNK8fastgltf13boxed_storageINS_14SparseAccessorENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   394k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNKR8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEdeEv:
  451|  14.2k|		constexpr const value_type& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  452|  14.2k|			assert(has_value());
  ------------------
  |  Branch (452:4): [True: 14.2k, False: 0]
  ------------------
  453|  14.2k|			return _storage.get();
  454|  14.2k|		}
_ZNK8fastgltf13boxed_storageINS_14SparseAccessorENSt3__19allocatorIS1_EEE3getEv:
  149|  73.2k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_12BufferTargetENS_15flagged_storageIS1_EEE9has_valueEv:
  292|   366k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   366k|			return _storage.has_value();
  294|   366k|		}
_ZNK8fastgltf15flagged_storageINS_12BufferTargetEE9has_valueEv:
  124|   366k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZN8fastgltf24enum_sentinel_flag_valueINS_12BufferTargetELt65535EE8is_emptyERKS1_:
   57|   505k|		static constexpr bool is_empty(const T& value) noexcept {
   58|   505k|			return to_underlying(value) == Sentinel;
   59|   505k|		}
_ZNKR8fastgltf14basic_optionalINS_12BufferTargetENS_15flagged_storageIS1_EEE5valueEv:
  303|  67.5k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|  67.5k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 67.5k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|  67.5k|			return _storage.get();
  308|  67.5k|		}
_ZNK8fastgltf15flagged_storageINS_12BufferTargetEE3getEv:
  126|  67.5k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   637k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   637k|			return _storage.has_value();
  294|   637k|		}
_ZNK8fastgltf13boxed_storageINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   637k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNKR8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEdeEv:
  451|  21.8k|		constexpr const value_type& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  452|  21.8k|			assert(has_value());
  ------------------
  |  Branch (452:4): [True: 21.8k, False: 0]
  ------------------
  453|  21.8k|			return _storage.get();
  454|  21.8k|		}
_ZNK8fastgltf13boxed_storageINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE3getEv:
  149|  89.9k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalIfNS_15flagged_storageIfEEE9has_valueEv:
  292|   672k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   672k|			return _storage.has_value();
  294|   672k|		}
_ZNK8fastgltf15flagged_storageIfE9has_valueEv:
  124|   672k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZN8fastgltf19optional_flag_valueIfE8is_emptyERKf:
   76|   845k|		static constexpr bool is_empty(const float& value) noexcept {
   77|   845k|			return std::bit_cast<std::uint32_t>(value) == nan_sentinel;
   78|   845k|		}
_ZNKR8fastgltf14basic_optionalIfNS_15flagged_storageIfEEE5valueEv:
  303|  56.5k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|  56.5k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 56.5k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|  56.5k|			return _storage.get();
  308|  56.5k|		}
_ZNK8fastgltf15flagged_storageIfE3getEv:
  126|  61.1k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.16M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.16M|			return _storage.has_value();
  294|  1.16M|		}
_ZNK8fastgltf13boxed_storageINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.16M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   188k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   188k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 188k, False: 0]
  ------------------
  443|   188k|			return std::addressof(_storage.get());
  444|   188k|		}
_ZNK8fastgltf13boxed_storageINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE3getEv:
  149|   188k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEE9has_valueEv:
  292|  2.65M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  2.65M|			return _storage.has_value();
  294|  2.65M|		}
_ZNK8fastgltf15flagged_storageINS_11TextureInfoEE9has_valueEv:
  124|  2.65M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZNKR8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEE5valueEv:
  303|   200k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|   200k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 200k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|   200k|			return _storage.get();
  308|   200k|		}
_ZNK8fastgltf15flagged_storageINS_11TextureInfoEE3getEv:
  126|   271k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.33M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.33M|			return _storage.has_value();
  294|  1.33M|		}
_ZNK8fastgltf13boxed_storageINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.33M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   355k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   355k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 355k, False: 0]
  ------------------
  443|   355k|			return std::addressof(_storage.get());
  444|   355k|		}
_ZNK8fastgltf13boxed_storageINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE3getEv:
  149|   355k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEE9has_valueEv:
  292|  1.12M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.12M|			return _storage.has_value();
  294|  1.12M|		}
_ZNK8fastgltf15flagged_storageINS_17NormalTextureInfoEE9has_valueEv:
  124|  1.12M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZNKR8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEE5valueEv:
  303|  55.3k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|  55.3k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 55.3k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|  55.3k|			return _storage.get();
  308|  55.3k|		}
_ZNK8fastgltf15flagged_storageINS_17NormalTextureInfoEE3getEv:
  126|  97.7k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.12M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.12M|			return _storage.has_value();
  294|  1.12M|		}
_ZNK8fastgltf13boxed_storageINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.12M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   143k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   143k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 143k, False: 0]
  ------------------
  443|   143k|			return std::addressof(_storage.get());
  444|   143k|		}
_ZNK8fastgltf13boxed_storageINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE3getEv:
  149|   143k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.37M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.37M|			return _storage.has_value();
  294|  1.37M|		}
_ZNK8fastgltf13boxed_storageINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.37M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   395k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   395k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 395k, False: 0]
  ------------------
  443|   395k|			return std::addressof(_storage.get());
  444|   395k|		}
_ZNK8fastgltf13boxed_storageINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE3getEv:
  149|   395k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   487k|		constexpr explicit operator bool() const noexcept {
  433|   487k|			return has_value();
  434|   487k|		}
_ZNK8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   495k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   495k|			return _storage.has_value();
  294|   495k|		}
_ZNK8fastgltf13boxed_storageINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   495k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  7.51k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  7.51k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 7.51k, False: 0]
  ------------------
  443|  7.51k|			return std::addressof(_storage.get());
  444|  7.51k|		}
_ZNK8fastgltf13boxed_storageINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE3getEv:
  149|  7.51k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.10M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.10M|			return _storage.has_value();
  294|  1.10M|		}
_ZNK8fastgltf13boxed_storageINS_13MaterialSheenENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.10M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   123k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   123k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 123k, False: 0]
  ------------------
  443|   123k|			return std::addressof(_storage.get());
  444|   123k|		}
_ZNK8fastgltf13boxed_storageINS_13MaterialSheenENSt3__19allocatorIS1_EEE3getEv:
  149|   123k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.03M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.03M|			return _storage.has_value();
  294|  1.03M|		}
_ZNK8fastgltf13boxed_storageINS_16MaterialSpecularENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.03M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  55.1k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  55.1k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 55.1k, False: 0]
  ------------------
  443|  55.1k|			return std::addressof(_storage.get());
  444|  55.1k|		}
_ZNK8fastgltf13boxed_storageINS_16MaterialSpecularENSt3__19allocatorIS1_EEE3getEv:
  149|  55.1k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.00M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.00M|			return _storage.has_value();
  294|  1.00M|		}
_ZNK8fastgltf13boxed_storageINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.00M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  29.0k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  29.0k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 29.0k, False: 0]
  ------------------
  443|  29.0k|			return std::addressof(_storage.get());
  444|  29.0k|		}
_ZNK8fastgltf13boxed_storageINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE3getEv:
  149|  29.0k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.02M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.02M|			return _storage.has_value();
  294|  1.02M|		}
_ZNK8fastgltf13boxed_storageINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.02M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  47.6k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  47.6k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 47.6k, False: 0]
  ------------------
  443|  47.6k|			return std::addressof(_storage.get());
  444|  47.6k|		}
_ZNK8fastgltf13boxed_storageINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE3getEv:
  149|  47.6k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.10M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.10M|			return _storage.has_value();
  294|  1.10M|		}
_ZNK8fastgltf13boxed_storageINS_14MaterialVolumeENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.10M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   126k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   126k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 126k, False: 0]
  ------------------
  443|   126k|			return std::addressof(_storage.get());
  444|   126k|		}
_ZNK8fastgltf13boxed_storageINS_14MaterialVolumeENSt3__19allocatorIS1_EEE3getEv:
  149|   126k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.98M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.98M|			return _storage.has_value();
  294|  1.98M|		}
_ZNK8fastgltf13boxed_storageINS_11TextureInfoENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.98M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNKR8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE5valueEv:
  303|  12.8k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|  12.8k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 12.8k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|  12.8k|			return _storage.get();
  308|  12.8k|		}
_ZNK8fastgltf13boxed_storageINS_11TextureInfoENSt3__19allocatorIS1_EEE3getEv:
  149|  25.8k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_22MaterialPackedTexturesENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   977k|		constexpr explicit operator bool() const noexcept {
  433|   977k|			return has_value();
  434|   977k|		}
_ZNK8fastgltf14basic_optionalINS_22MaterialPackedTexturesENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   977k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   977k|			return _storage.has_value();
  294|   977k|		}
_ZNK8fastgltf13boxed_storageINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   977k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|  1.08M|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|  1.08M|			return _storage.has_value();
  294|  1.08M|		}
_ZNK8fastgltf13boxed_storageINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE9has_valueEv:
  147|  1.08M|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNKR8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE5valueEv:
  303|  54.0k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|  54.0k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 54.0k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|  54.0k|			return _storage.get();
  308|  54.0k|		}
_ZNK8fastgltf13boxed_storageINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE3getEv:
  149|   108k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|  79.3k|		constexpr explicit operator bool() const noexcept {
  433|  79.3k|			return has_value();
  434|  79.3k|		}
_ZNK8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   146k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   146k|			return _storage.has_value();
  294|   146k|		}
_ZNK8fastgltf13boxed_storageINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   146k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  66.6k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  66.6k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 66.6k, False: 0]
  ------------------
  443|  66.6k|			return std::addressof(_storage.get());
  444|  66.6k|		}
_ZNK8fastgltf13boxed_storageINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE3getEv:
  149|  66.6k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNK8fastgltf14basic_optionalINS_16PhysicsRigidBodyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   222k|		constexpr explicit operator bool() const noexcept {
  433|   222k|			return has_value();
  434|   222k|		}
_ZNK8fastgltf14basic_optionalINS_16PhysicsRigidBodyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   416k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   416k|			return _storage.has_value();
  294|   416k|		}
_ZNK8fastgltf13boxed_storageINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   416k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNK8fastgltf14basic_optionalINS_16PhysicsRigidBodyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|   193k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|   193k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 193k, False: 0]
  ------------------
  443|   193k|			return std::addressof(_storage.get());
  444|   193k|		}
_ZNK8fastgltf13boxed_storageINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE3getEv:
  149|   193k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZNKR8fastgltf14basic_optionalIfNS_15flagged_storageIfEEEdeEv:
  451|  4.60k|		constexpr const value_type& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  452|  4.60k|			assert(has_value());
  ------------------
  |  Branch (452:4): [True: 4.60k, False: 0]
  ------------------
  453|  4.60k|			return _storage.get();
  454|  4.60k|		}
_ZNKR8fastgltf14basic_optionalImNS_15flagged_storageImEEEdeEv:
  451|  11.0M|		constexpr const value_type& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  452|  11.0M|			assert(has_value());
  ------------------
  |  Branch (452:4): [True: 11.0M, False: 0]
  ------------------
  453|  11.0M|			return _storage.get();
  454|  11.0M|		}
_ZNK8fastgltf14basic_optionalINS_6FilterENS_15flagged_storageIS1_EEE9has_valueEv:
  292|   198k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   198k|			return _storage.has_value();
  294|   198k|		}
_ZNK8fastgltf15flagged_storageINS_6FilterEE9has_valueEv:
  124|   198k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !traits::is_empty(_value); }
_ZN8fastgltf24enum_sentinel_flag_valueINS_6FilterELt65535EE8is_emptyERKS1_:
   57|   230k|		static constexpr bool is_empty(const T& value) noexcept {
   58|   230k|			return to_underlying(value) == Sentinel;
   59|   230k|		}
_ZNKR8fastgltf14basic_optionalINS_6FilterENS_15flagged_storageIS1_EEE5valueEv:
  303|  15.4k|		[[nodiscard]] constexpr const value_type& value() const& FASTGLTF_LIFETIMEBOUND {
  304|  15.4k|			if (!has_value()) {
  ------------------
  |  Branch (304:8): [True: 0, False: 15.4k]
  ------------------
  305|      0|				raise<std::bad_optional_access>();
  306|      0|			}
  307|  15.4k|			return _storage.get();
  308|  15.4k|		}
_ZNK8fastgltf15flagged_storageINS_6FilterEE3getEv:
  126|  27.6k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalIfNS_15flagged_storageIfEEEcvbEv:
  432|   153k|		constexpr explicit operator bool() const noexcept {
  433|   153k|			return has_value();
  434|   153k|		}
_ZNK8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEEptEv:
  441|  1.53M|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  1.53M|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 1.53M, False: 0]
  ------------------
  443|  1.53M|			return std::addressof(_storage.get());
  444|  1.53M|		}
_ZNK8fastgltf15flagged_storageINS_19AccessorBoundsArrayEE3getEv:
  126|  1.53M|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZNK8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE9has_valueEv:
  292|   420k|		[[nodiscard]] constexpr bool has_value() const noexcept {
  293|   420k|			return _storage.has_value();
  294|   420k|		}
_ZNK8fastgltf13boxed_storageINS_16TextureTransformENSt3__19allocatorIS1_EEE9has_valueEv:
  147|   420k|		[[nodiscard]] constexpr bool has_value() const noexcept { return !_value.valueless_after_move(); }
_ZNKR8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEdeEv:
  451|  97.9k|		constexpr const value_type& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  452|  97.9k|			assert(has_value());
  ------------------
  |  Branch (452:4): [True: 97.9k, False: 0]
  ------------------
  453|  97.9k|			return _storage.get();
  454|  97.9k|		}
_ZNK8fastgltf13boxed_storageINS_16TextureTransformENSt3__19allocatorIS1_EEE3getEv:
  149|  97.9k|		[[nodiscard]] constexpr const T& get() const noexcept FASTGLTF_LIFETIMEBOUND { return *_value; }
_ZN8fastgltf14basic_optionalINS_12BufferTargetENS_15flagged_storageIS1_EEEC2Ev:
  202|   275k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageINS_12BufferTargetEEC2Ev:
  119|   275k|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageINS_12BufferTargetEE10make_emptyEv:
  110|   275k|		static constexpr value_type make_empty() noexcept {
  111|   275k|			value_type val {};
  112|   275k|			traits::set_empty(val);
  113|   275k|			return val;
  114|   275k|		}
_ZN8fastgltf24enum_sentinel_flag_valueINS_12BufferTargetELt65535EE9set_emptyERS1_:
   60|   275k|		static constexpr void set_empty(T& value) noexcept {
   61|   275k|			value = static_cast<T>(Sentinel);
   62|   275k|		}
_ZN8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|   275k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_20CompressedBufferViewENSt3__19allocatorIS1_EEEC2Ev:
  142|   275k|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|  61.0k|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalImNS_15flagged_storageImEEEC2ImQaasr3stdE18is_constructible_vIT_OTL0__E12is_none_of_vIu14__remove_cvrefIS6_ENSt3__110in_place_tENS0_IS5_T0_EEEEEOS5_:
  244|  3.23M|			: _storage(std::in_place, std::forward<U>(value)) {
  245|       |			assert(has_value());
  ------------------
  |  Branch (245:4): [True: 3.23M, False: 0]
  ------------------
  246|  3.23M|		}
_ZN8fastgltf15flagged_storageImEC2IJmEEENSt3__110in_place_tEDpOT_:
  122|  3.23M|			: _value(std::forward<Args>(args)...) {}
_ZN8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEEC2Ev:
  202|   674k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageINS_19AccessorBoundsArrayEEC2Ev:
  119|   674k|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageINS_19AccessorBoundsArrayEE10make_emptyEv:
  110|   674k|		static constexpr value_type make_empty() noexcept {
  111|   674k|			value_type val {};
  112|   674k|			traits::set_empty(val);
  113|   674k|			return val;
  114|   674k|		}
_ZN8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|   337k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_14SparseAccessorENSt3__19allocatorIS1_EEEC2Ev:
  142|   337k|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEEC2EOS4_:
  206|   160k|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|  80.2k|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalImNS_15flagged_storageImEEEC2IRmQaasr3stdE18is_constructible_vIT_OTL0__E12is_none_of_vIu14__remove_cvrefIS7_ENSt3__110in_place_tENS0_IS6_T0_EEEEEOS6_:
  244|  12.9k|			: _storage(std::in_place, std::forward<U>(value)) {
  245|       |			assert(has_value());
  ------------------
  |  Branch (245:4): [True: 12.9k, False: 0]
  ------------------
  246|  12.9k|		}
_ZN8fastgltf15flagged_storageImEC2IJRmEEENSt3__110in_place_tEDpOT_:
  122|  12.9k|			: _value(std::forward<Args>(args)...) {}
_ZN8fastgltf14basic_optionalImNS_15flagged_storageImEEEC2Ev:
  202|  6.16M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageImEC2Ev:
  119|  6.16M|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageImE10make_emptyEv:
  110|  6.16M|		static constexpr value_type make_empty() noexcept {
  111|  6.16M|			value_type val {};
  112|  6.16M|			traits::set_empty(val);
  113|  6.16M|			return val;
  114|  6.16M|		}
_ZNK8fastgltf14basic_optionalImNS_15flagged_storageImEEEcvbEv:
  432|  2.38M|		constexpr explicit operator bool() const noexcept {
  433|  2.38M|			return has_value();
  434|  2.38M|		}
_ZNR8fastgltf14basic_optionalImNS_15flagged_storageImEEEdeEv:
  446|  2.44M|		constexpr value_type& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  447|  2.44M|			assert(has_value());
  ------------------
  |  Branch (447:4): [True: 2.44M, False: 0]
  ------------------
  448|  2.44M|			return _storage.get();
  449|  2.44M|		}
_ZN8fastgltf15flagged_storageImE3getEv:
  125|  2.44M|		[[nodiscard]] constexpr T& get() noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZN8fastgltf14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS1_EEEaSIS1_Qaaaantsr3stdE7same_asIu14__remove_cvrefITL0__ENS0_IT_T0_EEEsr3stdE15is_assignable_vIRS8_S6_Eoontsr3stdE11is_scalar_vIS8_Entsr3stdE7same_asIu7__decayIS6_ES8_EEERS4_OS8_:
  259|   359k|		noexcept(std::is_nothrow_assignable_v<T&, U> && noexcept(std::declval<Storage&>().emplace(std::declval<U>()))) {
  260|   359k|			if (has_value()) _storage.get() = std::forward<U>(_new);
  ------------------
  |  Branch (260:8): [True: 0, False: 359k]
  ------------------
  261|   359k|			else _storage.emplace(std::forward<U>(_new));
  262|   359k|			assert(has_value());
  ------------------
  |  Branch (262:4): [True: 359k, False: 0]
  ------------------
  263|   359k|			return *this;
  264|   359k|		}
_ZN8fastgltf15flagged_storageINS_19AccessorBoundsArrayEE7emplaceIJS1_EEERS1_DpOT_:
  130|   359k|		constexpr T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible_v<T, Args...> && std::is_nothrow_move_assignable_v<T>) FASTGLTF_LIFETIMEBOUND {
  131|       |			// Construct first, so a throwing constructor leaves the old value intact.
  132|   359k|			_value = T(std::forward<Args>(args)...);
  133|   359k|			return _value;
  134|   359k|		}
_ZN8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEaSIS1_Qaaaantsr3stdE7same_asIu14__remove_cvrefITL0__ENS0_IT_T0_EEEsr3stdE15is_assignable_vIRSB_S9_Eoontsr3stdE11is_scalar_vISB_Entsr3stdE7same_asIu7__decayIS9_ESB_EEERS7_OSB_:
  259|  45.0k|		noexcept(std::is_nothrow_assignable_v<T&, U> && noexcept(std::declval<Storage&>().emplace(std::declval<U>()))) {
  260|  45.0k|			if (has_value()) _storage.get() = std::forward<U>(_new);
  ------------------
  |  Branch (260:8): [True: 0, False: 45.0k]
  ------------------
  261|  45.0k|			else _storage.emplace(std::forward<U>(_new));
  262|  45.0k|			assert(has_value());
  ------------------
  |  Branch (262:4): [True: 45.0k, False: 0]
  ------------------
  263|  45.0k|			return *this;
  264|  45.0k|		}
_ZN8fastgltf13boxed_storageINS_20CompressedBufferViewENSt3__19allocatorIS1_EEE7emplaceIJS1_EEERS1_DpOT_:
  153|  45.0k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  45.0k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  45.0k|			return *_value;
  156|  45.0k|		}
_ZN8fastgltf14basic_optionalIfNS_15flagged_storageIfEEEC2Ev:
  202|   391k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageIfEC2Ev:
  119|   391k|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageIfE10make_emptyEv:
  110|   391k|		static constexpr value_type make_empty() noexcept {
  111|   391k|			value_type val {};
  112|   391k|			traits::set_empty(val);
  113|   391k|			return val;
  114|   391k|		}
_ZN8fastgltf19optional_flag_valueIfE9set_emptyERf:
   79|   461k|		static constexpr void set_empty(float& value) noexcept {
   80|   461k|			value = std::bit_cast<float>(nan_sentinel);
   81|   461k|		}
_ZN8fastgltf14basic_optionalIfNS_15flagged_storageIfEEEC2IfQaasr3stdE18is_constructible_vIT_OTL0__E12is_none_of_vIu14__remove_cvrefIS6_ENSt3__110in_place_tENS0_IS5_T0_EEEEEOS5_:
  244|   184k|			: _storage(std::in_place, std::forward<U>(value)) {
  245|       |			assert(has_value());
  ------------------
  |  Branch (245:4): [True: 184k, False: 0]
  ------------------
  246|   184k|		}
_ZN8fastgltf15flagged_storageIfEC2IJfEEENSt3__110in_place_tEDpOT_:
  122|   184k|			: _value(std::forward<Args>(args)...) {}
_ZN8fastgltf14basic_optionalIfNS_15flagged_storageIfEEE5resetEv:
  415|  69.8k|		constexpr void reset() noexcept {
  416|  69.8k|			_storage.reset();
  417|  69.8k|		}
_ZN8fastgltf15flagged_storageIfE5resetEv:
  127|  69.8k|		constexpr void reset() noexcept { traits::set_empty(_value); }
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEEC2Ev:
  202|  2.97M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageINS_11TextureInfoEEC2Ev:
  119|  2.97M|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageINS_11TextureInfoEE10make_emptyEv:
  110|  2.97M|		static constexpr value_type make_empty() noexcept {
  111|  2.97M|			value_type val {};
  112|  2.97M|			traits::set_empty(val);
  113|  2.97M|			return val;
  114|  2.97M|		}
_ZN8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  4.79M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_16TextureTransformENSt3__19allocatorIS1_EEEC2Ev:
  142|  4.79M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEEC2Ev:
  202|  1.14M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageINS_17NormalTextureInfoEEC2Ev:
  119|  1.14M|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageINS_17NormalTextureInfoEE10make_emptyEv:
  110|  1.14M|		static constexpr value_type make_empty() noexcept {
  111|  1.14M|			value_type val {};
  112|  1.14M|			traits::set_empty(val);
  113|  1.14M|			return val;
  114|  1.14M|		}
_ZN8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  2.08M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_11TextureInfoENSt3__19allocatorIS1_EEEC2Ev:
  142|  2.08M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_17MaterialClearcoatENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_19MaterialIridescenceENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_13MaterialSheenENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_16MaterialSpecularENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_20MaterialTransmissionENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_14MaterialVolumeENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_22MaterialPackedTexturesENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  1.04M|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEEC2Ev:
  142|  1.04M|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEEC2EOS4_:
  206|    468|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    702|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEEC2EOS4_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    468|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_22MaterialPackedTexturesENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    234|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|  87.7k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEEC2Ev:
  142|  87.7k|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2EOS7_:
  206|    270|		constexpr basic_optional(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_16PhysicsRigidBodyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEC2Ev:
  202|   391k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf13boxed_storageINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEEC2Ev:
  142|   391k|		constexpr boxed_storage() = default;
_ZN8fastgltf14basic_optionalINS_6FilterENS_15flagged_storageIS1_EEEC2Ev:
  202|   173k|		constexpr basic_optional() noexcept = default;
_ZN8fastgltf15flagged_storageINS_6FilterEEC2Ev:
  119|   173k|		constexpr flagged_storage() noexcept = default;
_ZN8fastgltf15flagged_storageINS_6FilterEE10make_emptyEv:
  110|   173k|		static constexpr value_type make_empty() noexcept {
  111|   173k|			value_type val {};
  112|   173k|			traits::set_empty(val);
  113|   173k|			return val;
  114|   173k|		}
_ZN8fastgltf24enum_sentinel_flag_valueINS_6FilterELt65535EE9set_emptyERS1_:
   60|   173k|		static constexpr void set_empty(T& value) noexcept {
   61|   173k|			value = static_cast<T>(Sentinel);
   62|   173k|		}
_ZN8fastgltf14basic_optionalINS_16PhysicsRigidBodyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  78.9k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  78.9k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  78.9k|		}
_ZN8fastgltf13boxed_storageINS_16PhysicsRigidBodyENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  78.9k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  78.9k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  78.9k|			return *_value;
  156|  78.9k|		}
_ZN8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  30.3k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  30.3k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  30.3k|		}
_ZN8fastgltf13boxed_storageINS_14SparseAccessorENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  30.3k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  30.3k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  30.3k|			return *_value;
  156|  30.3k|		}
_ZN8fastgltf14basic_optionalINS_12BufferTargetENS_15flagged_storageIS1_EEEC2IS1_Qaasr3stdE18is_constructible_vIT_OTL0__E12is_none_of_vIu14__remove_cvrefIS7_ENSt3__110in_place_tENS0_IS6_T0_EEEEEOS6_:
  244|   138k|			: _storage(std::in_place, std::forward<U>(value)) {
  245|       |			assert(has_value());
  ------------------
  |  Branch (245:4): [True: 138k, False: 0]
  ------------------
  246|   138k|		}
_ZN8fastgltf15flagged_storageINS_12BufferTargetEEC2IJS1_EEENSt3__110in_place_tEDpOT_:
  122|   138k|			: _value(std::forward<Args>(args)...) {}
_ZNR8fastgltf14basic_optionalIfNS_15flagged_storageIfEEEdeEv:
  446|   126k|		constexpr value_type& operator*() & noexcept FASTGLTF_LIFETIMEBOUND {
  447|   126k|			assert(has_value());
  ------------------
  |  Branch (447:4): [True: 126k, False: 0]
  ------------------
  448|   126k|			return _storage.get();
  449|   126k|		}
_ZN8fastgltf15flagged_storageIfE3getEv:
  125|   126k|		[[nodiscard]] constexpr T& get() noexcept FASTGLTF_LIFETIMEBOUND { return _value; }
_ZN8fastgltf14basic_optionalINS_18MaterialAnisotropyENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  96.6k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  96.6k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  96.6k|		}
_ZN8fastgltf13boxed_storageINS_18MaterialAnisotropyENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  96.6k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  96.6k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  96.6k|			return *_value;
  156|  96.6k|		}
_ZN8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|   203k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|   203k|			return _storage.emplace(std::forward<Args>(args)...);
  423|   203k|		}
_ZN8fastgltf13boxed_storageINS_16TextureTransformENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|   203k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|   203k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|   203k|			return *_value;
  156|   203k|		}
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|   415k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|   415k|			return _storage.emplace(std::forward<Args>(args)...);
  423|   415k|		}
_ZN8fastgltf15flagged_storageINS_11TextureInfoEE7emplaceIJEEERS1_DpOT_:
  130|   415k|		constexpr T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible_v<T, Args...> && std::is_nothrow_move_assignable_v<T>) FASTGLTF_LIFETIMEBOUND {
  131|       |			// Construct first, so a throwing constructor leaves the old value intact.
  132|   415k|			_value = T(std::forward<Args>(args)...);
  133|   415k|			return _value;
  134|   415k|		}
_ZN8fastgltf14basic_optionalINS_16TextureTransformENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEaSEOS7_:
  208|   533k|		constexpr basic_optional& operator=(basic_optional&&) = default;
_ZN8fastgltf14basic_optionalINS_17MaterialClearcoatENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|   109k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|   109k|			return _storage.emplace(std::forward<Args>(args)...);
  423|   109k|		}
_ZN8fastgltf13boxed_storageINS_17MaterialClearcoatENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|   109k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|   109k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|   109k|			return *_value;
  156|   109k|		}
_ZN8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|   117k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|   117k|			return _storage.emplace(std::forward<Args>(args)...);
  423|   117k|		}
_ZN8fastgltf15flagged_storageINS_17NormalTextureInfoEE7emplaceIJEEERS1_DpOT_:
  130|   117k|		constexpr T& emplace(Args&&... args) noexcept(std::is_nothrow_constructible_v<T, Args...> && std::is_nothrow_move_assignable_v<T>) FASTGLTF_LIFETIMEBOUND {
  131|       |			// Construct first, so a throwing constructor leaves the old value intact.
  132|   117k|			_value = T(std::forward<Args>(args)...);
  133|   117k|			return _value;
  134|   117k|		}
_ZN8fastgltf14basic_optionalINS_19MaterialIridescenceENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|   104k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|   104k|			return _storage.emplace(std::forward<Args>(args)...);
  423|   104k|		}
_ZN8fastgltf13boxed_storageINS_19MaterialIridescenceENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|   104k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|   104k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|   104k|			return *_value;
  156|   104k|		}
_ZN8fastgltf14basic_optionalINS_23MaterialRetroreflectionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  4.99k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  4.99k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  4.99k|		}
_ZN8fastgltf13boxed_storageINS_23MaterialRetroreflectionENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  4.99k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  4.99k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  4.99k|			return *_value;
  156|  4.99k|		}
_ZN8fastgltf14basic_optionalINS_27MaterialDiffuseTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  54.0k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  54.0k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  54.0k|		}
_ZN8fastgltf13boxed_storageINS_27MaterialDiffuseTransmissionENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  54.0k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  54.0k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  54.0k|			return *_value;
  156|  54.0k|		}
_ZN8fastgltf14basic_optionalINS_13MaterialSheenENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  48.6k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  48.6k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  48.6k|		}
_ZN8fastgltf13boxed_storageINS_13MaterialSheenENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  48.6k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  48.6k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  48.6k|			return *_value;
  156|  48.6k|		}
_ZN8fastgltf14basic_optionalINS_16MaterialSpecularENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  23.1k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  23.1k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  23.1k|		}
_ZN8fastgltf13boxed_storageINS_16MaterialSpecularENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  23.1k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  23.1k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  23.1k|			return *_value;
  156|  23.1k|		}
_ZN8fastgltf14basic_optionalINS_20MaterialTransmissionENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  38.6k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  38.6k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  38.6k|		}
_ZN8fastgltf13boxed_storageINS_20MaterialTransmissionENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  38.6k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  38.6k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  38.6k|			return *_value;
  156|  38.6k|		}
_ZN8fastgltf14basic_optionalINS_14MaterialVolumeENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  48.6k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  48.6k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  48.6k|		}
_ZN8fastgltf13boxed_storageINS_14MaterialVolumeENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  48.6k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  48.6k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  48.6k|			return *_value;
  156|  48.6k|		}
_ZN8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  26.2k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  26.2k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  26.2k|		}
_ZN8fastgltf13boxed_storageINS_11TextureInfoENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  26.2k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  26.2k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  26.2k|			return *_value;
  156|  26.2k|		}
_ZN8fastgltf14basic_optionalINS_22MaterialPackedTexturesENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|      1|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|      1|			return _storage.emplace(std::forward<Args>(args)...);
  423|      1|		}
_ZN8fastgltf13boxed_storageINS_22MaterialPackedTexturesENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|      1|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|      1|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|      1|			return *_value;
  156|      1|		}
_ZN8fastgltf14basic_optionalINS_26MaterialSpecularGlossinessENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  10.9k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  10.9k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  10.9k|		}
_ZN8fastgltf13boxed_storageINS_26MaterialSpecularGlossinessENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  10.9k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  10.9k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  10.9k|			return *_value;
  156|  10.9k|		}
_ZN8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|   116k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|   116k|			return _storage.emplace(std::forward<Args>(args)...);
  423|   116k|		}
_ZN8fastgltf13boxed_storageINS_20OcclusionTextureInfoENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|   116k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|   116k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|   116k|			return *_value;
  156|   116k|		}
_ZN8fastgltf14basic_optionalImNS_15flagged_storageImEEE5resetEv:
  415|  5.28k|		constexpr void reset() noexcept {
  416|  5.28k|			_storage.reset();
  417|  5.28k|		}
_ZN8fastgltf15flagged_storageImE5resetEv:
  127|  5.28k|		constexpr void reset() noexcept { traits::set_empty(_value); }
_ZN8fastgltf14basic_optionalINS_24DracoCompressedPrimitiveENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEE7emplaceIJEQsr3stdE18is_constructible_vIT_DpTL0__EEERS1_DpOT_:
  421|  10.4k|		constexpr value_type& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  422|  10.4k|			return _storage.emplace(std::forward<Args>(args)...);
  423|  10.4k|		}
_ZN8fastgltf13boxed_storageINS_24DracoCompressedPrimitiveENSt3__19allocatorIS1_EEE7emplaceIJEEERS1_DpOT_:
  153|  10.4k|		constexpr T& emplace(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  154|  10.4k|			_value = box_type(std::allocator_arg, _value.get_allocator(), std::in_place, std::forward<Args>(args)...);
  155|  10.4k|			return *_value;
  156|  10.4k|		}
_ZN8fastgltf14basic_optionalINS_6FilterENS_15flagged_storageIS1_EEEC2IS1_Qaasr3stdE18is_constructible_vIT_OTL0__E12is_none_of_vIu14__remove_cvrefIS7_ENSt3__110in_place_tENS0_IS6_T0_EEEEEOS6_:
  244|  31.9k|			: _storage(std::in_place, std::forward<U>(value)) {
  245|       |			assert(has_value());
  ------------------
  |  Branch (245:4): [True: 31.9k, False: 0]
  ------------------
  246|  31.9k|		}
_ZN8fastgltf15flagged_storageINS_6FilterEEC2IJS1_EEENSt3__110in_place_tEDpOT_:
  122|  31.9k|			: _value(std::forward<Args>(args)...) {}
_ZNK8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   166k|		constexpr explicit operator bool() const noexcept {
  433|   166k|			return has_value();
  434|   166k|		}
_ZNK8fastgltf14basic_optionalINS_14SparseAccessorENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  58.9k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  58.9k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 58.9k, False: 0]
  ------------------
  443|  58.9k|			return std::addressof(_storage.get());
  444|  58.9k|		}
_ZNK8fastgltf14basic_optionalINS_12BufferTargetENS_15flagged_storageIS1_EEEcvbEv:
  432|  29.4k|		constexpr explicit operator bool() const noexcept {
  433|  29.4k|			return has_value();
  434|  29.4k|		}
_ZN8fastgltfeqImNS_15flagged_storageImEEmS2_EEbRKNS_14basic_optionalIT_T0_EERKNS3_IT1_T2_EE:
  483|  5.24M|							  const basic_optional<U, S2>& rhs) {
  484|  5.24M|		return lhs.has_value() != rhs.has_value() ? false
  ------------------
  |  Branch (484:10): [True: 2.38k, False: 5.24M]
  ------------------
  485|  5.24M|												  : (lhs.has_value() == false ? true : *lhs == *rhs);
  ------------------
  |  Branch (485:18): [True: 0, False: 5.24M]
  ------------------
  486|  5.24M|	}
_ZNK8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   188k|		constexpr explicit operator bool() const noexcept {
  433|   188k|			return has_value();
  434|   188k|		}
_ZNK8fastgltf14basic_optionalINS_20CompressedBufferViewENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  68.0k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  68.0k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 68.0k, False: 0]
  ------------------
  443|  68.0k|			return std::addressof(_storage.get());
  444|  68.0k|		}
_ZN8fastgltfeqIfNS_15flagged_storageIfEEfQntsr8internalE13is_optional_vIT1_EEEbRKNS_14basic_optionalIT_T0_EERKS3_:
  507|  4.59k|	constexpr bool operator==(const basic_optional<T, S>& opt, const U& value) {
  508|  4.59k|		return opt.has_value() && (*opt) == value;
  ------------------
  |  Branch (508:10): [True: 4.59k, False: 0]
  |  Branch (508:29): [True: 2, False: 4.59k]
  ------------------
  509|  4.59k|	}
_ZNK8fastgltf14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS1_EEEptEv:
  441|  42.3k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  42.3k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 42.3k, False: 0]
  ------------------
  443|  42.3k|			return std::addressof(_storage.get());
  444|  42.3k|		}
_ZNK8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  13.0k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  13.0k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 13.0k, False: 0]
  ------------------
  443|  13.0k|			return std::addressof(_storage.get());
  444|  13.0k|		}
_ZNK8fastgltf14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEptEv:
  441|  54.5k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  54.5k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 54.5k, False: 0]
  ------------------
  443|  54.5k|			return std::addressof(_storage.get());
  444|  54.5k|		}
_ZNK8fastgltf14basic_optionalINS_11TextureInfoENS_15flagged_storageIS1_EEEptEv:
  441|  71.3k|		constexpr const value_type* operator->() const noexcept FASTGLTF_LIFETIMEBOUND {
  442|  71.3k|			assert(has_value());
  ------------------
  |  Branch (442:4): [True: 71.3k, False: 0]
  ------------------
  443|  71.3k|			return std::addressof(_storage.get());
  444|  71.3k|		}
_ZNK8fastgltf14basic_optionalINS_11TextureInfoENS_13boxed_storageIS1_NSt3__19allocatorIS1_EEEEEcvbEv:
  432|   489k|		constexpr explicit operator bool() const noexcept {
  433|   489k|			return has_value();
  434|   489k|		}
_ZN8fastgltfeqINS_6FilterENS_15flagged_storageIS1_EES1_Qntsr8internalE13is_optional_vIT1_EEEbRKNS_14basic_optionalIT_T0_EERKS4_:
  507|  12.2k|	constexpr bool operator==(const basic_optional<T, S>& opt, const U& value) {
  508|  12.2k|		return opt.has_value() && (*opt) == value;
  ------------------
  |  Branch (508:10): [True: 12.2k, False: 0]
  |  Branch (508:29): [True: 6.80k, False: 5.40k]
  ------------------
  509|  12.2k|	}
_ZNKR8fastgltf14basic_optionalINS_6FilterENS_15flagged_storageIS1_EEEdeEv:
  451|  12.2k|		constexpr const value_type& operator*() const& noexcept FASTGLTF_LIFETIMEBOUND {
  452|  12.2k|			assert(has_value());
  ------------------
  |  Branch (452:4): [True: 12.2k, False: 0]
  ------------------
  453|  12.2k|			return _storage.get();
  454|  12.2k|		}
_ZN8fastgltfeqImNS_15flagged_storageImEEjQntsr8internalE13is_optional_vIT1_EEEbRKNS_14basic_optionalIT_T0_EERKS3_:
  507|     11|	constexpr bool operator==(const basic_optional<T, S>& opt, const U& value) {
  508|     11|		return opt.has_value() && (*opt) == value;
  ------------------
  |  Branch (508:10): [True: 10, False: 1]
  |  Branch (508:29): [True: 7, False: 3]
  ------------------
  509|     11|	}
_ZNKR8fastgltf14basic_optionalImNS_15flagged_storageImEEE8value_orIRKmEEmOT_:
  325|   124k|		[[nodiscard]] constexpr value_type value_or(U&& default_value) const& {
  326|   124k|			return has_value() ? **this : static_cast<value_type>(std::forward<U>(default_value));
  ------------------
  |  Branch (326:11): [True: 16.3k, False: 108k]
  ------------------
  327|   124k|		}

_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEED2Ev:
  315|  72.3k|		~small_vector() {
  316|  72.3k|			internal::allocator_destroy(_allocator, begin(), end());
  317|       |
  318|  72.3k|			if (!is_using_stack()) {
  ------------------
  |  Branch (318:8): [True: 3.95k, False: 68.3k]
  ------------------
  319|       |				// Not using the stack, we'll have to free.
  320|  3.95k|				traits::deallocate(_allocator, _data, _capacity);
  321|  3.95k|				_data = reinterpret_cast<pointer>(_storage.data());
  322|  3.95k|				_capacity = N;
  323|  3.95k|			}
  324|  72.3k|		}
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE5beginEv:
  326|   380k|		[[nodiscard]] iterator begin() noexcept FASTGLTF_LIFETIMEBOUND { return _data; }
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE3endEv:
  329|   234k|		[[nodiscard]] iterator end() noexcept FASTGLTF_LIFETIMEBOUND { return begin() + size(); }
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE4sizeEv:
  342|   519k|		[[nodiscard]] size_type size() const noexcept { return _size; }
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE14is_using_stackEv:
  351|  76.3k|		[[nodiscard]] bool is_using_stack() const noexcept { return data() == reinterpret_cast<const_pointer>(_storage.data()); }
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE4dataEv:
  341|  76.3k|		[[nodiscard]] const_pointer data() const noexcept FASTGLTF_LIFETIMEBOUND { return _data; }
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE5emptyEv:
  350|   227k|		[[nodiscard]] bool empty() const noexcept { return _size == 0; }
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE5beginEv:
  327|   219k|		[[nodiscard]] const_iterator begin() const noexcept FASTGLTF_LIFETIMEBOUND { return _data; }
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE3endEv:
  330|   109k|		[[nodiscard]] const_iterator end() const noexcept FASTGLTF_LIFETIMEBOUND { return begin() + size(); }
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE12emplace_backIJEEEDcDpOT_:
  472|  87.7k|		decltype(auto) emplace_back(Args&&... args) FASTGLTF_LIFETIMEBOUND {
  473|  87.7k|			if (size() < capacity()) {
  ------------------
  |  Branch (473:8): [True: 87.7k, False: 10]
  ------------------
  474|  87.7k|				traits::construct(_allocator, std::to_address(_data + size()), std::forward<Args>(args)...);
  475|  87.7k|			} else {
  476|       |				// The new element is constructed before relocating, as args might reference an element of this vector.
  477|     10|				const auto newCapacity = std::bit_ceil(size() + 1);
  478|     10|				pointer alloc = traits::allocate(_allocator, newCapacity);
  479|     10|				auto allocGuard = make_exception_guard([&] {
  480|     10|					traits::deallocate(_allocator, alloc, newCapacity);
  481|     10|				});
  482|       |
  483|     10|				const auto newElement = std::to_address(alloc + size());
  484|     10|				traits::construct(_allocator, newElement, std::forward<Args>(args)...);
  485|     10|				auto elementGuard = make_exception_guard([&] {
  486|     10|					traits::destroy(_allocator, newElement);
  487|     10|				});
  488|       |
  489|     10|				relocate(alloc);
  490|     10|				elementGuard.complete();
  491|     10|				allocGuard.complete();
  492|     10|				_capacity = newCapacity;
  493|     10|			}
  494|  87.7k|			++_size;
  495|  87.7k|			return (back());
  496|  87.7k|		}
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE8capacityEv:
  344|   159k|		[[nodiscard]] size_type capacity() const noexcept { return _capacity; }
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE8relocateEPS1_:
  104|  3.96k|		void relocate(pointer dest) {
  105|  3.96k|			internal::uninitialized_allocator_relocate(_allocator, begin(), end(), dest);
  106|       |
  107|  3.96k|			if (!is_using_stack()) {
  ------------------
  |  Branch (107:8): [True: 8, False: 3.95k]
  ------------------
  108|      8|				traits::deallocate(_allocator, _data, _capacity);
  109|      8|			}
  110|  3.96k|			_data = dest;
  111|  3.96k|		}
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE4backEv:
  551|  87.7k|		[[nodiscard]] reference back() FASTGLTF_LIFETIMEBOUND {
  552|  87.7k|			assert(!empty());
  ------------------
  |  Branch (552:4): [True: 87.7k, False: 0]
  ------------------
  553|  87.7k|			return end()[-1];
  554|  87.7k|		}
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEEC2Ev:
  203|  72.3k|		small_vector() noexcept(std::is_nothrow_default_constructible_v<allocator_type>) = default;
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEEC2EOS5_:
  236|     11|		small_vector(small_vector&& other) noexcept(std::is_nothrow_move_constructible_v<value_type>) : _allocator(std::move(other._allocator)) {
  237|     11|			if (other.is_using_stack()) {
  ------------------
  |  Branch (237:8): [True: 10, False: 1]
  ------------------
  238|       |				// since N is the same we can assume that capacity() == other.capacity(), so just move each element over
  239|     10|				internal::uninitialized_allocator_copy(_allocator,
  240|     10|					std::make_move_iterator(other.begin()), std::make_move_iterator(other.end()),
  241|     10|					begin());
  242|     10|				_size = other.size();
  243|     10|				other.clear();
  244|     10|			} else {
  245|       |				// allow other to be re-used by assigning its data with its internal buffer again
  246|      1|				_data = std::exchange(other._data, reinterpret_cast<pointer>(other._storage.data()));
  247|      1|				_size = std::exchange(other._size, 0);
  248|      1|				_capacity = std::exchange(other._capacity, N);
  249|      1|			}
  250|     11|		}
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE5clearEv:
  466|     10|		void clear() noexcept {
  467|     10|			internal::allocator_destroy(_allocator, begin(), end());
  468|     10|			_size = 0;
  469|     10|		}
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE7reserveEmQoosr3stdE23is_move_constructible_vIT_Esr3stdE23is_copy_constructible_vIS6_E:
  357|  72.0k|		void reserve(const size_type newCapacity) requires (std::is_move_constructible_v<value_type> || std::is_copy_constructible_v<value_type>) {
  358|       |			// We don't want to reduce capacity with reserve, only with shrink_to_fit.
  359|       |			// This also covers everything that fits into the inline storage, whose capacity is always N.
  360|  72.0k|			if (newCapacity <= capacity()) {
  ------------------
  |  Branch (360:8): [True: 68.1k, False: 3.95k]
  ------------------
  361|  68.1k|				return;
  362|  68.1k|			}
  363|       |
  364|  3.95k|			if (newCapacity > max_size()) {
  ------------------
  |  Branch (364:8): [True: 0, False: 3.95k]
  ------------------
  365|      0|				raise<std::length_error>("small_vector::reserve()");
  366|      0|			}
  367|       |
  368|  3.95k|			reallocate(std::bit_ceil(newCapacity));
  369|  3.95k|		}
_ZNK8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE8max_sizeEv:
  346|  3.95k|		[[nodiscard]] size_type max_size() const noexcept {
  347|  3.95k|			return std::min<size_type>(traits::max_size(_allocator), std::numeric_limits<difference_type>::max());
  348|  3.95k|		}
_ZN8fastgltf12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS1_EEE10reallocateEm:
  117|  3.95k|		void reallocate(const size_type newCapacity) {
  118|  3.95k|			pointer alloc = traits::allocate(_allocator, newCapacity);
  119|  3.95k|			auto guard = make_exception_guard([&] {
  120|  3.95k|				traits::deallocate(_allocator, alloc, newCapacity);
  121|  3.95k|			});
  122|       |
  123|  3.95k|			relocate(alloc);
  124|  3.95k|			guard.complete();
  125|  3.95k|			_capacity = newCapacity;
  126|  3.95k|		}

_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEED2Ev:
  220|   139k|		~static_vector() {
  221|   139k|			clear_and_deallocate();
  222|   139k|		}
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE20clear_and_deallocateEv:
   73|   139k|		void clear_and_deallocate() {
   74|   139k|			if (_data != nullptr) [[likely]] {
  ------------------
  |  Branch (74:8): [True: 31.2k, False: 108k]
  ------------------
   75|  31.2k|				internal::allocator_destroy(_allocator, begin(), end());
   76|  31.2k|				traits::deallocate(_allocator, _data, _size);
   77|  31.2k|				_data = nullptr;
   78|  31.2k|				_size = 0;
   79|  31.2k|			}
   80|   139k|		}
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE5beginEv:
  248|  62.4k|		[[nodiscard]] iterator begin() noexcept FASTGLTF_LIFETIMEBOUND { return data(); }
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE4dataEv:
  228|  93.7k|		[[nodiscard]] pointer data() noexcept FASTGLTF_LIFETIMEBOUND {
  229|  93.7k|			return _data;
  230|  93.7k|		}
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE3endEv:
  251|  31.2k|		[[nodiscard]] iterator end() noexcept FASTGLTF_LIFETIMEBOUND { return begin() + size(); }
_ZNK8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE4sizeEv:
  236|  44.1k|		[[nodiscard]] size_type size() const noexcept {
  237|  44.1k|			return _size;
  238|  44.1k|		}
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEEC2ENS_15for_overwrite_tEmRKS4_Qsr3stdE36is_trivially_default_constructible_vIT_E:
  117|  31.2k|			requires std::is_trivially_default_constructible_v<T> : _allocator(allocator) {
  118|  31.2k|			allocate_and_construct(size, [&](pointer data) {
  119|  31.2k|				std::uninitialized_default_construct_n(data, size);
  120|  31.2k|			});
  121|  31.2k|		}
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE22allocate_and_constructIZNS5_C1ENS_15for_overwrite_tEmRKS4_Qsr3stdE36is_trivially_default_constructible_vIT_EEUlPS1_E_EEvmOSA_:
   88|  31.2k|		void allocate_and_construct(const size_type n, Construct&& construct) {
   89|  31.2k|			assert(_data == nullptr);
  ------------------
  |  Branch (89:4): [True: 31.2k, False: 0]
  ------------------
   90|  31.2k|			if (n == 0) {
  ------------------
  |  Branch (90:8): [True: 1, False: 31.2k]
  ------------------
   91|      1|				return;
   92|      1|			}
   93|       |
   94|  31.2k|			pointer data = traits::allocate(_allocator, n);
   95|  31.2k|			auto guard = make_exception_guard([&] {
   96|  31.2k|				traits::deallocate(_allocator, data, n);
   97|  31.2k|			});
   98|       |
   99|  31.2k|			construct(data);
  100|  31.2k|			guard.complete();
  101|       |
  102|  31.2k|			_data = data;
  103|  31.2k|			_size = n;
  104|  31.2k|		}
_ZZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEEC1ENS_15for_overwrite_tEmRKS4_Qsr3stdE36is_trivially_default_constructible_vIT_EENKUlPS1_E_clESA_:
  118|  31.2k|			allocate_and_construct(size, [&](pointer data) {
  119|  31.2k|				std::uninitialized_default_construct_n(data, size);
  120|  31.2k|			});
_ZN8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEEC2EOS5_:
  155|   108k|		static_vector(static_vector&& other) noexcept : _allocator(std::move(other._allocator)) {
  156|   108k|			_data = std::exchange(other._data, nullptr);
  157|   108k|			_size = std::exchange(other._size, 0);
  158|   108k|		}
_ZNK8fastgltf13static_vectorISt4byteNSt3__19allocatorIS1_EEE10size_bytesEv:
  240|  40.2k|		[[nodiscard]] size_type size_bytes() const noexcept {
  241|  40.2k|			return _size * sizeof(value_type);
  242|  40.2k|		}

_ZN8fastgltf15fallback_crc32cENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   77|   514k|	[[nodiscard]] constexpr std::uint32_t fallback_crc32c(const std::string_view str) noexcept {
   78|   514k|		std::uint32_t crc = 0xffffffff;
   79|   514k|		for (const auto c : str)
  ------------------
  |  Branch (79:21): [True: 4.32M, False: 514k]
  ------------------
   80|  4.32M|			crc = (crc >> 8) ^ crcHashTable[(crc ^ static_cast<std::uint8_t>(c)) & 0xff];
   81|   514k|		return crc ^ 0xffffffff;
   82|   514k|	}
_ZN8fastgltf6crc32cENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  132|   514k|	[[nodiscard]] FASTGLTF_FORCEINLINE constexpr std::uint32_t crc32c(const std::string_view str) noexcept {
  133|   514k|		if (std::is_constant_evaluated()) {
  ------------------
  |  Branch (133:7): [Folded, False: 514k]
  ------------------
  134|      0|			return fallback_crc32c(str);
  135|      0|		}
  136|       |
  137|       |#if defined(__SSE4_2__)
  138|       |		return sse_crc32c(str);
  139|       |#elif defined(FASTGLTF_ENABLE_ARMV8_CRC) && defined(__ARM_FEATURE_CRC32)
  140|       |		// GCC and Clang define __ARM_FEATURE_CRC32 when the target arch has `+crc` enabled.
  141|       |		return armv8_crc32c(str);
  142|       |#else
  143|   514k|		return fallback_crc32c(str);
  144|   514k|#endif
  145|   514k|	}

_ZN8fastgltf8ExpectedINS_14GltfDataBufferENS_5ErrorEEC2EOS1_:
  205|   116k|		Expected(T&& value)  noexcept(std::is_nothrow_move_constructible_v<T>) : _hasError(false) {
  206|   116k|			std::construct_at(getValueStorage(), std::forward<T>(value));
  207|   116k|		}
_ZN8fastgltf8ExpectedINS_14GltfDataBufferENS_5ErrorEE15getValueStorageEv:
  155|   348k|		[[nodiscard]] storage_type* getValueStorage() {
  156|   348k|			assert(!_hasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (156:4): [True: 348k, False: 0]
  |  Branch (156:4): [True: 348k, Folded]
  |  Branch (156:4): [True: 348k, False: 0]
  ------------------
  157|   348k|			return &_valueStorage;
  158|   348k|		}
_ZN8fastgltf8ExpectedINS_14GltfDataBufferENS_5ErrorEED2Ev:
  227|   116k|		~Expected() {
  228|   116k|			if (_hasError)
  ------------------
  |  Branch (228:8): [True: 0, False: 116k]
  ------------------
  229|      0|				getErrorStorage()->~error_type();
  230|   116k|			else
  231|   116k|				getValueStorage()->~storage_type();
  232|   116k|		}
_ZNK8fastgltf8ExpectedINS_14GltfDataBufferENS_5ErrorEE9has_valueEv:
  237|  75.0k|		[[nodiscard]] bool has_value() const noexcept {
  238|  75.0k|			return !has_error();
  239|  75.0k|		}
_ZNK8fastgltf8ExpectedINS_14GltfDataBufferENS_5ErrorEE9has_errorEv:
  234|  75.0k|		[[nodiscard]] bool has_error() const noexcept {
  235|  75.0k|			return _hasError;
  236|  75.0k|		}
_ZN8fastgltf8ExpectedINS_14GltfDataBufferENS_5ErrorEE3getEv:
  248|   116k|		[[nodiscard]] reference get() {
  249|   116k|			assert(!_hasError);
  ------------------
  |  Branch (249:4): [True: 116k, False: 0]
  ------------------
  250|   116k|			return *getValueStorage();
  251|   116k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEED2Ev:
  227|   230k|		~Expected() {
  228|   230k|			if (_hasError)
  ------------------
  |  Branch (228:8): [True: 57.4k, False: 173k]
  ------------------
  229|  57.4k|				getErrorStorage()->~error_type();
  230|   173k|			else
  231|   173k|				getValueStorage()->~storage_type();
  232|   230k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEE15getErrorStorageEv:
  165|   142k|		[[nodiscard]] error_type* getErrorStorage() {
  166|   142k|			assert(_hasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (166:4): [True: 142k, False: 0]
  |  Branch (166:4): [True: 142k, Folded]
  |  Branch (166:4): [True: 142k, False: 0]
  ------------------
  167|   142k|			return &_errorStorage;
  168|   142k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEE15getValueStorageEv:
  155|   478k|		[[nodiscard]] storage_type* getValueStorage() {
  156|   478k|			assert(!_hasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (156:4): [True: 478k, False: 0]
  |  Branch (156:4): [True: 478k, Folded]
  |  Branch (156:4): [True: 478k, False: 0]
  ------------------
  157|   478k|			return &_valueStorage;
  158|   478k|		}
_ZNK8fastgltf8ExpectedINS_5AssetENS_5ErrorEE9has_errorEv:
  234|   230k|		[[nodiscard]] bool has_error() const noexcept {
  235|   230k|			return _hasError;
  236|   230k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEE3getEv:
  248|  45.4k|		[[nodiscard]] reference get() {
  249|  45.4k|			assert(!_hasError);
  ------------------
  |  Branch (249:4): [True: 45.4k, False: 0]
  ------------------
  250|  45.4k|			return *getValueStorage();
  251|  45.4k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEED2Ev:
  227|  45.4k|		~Expected() {
  228|  45.4k|			if (_hasError)
  ------------------
  |  Branch (228:8): [True: 4.45k, False: 40.9k]
  ------------------
  229|  4.45k|				getErrorStorage()->~error_type();
  230|  40.9k|			else
  231|  40.9k|				getValueStorage()->~storage_type();
  232|  45.4k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEE15getErrorStorageEv:
  165|  8.91k|		[[nodiscard]] error_type* getErrorStorage() {
  166|  8.91k|			assert(_hasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (166:4): [True: 8.91k, False: 0]
  |  Branch (166:4): [True: 8.91k, Folded]
  |  Branch (166:4): [True: 8.91k, False: 0]
  ------------------
  167|  8.91k|			return &_errorStorage;
  168|  8.91k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEE15getValueStorageEv:
  155|   163k|		[[nodiscard]] storage_type* getValueStorage() {
  156|   163k|			assert(!_hasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (156:4): [True: 163k, False: 0]
  |  Branch (156:4): [True: 163k, Folded]
  |  Branch (156:4): [True: 163k, False: 0]
  ------------------
  157|   163k|			return &_valueStorage;
  158|   163k|		}
_ZNK8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEE9has_errorEv:
  234|  45.4k|		[[nodiscard]] bool has_error() const noexcept {
  235|  45.4k|			return _hasError;
  236|  45.4k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEEptEv:
  271|  81.9k|		[[nodiscard]] pointer operator->() {
  272|  81.9k|			assert(!_hasError);
  ------------------
  |  Branch (272:4): [True: 81.9k, False: 0]
  ------------------
  273|  81.9k|			return toPointer(getValueStorage());
  274|  81.9k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEE9toPointerEPS9_:
  175|  81.9k|		[[nodiscard]] pointer toPointer(pointer value) {
  176|  81.9k|			return value;
  177|  81.9k|		}
_ZNK8fastgltf8ExpectedINS_5AssetENS_5ErrorEE9has_valueEv:
  237|  40.9k|		[[nodiscard]] bool has_value() const noexcept {
  238|  40.9k|			return !has_error();
  239|  40.9k|		}
_ZN8fastgltf8ExpectedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5ErrorEEC2EOS7_:
  205|  40.9k|		Expected(T&& value)  noexcept(std::is_nothrow_move_constructible_v<T>) : _hasError(false) {
  206|  40.9k|			std::construct_at(getValueStorage(), std::forward<T>(value));
  207|  40.9k|		}
_ZN8fastgltf8ExpectedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5ErrorEE15getValueStorageEv:
  155|   122k|		[[nodiscard]] storage_type* getValueStorage() {
  156|   122k|			assert(!_hasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (156:4): [True: 122k, False: 0]
  |  Branch (156:4): [True: 122k, Folded]
  |  Branch (156:4): [True: 122k, False: 0]
  ------------------
  157|   122k|			return &_valueStorage;
  158|   122k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEEC2ESA_:
  200|  4.45k|		Expected(error_type error) : _hasError(true) {
  201|  4.45k|			assert(error != Error::None && "Cannot create Expected from successful Error");
  ------------------
  |  Branch (201:4): [True: 4.45k, False: 0]
  |  Branch (201:4): [True: 4.45k, Folded]
  |  Branch (201:4): [True: 4.45k, False: 0]
  ------------------
  202|  4.45k|			std::construct_at(getErrorStorage(), error);
  203|  4.45k|		}
_ZN8fastgltf8ExpectedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5ErrorEED2Ev:
  227|  40.9k|		~Expected() {
  228|  40.9k|			if (_hasError)
  ------------------
  |  Branch (228:8): [True: 0, False: 40.9k]
  ------------------
  229|      0|				getErrorStorage()->~error_type();
  230|  40.9k|			else
  231|  40.9k|				getValueStorage()->~storage_type();
  232|  40.9k|		}
_ZNK8fastgltf8ExpectedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5ErrorEE9has_errorEv:
  234|  40.9k|		[[nodiscard]] bool has_error() const noexcept {
  235|  40.9k|			return _hasError;
  236|  40.9k|		}
_ZN8fastgltf8ExpectedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5ErrorEE3getEv:
  248|  40.9k|		[[nodiscard]] reference get() {
  249|  40.9k|			assert(!_hasError);
  ------------------
  |  Branch (249:4): [True: 40.9k, False: 0]
  ------------------
  250|  40.9k|			return *getValueStorage();
  251|  40.9k|		}
_ZN8fastgltf8ExpectedINS_12ExportResultINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_5ErrorEEC2EOS9_:
  205|  40.9k|		Expected(T&& value)  noexcept(std::is_nothrow_move_constructible_v<T>) : _hasError(false) {
  206|  40.9k|			std::construct_at(getValueStorage(), std::forward<T>(value));
  207|  40.9k|		}
_ZN8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEEC2ESD_:
  200|    440|		Expected(error_type error) : _hasError(true) {
  201|    440|			assert(error != Error::None && "Cannot create Expected from successful Error");
  ------------------
  |  Branch (201:4): [True: 440, False: 0]
  |  Branch (201:4): [True: 440, Folded]
  |  Branch (201:4): [True: 440, False: 0]
  ------------------
  202|    440|			std::construct_at(getErrorStorage(), error);
  203|    440|		}
_ZN8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEE15getErrorStorageEv:
  165|    880|		[[nodiscard]] error_type* getErrorStorage() {
  166|    880|			assert(_hasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (166:4): [True: 880, False: 0]
  |  Branch (166:4): [True: 880, Folded]
  |  Branch (166:4): [True: 880, False: 0]
  ------------------
  167|    880|			return &_errorStorage;
  168|    880|		}
_ZN8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEE15getValueStorageEv:
  155|  53.8k|		[[nodiscard]] storage_type* getValueStorage() {
  156|  53.8k|			assert(!_hasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (156:4): [True: 53.8k, False: 0]
  |  Branch (156:4): [True: 53.8k, Folded]
  |  Branch (156:4): [True: 53.8k, False: 0]
  ------------------
  157|  53.8k|			return &_valueStorage;
  158|  53.8k|		}
_ZN8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEEC2IS7_Qsr3stdE16is_convertible_vITL0__T_EEEOSH_:
  210|  17.9k|		Expected(U&& other) noexcept(std::is_nothrow_move_constructible_v<T>) : _hasError(false) {
  211|  17.9k|			std::construct_at(getValueStorage(), std::forward<U>(other));
  212|  17.9k|		}
_ZNK8fastgltf8ExpectedINS_7VersionENS_5ErrorEE9has_errorEv:
  234|   113k|		[[nodiscard]] bool has_error() const noexcept {
  235|   113k|			return _hasError;
  236|   113k|		}
_ZNK8fastgltf8ExpectedINS_7VersionENS_5ErrorEE5errorEv:
  240|    166|		[[nodiscard]] error_type error() const {
  241|    166|			return _hasError ? *getErrorStorage() : E();
  ------------------
  |  Branch (241:11): [True: 166, False: 0]
  ------------------
  242|    166|		}
_ZNK8fastgltf8ExpectedINS_7VersionENS_5ErrorEE15getErrorStorageEv:
  170|    166|		[[nodiscard]] const error_type* getErrorStorage() const {
  171|    166|			assert(_hasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (171:4): [True: 166, False: 0]
  |  Branch (171:4): [True: 166, Folded]
  |  Branch (171:4): [True: 166, False: 0]
  ------------------
  172|    166|			return &_errorStorage;
  173|    166|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEEptEv:
  271|   113k|		[[nodiscard]] pointer operator->() {
  272|   113k|			assert(!_hasError);
  ------------------
  |  Branch (272:4): [True: 113k, False: 0]
  ------------------
  273|   113k|			return toPointer(getValueStorage());
  274|   113k|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEE9toPointerEPS1_:
  175|   113k|		[[nodiscard]] pointer toPointer(pointer value) {
  176|   113k|			return value;
  177|   113k|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEE15getValueStorageEv:
  155|   454k|		[[nodiscard]] storage_type* getValueStorage() {
  156|   454k|			assert(!_hasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (156:4): [True: 454k, False: 0]
  |  Branch (156:4): [True: 454k, Folded]
  |  Branch (156:4): [True: 454k, False: 0]
  ------------------
  157|   454k|			return &_valueStorage;
  158|   454k|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEEdeEv:
  280|   113k|		[[nodiscard]] reference operator*() {
  281|   113k|			assert(!_hasError);
  ------------------
  |  Branch (281:4): [True: 113k, False: 0]
  ------------------
  282|   113k|			return *getValueStorage();
  283|   113k|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEED2Ev:
  227|   113k|		~Expected() {
  228|   113k|			if (_hasError)
  ------------------
  |  Branch (228:8): [True: 166, False: 113k]
  ------------------
  229|    166|				getErrorStorage()->~error_type();
  230|   113k|			else
  231|   113k|				getValueStorage()->~storage_type();
  232|   113k|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEE15getErrorStorageEv:
  165|    332|		[[nodiscard]] error_type* getErrorStorage() {
  166|    332|			assert(_hasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (166:4): [True: 332, False: 0]
  |  Branch (166:4): [True: 332, Folded]
  |  Branch (166:4): [True: 332, False: 0]
  ------------------
  167|    332|			return &_errorStorage;
  168|    332|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEEC2ES2_:
  200|    166|		Expected(error_type error) : _hasError(true) {
  201|    166|			assert(error != Error::None && "Cannot create Expected from successful Error");
  ------------------
  |  Branch (201:4): [True: 166, False: 0]
  |  Branch (201:4): [True: 166, Folded]
  |  Branch (201:4): [True: 166, False: 0]
  ------------------
  202|    166|			std::construct_at(getErrorStorage(), error);
  203|    166|		}
_ZN8fastgltf8ExpectedINS_7VersionENS_5ErrorEEC2EOS1_:
  205|   113k|		Expected(T&& value)  noexcept(std::is_nothrow_move_constructible_v<T>) : _hasError(false) {
  206|   113k|			std::construct_at(getValueStorage(), std::forward<T>(value));
  207|   113k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEEC2ES2_:
  200|  29.6k|		Expected(error_type error) : _hasError(true) {
  201|  29.6k|			assert(error != Error::None && "Cannot create Expected from successful Error");
  ------------------
  |  Branch (201:4): [True: 29.6k, False: 0]
  |  Branch (201:4): [True: 29.6k, Folded]
  |  Branch (201:4): [True: 29.6k, False: 0]
  ------------------
  202|  29.6k|			std::construct_at(getErrorStorage(), error);
  203|  29.6k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEEC2EOS1_:
  205|  86.7k|		Expected(T&& value)  noexcept(std::is_nothrow_move_constructible_v<T>) : _hasError(false) {
  206|  86.7k|			std::construct_at(getValueStorage(), std::forward<T>(value));
  207|  86.7k|		}
_ZN8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEED2Ev:
  227|  18.3k|		~Expected() {
  228|  18.3k|			if (_hasError)
  ------------------
  |  Branch (228:8): [True: 440, False: 17.9k]
  ------------------
  229|    440|				getErrorStorage()->~error_type();
  230|  17.9k|			else
  231|  17.9k|				getValueStorage()->~storage_type();
  232|  18.3k|		}
_ZNK8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEE9has_errorEv:
  234|  18.3k|		[[nodiscard]] bool has_error() const noexcept {
  235|  18.3k|			return _hasError;
  236|  18.3k|		}
_ZNK8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEE5errorEv:
  240|    440|		[[nodiscard]] error_type error() const {
  241|    440|			return _hasError ? *getErrorStorage() : E();
  ------------------
  |  Branch (241:11): [True: 440, False: 0]
  ------------------
  242|    440|		}
_ZNK8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEE15getErrorStorageEv:
  170|    440|		[[nodiscard]] const error_type* getErrorStorage() const {
  171|    440|			assert(_hasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (171:4): [True: 440, False: 0]
  |  Branch (171:4): [True: 440, Folded]
  |  Branch (171:4): [True: 440, False: 0]
  ------------------
  172|    440|			return &_errorStorage;
  173|    440|		}
_ZN8fastgltf8ExpectedINSt3__17variantIJNS1_9monostateENS_7sources10BufferViewENS4_3URIENS4_5ArrayENS4_6VectorENS4_12CustomBufferENS4_8ByteViewENS4_8FallbackEEEENS_5ErrorEE3getEv:
  248|  17.9k|		[[nodiscard]] reference get() {
  249|  17.9k|			assert(!_hasError);
  ------------------
  |  Branch (249:4): [True: 17.9k, False: 0]
  ------------------
  250|  17.9k|			return *getValueStorage();
  251|  17.9k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEEC2EOS3_:
  215|   114k|		Expected(Expected&& other) noexcept {
  216|   114k|			moveConstruct(std::move(other));
  217|   114k|		}
_ZN8fastgltf8ExpectedINS_5AssetENS_5ErrorEE13moveConstructIS1_EEvONS0_IT_S2_EE:
  190|   114k|		void moveConstruct(Expected<U>&& other) {
  191|   114k|			_hasError = other._hasError;
  192|       |
  193|   114k|			if (!_hasError)
  ------------------
  |  Branch (193:8): [True: 86.4k, False: 27.8k]
  ------------------
  194|  86.4k|				std::construct_at(getValueStorage(), std::move(*other.getValueStorage()));
  195|  27.8k|			else
  196|  27.8k|				std::construct_at(getErrorStorage(), std::move(*other.getErrorStorage()));
  197|   114k|		}

_ZN8fastgltf8internal12readUint32LEERjPSt4byte:
   49|   227k|	constexpr void readUint32LE(std::uint32_t& x, std::byte* bytes) noexcept {
   50|   227k|		x = static_cast<std::uint32_t>(bytes[0])
   51|   227k|				| (static_cast<std::uint32_t>(bytes[1]) << 8)
   52|   227k|				| (static_cast<std::uint32_t>(bytes[2]) << 16)
   53|   227k|				| (static_cast<std::uint32_t>(bytes[3]) << 24);
   54|   227k|	}

_ZNK8fastgltf4math3vecIfLm3EEixEm:
  153|  6.72M|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) const noexcept FASTGLTF_LIFETIMEBOUND {
  154|  6.72M|			return _data[idx];
  155|  6.72M|		}
_ZNK8fastgltf4math3vecIfLm3EEneERKS2_:
  195|   937k|		[[nodiscard]] constexpr bool operator!=(const vec<T, N>& other) const noexcept {
  196|   937k|			return !(*this == other);
  197|   937k|		}
_ZNK8fastgltf4math3vecIfLm3EEeqERKS2_:
  189|   937k|		[[nodiscard]] constexpr bool operator==(const vec<T, N>& other) const noexcept {
  190|  3.45M|			for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (190:28): [True: 2.62M, False: 832k]
  ------------------
  191|  2.62M|				if ((*this)[i] != other[i])
  ------------------
  |  Branch (191:9): [True: 105k, False: 2.51M]
  ------------------
  192|   105k|					return false;
  193|   832k|			return true;
  194|   937k|		}
_ZNK8fastgltf4math3vecIfLm4EEneERKS2_:
  195|   492k|		[[nodiscard]] constexpr bool operator!=(const vec<T, N>& other) const noexcept {
  196|   492k|			return !(*this == other);
  197|   492k|		}
_ZNK8fastgltf4math3vecIfLm4EEeqERKS2_:
  189|   492k|		[[nodiscard]] constexpr bool operator==(const vec<T, N>& other) const noexcept {
  190|  2.16M|			for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (190:28): [True: 1.74M, False: 417k]
  ------------------
  191|  1.74M|				if ((*this)[i] != other[i])
  ------------------
  |  Branch (191:9): [True: 74.3k, False: 1.67M]
  ------------------
  192|  74.3k|					return false;
  193|   417k|			return true;
  194|   492k|		}
_ZNK8fastgltf4math3vecIfLm4EEixEm:
  153|  4.23M|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) const noexcept FASTGLTF_LIFETIMEBOUND {
  154|  4.23M|			return _data[idx];
  155|  4.23M|		}
_ZNK8fastgltf4math4quatIfEneERKS2_:
  539|   178k|		[[nodiscard]] constexpr bool operator!=(const quat<T>& other) const noexcept {
  540|   178k|			return !(*this == other);
  541|   178k|		}
_ZNK8fastgltf4math4quatIfEeqERKS2_:
  533|   178k|		[[nodiscard]] constexpr bool operator==(const quat<T>& other) const noexcept {
  534|   846k|			for (std::size_t i = 0; i < size(); ++i)
  ------------------
  |  Branch (534:28): [True: 680k, False: 166k]
  ------------------
  535|   680k|				if ((*this)[i] != other[i])
  ------------------
  |  Branch (535:9): [True: 12.1k, False: 668k]
  ------------------
  536|  12.1k|					return false;
  537|   166k|			return true;
  538|   178k|		}
_ZN8fastgltf4math4quatIfE4sizeEv:
  487|  1.89M|		[[nodiscard]] static constexpr std::size_t size() noexcept {
  488|  1.89M|			return N;
  489|  1.89M|		}
_ZNK8fastgltf4math4quatIfEixEm:
  497|  3.56M|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) const noexcept FASTGLTF_LIFETIMEBOUND {
  498|  3.56M|			return _data[idx];
  499|  3.56M|		}
_ZN8fastgltf4math4quatIfEC2IJffffEQeqsZTL0__Li4EEEDpT_:
  478|   993k|		constexpr explicit quat(Args... args) noexcept : _data { T(std::forward<Args>(args))... } {}
_ZNK8fastgltf4math3vecIfLm3EE4sizeEv:
  143|  1.42M|		[[nodiscard]] constexpr std::size_t size() const noexcept {
  144|  1.42M|			return N;
  145|  1.42M|		}
_ZNK8fastgltf4math3vecIfLm2EEixEm:
  153|   485k|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) const noexcept FASTGLTF_LIFETIMEBOUND {
  154|   485k|			return _data[idx];
  155|   485k|		}
_ZNK8fastgltf4math3vecIfLm2EE4sizeEv:
  143|   790k|		[[nodiscard]] constexpr std::size_t size() const noexcept {
  144|   790k|			return N;
  145|   790k|		}
_ZN8fastgltf4math3vecIfLm3EEC2Ef:
   82|  3.81M|		explicit vec(T value) noexcept {
   83|  3.81M|			_data.fill(value);
   84|  3.81M|		}
_ZN8fastgltf4math3vecIfLm4EEC2Ef:
   82|  1.54M|		explicit vec(T value) noexcept {
   83|  1.54M|			_data.fill(value);
   84|  1.54M|		}
_ZNK8fastgltf4math3vecIfLm4EE4sizeEv:
  143|  1.21M|		[[nodiscard]] constexpr std::size_t size() const noexcept {
  144|  1.21M|			return N;
  145|  1.21M|		}
_ZN8fastgltf4math3vecIfLm3EEC2Ev:
   80|  48.5k|		constexpr vec() noexcept : _data() {}
_ZN8fastgltf4math3vecIfLm3EEixEm:
  150|   874k|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  151|   874k|			return _data[idx];
  152|   874k|		}
_ZN8fastgltf4math3vecIfLm2EEixEm:
  150|   358k|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  151|   358k|			return _data[idx];
  152|   358k|		}
_ZN8fastgltf4math3vecIfLm2EEC2Ef:
   82|   407k|		explicit vec(T value) noexcept {
   83|   407k|			_data.fill(value);
   84|   407k|		}
_ZN8fastgltf4math3vecIfLm4EEixEm:
  150|  1.68M|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  151|  1.68M|			return _data[idx];
  152|  1.68M|		}
_ZN8fastgltf4math3matIfLm4ELm4EE3colEm:
  741|   689k|		[[nodiscard]] FASTGLTF_FORCEINLINE constexpr decltype(auto) col(std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  742|   689k|			return _data[idx];
  743|   689k|		}
_ZN8fastgltf4math3matIfLm4ELm4EEC2Ef:
  682|  17.1k|		constexpr explicit mat(T value = T(1)) noexcept {
  683|  85.9k|			for (std::size_t i = 0U; i < fastgltf::min(N, M); ++i)
  ------------------
  |  Branch (683:29): [True: 68.7k, False: 17.1k]
  ------------------
  684|  68.7k|				_data[i][i] = value;
  685|  17.1k|		}
_ZN8fastgltf4math3vecIfLm4EEC2Ev:
   80|  68.7k|		constexpr vec() noexcept : _data() {}
_ZN8fastgltf4math4quatIfEixEm:
  494|   288k|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  495|   288k|			return _data[idx];
  496|   288k|		}
_ZN8fastgltf4math24decomposeTransformMatrixITkNSt3__114floating_pointEfEEvNS0_3matIT_Lm4ELm4EEERNS0_3vecIS4_Lm3EEERNS0_4quatIS4_EES8_:
  968|  16.2k|	inline void decomposeTransformMatrix(mat<T, 4, 4> matrix, vec<T, 3>& scale, quat<T>& rotation, vec<T, 3>& translation) {
  969|       |		// Extract the translation. We zero the translation out, as we reuse the matrix as
  970|       |		// the rotation matrix at the end.
  971|  16.2k|		translation = matrix.col(3);
  972|  16.2k|		matrix.col(3) = vec<T, 4>(T(0), T(0), T(0), matrix.col(3)[3]);
  973|       |
  974|       |		// Extract the scale. We calculate the euclidean length of the columns.
  975|       |		// We then construct a vector with those lengths.
  976|  16.2k|		scale = math::vec<T, 3>(
  977|  16.2k|			length(matrix.col(0)),
  978|  16.2k|			length(matrix.col(1)),
  979|  16.2k|			length(matrix.col(2))
  980|  16.2k|		);
  981|       |
  982|       |		// If the scale is zero anywhere we want to avoid a 0/0=NaN below. The rotation is undefined
  983|       |		// anway, so just return zero there.
  984|  16.2k|		if (scale.x() == T(0) || scale.y() == T(0) || scale.z() == T(0)) {
  ------------------
  |  Branch (984:7): [True: 221, False: 16.0k]
  |  Branch (984:28): [True: 229, False: 15.8k]
  |  Branch (984:49): [True: 215, False: 15.6k]
  ------------------
  985|    665|			rotation = quat<T>(0, 0, 0, 1);
  986|    665|			return;
  987|    665|		}
  988|       |
  989|       |		// Remove the scaling from the matrix, leaving only the rotation.
  990|       |		// matrix is now the rotation matrix.
  991|  15.6k|		matrix.col(0) /= scale.x();
  992|  15.6k|		matrix.col(1) /= scale.y();
  993|  15.6k|		matrix.col(2) /= scale.z();
  994|       |
  995|       |		// Construct the quaternion. This algo is copied from here:
  996|       |		// https://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/christian.htm.
  997|       |		// glTF orders the components as x,y,z,w
  998|  15.6k|		rotation = math::quat<T>(
  999|  15.6k|			max(T(0), T(1) + matrix[0][0] - matrix[1][1] - matrix[2][2]),
 1000|  15.6k|			max(T(0), T(1) - matrix[0][0] + matrix[1][1] - matrix[2][2]),
 1001|  15.6k|			max(T(0), T(1) - matrix[0][0] - matrix[1][1] + matrix[2][2]),
 1002|  15.6k|			max(T(0), T(1) + matrix[0][0] + matrix[1][1] + matrix[2][2])
 1003|  15.6k|		);
 1004|  15.6k|		rotation.x() = static_cast<T>(std::sqrt(static_cast<double>(rotation.x()))) / 2;
 1005|  15.6k|		rotation.y() = static_cast<T>(std::sqrt(static_cast<double>(rotation.y()))) / 2;
 1006|  15.6k|		rotation.z() = static_cast<T>(std::sqrt(static_cast<double>(rotation.z()))) / 2;
 1007|  15.6k|		rotation.w() = static_cast<T>(std::sqrt(static_cast<double>(rotation.w()))) / 2;
 1008|       |
 1009|  15.6k|		rotation.x() = std::copysign(rotation.x(), matrix[1][2] - matrix[2][1]);
 1010|  15.6k|		rotation.y() = std::copysign(rotation.y(), matrix[2][0] - matrix[0][2]);
 1011|  15.6k|		rotation.z() = std::copysign(rotation.z(), matrix[0][1] - matrix[1][0]);
 1012|  15.6k|	}
_ZN8fastgltf4math3vecIfLm3EEaSILm4EQgeTL0__T0_EERS2_RKNS1_IfXT_EEE:
  123|  16.2k|		constexpr vec& operator=(const vec<T, M>& other) noexcept {
  124|  65.1k|			for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (124:28): [True: 48.8k, False: 16.2k]
  ------------------
  125|  48.8k|				(*this)[i] = other[i];
  126|  16.2k|			return *this;
  127|  16.2k|		}
_ZN8fastgltf4math3vecIfLm4EEC2IJffffEQeqsZTL0__T0_EEDpT_:
   89|  16.2k|		constexpr vec(Args... args) noexcept : _data { T(std::forward<Args>(args))... } {}
_ZN8fastgltf4math6lengthIfLm4EEET_RKNS0_3vecIS2_XT0_EEE:
  334|  48.8k|	[[nodiscard]] T length(const vec<T, N>& v) noexcept {
  335|  48.8k|		return sqrt(dot(v, v));
  336|  48.8k|	}
_ZN8fastgltf4math3dotIfLm4EEEDaRKNS0_3vecIT_XT0_EEES6_:
  318|  48.8k|	[[nodiscard]] auto dot(const vec<T, N>& a, const vec<T, N>& b) noexcept {
  319|  48.8k|		return sum(a * b);
  320|  48.8k|	}
_ZN8fastgltf4math3sumIfLm4EEEDaRKNS0_3vecIT_XT0_EEE:
  309|  48.8k|	[[nodiscard]] auto sum(const vec<T, N>& a) noexcept {
  310|  48.8k|		T ret = a.x();
  311|   195k|		for (std::size_t i = 1; i < N; ++i)
  ------------------
  |  Branch (311:27): [True: 146k, False: 48.8k]
  ------------------
  312|   146k|			ret += a[i];
  313|  48.8k|		return ret;
  314|  48.8k|	}
_ZNK8fastgltf4math3vecIfLm4EE1xEv:
  169|  48.8k|		[[nodiscard]] constexpr decltype(auto) x() const noexcept FASTGLTF_LIFETIMEBOUND {
  170|  48.8k|			return (*this)[0];
  171|  48.8k|		}
_ZNK8fastgltf4math3vecIfLm4EEmlERKS2_:
  207|  48.8k|		constexpr auto operator*(const vec<T, N>& other) const noexcept {
  208|  48.8k|			return vec<T, N>(*this) *= other;
  209|  48.8k|		}
_ZN8fastgltf4math3vecIfLm4EEmLERKS2_:
  210|  48.8k|		constexpr auto operator*=(const vec<T, N>& other) noexcept {
  211|   244k|			for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (211:28): [True: 195k, False: 48.8k]
  ------------------
  212|   195k|				(*this)[i] *= other[i];
  213|  48.8k|			return *this;
  214|  48.8k|		}
_ZN8fastgltf4math3vecIfLm3EEC2IJfffEQeqsZTL0__T0_EEDpT_:
   89|  16.2k|		constexpr vec(Args... args) noexcept : _data { T(std::forward<Args>(args))... } {}
_ZN8fastgltf4math3vecIfLm3EE1xEv:
  157|  31.9k|		[[nodiscard]] constexpr decltype(auto) x() noexcept FASTGLTF_LIFETIMEBOUND {
  158|  31.9k|			return (*this)[0];
  159|  31.9k|		}
_ZN8fastgltf4math3vecIfLm3EE1yEv:
  160|  31.6k|		[[nodiscard]] constexpr decltype(auto) y() noexcept FASTGLTF_LIFETIMEBOUND {
  161|  31.6k|			return (*this)[1];
  162|  31.6k|		}
_ZN8fastgltf4math3vecIfLm3EE1zEvQgeT0_Li3E:
  163|  31.4k|		[[nodiscard]] constexpr decltype(auto) z() noexcept FASTGLTF_LIFETIMEBOUND requires (N >= 3) {
  164|  31.4k|			return (*this)[2];
  165|  31.4k|		}
_ZN8fastgltf4math4quatIfEC2IJiiiiEQeqsZTL0__Li4EEEDpT_:
  478|    665|		constexpr explicit quat(Args... args) noexcept : _data { T(std::forward<Args>(args))... } {}
_ZN8fastgltf4math3vecIfLm4EEdVEf:
  219|  46.8k|		constexpr auto operator/=(T scalar) noexcept {
  220|   234k|			for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (220:28): [True: 187k, False: 46.8k]
  ------------------
  221|   187k|				(*this)[i] /= scalar;
  222|  46.8k|			return *this;
  223|  46.8k|		}
_ZN8fastgltf4math3matIfLm4ELm4EEixEm:
  734|   281k|		[[nodiscard]] FASTGLTF_FORCEINLINE constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  735|   281k|			return col(idx);
  736|   281k|		}
_ZN8fastgltf4math4quatIfE1xEv:
  501|  62.4k|		[[nodiscard]] constexpr decltype(auto) x() noexcept FASTGLTF_LIFETIMEBOUND {
  502|  62.4k|			return (*this)[0];
  503|  62.4k|		}
_ZN8fastgltf4math4quatIfE1yEv:
  504|  62.4k|		[[nodiscard]] constexpr decltype(auto) y() noexcept FASTGLTF_LIFETIMEBOUND {
  505|  62.4k|			return (*this)[1];
  506|  62.4k|		}
_ZN8fastgltf4math4quatIfE1zEv:
  507|  62.4k|		[[nodiscard]] constexpr decltype(auto) z() noexcept FASTGLTF_LIFETIMEBOUND {
  508|  62.4k|			return (*this)[2];
  509|  62.4k|		}
_ZN8fastgltf4math4quatIfE1wEv:
  510|  31.2k|		[[nodiscard]] constexpr decltype(auto) w() noexcept FASTGLTF_LIFETIMEBOUND {
  511|  31.2k|			return (*this)[3];
  512|  31.2k|		}
_ZN8fastgltf4math3vecIfLm3EEC2IJiiiEQeqsZTL0__T0_EEDpT_:
   89|  11.7k|		constexpr vec(Args... args) noexcept : _data { T(std::forward<Args>(args))... } {}
_ZNK8fastgltf4math4quatIfE1xEv:
  513|   359k|		[[nodiscard]] constexpr decltype(auto) x() const noexcept FASTGLTF_LIFETIMEBOUND {
  514|   359k|			return (*this)[0];
  515|   359k|		}
_ZNK8fastgltf4math4quatIfE1yEv:
  516|   359k|		[[nodiscard]] constexpr decltype(auto) y() const noexcept FASTGLTF_LIFETIMEBOUND {
  517|   359k|			return (*this)[1];
  518|   359k|		}
_ZNK8fastgltf4math4quatIfE1zEv:
  519|   359k|		[[nodiscard]] constexpr decltype(auto) z() const noexcept FASTGLTF_LIFETIMEBOUND {
  520|   359k|			return (*this)[2];
  521|   359k|		}
_ZNK8fastgltf4math4quatIfE1wEv:
  522|   359k|		[[nodiscard]] constexpr decltype(auto) w() const noexcept FASTGLTF_LIFETIMEBOUND {
  523|   359k|			return (*this)[3];
  524|   359k|		}
validate.cpp:_ZN8fastgltf4math9transformIfLm3ETkNSt3__19invocableIT_EERKZNS_8validateERKNS_5AssetEE3$_2EEDaRKNS0_3vecIS4_XT0_EEEOT1_:
  396|   359k|	[[nodiscard]] auto transform(const vec<T, N>& a, F&& func) noexcept {
  397|   359k|		using U = std::invoke_result_t<F, T>;
  398|   359k|		vec<U, N> ret;
  399|  1.43M|		for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (399:27): [True: 1.07M, False: 359k]
  ------------------
  400|  1.07M|			ret[i] = std::invoke(func, a[i]);
  401|   359k|		return ret;
  402|   359k|	}
_ZN8fastgltf4math3vecIbLm3EEC2Ev:
   80|   359k|		constexpr vec() noexcept : _data() {}
_ZN8fastgltf4math3vecIbLm3EEixEm:
  150|  1.07M|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  151|  1.07M|			return _data[idx];
  152|  1.07M|		}
validate.cpp:_ZN8fastgltf4math9transformIfTkNSt3__19invocableIT_EERKZNS_8validateERKNS_5AssetEE3$_2EEDaRKNS0_4quatIS4_EEOT0_:
  650|   179k|	[[nodiscard]] auto transform(const quat<T>& q, F&& func) noexcept {
  651|   179k|		using U = std::invoke_result_t<F, T>;
  652|   179k|		vec<U, quat<T>::size()> ret;
  653|   898k|		for (std::size_t i = 0; i < q.size(); ++i)
  ------------------
  |  Branch (653:27): [True: 719k, False: 179k]
  ------------------
  654|   719k|			ret[i] = std::invoke(func, q[i]);
  655|   179k|		return ret;
  656|   179k|	}
_ZN8fastgltf4math3vecIbLm4EEC2Ev:
   80|   179k|		constexpr vec() noexcept : _data() {}
_ZN8fastgltf4math3vecIbLm4EEixEm:
  150|   719k|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) noexcept FASTGLTF_LIFETIMEBOUND {
  151|   719k|			return _data[idx];
  152|   719k|		}
_ZN8fastgltf4math3anyILm3EEEbRKNS0_3vecIbXT_EEE:
  373|   359k|	[[nodiscard]] bool any(const vec<bool, N>& vec) noexcept {
  374|  1.43M|		for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (374:27): [True: 1.07M, False: 359k]
  ------------------
  375|  1.07M|			if (vec[i])
  ------------------
  |  Branch (375:8): [True: 8, False: 1.07M]
  ------------------
  376|      8|				return true;
  377|   359k|		return false;
  378|   359k|	}
_ZNK8fastgltf4math3vecIbLm3EEixEm:
  153|  1.07M|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) const noexcept FASTGLTF_LIFETIMEBOUND {
  154|  1.07M|			return _data[idx];
  155|  1.07M|		}
_ZN8fastgltf4math3anyILm4EEEbRKNS0_3vecIbXT_EEE:
  373|   179k|	[[nodiscard]] bool any(const vec<bool, N>& vec) noexcept {
  374|   898k|		for (std::size_t i = 0; i < N; ++i)
  ------------------
  |  Branch (374:27): [True: 719k, False: 179k]
  ------------------
  375|   719k|			if (vec[i])
  ------------------
  |  Branch (375:8): [True: 0, False: 719k]
  ------------------
  376|      0|				return true;
  377|   179k|		return false;
  378|   179k|	}
_ZNK8fastgltf4math3vecIbLm4EEixEm:
  153|   719k|		[[nodiscard]] constexpr decltype(auto) operator[](std::size_t idx) const noexcept FASTGLTF_LIFETIMEBOUND {
  154|   719k|			return _data[idx];
  155|   719k|		}

_ZN8fastgltf14GltfDataBuffer9FromBytesEPKSt4bytem:
  450|   116k|		static Expected<GltfDataBuffer> FromBytes(const std::byte* bytes, std::size_t count) noexcept {
  451|   116k|			GltfDataBuffer buffer(bytes, count);
  452|   116k|			if (buffer.error != Error::None) {
  ------------------
  |  Branch (452:8): [True: 0, False: 116k]
  ------------------
  453|      0|				return buffer.error;
  454|      0|			}
  455|   116k|			return buffer;
  456|   116k|		}
_ZN8fastgltf14GltfDataBufferC2EOS0_:
  438|   116k|		GltfDataBuffer(GltfDataBuffer&& other) noexcept = default;
_ZN8fastgltf14GltfDataGetterD2Ev:
  391|   232k|		virtual ~GltfDataGetter() noexcept = default;
_ZN8fastgltf14GltfDataBufferD2Ev:
  440|   232k|		~GltfDataBuffer() noexcept override = default;

_ZN8fastgltf19AccessorBoundsArrayD2Ev:
  685|  1.55M|		~AccessorBoundsArray() noexcept {
  686|  1.55M|			clear();
  687|  1.55M|		}
_ZN8fastgltf19AccessorBoundsArray5clearEv:
  598|  2.58M|		void clear() noexcept {
  599|  2.58M|			if (_size > internal_array_size) {
  ------------------
  |  Branch (599:8): [True: 3.52k, False: 2.58M]
  ------------------
  600|  3.52k|				switch (_type) {
  601|    211|					case BoundsType::int64:
  ------------------
  |  Branch (601:6): [True: 211, False: 3.31k]
  ------------------
  602|    211|						delete[] _heap_ints;
  603|    211|						break;
  604|  3.31k|					case BoundsType::float64:
  ------------------
  |  Branch (604:6): [True: 3.31k, False: 211]
  ------------------
  605|  3.31k|						delete[] _heap_doubles;
  606|  3.31k|						break;
  607|      0|					default:
  ------------------
  |  Branch (607:6): [True: 0, False: 3.52k]
  ------------------
  608|      0|						FASTGLTF_UNREACHABLE
  ------------------
  |  |   71|      0|#define FASTGLTF_UNREACHABLE __builtin_unreachable();
  ------------------
  609|  3.52k|				}
  610|  3.52k|			}
  611|  2.58M|			_size = 0;
  612|  2.58M|		}
_ZN8fastgltf19AccessorBoundsArray5stealERS0_:
  614|   878k|		void steal(AccessorBoundsArray& other) noexcept {
  615|       |			// The memcpy call gets sizeof(array) instead of _size * sizeof(element) to allow the
  616|       |			// compiler to replace the call with fixed size loads & stores
  617|   878k|			switch (_type) {
  618|   226k|				case BoundsType::int64:
  ------------------
  |  Branch (618:5): [True: 226k, False: 652k]
  ------------------
  619|   226k|					if (_size > internal_array_size)
  ------------------
  |  Branch (619:10): [True: 442, False: 225k]
  ------------------
  620|    442|						_heap_ints = std::exchange(other._heap_ints, nullptr);
  621|   225k|					else
  622|   225k|						std::memcpy(_ints, other._ints, sizeof(_ints));
  623|   226k|					break;
  624|   652k|				case BoundsType::float64:
  ------------------
  |  Branch (624:5): [True: 652k, False: 226k]
  ------------------
  625|   652k|					if (_size > internal_array_size)
  ------------------
  |  Branch (625:10): [True: 6.73k, False: 645k]
  ------------------
  626|  6.73k|						_heap_doubles = std::exchange(other._heap_doubles, nullptr);
  627|   645k|					else
  628|   645k|						std::memcpy(_doubles, other._doubles, sizeof(_doubles));
  629|   652k|					break;
  630|      0|				default:
  ------------------
  |  Branch (630:5): [True: 0, False: 878k]
  ------------------
  631|      0|					FASTGLTF_UNREACHABLE
  ------------------
  |  |   71|      0|#define FASTGLTF_UNREACHABLE __builtin_unreachable();
  ------------------
  632|   878k|			}
  633|   878k|		}
_ZN8fastgltf19AccessorBoundsArrayC2EmNS0_10BoundsTypeE:
  644|   359k|			: _size(static_cast<std::uint8_t>(len)), _type(type) {
  645|   359k|			assert(len != 0 && len <= max_accessor_components);
  ------------------
  |  Branch (645:4): [True: 359k, False: 0]
  |  Branch (645:4): [True: 359k, False: 0]
  |  Branch (645:4): [True: 359k, False: 0]
  ------------------
  646|       |
  647|   359k|			if (_size > internal_array_size) {
  ------------------
  |  Branch (647:8): [True: 3.52k, False: 355k]
  ------------------
  648|  3.52k|				switch (_type) {
  649|    211|					case BoundsType::int64:
  ------------------
  |  Branch (649:6): [True: 211, False: 3.31k]
  ------------------
  650|    211|						_heap_ints = new std::int64_t[_size]();
  651|    211|						break;
  652|  3.31k|					case BoundsType::float64:
  ------------------
  |  Branch (652:6): [True: 3.31k, False: 211]
  ------------------
  653|  3.31k|						_heap_doubles = new double[_size]();
  654|  3.31k|						break;
  655|      0|					default:
  ------------------
  |  Branch (655:6): [True: 0, False: 3.52k]
  ------------------
  656|      0|						FASTGLTF_UNREACHABLE
  ------------------
  |  |   71|      0|#define FASTGLTF_UNREACHABLE __builtin_unreachable();
  ------------------
  657|  3.52k|				}
  658|   355k|			} else {
  659|   355k|				switch (_type) {
  660|  68.7k|					case BoundsType::int64:
  ------------------
  |  Branch (660:6): [True: 68.7k, False: 286k]
  ------------------
  661|   343k|						for (std::size_t i = 0; i < internal_array_size; ++i)
  ------------------
  |  Branch (661:31): [True: 275k, False: 68.7k]
  ------------------
  662|   275k|							_ints[i] = 0;
  663|  68.7k|						break;
  664|   286k|					case BoundsType::float64:
  ------------------
  |  Branch (664:6): [True: 286k, False: 68.7k]
  ------------------
  665|  1.43M|						for (std::size_t i = 0; i < internal_array_size; ++i)
  ------------------
  |  Branch (665:31): [True: 1.14M, False: 286k]
  ------------------
  666|  1.14M|							_doubles[i] = 0;
  667|   286k|						break;
  668|      0|					default:
  ------------------
  |  Branch (668:6): [True: 0, False: 355k]
  ------------------
  669|      0|						FASTGLTF_UNREACHABLE
  ------------------
  |  |   71|      0|#define FASTGLTF_UNREACHABLE __builtin_unreachable();
  ------------------
  670|   355k|				}
  671|   355k|			}
  672|   359k|		}
_ZN8fastgltf19AccessorBoundsArrayC2EOS0_:
  691|   519k|			: _size(std::exchange(other._size, std::uint8_t{0})), _type(other._type) {
  692|   519k|			steal(other);
  693|   519k|		}
_ZN8fastgltf19AccessorBoundsArrayaSEOS0_:
  696|   359k|		AccessorBoundsArray& operator=(AccessorBoundsArray&& other) noexcept {
  697|   359k|			if (std::addressof(other) != this) {
  ------------------
  |  Branch (697:8): [True: 359k, False: 0]
  ------------------
  698|   359k|				clear();
  699|       |
  700|   359k|				_size = std::exchange(other._size, std::uint8_t{0});
  701|   359k|				_type = other._type;
  702|       |
  703|   359k|				steal(other);
  704|   359k|			}
  705|   359k|			return *this;
  706|   359k|		}
_ZNK8fastgltf19AccessorBoundsArray4sizeEv:
  724|  4.52M|		[[nodiscard]] std::size_t size() const noexcept {
  725|  4.52M|			return _size;
  726|  4.52M|		}
_ZN8fastgltf19optional_flag_valueINS_19AccessorBoundsArrayEE8is_emptyERKS1_:
  780|  3.33M|		static bool is_empty(const AccessorBoundsArray& array) noexcept {
  781|  3.33M|			return array.size() == 0;
  782|  3.33M|		}
_ZN8fastgltf19optional_flag_valueINS_19AccessorBoundsArrayEE9set_emptyERS1_:
  783|   674k|		static void set_empty(AccessorBoundsArray& array) noexcept {
  784|   674k|			array.clear();
  785|   674k|		}
_ZNK8fastgltf7Version8asStringEv:
  868|  41.0k|		[[nodiscard]] std::string asString() const {
  869|  41.0k|			return std::to_string(major) + "." + std::to_string(minor);
  870|  41.0k|		}
_ZNK8fastgltf7VersionssERKS0_:
  873|  45.4k|		[[nodiscard]] constexpr std::strong_ordering operator<=>(const Version& other) const noexcept {
  874|  45.4k|			if (const auto cmp = major <=> other.major; cmp != 0)
  ------------------
  |  Branch (874:48): [True: 84, False: 45.4k]
  ------------------
  875|     84|				return cmp;
  876|  45.4k|			return minor <=> other.minor;
  877|  45.4k|		}
_ZN8fastgltf8internal10findByNameITkNSt3__16ranges13forward_rangeERNS2_6vectorINS_9AttributeENS2_9allocatorIS5_EEEEEEDaOT_NS2_17basic_string_viewIcNS2_11char_traitsIcEEEE:
  947|  13.0k|		[[nodiscard]] auto findByName(R&& range FASTGLTF_LIFETIMEBOUND, const std::string_view name) noexcept {
  948|  13.0k|			return std::ranges::find(std::forward<R>(range), name, &Attribute::name);
  949|  13.0k|		}
_ZN8fastgltf8internal10findByNameITkNSt3__16ranges13forward_rangeERKNS2_6vectorINS_9AttributeENS2_9allocatorIS5_EEEEEEDaOT_NS2_17basic_string_viewIcNS2_11char_traitsIcEEEE:
  947|  1.98k|		[[nodiscard]] auto findByName(R&& range FASTGLTF_LIFETIMEBOUND, const std::string_view name) noexcept {
  948|  1.98k|			return std::ranges::find(std::forward<R>(range), name, &Attribute::name);
  949|  1.98k|		}
_ZN8fastgltf9Primitive13findAttributeENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
 1308|  13.0k|		[[nodiscard]] auto findAttribute(const std::string_view name) noexcept FASTGLTF_LIFETIMEBOUND {
 1309|  13.0k|			return internal::findByName(attributes, name);
 1310|  13.0k|		}
_ZNK8fastgltf9Primitive13findAttributeENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
 1312|  1.98k|		[[nodiscard]] auto findAttribute(const std::string_view name) const noexcept FASTGLTF_LIFETIMEBOUND {
 1313|  1.98k|			return internal::findByName(attributes, name);
 1314|  1.98k|		}
_ZN8fastgltf19optional_flag_valueINS_11TextureInfoEE8is_emptyERKS1_:
 1378|  3.78M|		static constexpr bool is_empty(const TextureInfo& value) noexcept {
 1379|  3.78M|			return optional_flag_value<std::size_t>::is_empty(value.textureIndex);
 1380|  3.78M|		}
_ZN8fastgltf19optional_flag_valueINS_11TextureInfoEE9set_emptyERS1_:
 1381|  4.12M|		static void set_empty(TextureInfo& value) noexcept {
 1382|  4.12M|			optional_flag_value<std::size_t>::set_empty(value.textureIndex);
 1383|  4.12M|			value.transform.reset();
 1384|  4.12M|		}
_ZN8fastgltf16getNumComponentsENS_12AccessorTypeE:
  337|   715k|	FASTGLTF_EXPORT constexpr auto getNumComponents(AccessorType type) noexcept {
  338|   715k|		static_assert(std::is_same_v<std::underlying_type_t<AccessorType>, std::uint8_t>);
  339|   715k|		return static_cast<std::size_t>(to_underlying(type) >> 3U);
  340|   715k|	}
_ZN8fastgltf18getElementRowCountENS_12AccessorTypeE:
  345|   179k|	FASTGLTF_EXPORT constexpr auto getElementRowCount(AccessorType type) noexcept {
  346|   179k|		switch (type) {
  347|    340|			case AccessorType::Mat2:
  ------------------
  |  Branch (347:4): [True: 340, False: 179k]
  ------------------
  348|  16.0k|			case AccessorType::Vec2:
  ------------------
  |  Branch (348:4): [True: 15.6k, False: 163k]
  ------------------
  349|  16.0k|				return static_cast<std::size_t>(2U);
  350|  2.25k|			case AccessorType::Mat3:
  ------------------
  |  Branch (350:4): [True: 2.25k, False: 177k]
  ------------------
  351|  86.7k|			case AccessorType::Vec3:
  ------------------
  |  Branch (351:4): [True: 84.5k, False: 94.8k]
  ------------------
  352|  86.7k|				return static_cast<std::size_t>(3U);
  353|  1.10k|			case AccessorType::Mat4:
  ------------------
  |  Branch (353:4): [True: 1.10k, False: 178k]
  ------------------
  354|  22.4k|			case AccessorType::Vec4:
  ------------------
  |  Branch (354:4): [True: 21.3k, False: 158k]
  ------------------
  355|  22.4k|				return static_cast<std::size_t>(4U);
  356|  54.0k|			default:
  ------------------
  |  Branch (356:4): [True: 54.0k, False: 125k]
  ------------------
  357|  54.0k|				return static_cast<std::size_t>(1U);
  358|   179k|		}
  359|   179k|	}
_ZN8fastgltf8isMatrixENS_12AccessorTypeE:
  361|   179k|	FASTGLTF_EXPORT constexpr bool isMatrix(AccessorType type) noexcept {
  362|   179k|		return type == AccessorType::Mat2 || type == AccessorType::Mat3 || type == AccessorType::Mat4;
  ------------------
  |  Branch (362:10): [True: 340, False: 179k]
  |  Branch (362:40): [True: 2.25k, False: 176k]
  |  Branch (362:70): [True: 1.10k, False: 175k]
  ------------------
  363|   179k|	}
_ZN8fastgltf20getComponentByteSizeENS_13ComponentTypeE:
  365|   215k|	FASTGLTF_EXPORT constexpr auto getComponentByteSize(ComponentType componentType) noexcept {
  366|   215k|		static_assert(std::is_same_v<std::underlying_type_t<ComponentType>, std::uint16_t>);
  367|   215k|		if (componentType == ComponentType::Invalid)
  ------------------
  |  Branch (367:7): [True: 0, False: 215k]
  ------------------
  368|      0|			return static_cast<std::size_t>(0U);
  369|   215k|		return static_cast<std::size_t>(to_underlying(componentType) >> 13U) + 1;
  370|   215k|	}
_ZN8fastgltf18getElementByteSizeENS_12AccessorTypeENS_13ComponentTypeE:
  376|   179k|	FASTGLTF_EXPORT constexpr auto getElementByteSize(AccessorType type, ComponentType componentType) noexcept {
  377|   179k|		const auto componentSize = getComponentByteSize(componentType);
  378|   179k|		auto numComponents = getNumComponents(type);
  379|   179k|		const auto rowCount = getElementRowCount(type);
  380|   179k|		if (isMatrix(type) && (rowCount * componentSize) % 4 != 0) {
  ------------------
  |  Branch (380:7): [True: 3.70k, False: 175k]
  |  Branch (380:25): [True: 702, False: 3.00k]
  ------------------
  381|       |			// Matrices need extra padding per-column which affects their size.
  382|    702|			numComponents += rowCount * (4 - (rowCount % 4));
  383|    702|		}
  384|   179k|		return numComponents * componentSize;
  385|   179k|	}
_ZN8fastgltf18getGLComponentTypeENS_13ComponentTypeE:
  394|   519k|	FASTGLTF_EXPORT constexpr auto getGLComponentType(ComponentType type) noexcept {
  395|   519k|		static_assert(std::is_same_v<std::underlying_type_t<ComponentType>, std::uint16_t>);
  396|   519k|		return static_cast<std::uint32_t>(to_underlying(type) & 0x1FFF); // 2^13 - 1 in hex, to mask the lower 13 bits.
  397|   519k|	}
_ZN8fastgltf15isFloatingPointENS_13ComponentTypeE:
  399|   578k|	FASTGLTF_EXPORT constexpr auto isFloatingPoint(ComponentType type) noexcept {
  400|   578k|		return
  401|   578k|			type == ComponentType::HalfFloat ||
  ------------------
  |  Branch (401:4): [True: 1.15k, False: 577k]
  ------------------
  402|   577k|			type == ComponentType::Float ||
  ------------------
  |  Branch (402:4): [True: 464k, False: 113k]
  ------------------
  403|   113k|			type == ComponentType::Double;
  ------------------
  |  Branch (403:4): [True: 436, False: 112k]
  ------------------
  404|   578k|	}
_ZN8fastgltf8internal16getComponentTypeEt:
  429|   350k|		[[nodiscard]] constexpr auto getComponentType(const std::underlying_type_t<ComponentType> componentType) noexcept {
  430|   350k|			const auto index = static_cast<std::size_t>(componentType - getGLComponentType(ComponentType::Byte));
  431|   350k|			if (index >= components.size()) {
  ------------------
  |  Branch (431:8): [True: 20, False: 350k]
  ------------------
  432|     20|				return ComponentType::Invalid;
  433|     20|			}
  434|   350k|			return components[index];
  435|   350k|		}
_ZN8fastgltf8internal19getAccessorTypeNameENS_12AccessorTypeE:
  458|   154k|		[[nodiscard]] constexpr std::string_view getAccessorTypeName(const AccessorType type) noexcept {
  459|   154k|			static_assert(std::is_same_v<std::underlying_type_t<AccessorType>, std::uint8_t>);
  460|   154k|			if (type == AccessorType::Invalid)
  ------------------
  |  Branch (460:8): [True: 0, False: 154k]
  ------------------
  461|      0|				return "";
  462|   154k|			const auto idx = to_underlying(type) & 0x7;
  463|   154k|			return accessorTypeNames[idx - 1];
  464|   154k|		}
_ZN8fastgltf8internal17getMimeTypeStringENS_8MimeTypeE:
  475|  10.4k|		[[nodiscard]] constexpr std::string_view getMimeTypeString(const MimeType mimeType) noexcept {
  476|  10.4k|			switch (mimeType) {
  477|  2.12k|				case MimeType::JPEG:
  ------------------
  |  Branch (477:5): [True: 2.12k, False: 8.33k]
  ------------------
  478|  2.12k|					return mimeTypeJpeg;
  479|  3.23k|				case MimeType::PNG:
  ------------------
  |  Branch (479:5): [True: 3.23k, False: 7.22k]
  ------------------
  480|  3.23k|					return mimeTypePng;
  481|  2.51k|				case MimeType::KTX2:
  ------------------
  |  Branch (481:5): [True: 2.51k, False: 7.94k]
  ------------------
  482|  2.51k|					return mimeTypeKtx;
  483|      0|				case MimeType::DDS:
  ------------------
  |  Branch (483:5): [True: 0, False: 10.4k]
  ------------------
  484|      0|					return mimeTypeDds;
  485|    370|				case MimeType::GltfBuffer:
  ------------------
  |  Branch (485:5): [True: 370, False: 10.0k]
  ------------------
  486|    370|					return mimeTypeGltfBuffer;
  487|    194|				case MimeType::OctetStream:
  ------------------
  |  Branch (487:5): [True: 194, False: 10.2k]
  ------------------
  488|    194|					return mimeTypeOctetStream;
  489|  1.34k|				case MimeType::WEBP:
  ------------------
  |  Branch (489:5): [True: 1.34k, False: 9.12k]
  ------------------
  490|  1.34k|					return mimeTypeWebp;
  491|      0|				case MimeType::AVIF:
  ------------------
  |  Branch (491:5): [True: 0, False: 10.4k]
  ------------------
  492|      0|					return mimeTypeAvif;
  493|    675|				default:
  ------------------
  |  Branch (493:5): [True: 675, False: 9.78k]
  ------------------
  494|    675|					return "";
  495|  10.4k|			}
  496|  10.4k|		}
_ZN8fastgltf8internal21getMimeTypeFromStringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  497|  42.6k|		[[nodiscard]] constexpr MimeType getMimeTypeFromString(const std::string_view mime) noexcept {
  498|  42.6k|			switch (crc32c(mime)) {
  499|  4.76k|				case force_consteval<crc32c(mimeTypeJpeg)>: {
  ------------------
  |  Branch (499:5): [True: 4.76k, False: 37.8k]
  ------------------
  500|  4.76k|					return MimeType::JPEG;
  501|      0|				}
  502|  6.70k|				case force_consteval<crc32c(mimeTypePng)>: {
  ------------------
  |  Branch (502:5): [True: 6.70k, False: 35.9k]
  ------------------
  503|  6.70k|					return MimeType::PNG;
  504|      0|				}
  505|  5.06k|				case force_consteval<crc32c(mimeTypeKtx)>: {
  ------------------
  |  Branch (505:5): [True: 5.06k, False: 37.5k]
  ------------------
  506|  5.06k|					return MimeType::KTX2;
  507|      0|				}
  508|      0|				case force_consteval<crc32c(mimeTypeDds)>: {
  ------------------
  |  Branch (508:5): [True: 0, False: 42.6k]
  ------------------
  509|      0|					return MimeType::DDS;
  510|      0|				}
  511|  1.06k|				case force_consteval<crc32c(mimeTypeGltfBuffer)>: {
  ------------------
  |  Branch (511:5): [True: 1.06k, False: 41.5k]
  ------------------
  512|  1.06k|					return MimeType::GltfBuffer;
  513|      0|				}
  514|    389|				case force_consteval<crc32c(mimeTypeOctetStream)>: {
  ------------------
  |  Branch (514:5): [True: 389, False: 42.2k]
  ------------------
  515|    389|					return MimeType::OctetStream;
  516|      0|				}
  517|  2.71k|				case force_consteval<crc32c(mimeTypeWebp)>: {
  ------------------
  |  Branch (517:5): [True: 2.71k, False: 39.9k]
  ------------------
  518|  2.71k|					return MimeType::WEBP;
  519|      0|				}
  520|      0|				case force_consteval<crc32c(mimeTypeAvif)>: {
  ------------------
  |  Branch (520:5): [True: 0, False: 42.6k]
  ------------------
  521|      0|					return MimeType::AVIF;
  522|      0|				}
  523|  21.9k|				default: {
  ------------------
  |  Branch (523:5): [True: 21.9k, False: 20.7k]
  ------------------
  524|  21.9k|					return MimeType::None;
  525|      0|				}
  526|  42.6k|			}
  527|  42.6k|		}
_ZN8fastgltf8internal23getFileExtensionForMimeENS_8MimeTypeE:
  528|  11.6k|		[[nodiscard]] constexpr std::string_view getFileExtensionForMime(const MimeType mimeType) noexcept {
  529|  11.6k|			switch (mimeType) {
  530|    197|				case MimeType::JPEG:
  ------------------
  |  Branch (530:5): [True: 197, False: 11.4k]
  ------------------
  531|    197|					return ".jpeg";
  532|    325|				case MimeType::PNG:
  ------------------
  |  Branch (532:5): [True: 325, False: 11.3k]
  ------------------
  533|    325|					return ".png";
  534|    195|				case MimeType::KTX2:
  ------------------
  |  Branch (534:5): [True: 195, False: 11.4k]
  ------------------
  535|    195|					return ".ktx2";
  536|      0|				case MimeType::DDS:
  ------------------
  |  Branch (536:5): [True: 0, False: 11.6k]
  ------------------
  537|      0|					return ".dds";
  538|    496|				case MimeType::WEBP:
  ------------------
  |  Branch (538:5): [True: 496, False: 11.1k]
  ------------------
  539|    496|					return ".webp";
  540|      0|				case MimeType::AVIF:
  ------------------
  |  Branch (540:5): [True: 0, False: 11.6k]
  ------------------
  541|      0|					return ".avif";
  542|      0|				default:
  ------------------
  |  Branch (542:5): [True: 0, False: 11.6k]
  ------------------
  543|  9.84k|				case MimeType::None:
  ------------------
  |  Branch (543:5): [True: 9.84k, False: 1.77k]
  ------------------
  544|  10.2k|				case MimeType::GltfBuffer:
  ------------------
  |  Branch (544:5): [True: 370, False: 11.2k]
  ------------------
  545|  10.4k|				case MimeType::OctetStream:
  ------------------
  |  Branch (545:5): [True: 194, False: 11.4k]
  ------------------
  546|  10.4k|					return ".bin";
  547|  11.6k|			}
  548|  11.6k|		}
_ZNK8fastgltf19AccessorBoundsArray6isTypeIdQ15is_valid_type_vIT_EEEbv:
  714|  1.29M|		[[nodiscard]] bool isType() const noexcept {
  715|       |			if constexpr (std::is_same_v<T, std::int64_t>) {
  716|       |				return _type == BoundsType::int64;
  717|  1.29M|			} else if constexpr (std::is_same_v<T, double>) {
  718|  1.29M|				return _type == BoundsType::float64;
  719|       |			} else {
  720|       |				FASTGLTF_UNREACHABLE
  721|       |			}
  722|  1.29M|		}
_ZNK8fastgltf19AccessorBoundsArray3getIdQ15is_valid_type_vIT_EEES2_m:
  764|   346k|		[[nodiscard]] T get(const std::size_t pos) const {
  765|   346k|			assert(pos < size() && isType<T>());
  ------------------
  |  Branch (765:4): [True: 346k, False: 0]
  |  Branch (765:4): [True: 346k, False: 0]
  |  Branch (765:4): [True: 346k, False: 0]
  ------------------
  766|   346k|			return data<T>()[pos];
  767|   346k|		}
_ZNK8fastgltf19AccessorBoundsArray4dataIdQ15is_valid_type_vIT_EEEPKDav:
  747|   346k|		[[nodiscard]] const auto* data() const noexcept FASTGLTF_LIFETIMEBOUND {
  748|   346k|			assert(isType<T>());
  ------------------
  |  Branch (748:4): [True: 346k, False: 0]
  ------------------
  749|       |			if constexpr (std::is_same_v<T, std::int64_t>) {
  750|       |				if (_size > internal_array_size)
  751|       |					return _heap_ints;
  752|       |				return _ints;
  753|   346k|			} else if constexpr (std::is_same_v<T, double>) {
  754|   346k|				if (_size > internal_array_size)
  ------------------
  |  Branch (754:9): [True: 20.8k, False: 325k]
  ------------------
  755|  20.8k|					return _heap_doubles;
  756|   325k|				return _doubles;
  757|       |			} else {
  758|       |				FASTGLTF_UNREACHABLE
  759|       |			}
  760|   346k|		}
_ZNK8fastgltf19AccessorBoundsArray6isTypeIlQ15is_valid_type_vIT_EEEbv:
  714|   260k|		[[nodiscard]] bool isType() const noexcept {
  715|   260k|			if constexpr (std::is_same_v<T, std::int64_t>) {
  716|   260k|				return _type == BoundsType::int64;
  717|       |			} else if constexpr (std::is_same_v<T, double>) {
  718|       |				return _type == BoundsType::float64;
  719|       |			} else {
  720|       |				FASTGLTF_UNREACHABLE
  721|       |			}
  722|   260k|		}
_ZNK8fastgltf19AccessorBoundsArray3getIlQ15is_valid_type_vIT_EEES2_m:
  764|  79.4k|		[[nodiscard]] T get(const std::size_t pos) const {
  765|  79.4k|			assert(pos < size() && isType<T>());
  ------------------
  |  Branch (765:4): [True: 79.4k, False: 0]
  |  Branch (765:4): [True: 79.4k, False: 0]
  |  Branch (765:4): [True: 79.4k, False: 0]
  ------------------
  766|  79.4k|			return data<T>()[pos];
  767|  79.4k|		}
_ZNK8fastgltf19AccessorBoundsArray4dataIlQ15is_valid_type_vIT_EEEPKDav:
  747|  79.4k|		[[nodiscard]] const auto* data() const noexcept FASTGLTF_LIFETIMEBOUND {
  748|  79.4k|			assert(isType<T>());
  ------------------
  |  Branch (748:4): [True: 79.4k, False: 0]
  ------------------
  749|  79.4k|			if constexpr (std::is_same_v<T, std::int64_t>) {
  750|  79.4k|				if (_size > internal_array_size)
  ------------------
  |  Branch (750:9): [True: 1.39k, False: 78.0k]
  ------------------
  751|  1.39k|					return _heap_ints;
  752|  78.0k|				return _ints;
  753|       |			} else if constexpr (std::is_same_v<T, double>) {
  754|       |				if (_size > internal_array_size)
  755|       |					return _heap_doubles;
  756|       |				return _doubles;
  757|       |			} else {
  758|       |				FASTGLTF_UNREACHABLE
  759|       |			}
  760|  79.4k|		}
_ZN8fastgltf19AccessorBoundsArrayC2Ev:
  641|   674k|		AccessorBoundsArray() noexcept = default; // Empty state for flagged_optional
_ZN8fastgltf5AssetC2Ev:
 1821|   114k|		explicit Asset() = default;
_ZN8fastgltf19AccessorBoundsArray4dataIdQ15is_valid_type_vIT_EEEPDav:
  730|   290k|		[[nodiscard]] auto* data() noexcept FASTGLTF_LIFETIMEBOUND {
  731|   290k|			assert(isType<T>());
  ------------------
  |  Branch (731:4): [True: 290k, False: 0]
  ------------------
  732|       |			if constexpr (std::is_same_v<T, std::int64_t>) {
  733|       |				if (_size > internal_array_size)
  734|       |					return _heap_ints;
  735|       |				return _ints;
  736|   290k|			} else if constexpr (std::is_same_v<T, double>) {
  737|   290k|				if (_size > internal_array_size)
  ------------------
  |  Branch (737:9): [True: 3.31k, False: 286k]
  ------------------
  738|  3.31k|					return _heap_doubles;
  739|   286k|				return _doubles;
  740|       |			} else {
  741|       |				FASTGLTF_UNREACHABLE
  742|       |			}
  743|   290k|		}
_ZN8fastgltf19AccessorBoundsArray4dataIlQ15is_valid_type_vIT_EEEPDav:
  730|  68.9k|		[[nodiscard]] auto* data() noexcept FASTGLTF_LIFETIMEBOUND {
  731|  68.9k|			assert(isType<T>());
  ------------------
  |  Branch (731:4): [True: 68.9k, False: 0]
  ------------------
  732|  68.9k|			if constexpr (std::is_same_v<T, std::int64_t>) {
  733|  68.9k|				if (_size > internal_array_size)
  ------------------
  |  Branch (733:9): [True: 211, False: 68.7k]
  ------------------
  734|    211|					return _heap_ints;
  735|  68.7k|				return _ints;
  736|       |			} else if constexpr (std::is_same_v<T, double>) {
  737|       |				if (_size > internal_array_size)
  738|       |					return _heap_doubles;
  739|       |				return _doubles;
  740|       |			} else {
  741|       |				FASTGLTF_UNREACHABLE
  742|       |			}
  743|  68.9k|		}
_ZN8fastgltf5AssetC2EOS0_:
 1823|   173k|		Asset(Asset&& other) noexcept = default;

_ZNK8fastgltf7URIView6schemeEv:
  110|   374k|		[[nodiscard]] auto scheme() const noexcept {
  111|   374k|			return internal::get(_view, _components._scheme);
  112|   374k|		}
_ZNK8fastgltf7URIView4hostEv:
  116|    396|		[[nodiscard]] auto host() const noexcept {
  117|    396|			return internal::get(_view, _components._host);
  118|    396|		}
_ZNK8fastgltf7URIView4pathEv:
  122|  18.3k|		[[nodiscard]] auto path() const noexcept {
  123|  18.3k|			return internal::get(_view, _components._path);
  124|  18.3k|		}
_ZNK8fastgltf7URIView5validEv:
  133|   193k|		[[nodiscard]] bool valid() const noexcept {
  134|   193k|			return _components._valid;
  135|   193k|		}
_ZNK8fastgltf7URIView11isLocalPathEv:
  136|   175k|		[[nodiscard]] bool isLocalPath() const noexcept {
  137|   175k|			return scheme().empty() || (scheme() == "file" && host().empty());
  ------------------
  |  Branch (137:11): [True: 169k, False: 5.82k]
  |  Branch (137:32): [True: 396, False: 5.42k]
  |  Branch (137:54): [True: 186, False: 210]
  ------------------
  138|   175k|		}
_ZNK8fastgltf7URIView9isDataUriEv:
  139|   193k|		[[nodiscard]] bool isDataUri() const noexcept {
  140|   193k|			return scheme() == "data";
  141|   193k|		}
_ZNK8fastgltf3URI6stringEv:
  173|  71.5k|		[[nodiscard]] auto string() const noexcept FASTGLTF_LIFETIMEBOUND {
  174|  71.5k|			return std::string_view(_uri);
  175|  71.5k|		}
_ZN8fastgltf8internal3getENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEENS0_8URIRangeE:
   60|   586k|		[[nodiscard]] inline auto get(const std::string_view view, const URIRange range) noexcept {
   61|   586k|			return view.substr(range.pos, range.len);
   62|   586k|		}
_ZN8fastgltf3URIC2Ev:
  158|   175k|		URI() noexcept = default;

_ZN8fastgltf10startsWithENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEES4_:
  315|   473k|	[[nodiscard]] inline bool startsWith(const std::string_view str, const std::string_view search) {
  316|   473k|		return str.rfind(search, 0) == 0;
  317|   473k|	}
_ZN8fastgltf3minImQrQT__XltfL0p_fL0p_RNSt3__17same_asIbEEEEERKS1_S5_S5_:
  194|  85.9k|	[[nodiscard]] constexpr const T& min(const T& a FASTGLTF_LIFETIMEBOUND, const T& b FASTGLTF_LIFETIMEBOUND) noexcept {
  195|  85.9k|		return (a < b) ? a : b;
  ------------------
  |  Branch (195:10): [True: 0, False: 85.9k]
  ------------------
  196|  85.9k|	}
_ZN8fastgltf13to_underlyingINS_8CategoryEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|  1.10M|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|  1.10M|		return static_cast<std::underlying_type_t<T>>(t);
  161|  1.10M|	}
_ZN8fastgltf13to_underlyingINS_12AccessorTypeEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|   870k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|   870k|		return static_cast<std::underlying_type_t<T>>(t);
  161|   870k|	}
_ZN8fastgltf13to_underlyingINS_13ComponentTypeEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|   735k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|   735k|		return static_cast<std::underlying_type_t<T>>(t);
  161|   735k|	}
_ZN8fastgltfanERKNS_8CategoryES2_:
  277|   368k|	FASTGLTF_EXPORT constexpr T1 operator op(const T1& a, const T2& b) noexcept { \
  278|   368k|		static_assert(std::is_enum_v<T1> && std::is_enum_v<T2>); \
  279|   368k|		return static_cast<T1>(to_underlying(a) op to_underlying(b)); \
  280|   368k|	}
_ZN8fastgltfoRERNS_8CategoryERKS0_:
  284|   184k|	FASTGLTF_EXPORT constexpr T1& operator op##=(T1& a, const T2& b) noexcept { \
  285|   184k|		static_assert(std::is_enum_v<T1> && std::is_enum_v<T2>); \
  286|   184k|		return a = static_cast<T1>(to_underlying(a) op to_underlying(b)), a; \
  287|   184k|	}
_ZN8fastgltf13to_underlyingINS_10ExtensionsEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|  2.32M|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|  2.32M|		return static_cast<std::underlying_type_t<T>>(t);
  161|  2.32M|	}
_ZN8fastgltf13to_underlyingINS_7OptionsEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|  1.41M|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|  1.41M|		return static_cast<std::underlying_type_t<T>>(t);
  161|  1.41M|	}
_ZN8fastgltfanERKNS_10ExtensionsES2_:
  277|  1.16M|	FASTGLTF_EXPORT constexpr T1 operator op(const T1& a, const T2& b) noexcept { \
  278|  1.16M|		static_assert(std::is_enum_v<T1> && std::is_enum_v<T2>); \
  279|  1.16M|		return static_cast<T1>(to_underlying(a) op to_underlying(b)); \
  280|  1.16M|	}
_ZN8fastgltfanERKNS_7OptionsES2_:
  277|   709k|	FASTGLTF_EXPORT constexpr T1 operator op(const T1& a, const T2& b) noexcept { \
  278|   709k|		static_assert(std::is_enum_v<T1> && std::is_enum_v<T2>); \
  279|   709k|		return static_cast<T1>(to_underlying(a) op to_underlying(b)); \
  280|   709k|	}
_ZN8fastgltf13to_underlyingINS_13ExportOptionsEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|   172k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|   172k|		return static_cast<std::underlying_type_t<T>>(t);
  161|   172k|	}
_ZN8fastgltfanERKNS_13ExportOptionsES2_:
  277|  86.4k|	FASTGLTF_EXPORT constexpr T1 operator op(const T1& a, const T2& b) noexcept { \
  278|  86.4k|		static_assert(std::is_enum_v<T1> && std::is_enum_v<T2>); \
  279|  86.4k|		return static_cast<T1>(to_underlying(a) op to_underlying(b)); \
  280|  86.4k|	}
_ZN8fastgltf4uabsITkNSt3__18integralElEEu15__make_unsignedIT_ES2_:
  301|   106k|	[[nodiscard]] constexpr std::make_unsigned_t<T> uabs(T val) {
  302|   106k|		if constexpr (std::is_signed_v<T>) {
  303|   106k|			using unsigned_t = std::make_unsigned_t<T>;
  304|   106k|			return (val < 0)
  ------------------
  |  Branch (304:11): [True: 0, False: 106k]
  ------------------
  305|   106k|				? static_cast<unsigned_t>(-(val + 1)) + 1
  306|   106k|				: static_cast<unsigned_t>(val);
  307|       |		} else {
  308|       |			return val;
  309|       |		}
  310|   106k|	}
_ZN8fastgltf13to_underlyingINS_12BufferTargetEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|   572k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|   572k|		return static_cast<std::underlying_type_t<T>>(t);
  161|   572k|	}
_ZN8fastgltf13to_underlyingINS_13PrimitiveTypeEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|  8.22k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|  8.22k|		return static_cast<std::underlying_type_t<T>>(t);
  161|  8.22k|	}
exporter.cpp:_ZN8fastgltf16visit_exhaustiveINS_7visitorIJZNS_8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEE3$_0ZNS3_10writeNodesES6_SB_E3$_1EEERKNSt3__17variantIJNS_3TRSENS_4math3matIfLm4ELm4EEEEEEEEDcOT_OT0_:
  257|   178k|	constexpr decltype(auto) visit_exhaustive(Visitor&& visitor, Variant&& variant) {
  258|   178k|		static_assert(is_exhaustive_visitor<Visitor, Variant>(std::make_index_sequence<std::variant_size_v<std::remove_cvref_t<Variant>>>()),
  259|   178k|			"The visitor does not include all necessary overloads for the given variant");
  260|   178k|		return std::visit(std::forward<Visitor>(visitor), std::forward<Variant>(variant));
  261|   178k|	}
exporter.cpp:_ZN8fastgltf16visit_exhaustiveINS_7visitorIJZNS_8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEE3$_2ZNS3_10writeNodesES6_SB_E3$_3EEERKNSt3__17variantIJNS_15GeometryTriggerENS_11NodeTriggerEEEEEEDcOT_OT0_:
  257|  10.2k|	constexpr decltype(auto) visit_exhaustive(Visitor&& visitor, Variant&& variant) {
  258|  10.2k|		static_assert(is_exhaustive_visitor<Visitor, Variant>(std::make_index_sequence<std::variant_size_v<std::remove_cvref_t<Variant>>>()),
  259|  10.2k|			"The visitor does not include all necessary overloads for the given variant");
  260|  10.2k|		return std::visit(std::forward<Visitor>(visitor), std::forward<Variant>(variant));
  261|  10.2k|	}
_ZN8fastgltf13to_underlyingINS_6FilterEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|   246k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|   246k|		return static_cast<std::underlying_type_t<T>>(t);
  161|   246k|	}
_ZN8fastgltf13to_underlyingINS_4WrapEQsr3stdE9is_enum_vIT_EEEu17__underlying_typeIS2_ES2_:
  159|  6.30k|	[[nodiscard]] FASTGLTF_INTRINSIC constexpr std::underlying_type_t<T> to_underlying(T t) noexcept {
  160|  6.30k|		return static_cast<std::underlying_type_t<T>>(t);
  161|  6.30k|	}
exporter.cpp:_ZN8fastgltf16visit_exhaustiveINS_7visitorIJZNS_8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEE3$_0ZNS3_11writeShapesES6_SB_E3$_1ZNS3_11writeShapesES6_SB_E3$_2ZNS3_11writeShapesES6_SB_E3$_3ZNS3_11writeShapesES6_SB_E3$_4EEERKNSt3__17variantIJNS_11SphereShapeENS_8BoxShapeENS_12CapsuleShapeENS_13CylinderShapeENS_10PlaneShapeEEEEEEDcOT_OT0_:
  257|  44.3k|	constexpr decltype(auto) visit_exhaustive(Visitor&& visitor, Variant&& variant) {
  258|  44.3k|		static_assert(is_exhaustive_visitor<Visitor, Variant>(std::make_index_sequence<std::variant_size_v<std::remove_cvref_t<Variant>>>()),
  259|  44.3k|			"The visitor does not include all necessary overloads for the given variant");
  260|  44.3k|		return std::visit(std::forward<Visitor>(visitor), std::forward<Variant>(variant));
  261|  44.3k|	}
_ZN8fastgltf6hasBitINS_13ExportOptionsES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_:
  167|  86.4k|	[[nodiscard]] constexpr bool hasBit(T flags, U bit) {
  168|  86.4k|		return (flags & bit) == bit;
  169|  86.4k|	}
_ZN8fastgltf6hasBitINS_8CategoryES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_:
  167|   368k|	[[nodiscard]] constexpr bool hasBit(T flags, U bit) {
  168|   368k|		return (flags & bit) == bit;
  169|   368k|	}
_ZN8fastgltf6hasBitINS_10ExtensionsES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_:
  167|  1.16M|	[[nodiscard]] constexpr bool hasBit(T flags, U bit) {
  168|  1.16M|		return (flags & bit) == bit;
  169|  1.16M|	}
_ZN8fastgltf6hasBitINS_7OptionsES1_Qaaooaasr3stdE9is_enum_vIT_Esr3stdE8integralIu17__underlying_typeIS2_EEsr3stdE8integralIS2_ErQS2_T0__XanfL0p_fL0p0_RNSt3__17same_asIS4_EEEEEbS2_S4_:
  167|   709k|	[[nodiscard]] constexpr bool hasBit(T flags, U bit) {
  168|   709k|		return (flags & bit) == bit;
  169|   709k|	}
_ZN8fastgltf3maxIfQrQT__XgtfL0p_fL0p_RNSt3__17same_asIbEEEEERKS1_S5_S5_:
  186|  62.4k|	[[nodiscard]] constexpr const T& max(const T& a FASTGLTF_LIFETIMEBOUND, const T& b FASTGLTF_LIFETIMEBOUND) noexcept {
  187|  62.4k|		return (a > b) ? a : b;
  ------------------
  |  Branch (187:10): [True: 4.63k, False: 57.8k]
  ------------------
  188|  62.4k|	}

_ZN8fastgltf6base6414decode_inplaceENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEPhm:
   38|  18.3k|bool fg::base64::decode_inplace(const std::string_view encoded, std::uint8_t* output, const std::size_t padding) {
   39|  18.3k|	if (encoded.size() < 4 || encoded.size() % 4 != 0)
  ------------------
  |  Branch (39:6): [True: 0, False: 18.3k]
  |  Branch (39:28): [True: 0, False: 18.3k]
  ------------------
   40|      0|		return false;
   41|  18.3k|	const auto output_size = getDecodedSize(encoded.size(), padding);
   42|  18.3k|	const auto result = simdutf::base64_to_binary(encoded.data(), encoded.size(), reinterpret_cast<char*>(output));
   43|  18.3k|	return result.is_ok() && result.count == output_size;
  ------------------
  |  Branch (43:9): [True: 18.0k, False: 235]
  |  Branch (43:27): [True: 17.9k, False: 131]
  ------------------
   44|  18.3k|}

_ZN8fastgltf8ExporterC2Ev:
  106|  45.4k|	fg::Exporter::Exporter() : _impl(std::make_unique<fg::Exporter::impl>()) {}
_ZN8fastgltf8ExporterD2Ev:
  107|  45.4k|	fg::Exporter::~Exporter() = default;
_ZN8fastgltf8Exporter13writeGltfJsonERKNS_5AssetENS_13ExportOptionsE:
  133|  45.4k|	fg::Expected<fg::ExportResult<std::string>> fg::Exporter::writeGltfJson(const Asset &asset, ExportOptions options) {
  134|  45.4k|		return _impl->writeGltfJson(asset, options);
  135|  45.4k|	}
_ZN8fastgltf8Exporter4impl14writeAccessorsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  391|  7.07k|void fg::Exporter::impl::writeAccessors(const Asset& asset, simdjson::builder::string_builder& builder) {
  392|  7.07k|	if (asset.accessors.empty())
  ------------------
  |  Branch (392:6): [True: 0, False: 7.07k]
  ------------------
  393|      0|		return;
  394|       |
  395|  7.07k|	auto accessors = scoped_array<"accessors">(builder);
  396|       |
  397|   162k|	for (auto it = asset.accessors.begin(); it != asset.accessors.end(); ++it) {
  ------------------
  |  Branch (397:42): [True: 154k, False: 7.07k]
  ------------------
  398|   154k|		if (it != asset.accessors.begin())
  ------------------
  |  Branch (398:7): [True: 147k, False: 7.07k]
  ------------------
  399|   147k|			builder.append_comma();
  400|       |
  401|   154k|		auto obj = scoped_object(builder);
  402|       |
  403|   154k|		if (it->byteOffset != 0) {
  ------------------
  |  Branch (403:7): [True: 33.1k, False: 121k]
  ------------------
  404|  33.1k|			builder.append_key_value<"byteOffset">(it->byteOffset);
  405|  33.1k|			builder.append_comma();
  406|  33.1k|		}
  407|       |
  408|   154k|		builder.append_key_value<"count">(it->count);
  409|   154k|		builder.append_comma();
  410|   154k|		builder.append_key_value<"type">(internal::getAccessorTypeName(it->type));
  411|   154k|		builder.append_comma();
  412|   154k|		builder.append_key_value<"componentType">(getGLComponentType(it->componentType));
  413|       |
  414|   154k|		if (it->normalized) {
  ------------------
  |  Branch (414:7): [True: 4.85k, False: 150k]
  ------------------
  415|  4.85k|			builder.append_comma();
  416|  4.85k|			append_const_key_value<"normalized", true>(builder);
  417|  4.85k|		}
  418|       |
  419|   154k|		if (it->bufferViewIndex.has_value()) {
  ------------------
  |  Branch (419:7): [True: 107k, False: 47.4k]
  ------------------
  420|   107k|			builder.append_comma();
  421|   107k|			builder.append_key_value<"bufferView">(it->bufferViewIndex.value());
  422|   107k|		}
  423|       |
  424|   154k|		if (it->sparse.has_value()) {
  ------------------
  |  Branch (424:7): [True: 14.2k, False: 140k]
  ------------------
  425|  14.2k|			builder.append_comma();
  426|       |
  427|  14.2k|			auto sparse_obj = scoped_object<"sparse">(builder);
  428|  14.2k|			const auto& sparse = *it->sparse;
  429|       |
  430|  14.2k|			builder.append_key_value<"count">(sparse.count);
  431|       |
  432|  14.2k|			{
  433|  14.2k|				builder.append_comma();
  434|  14.2k|				auto indices = scoped_object<"indices">(builder);
  435|  14.2k|				builder.append_key_value<"bufferView">(sparse.indicesBufferView);
  436|  14.2k|				builder.append_comma();
  437|  14.2k|				if (sparse.indicesByteOffset != 0) {
  ------------------
  |  Branch (437:9): [True: 6.85k, False: 7.41k]
  ------------------
  438|  6.85k|					builder.append_key_value<"byteOffset">(sparse.indicesByteOffset);
  439|  6.85k|					builder.append_comma();
  440|  6.85k|				}
  441|  14.2k|				builder.append_key_value<"componentType">(getGLComponentType(sparse.indexComponentType));
  442|  14.2k|			}
  443|       |
  444|  14.2k|			{
  445|  14.2k|				builder.append_comma();
  446|  14.2k|				auto indices = scoped_object<"values">(builder);
  447|  14.2k|				builder.append_key_value<"bufferView">(sparse.valuesBufferView);
  448|  14.2k|				if (sparse.valuesByteOffset != 0) {
  ------------------
  |  Branch (448:9): [True: 6.52k, False: 7.74k]
  ------------------
  449|  6.52k|					builder.append_comma();
  450|  6.52k|					builder.append_key_value<"byteOffset">(sparse.valuesByteOffset);
  451|  6.52k|				}
  452|  14.2k|			}
  453|  14.2k|		}
  454|       |
  455|   154k|		writeMinMax<"max">(builder, it->max);
  456|   154k|		writeMinMax<"min">(builder, it->min);
  457|       |
  458|   154k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (458:7): [True: 0, False: 154k]
  ------------------
  459|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.accessors.begin(), it)), Category::Accessors, userPointer);
  460|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (460:8): [True: 0, False: 0]
  ------------------
  461|      0|				builder.append_comma();
  462|      0|				append_raw_key_value<"extras">(builder, *extras);
  463|      0|			}
  464|      0|		}
  465|       |
  466|   154k|		if (!it->name.empty()) {
  ------------------
  |  Branch (466:7): [True: 22.9k, False: 131k]
  ------------------
  467|  22.9k|			builder.append_comma();
  468|  22.9k|			builder.append_key_value<"name">(it->name);
  469|  22.9k|		}
  470|   154k|	}
  471|  7.07k|}
_ZN8fastgltf8Exporter4impl15writeAnimationsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  473|    643|void fg::Exporter::impl::writeAnimations(const Asset& asset, simdjson::builder::string_builder& builder) {
  474|    643|	if (asset.animations.empty())
  ------------------
  |  Branch (474:6): [True: 0, False: 643]
  ------------------
  475|      0|		return;
  476|       |
  477|    643|	auto animations = scoped_array<"animations">(builder);
  478|       |
  479|  22.7k|	for (auto it = asset.animations.begin(); it != asset.animations.end(); ++it) {
  ------------------
  |  Branch (479:43): [True: 22.0k, False: 643]
  ------------------
  480|  22.0k|		if (it != asset.animations.begin())
  ------------------
  |  Branch (480:7): [True: 21.4k, False: 643]
  ------------------
  481|  21.4k|			builder.append_comma();
  482|       |
  483|  22.0k|		auto obj = scoped_object(builder);
  484|       |
  485|  22.0k|		{
  486|  22.0k|			auto channels = scoped_array<"channels">(builder);
  487|  50.7k|			for (auto ci = it->channels.begin(); ci != it->channels.end(); ++ci) {
  ------------------
  |  Branch (487:41): [True: 28.6k, False: 22.0k]
  ------------------
  488|  28.6k|				if (ci != it->channels.begin())
  ------------------
  |  Branch (488:9): [True: 6.58k, False: 22.0k]
  ------------------
  489|  6.58k|					builder.append_comma();
  490|       |
  491|  28.6k|				auto channel_obj = scoped_object(builder);
  492|  28.6k|				builder.append_key_value<"sampler">(ci->samplerIndex);
  493|  28.6k|				builder.append_comma();
  494|       |
  495|  28.6k|				{
  496|  28.6k|					auto target_obj = scoped_object<"target">(builder);
  497|  28.6k|					if (ci->nodeIndex.has_value()) {
  ------------------
  |  Branch (497:10): [True: 27.7k, False: 925]
  ------------------
  498|  27.7k|						builder.append_key_value<"node">(ci->nodeIndex.value());
  499|  27.7k|						builder.append_comma();
  500|  27.7k|					}
  501|       |
  502|  28.6k|					std::string_view path;
  503|  28.6k|					switch (ci->path) {
  ------------------
  |  Branch (503:14): [True: 25.4k, False: 3.18k]
  ------------------
  504|  5.49k|					case fg::AnimationPath::Translation:
  ------------------
  |  Branch (504:6): [True: 5.49k, False: 23.1k]
  ------------------
  505|  5.49k|						path = "translation";
  506|  5.49k|						break;
  507|  13.6k|					case fg::AnimationPath::Rotation:
  ------------------
  |  Branch (507:6): [True: 13.6k, False: 15.0k]
  ------------------
  508|  13.6k|						path = "rotation";
  509|  13.6k|						break;
  510|  6.18k|					case fg::AnimationPath::Scale:
  ------------------
  |  Branch (510:6): [True: 6.18k, False: 22.4k]
  ------------------
  511|  6.18k|						path = "scale";
  512|  6.18k|						break;
  513|    146|					case fg::AnimationPath::Weights:
  ------------------
  |  Branch (513:6): [True: 146, False: 28.5k]
  ------------------
  514|    146|						path = "weights";
  515|    146|						break;
  516|  28.6k|					}
  517|  28.6k|					builder.append_key_value<"path">(path);
  518|  28.6k|				}
  519|  28.6k|			}
  520|  22.0k|		}
  521|  22.0k|		builder.append_comma();
  522|  22.0k|		{
  523|  22.0k|			auto samplers = scoped_array<"samplers">(builder);
  524|  54.6k|			for (auto si = it->samplers.begin(); si != it->samplers.end(); ++si) {
  ------------------
  |  Branch (524:41): [True: 32.5k, False: 22.0k]
  ------------------
  525|  32.5k|				if (si != it->samplers.begin())
  ------------------
  |  Branch (525:9): [True: 10.4k, False: 22.0k]
  ------------------
  526|  10.4k|					builder.append_comma();
  527|       |
  528|  32.5k|				auto sampler_obj = scoped_object(builder);
  529|       |
  530|  32.5k|				builder.append_key_value<"input">(si->inputAccessor);
  531|  32.5k|				builder.append_comma();
  532|       |
  533|  32.5k|				if (si->interpolation != fg::AnimationInterpolation::Linear) {
  ------------------
  |  Branch (533:9): [True: 13.6k, False: 18.9k]
  ------------------
  534|  13.6k|					if (si->interpolation == fg::AnimationInterpolation::Step) {
  ------------------
  |  Branch (534:10): [True: 7.40k, False: 6.19k]
  ------------------
  535|  7.40k|						append_const_key_value<"interpolation", "STEP">(builder);
  536|  7.40k|					} else {
  537|  6.19k|						append_const_key_value<"interpolation", "CUBICSPLINE">(builder);
  538|  6.19k|					}
  539|  13.6k|					builder.append_comma();
  540|  13.6k|				}
  541|       |
  542|  32.5k|				builder.append_key_value<"output">(si->outputAccessor);
  543|  32.5k|			}
  544|  22.0k|		}
  545|       |
  546|  22.0k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (546:7): [True: 0, False: 22.0k]
  ------------------
  547|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.animations.begin(), it)), Category::Animations, userPointer);
  548|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (548:8): [True: 0, False: 0]
  ------------------
  549|      0|				builder.append_comma();
  550|      0|				append_raw_key_value<"extras">(builder, *extras);
  551|      0|			}
  552|      0|		}
  553|       |
  554|  22.0k|		if (!it->name.empty()) {
  ------------------
  |  Branch (554:7): [True: 21.1k, False: 944]
  ------------------
  555|  21.1k|			builder.append_comma();
  556|  21.1k|			builder.append_key_value<"name">(it->name);
  557|  21.1k|		}
  558|  22.0k|	}
  559|    643|}
_ZN8fastgltf8Exporter4impl12writeBuffersERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  561|  8.57k|fg::Error fg::Exporter::impl::writeBuffers(const Asset& asset, simdjson::builder::string_builder& builder) {
  562|  8.57k|	if (asset.buffers.empty())
  ------------------
  |  Branch (562:6): [True: 0, False: 8.57k]
  ------------------
  563|      0|		return Error::None;
  564|       |
  565|  8.57k|	auto buffers = scoped_array<"buffers">(builder);
  566|       |
  567|  51.3k|	for (auto it = asset.buffers.begin(); it != asset.buffers.end(); ++it) {
  ------------------
  |  Branch (567:40): [True: 42.7k, False: 8.57k]
  ------------------
  568|  42.7k|		if (it != asset.buffers.begin())
  ------------------
  |  Branch (568:7): [True: 34.1k, False: 8.57k]
  ------------------
  569|  34.1k|			builder.append_comma();
  570|       |
  571|  42.7k|		auto obj = scoped_object(builder);
  572|       |
  573|  42.7k|		auto bufferIdx = uabs(std::distance(asset.buffers.begin(), it));
  574|  42.7k|		const auto error = std::visit(visitor {
  575|  42.7k|			[&](auto&) {
  576|       |				// Covers BufferView and CustomBuffer.
  577|  42.7k|				return Error::InvalidGltf;
  578|  42.7k|			},
  579|  42.7k|			[&]([[maybe_unused]] const sources::Array& vector) {
  580|  42.7k|				if (bufferIdx == 0 && exportingBinary) {
  581|  42.7k|					bufferPaths.emplace_back(std::nullopt);
  582|  42.7k|					return Error::None;
  583|  42.7k|				}
  584|  42.7k|				auto path = getBufferFilePath(asset, bufferIdx);
  585|  42.7k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  586|  42.7k|				builder.append_comma();
  587|  42.7k|				bufferPaths.emplace_back(path);
  588|  42.7k|				return Error::None;
  589|  42.7k|			},
  590|  42.7k|			[&]([[maybe_unused]] const sources::Vector& vector) {
  591|  42.7k|				if (bufferIdx == 0 && exportingBinary) {
  592|  42.7k|					bufferPaths.emplace_back(std::nullopt);
  593|  42.7k|					return Error::None;
  594|  42.7k|				}
  595|  42.7k|				auto path = getBufferFilePath(asset, bufferIdx);
  596|  42.7k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  597|  42.7k|				builder.append_comma();
  598|  42.7k|				bufferPaths.emplace_back(path);
  599|  42.7k|				return Error::None;
  600|  42.7k|			},
  601|  42.7k|			[&]([[maybe_unused]] const sources::ByteView& view) {
  602|  42.7k|				if (bufferIdx == 0 && exportingBinary) {
  603|  42.7k|					bufferPaths.emplace_back(std::nullopt);
  604|  42.7k|					return Error::None;
  605|  42.7k|				}
  606|  42.7k|				auto path = getBufferFilePath(asset, bufferIdx);
  607|  42.7k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  608|  42.7k|				builder.append_comma();
  609|  42.7k|				bufferPaths.emplace_back(path);
  610|  42.7k|				return Error::None;
  611|  42.7k|			},
  612|  42.7k|			[&](const sources::URI& uri) {
  613|  42.7k|				builder.append_key_value<"uri">(uri.uri->string());
  614|  42.7k|				builder.append_comma();
  615|  42.7k|				bufferPaths.emplace_back(std::nullopt);
  616|  42.7k|				return Error::None;
  617|  42.7k|			},
  618|  42.7k|			[&]([[maybe_unused]] const sources::Fallback& fallback) {
  619|  42.7k|				{
  620|  42.7k|					auto extensions_obj = scoped_object<"extensions">(builder);
  621|  42.7k|					auto meshopt_obj = scoped_object<"EXT_meshopt_compression">(builder);
  622|  42.7k|					append_const_key_value<"fallback", true>(builder);
  623|  42.7k|				}
  624|  42.7k|				builder.append_comma();
  625|  42.7k|				bufferPaths.emplace_back(std::nullopt);
  626|  42.7k|				return Error::None;
  627|  42.7k|			},
  628|  42.7k|		}, it->data);
  629|  42.7k|		if (error != Error::None) [[unlikely]]
  ------------------
  |  Branch (629:7): [True: 0, False: 42.7k]
  ------------------
  630|      0|			return error;
  631|       |
  632|  42.7k|		builder.append_key_value<"byteLength">(it->byteLength);
  633|       |
  634|  42.7k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (634:7): [True: 0, False: 42.7k]
  ------------------
  635|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.buffers.begin(), it)), Category::Buffers, userPointer);
  636|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (636:8): [True: 0, False: 0]
  ------------------
  637|      0|				builder.append_comma();
  638|      0|				append_raw_key_value<"extras">(builder, *extras);
  639|      0|			}
  640|      0|		}
  641|       |
  642|  42.7k|		if (!it->name.empty()) {
  ------------------
  |  Branch (642:7): [True: 11.9k, False: 30.7k]
  ------------------
  643|  11.9k|			builder.append_comma();
  644|  11.9k|			builder.append_key_value<"name">(it->name);
  645|  11.9k|		}
  646|  42.7k|	}
  647|       |
  648|  8.57k|	return Error::None;
  649|  8.57k|}
_ZN8fastgltf8Exporter4impl16writeBufferViewsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  651|  5.21k|void fg::Exporter::impl::writeBufferViews(const Asset& asset, simdjson::builder::string_builder& builder) {
  652|  5.21k|	if (asset.bufferViews.empty())
  ------------------
  |  Branch (652:6): [True: 0, False: 5.21k]
  ------------------
  653|      0|		return;
  654|       |
  655|  5.21k|	auto bufferViews = scoped_array<"bufferViews">(builder);
  656|       |
  657|   136k|	for (auto it = asset.bufferViews.begin(); it != asset.bufferViews.end(); ++it) {
  ------------------
  |  Branch (657:44): [True: 130k, False: 5.21k]
  ------------------
  658|   130k|		if (it != asset.bufferViews.begin())
  ------------------
  |  Branch (658:7): [True: 125k, False: 5.21k]
  ------------------
  659|   125k|			builder.append_comma();
  660|       |
  661|   130k|		auto obj = scoped_object(builder);
  662|       |
  663|   130k|		builder.append_key_value<"buffer">(it->bufferIndex);
  664|   130k|		builder.append_comma();
  665|   130k|		builder.append_key_value<"byteLength">(it->byteLength);
  666|       |
  667|   130k|		if (it->byteOffset != 0) {
  ------------------
  |  Branch (667:7): [True: 98.2k, False: 32.7k]
  ------------------
  668|  98.2k|			builder.append_comma();
  669|  98.2k|			builder.append_key_value<"byteOffset">(it->byteOffset);
  670|  98.2k|		}
  671|       |
  672|   130k|		if (it->byteStride.has_value()) {
  ------------------
  |  Branch (672:7): [True: 15.1k, False: 115k]
  ------------------
  673|  15.1k|			builder.append_comma();
  674|  15.1k|			builder.append_key_value<"byteStride">(it->byteStride.value());
  675|  15.1k|		}
  676|       |
  677|   130k|		if (it->target.has_value()) {
  ------------------
  |  Branch (677:7): [True: 67.5k, False: 63.4k]
  ------------------
  678|  67.5k|			builder.append_comma();
  679|  67.5k|			builder.append_key_value<"target">(to_underlying(it->target.value()));
  680|  67.5k|		}
  681|       |
  682|   130k|		if (it->meshoptCompression.has_value()) {
  ------------------
  |  Branch (682:7): [True: 21.8k, False: 109k]
  ------------------
  683|  21.8k|			builder.append_comma();
  684|       |
  685|  21.8k|			auto extensions = scoped_object<"extensions">(builder);
  686|  21.8k|			auto meshopt_object = scoped_object<"EXT_meshopt_compression">(builder);
  687|       |
  688|  21.8k|			const auto& meshopt = *it->meshoptCompression;
  689|  21.8k|			builder.append_key_value<"buffer">(meshopt.bufferIndex);
  690|       |
  691|  21.8k|			if (meshopt.byteOffset != 0) {
  ------------------
  |  Branch (691:8): [True: 15.4k, False: 6.43k]
  ------------------
  692|  15.4k|				builder.append_comma();
  693|  15.4k|				builder.append_key_value<"byteOffset">(meshopt.byteOffset);
  694|  15.4k|			}
  695|       |
  696|  21.8k|			builder.append_comma();
  697|  21.8k|			builder.append_key_value<"byteLength">(meshopt.byteLength);
  698|  21.8k|			builder.append_comma();
  699|  21.8k|			builder.append_key_value<"byteStride">(meshopt.byteStride);
  700|  21.8k|			builder.append_comma();
  701|  21.8k|			builder.append_key_value<"count">(meshopt.count);
  702|       |
  703|  21.8k|			{
  704|  21.8k|				builder.append_comma();
  705|  21.8k|				builder.escape_and_append_with_quotes<"mode">();
  706|  21.8k|				builder.append_colon();
  707|  21.8k|				switch (meshopt.mode) {
  ------------------
  |  Branch (707:13): [True: 21.8k, False: 0]
  ------------------
  708|  15.1k|					case MeshoptCompressionMode::Attributes:
  ------------------
  |  Branch (708:6): [True: 15.1k, False: 6.70k]
  ------------------
  709|  15.1k|						builder.escape_and_append_with_quotes<"ATTRIBUTES">();
  710|  15.1k|						break;
  711|  6.34k|					case MeshoptCompressionMode::Triangles:
  ------------------
  |  Branch (711:6): [True: 6.34k, False: 15.4k]
  ------------------
  712|  6.34k|						builder.escape_and_append_with_quotes<"TRIANGLES">();
  713|  6.34k|						break;
  714|    367|					case MeshoptCompressionMode::Indices:
  ------------------
  |  Branch (714:6): [True: 367, False: 21.4k]
  ------------------
  715|    367|						builder.escape_and_append_with_quotes<"INDICES">();
  716|    367|						break;
  717|  21.8k|				}
  718|  21.8k|			}
  719|       |
  720|  21.8k|			if (meshopt.filter != MeshoptCompressionFilter::None) {
  ------------------
  |  Branch (720:8): [True: 4.30k, False: 17.5k]
  ------------------
  721|  4.30k|				builder.append_comma();
  722|  4.30k|				builder.escape_and_append_with_quotes<"filter">();
  723|  4.30k|				builder.append_colon();
  724|  4.30k|				switch (meshopt.filter) {
  ------------------
  |  Branch (724:13): [True: 4.30k, False: 0]
  ------------------
  725|      0|					case MeshoptCompressionFilter::None:
  ------------------
  |  Branch (725:6): [True: 0, False: 4.30k]
  ------------------
  726|      0|						builder.escape_and_append_with_quotes<"NONE">();
  727|      0|						break;
  728|    859|					case MeshoptCompressionFilter::Exponential:
  ------------------
  |  Branch (728:6): [True: 859, False: 3.44k]
  ------------------
  729|    859|						builder.escape_and_append_with_quotes<"EXPONENTIAL">();
  730|    859|						break;
  731|    151|					case MeshoptCompressionFilter::Quaternion:
  ------------------
  |  Branch (731:6): [True: 151, False: 4.15k]
  ------------------
  732|    151|						builder.escape_and_append_with_quotes<"QUATERNION">();
  733|    151|						break;
  734|  3.02k|					case MeshoptCompressionFilter::Octahedral:
  ------------------
  |  Branch (734:6): [True: 3.02k, False: 1.27k]
  ------------------
  735|  3.02k|						builder.escape_and_append_with_quotes<"OCTAHEDRAL">();
  736|  3.02k|						break;
  737|    265|					case MeshoptCompressionFilter::Color:
  ------------------
  |  Branch (737:6): [True: 265, False: 4.03k]
  ------------------
  738|    265|						builder.escape_and_append_with_quotes<"COLOR">();
  739|    265|						break;
  740|  4.30k|				}
  741|  4.30k|			}
  742|  21.8k|		}
  743|       |
  744|   130k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (744:7): [True: 0, False: 130k]
  ------------------
  745|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.bufferViews.begin(), it)), Category::BufferViews, userPointer);
  746|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (746:8): [True: 0, False: 0]
  ------------------
  747|      0|				builder.append_comma();
  748|      0|				append_raw_key_value<"extras">(builder, *extras);
  749|      0|			}
  750|      0|		}
  751|       |
  752|   130k|		if (!it->name.empty()) {
  ------------------
  |  Branch (752:7): [True: 7.37k, False: 123k]
  ------------------
  753|  7.37k|			builder.append_comma();
  754|  7.37k|			builder.append_key_value<"name">(it->name);
  755|  7.37k|		}
  756|   130k|	}
  757|  5.21k|}
_ZN8fastgltf8Exporter4impl12writeCamerasERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  759|    827|void fg::Exporter::impl::writeCameras(const Asset& asset, simdjson::builder::string_builder& builder) {
  760|    827|	if (asset.cameras.empty())
  ------------------
  |  Branch (760:6): [True: 0, False: 827]
  ------------------
  761|      0|		return;
  762|       |
  763|    827|	auto cameras = scoped_array<"cameras">(builder);
  764|       |
  765|  18.1k|	for (auto it = asset.cameras.begin(); it != asset.cameras.end(); ++it) {
  ------------------
  |  Branch (765:40): [True: 17.2k, False: 827]
  ------------------
  766|  17.2k|		if (it != asset.cameras.begin())
  ------------------
  |  Branch (766:7): [True: 16.4k, False: 827]
  ------------------
  767|  16.4k|			builder.append_comma();
  768|       |
  769|  17.2k|		auto obj = scoped_object(builder);
  770|       |
  771|  17.2k|		std::visit(visitor {
  772|  17.2k|			[](auto&) {},
  773|  17.2k|			[&](const Camera::Perspective& perspective) {
  774|  17.2k|				append_const_key_value<"type", "perspective">(builder);
  775|  17.2k|				builder.append_comma();
  776|       |
  777|  17.2k|				{
  778|  17.2k|					auto perspective_obj = scoped_object<"perspective">(builder);
  779|       |
  780|  17.2k|					if (perspective.aspectRatio.has_value()) {
  781|  17.2k|						builder.append_key_value<"aspectRatio">(perspective.aspectRatio.value());
  782|  17.2k|						builder.append_comma();
  783|  17.2k|					}
  784|       |
  785|  17.2k|					builder.append_key_value<"yfov">(perspective.yfov);
  786|  17.2k|					builder.append_comma();
  787|       |
  788|  17.2k|					if (perspective.zfar.has_value()) {
  789|  17.2k|						builder.append_key_value<"zfar">(perspective.zfar.value());
  790|  17.2k|						builder.append_comma();
  791|  17.2k|					}
  792|       |
  793|  17.2k|					builder.append_key_value<"znear">(perspective.znear);
  794|  17.2k|				}
  795|  17.2k|			},
  796|  17.2k|			[&](const Camera::Orthographic& orthographic) {
  797|  17.2k|				append_const_key_value<"type", "orthographic">(builder);
  798|  17.2k|				builder.append_comma();
  799|       |
  800|  17.2k|				{
  801|  17.2k|					auto perspective_obj = scoped_object<"orthographic">(builder);
  802|       |
  803|  17.2k|					builder.append_key_value<"xmag">(orthographic.xmag);
  804|  17.2k|					builder.append_comma();
  805|  17.2k|					builder.append_key_value<"ymag">(orthographic.ymag);
  806|  17.2k|					builder.append_comma();
  807|  17.2k|					builder.append_key_value<"zfar">(orthographic.zfar);
  808|  17.2k|					builder.append_comma();
  809|  17.2k|					builder.append_key_value<"znear">(orthographic.znear);
  810|  17.2k|				}
  811|  17.2k|			}
  812|  17.2k|		}, it->camera);
  813|       |
  814|  17.2k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (814:7): [True: 0, False: 17.2k]
  ------------------
  815|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.cameras.begin(), it)), Category::Cameras, userPointer);
  816|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (816:8): [True: 0, False: 0]
  ------------------
  817|      0|				builder.append_comma();
  818|      0|				append_raw_key_value<"extras">(builder, *extras);
  819|      0|			}
  820|      0|		}
  821|       |
  822|  17.2k|		if (!it->name.empty()) {
  ------------------
  |  Branch (822:7): [True: 7.75k, False: 9.52k]
  ------------------
  823|  7.75k|			builder.append_comma();
  824|  7.75k|			builder.append_key_value<"name">(it->name);
  825|  7.75k|		}
  826|  17.2k|	}
  827|    827|}
_ZN8fastgltf8Exporter4impl11writeImagesERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  829|  8.27k|fg::Error fg::Exporter::impl::writeImages(const Asset& asset, simdjson::builder::string_builder& builder) {
  830|  8.27k|	if (asset.images.empty())
  ------------------
  |  Branch (830:6): [True: 0, False: 8.27k]
  ------------------
  831|      0|		return Error::None;
  832|       |
  833|  8.27k|	auto images = scoped_array<"images">(builder);
  834|       |
  835|  71.8k|	for (auto it = asset.images.begin(); it != asset.images.end(); ++it) {
  ------------------
  |  Branch (835:39): [True: 63.6k, False: 8.27k]
  ------------------
  836|  63.6k|		if (it != asset.images.begin())
  ------------------
  |  Branch (836:7): [True: 55.3k, False: 8.27k]
  ------------------
  837|  55.3k|			builder.append_comma();
  838|       |
  839|  63.6k|		auto obj = scoped_object(builder);
  840|       |
  841|  63.6k|		auto imageIdx = uabs(std::distance(asset.images.begin(), it));
  842|  63.6k|		const auto error = std::visit(visitor {
  843|  63.6k|			[&](auto&) {
  844|  63.6k|				return Error::InvalidGltf;
  845|  63.6k|			},
  846|  63.6k|			[&](const sources::BufferView& bufferView) {
  847|  63.6k|				builder.append_key_value<"bufferView">(bufferView.bufferViewIndex);
  848|  63.6k|				builder.append_comma();
  849|  63.6k|				builder.append_key_value<"mimeType">(internal::getMimeTypeString(bufferView.mimeType));
  850|  63.6k|				imagePaths.emplace_back(std::nullopt);
  851|  63.6k|				return Error::None;
  852|  63.6k|			},
  853|  63.6k|			[&](const sources::Array& vector) {
  854|  63.6k|				auto path = getImageFilePath(asset, imageIdx, vector.mimeType);
  855|  63.6k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  856|  63.6k|				if (vector.mimeType != MimeType::None) {
  857|  63.6k|					builder.append_comma();
  858|  63.6k|					builder.append_key_value<"mimeType">(internal::getMimeTypeString(vector.mimeType));
  859|  63.6k|				}
  860|  63.6k|				imagePaths.emplace_back(path);
  861|  63.6k|				return Error::None;
  862|  63.6k|			},
  863|  63.6k|			[&](const sources::Vector& vector) {
  864|  63.6k|				auto path = getImageFilePath(asset, imageIdx, vector.mimeType);
  865|  63.6k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  866|  63.6k|				if (vector.mimeType != MimeType::None) {
  867|  63.6k|					builder.append_comma();
  868|  63.6k|					builder.append_key_value<"mimeType">(internal::getMimeTypeString(vector.mimeType));
  869|  63.6k|				}
  870|  63.6k|				imagePaths.emplace_back(path);
  871|  63.6k|				return Error::None;
  872|  63.6k|			},
  873|  63.6k|			[&](const sources::URI& uri) {
  874|  63.6k|				builder.append_key_value<"uri">(uri.uri->string());
  875|  63.6k|				if (uri.mimeType != MimeType::None) {
  876|  63.6k|					builder.append_comma();
  877|  63.6k|					builder.append_key_value<"mimeType">(internal::getMimeTypeString(uri.mimeType));
  878|  63.6k|				}
  879|  63.6k|				imagePaths.emplace_back(std::nullopt);
  880|  63.6k|				return Error::None;
  881|  63.6k|			},
  882|  63.6k|		}, it->data);
  883|  63.6k|		if (error != Error::None) [[unlikely]]
  ------------------
  |  Branch (883:7): [True: 0, False: 63.6k]
  ------------------
  884|      0|			return error;
  885|       |
  886|  63.6k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (886:7): [True: 0, False: 63.6k]
  ------------------
  887|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.images.begin(), it)), Category::Images, userPointer);
  888|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (888:8): [True: 0, False: 0]
  ------------------
  889|      0|				builder.append_comma();
  890|      0|				append_raw_key_value<"extras">(builder, *extras);
  891|      0|			}
  892|      0|		}
  893|       |
  894|  63.6k|		if (!it->name.empty()) {
  ------------------
  |  Branch (894:7): [True: 20.1k, False: 43.4k]
  ------------------
  895|  20.1k|			builder.append_comma();
  896|  20.1k|			builder.append_key_value<"name">(it->name);
  897|  20.1k|		}
  898|  63.6k|	}
  899|       |
  900|  8.27k|	return Error::None;
  901|  8.27k|}
_ZN8fastgltf8Exporter4impl11writeLightsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
  903|    874|void fg::Exporter::impl::writeLights(const Asset& asset, simdjson::builder::string_builder& builder) {
  904|    874|	if (asset.lights.empty())
  ------------------
  |  Branch (904:6): [True: 0, False: 874]
  ------------------
  905|      0|		return;
  906|       |
  907|    874|	auto lights_punctual = scoped_object<"KHR_lights_punctual">(builder);
  908|    874|	auto lights = scoped_array<"lights">(builder);
  909|       |
  910|  23.0k|	for (auto it = asset.lights.begin(); it != asset.lights.end(); ++it) {
  ------------------
  |  Branch (910:39): [True: 22.1k, False: 874]
  ------------------
  911|  22.1k|		if (it != asset.lights.begin())
  ------------------
  |  Branch (911:7): [True: 21.2k, False: 874]
  ------------------
  912|  21.2k|			builder.append_comma();
  913|       |
  914|  22.1k|		auto obj = scoped_object(builder);
  915|       |
  916|       |		// [1.0f, 1.0f, 1.0f] is the default.
  917|  22.1k|		if (!(it->color[0] == 1.0f && it->color[1] == 1.0f && it->color[2] == 1.0f)) {
  ------------------
  |  Branch (917:9): [True: 18.8k, False: 3.23k]
  |  Branch (917:33): [True: 15.1k, False: 3.72k]
  |  Branch (917:57): [True: 14.1k, False: 992]
  ------------------
  918|  7.95k|			append_key_range<"color">(builder, it->color);
  919|  7.95k|			builder.append_comma();
  920|  7.95k|		}
  921|       |
  922|  22.1k|		if (it->intensity != 1.0f) {
  ------------------
  |  Branch (922:7): [True: 9.17k, False: 12.9k]
  ------------------
  923|  9.17k|			builder.append_key_value<"intensity">(it->intensity);
  924|  9.17k|			builder.append_comma();
  925|  9.17k|		}
  926|       |
  927|  22.1k|		switch (it->type) {
  ------------------
  |  Branch (927:11): [True: 22.1k, False: 0]
  ------------------
  928|    428|			case LightType::Directional: {
  ------------------
  |  Branch (928:4): [True: 428, False: 21.6k]
  ------------------
  929|    428|				append_const_key_value<"type", "directional">(builder);
  930|    428|				break;
  931|      0|			}
  932|  5.69k|			case LightType::Spot: {
  ------------------
  |  Branch (932:4): [True: 5.69k, False: 16.4k]
  ------------------
  933|  5.69k|				append_const_key_value<"type", "spot">(builder);
  934|  5.69k|				break;
  935|      0|			}
  936|  16.0k|			case LightType::Point: {
  ------------------
  |  Branch (936:4): [True: 16.0k, False: 6.12k]
  ------------------
  937|  16.0k|				append_const_key_value<"type", "point">(builder);
  938|  16.0k|				break;
  939|      0|			}
  940|  22.1k|		}
  941|       |
  942|  22.1k|		if (it->range.has_value()) {
  ------------------
  |  Branch (942:7): [True: 8.88k, False: 13.2k]
  ------------------
  943|  8.88k|			builder.append_comma();
  944|  8.88k|			builder.append_key_value<"range">(it->range.value());
  945|  8.88k|		}
  946|       |
  947|       |		// Spot cone angles live in a nested "spot" object per
  948|       |		// KHR_lights_punctual (the parser reads them from there too).
  949|  22.1k|		if (it->type == LightType::Spot && (it->innerConeAngle.has_value() || it->outerConeAngle.has_value())) {
  ------------------
  |  Branch (949:7): [True: 5.69k, False: 16.4k]
  |  Branch (949:39): [True: 5.69k, False: 0]
  |  Branch (949:73): [True: 0, False: 0]
  ------------------
  950|  5.69k|			builder.append_comma();
  951|       |
  952|  5.69k|			auto spot_obj = scoped_object<"spot">(builder);
  953|  5.69k|			if (it->innerConeAngle.has_value()) {
  ------------------
  |  Branch (953:8): [True: 5.69k, False: 0]
  ------------------
  954|  5.69k|				builder.append_key_value<"innerConeAngle">(it->innerConeAngle.value());
  955|  5.69k|				if (it->outerConeAngle.has_value())
  ------------------
  |  Branch (955:9): [True: 5.69k, False: 0]
  ------------------
  956|  5.69k|					builder.append_comma();
  957|  5.69k|			}
  958|  5.69k|			if (it->outerConeAngle.has_value())
  ------------------
  |  Branch (958:8): [True: 5.69k, False: 0]
  ------------------
  959|  5.69k|				builder.append_key_value<"outerConeAngle">(it->outerConeAngle.value());
  960|  5.69k|		}
  961|       |
  962|  22.1k|		if (!it->name.empty()) {
  ------------------
  |  Branch (962:7): [True: 13.9k, False: 8.18k]
  ------------------
  963|  13.9k|			builder.append_comma();
  964|  13.9k|			builder.append_key_value<"name">(it->name);
  965|  13.9k|		}
  966|  22.1k|	}
  967|    874|}
_ZN8fastgltf8Exporter4impl23writeMaterialExtensionsERKNS_8MaterialERN8simdjson8fallback7builder14string_builderE:
  969|   487k|void fg::Exporter::impl::writeMaterialExtensions(const Material &material, simdjson::builder::string_builder &builder) {
  970|   487k|	auto obj = scoped_object<"extensions">(builder);
  971|       |
  972|   487k|	comma_separator extensions_comma { builder };
  973|       |
  974|   487k|	if (material.anisotropy) {
  ------------------
  |  Branch (974:6): [True: 46.0k, False: 441k]
  ------------------
  975|  46.0k|		extensions_comma();
  976|       |
  977|  46.0k|		auto anisotropy_obj = scoped_object<"KHR_materials_anisotropy">(builder);
  978|       |
  979|  46.0k|		comma_separator comma { builder };
  980|  46.0k|		if (material.anisotropy->anisotropyStrength != 0.0f) {
  ------------------
  |  Branch (980:7): [True: 20.4k, False: 25.6k]
  ------------------
  981|  20.4k|			comma();
  982|  20.4k|			builder.append_key_value<"anisotropyStrength">(material.anisotropy->anisotropyStrength);
  983|  20.4k|		}
  984|  46.0k|		if (material.anisotropy->anisotropyRotation != 0.0f) {
  ------------------
  |  Branch (984:7): [True: 9.50k, False: 36.5k]
  ------------------
  985|  9.50k|			comma();
  986|  9.50k|			builder.append_key_value<"anisotropyRotation">(material.anisotropy->anisotropyRotation);
  987|  9.50k|		}
  988|  46.0k|		if (material.anisotropy->anisotropyTexture.has_value()) {
  ------------------
  |  Branch (988:7): [True: 20.4k, False: 25.6k]
  ------------------
  989|  20.4k|			comma();
  990|  20.4k|			append_texture_info<"anisotropyTexture">(
  991|  20.4k|				builder, &material.anisotropy->anisotropyTexture.value());
  992|  20.4k|		}
  993|  46.0k|	}
  994|       |
  995|   487k|	if (material.clearcoat) {
  ------------------
  |  Branch (995:6): [True: 52.9k, False: 434k]
  ------------------
  996|  52.9k|		extensions_comma();
  997|       |
  998|  52.9k|		auto clearcoat_obj = scoped_object<"KHR_materials_clearcoat">(builder);
  999|       |
 1000|  52.9k|		comma_separator comma { builder };
 1001|  52.9k|		if (material.clearcoat->clearcoatFactor != 0.0f) {
  ------------------
  |  Branch (1001:7): [True: 27.3k, False: 25.6k]
  ------------------
 1002|  27.3k|			comma();
 1003|  27.3k|			builder.append_key_value<"clearcoatFactor">(material.clearcoat->clearcoatFactor);
 1004|  27.3k|		}
 1005|  52.9k|		if (material.clearcoat->clearcoatTexture.has_value()) {
  ------------------
  |  Branch (1005:7): [True: 10.6k, False: 42.3k]
  ------------------
 1006|  10.6k|			comma();
 1007|  10.6k|			append_texture_info<"clearcoatTexture">(builder, &material.clearcoat->clearcoatTexture.value());
 1008|  10.6k|		}
 1009|  52.9k|		if (material.clearcoat->clearcoatRoughnessFactor != 0.0f) {
  ------------------
  |  Branch (1009:7): [True: 23.1k, False: 29.7k]
  ------------------
 1010|  23.1k|			comma();
 1011|  23.1k|			builder.append_key_value<"clearcoatRoughnessFactor">(material.clearcoat->clearcoatRoughnessFactor);
 1012|  23.1k|		}
 1013|  52.9k|		if (material.clearcoat->clearcoatRoughnessTexture.has_value()) {
  ------------------
  |  Branch (1013:7): [True: 15.8k, False: 37.1k]
  ------------------
 1014|  15.8k|			comma();
 1015|  15.8k|			append_texture_info<"clearcoatRoughnessTexture">(
 1016|  15.8k|				builder, &material.clearcoat->clearcoatRoughnessTexture.value());
 1017|  15.8k|		}
 1018|  52.9k|		if (material.clearcoat->clearcoatNormalTexture.has_value()) {
  ------------------
  |  Branch (1018:7): [True: 13.4k, False: 39.5k]
  ------------------
 1019|  13.4k|			comma();
 1020|  13.4k|			append_texture_info<"clearcoatNormalTexture", internal::TextureInfoType::NormalTexture>(
 1021|  13.4k|				builder, &material.clearcoat->clearcoatNormalTexture.value());
 1022|  13.4k|		}
 1023|  52.9k|	}
 1024|       |
 1025|   487k|	if (material.diffuseTransmission) {
  ------------------
  |  Branch (1025:6): [True: 26.1k, False: 461k]
  ------------------
 1026|  26.1k|		extensions_comma();
 1027|       |
 1028|  26.1k|		auto diffuse_transmission_obj = scoped_object<"KHR_materials_diffuse_transmission">(builder);
 1029|       |
 1030|  26.1k|		comma_separator comma { builder };
 1031|  26.1k|		if (material.diffuseTransmission->diffuseTransmissionFactor != 0.0f) {
  ------------------
  |  Branch (1031:7): [True: 9.75k, False: 16.3k]
  ------------------
 1032|  9.75k|			comma();
 1033|  9.75k|			builder.append_key_value<"diffuseTransmissionFactor">(
 1034|  9.75k|				material.diffuseTransmission->diffuseTransmissionFactor);
 1035|  9.75k|		}
 1036|  26.1k|		if (material.diffuseTransmission->diffuseTransmissionTexture.has_value()) {
  ------------------
  |  Branch (1036:7): [True: 9.38k, False: 16.7k]
  ------------------
 1037|  9.38k|			comma();
 1038|  9.38k|			append_texture_info<"diffuseTransmissionTexture">(
 1039|  9.38k|				builder, &material.diffuseTransmission->diffuseTransmissionTexture.value());
 1040|  9.38k|		}
 1041|  26.1k|		if (material.diffuseTransmission->diffuseTransmissionColorFactor != math::nvec3(1)) {
  ------------------
  |  Branch (1041:7): [True: 9.22k, False: 16.8k]
  ------------------
 1042|  9.22k|			comma();
 1043|  9.22k|			append_key_range<"diffuseTransmissionColorFactor">(
 1044|  9.22k|				builder, material.diffuseTransmission->diffuseTransmissionColorFactor);
 1045|  9.22k|		}
 1046|  26.1k|		if (material.diffuseTransmission->diffuseTransmissionColorTexture.has_value()) {
  ------------------
  |  Branch (1046:7): [True: 10.4k, False: 15.6k]
  ------------------
 1047|  10.4k|			comma();
 1048|  10.4k|			append_texture_info<"diffuseTransmissionColorTexture">(
 1049|  10.4k|				builder, &material.diffuseTransmission->diffuseTransmissionColorTexture.value());
 1050|  10.4k|		}
 1051|  26.1k|	}
 1052|       |
 1053|   487k|	if (material.dispersion != 0.0f) {
  ------------------
  |  Branch (1053:6): [True: 6.52k, False: 481k]
  ------------------
 1054|  6.52k|		extensions_comma();
 1055|  6.52k|		auto dispersion_obj = scoped_object<"KHR_materials_dispersion">(builder);
 1056|  6.52k|		builder.append_key_value<"dispersion">(material.dispersion);
 1057|  6.52k|	}
 1058|       |
 1059|   487k|	if (material.emissiveStrength != 1.0f) {
  ------------------
  |  Branch (1059:6): [True: 1.84k, False: 485k]
  ------------------
 1060|  1.84k|		extensions_comma();
 1061|  1.84k|		auto emissive_strength_obj = scoped_object<"KHR_materials_emissive_strength">(builder);
 1062|  1.84k|		builder.append_key_value<"emissiveStrength">(material.emissiveStrength);
 1063|  1.84k|	}
 1064|       |
 1065|   487k|	if (material.ior != 1.5f) {
  ------------------
  |  Branch (1065:6): [True: 15.2k, False: 472k]
  ------------------
 1066|  15.2k|		extensions_comma();
 1067|  15.2k|		auto ior_obj = scoped_object<"KHR_materials_ior">(builder);
 1068|  15.2k|		builder.append_key_value<"ior">(material.ior);
 1069|  15.2k|	}
 1070|       |
 1071|   487k|	if (material.iridescence) {
  ------------------
  |  Branch (1071:6): [True: 50.3k, False: 437k]
  ------------------
 1072|  50.3k|		extensions_comma();
 1073|       |
 1074|  50.3k|		auto iridescence_obj = scoped_object<"KHR_materials_iridescence">(builder);
 1075|       |
 1076|  50.3k|		comma_separator comma { builder };
 1077|  50.3k|		if (material.iridescence->iridescenceFactor != 0.0f) {
  ------------------
  |  Branch (1077:7): [True: 22.8k, False: 27.5k]
  ------------------
 1078|  22.8k|			comma();
 1079|  22.8k|			builder.append_key_value<"iridescenceFactor">(
 1080|  22.8k|				material.iridescence->iridescenceFactor);
 1081|  22.8k|		}
 1082|  50.3k|		if (material.iridescence->iridescenceTexture.has_value()) {
  ------------------
  |  Branch (1082:7): [True: 16.3k, False: 33.9k]
  ------------------
 1083|  16.3k|			comma();
 1084|  16.3k|			append_texture_info<"iridescenceTexture">(
 1085|  16.3k|				builder, &material.iridescence->iridescenceTexture.value());
 1086|  16.3k|		}
 1087|  50.3k|		if (material.iridescence->iridescenceIor != 1.3f) {
  ------------------
  |  Branch (1087:7): [True: 16.1k, False: 34.2k]
  ------------------
 1088|  16.1k|			comma();
 1089|  16.1k|			builder.append_key_value<"iridescenceIor">(
 1090|  16.1k|				material.iridescence->iridescenceIor);
 1091|  16.1k|		}
 1092|  50.3k|		if (material.iridescence->iridescenceThicknessMinimum != 100.0f) {
  ------------------
  |  Branch (1092:7): [True: 7.53k, False: 42.8k]
  ------------------
 1093|  7.53k|			comma();
 1094|  7.53k|			builder.append_key_value<"iridescenceThicknessMinimum">(
 1095|  7.53k|				material.iridescence->iridescenceThicknessMinimum);
 1096|  7.53k|		}
 1097|  50.3k|		if (material.iridescence->iridescenceThicknessMaximum != 400.0f) {
  ------------------
  |  Branch (1097:7): [True: 14.8k, False: 35.5k]
  ------------------
 1098|  14.8k|			comma();
 1099|  14.8k|			builder.append_key_value<"iridescenceThicknessMaximum">(
 1100|  14.8k|				material.iridescence->iridescenceThicknessMaximum);
 1101|  14.8k|		}
 1102|  50.3k|		if (material.iridescence->iridescenceThicknessTexture.has_value()) {
  ------------------
  |  Branch (1102:7): [True: 15.0k, False: 35.2k]
  ------------------
 1103|  15.0k|			comma();
 1104|  15.0k|			append_texture_info<"iridescenceThicknessTexture">(
 1105|  15.0k|				builder, &material.iridescence->iridescenceThicknessTexture.value());
 1106|  15.0k|		}
 1107|  50.3k|	}
 1108|       |
 1109|   487k|	if (material.retroreflection) {
  ------------------
  |  Branch (1109:6): [True: 2.39k, False: 485k]
  ------------------
 1110|  2.39k|		extensions_comma();
 1111|       |
 1112|  2.39k|		auto retroflection_obj = scoped_object<"KHR_materials_retroreflection">(builder);
 1113|       |
 1114|  2.39k|		comma_separator comma { builder };
 1115|  2.39k|		if (material.retroreflection->retroreflectionFactor != 0.0f) {
  ------------------
  |  Branch (1115:7): [True: 1.05k, False: 1.34k]
  ------------------
 1116|  1.05k|			comma();
 1117|  1.05k|			builder.append_key_value<"retroreflectionFactor">(
 1118|  1.05k|				material.retroreflection->retroreflectionFactor);
 1119|  1.05k|		}
 1120|  2.39k|		if (material.retroreflection->retroreflectionTexture.has_value()) {
  ------------------
  |  Branch (1120:7): [True: 1.67k, False: 726]
  ------------------
 1121|  1.67k|			comma();
 1122|  1.67k|			append_texture_info<"retroflectionTexture">(
 1123|  1.67k|				builder, &material.retroreflection->retroreflectionTexture.value());
 1124|  1.67k|		}
 1125|  2.39k|	}
 1126|       |
 1127|   487k|	if (material.sheen) {
  ------------------
  |  Branch (1127:6): [True: 22.9k, False: 464k]
  ------------------
 1128|  22.9k|		extensions_comma();
 1129|       |
 1130|  22.9k|		auto sheen_obj = scoped_object<"KHR_materials_sheen">(builder);
 1131|       |
 1132|  22.9k|		comma_separator comma { builder };
 1133|  22.9k|		if (material.sheen->sheenColorFactor != math::nvec3(0)) {
  ------------------
  |  Branch (1133:7): [True: 8.09k, False: 14.8k]
  ------------------
 1134|  8.09k|			comma();
 1135|  8.09k|			append_key_range<"sheenColorFactor">(
 1136|  8.09k|				builder, material.sheen->sheenColorFactor);
 1137|  8.09k|		}
 1138|  22.9k|		if (material.sheen->sheenColorTexture.has_value()) {
  ------------------
  |  Branch (1138:7): [True: 8.27k, False: 14.6k]
  ------------------
 1139|  8.27k|			comma();
 1140|  8.27k|			append_texture_info<"sheenColorTexture">(
 1141|  8.27k|				builder, &material.sheen->sheenColorTexture.value());
 1142|  8.27k|		}
 1143|  22.9k|		if (material.sheen->sheenRoughnessFactor != 0.0f) {
  ------------------
  |  Branch (1143:7): [True: 12.0k, False: 10.8k]
  ------------------
 1144|  12.0k|			comma();
 1145|  12.0k|			builder.append_key_value<"sheenRoughnessFactor">(
 1146|  12.0k|				material.sheen->sheenRoughnessFactor);
 1147|  12.0k|		}
 1148|  22.9k|		if (material.sheen->sheenRoughnessTexture.has_value()) {
  ------------------
  |  Branch (1148:7): [True: 3.71k, False: 19.2k]
  ------------------
 1149|  3.71k|			comma();
 1150|  3.71k|			append_texture_info<"sheenRoughnessTexture">(
 1151|  3.71k|				builder, &material.sheen->sheenRoughnessTexture.value());
 1152|  3.71k|		}
 1153|  22.9k|	}
 1154|       |
 1155|   487k|	if (material.specular) {
  ------------------
  |  Branch (1155:6): [True: 10.8k, False: 476k]
  ------------------
 1156|  10.8k|		extensions_comma();
 1157|       |
 1158|  10.8k|		auto specular_obj = scoped_object<"KHR_materials_specular">(builder);
 1159|       |
 1160|  10.8k|		comma_separator comma { builder };
 1161|  10.8k|		if (material.specular->specularFactor != 1.0f) {
  ------------------
  |  Branch (1161:7): [True: 1.37k, False: 9.45k]
  ------------------
 1162|  1.37k|			comma();
 1163|  1.37k|			builder.append_key_value<"specularFactor">(
 1164|  1.37k|				material.specular->specularFactor);
 1165|  1.37k|		}
 1166|  10.8k|		if (material.specular->specularTexture.has_value()) {
  ------------------
  |  Branch (1166:7): [True: 1.75k, False: 9.06k]
  ------------------
 1167|  1.75k|			comma();
 1168|  1.75k|			append_texture_info<"specularTexture">(
 1169|  1.75k|				builder, &material.specular->specularTexture.value());
 1170|  1.75k|		}
 1171|  10.8k|		if (material.specular->specularColorFactor != math::nvec3(1)) {
  ------------------
  |  Branch (1171:7): [True: 3.77k, False: 7.05k]
  ------------------
 1172|  3.77k|			comma();
 1173|  3.77k|			append_key_range<"specularColorFactor">(
 1174|  3.77k|				builder, material.specular->specularColorFactor);
 1175|  3.77k|		}
 1176|  10.8k|		if (material.specular->specularColorTexture.has_value()) {
  ------------------
  |  Branch (1176:7): [True: 4.98k, False: 5.84k]
  ------------------
 1177|  4.98k|			comma();
 1178|  4.98k|			append_texture_info<"specularColorTexture">(
 1179|  4.98k|				builder, &material.specular->specularColorTexture.value());
 1180|  4.98k|		}
 1181|  10.8k|	}
 1182|       |
 1183|   487k|	if (material.specularGlossiness) {
  ------------------
  |  Branch (1183:6): [True: 4.47k, False: 483k]
  ------------------
 1184|  4.47k|		extensions_comma();
 1185|       |
 1186|  4.47k|		auto pbr_obj = scoped_object<"KHR_materials_pbrSpecularGlossiness">(builder);
 1187|       |
 1188|  4.47k|		comma_separator comma { builder };
 1189|  4.47k|		if (material.specularGlossiness->diffuseFactor != math::nvec4(1)) {
  ------------------
  |  Branch (1189:7): [True: 9, False: 4.46k]
  ------------------
 1190|      9|			comma();
 1191|      9|			append_key_range<"diffuseFactor">(
 1192|      9|				builder, material.specularGlossiness->diffuseFactor);
 1193|      9|		}
 1194|  4.47k|		if (material.specularGlossiness->diffuseTexture.has_value()) {
  ------------------
  |  Branch (1194:7): [True: 3.22k, False: 1.25k]
  ------------------
 1195|  3.22k|			comma();
 1196|  3.22k|			append_texture_info<"diffuseTexture">(
 1197|  3.22k|				builder, &material.specularGlossiness->diffuseTexture.value());
 1198|  3.22k|		}
 1199|  4.47k|		if (material.specularGlossiness->specularFactor != math::nvec3(1)) {
  ------------------
  |  Branch (1199:7): [True: 2.18k, False: 2.29k]
  ------------------
 1200|  2.18k|			comma();
 1201|  2.18k|			append_key_range<"specularFactor">(
 1202|  2.18k|				builder, material.specularGlossiness->specularFactor);
 1203|  2.18k|		}
 1204|  4.47k|		if (material.specularGlossiness->glossinessFactor != 1.0) {
  ------------------
  |  Branch (1204:7): [True: 1.10k, False: 3.37k]
  ------------------
 1205|  1.10k|			comma();
 1206|  1.10k|			builder.append_key_value<"glossinessFactor">(
 1207|  1.10k|				material.specularGlossiness->glossinessFactor);
 1208|  1.10k|		}
 1209|  4.47k|		if (material.specularGlossiness->specularGlossinessTexture.has_value()) {
  ------------------
  |  Branch (1209:7): [True: 176, False: 4.30k]
  ------------------
 1210|    176|			comma();
 1211|    176|			append_texture_info<"specularGlossinessTexture">(
 1212|    176|				builder, &material.specularGlossiness->specularGlossinessTexture.value());
 1213|    176|		}
 1214|  4.47k|	}
 1215|       |
 1216|   487k|	if (material.transmission) {
  ------------------
  |  Branch (1216:6): [True: 17.4k, False: 470k]
  ------------------
 1217|  17.4k|		extensions_comma();
 1218|       |
 1219|  17.4k|		auto transmission_obj = scoped_object<"KHR_materials_transmission">(builder);
 1220|       |
 1221|  17.4k|		comma_separator comma { builder };
 1222|  17.4k|		if (material.transmission->transmissionFactor != 0.0f) {
  ------------------
  |  Branch (1222:7): [True: 10.8k, False: 6.64k]
  ------------------
 1223|  10.8k|			comma();
 1224|  10.8k|			builder.append_key_value<"transmissionFactor">(
 1225|  10.8k|				material.transmission->transmissionFactor);
 1226|  10.8k|		}
 1227|  17.4k|		if (material.transmission->transmissionTexture.has_value()) {
  ------------------
  |  Branch (1227:7): [True: 1.97k, False: 15.4k]
  ------------------
 1228|  1.97k|			comma();
 1229|  1.97k|			append_texture_info<"transmissionTexture">(
 1230|  1.97k|				builder, &material.transmission->transmissionTexture.value());
 1231|  1.97k|		}
 1232|  17.4k|	}
 1233|       |
 1234|   487k|	if (material.unlit) {
  ------------------
  |  Branch (1234:6): [True: 1.77k, False: 486k]
  ------------------
 1235|  1.77k|		extensions_comma();
 1236|       |
 1237|  1.77k|		auto unlit_obj = scoped_object<"KHR_materials_unlit">(builder);
 1238|  1.77k|	}
 1239|       |
 1240|   487k|	if (material.volume) {
  ------------------
  |  Branch (1240:6): [True: 22.6k, False: 465k]
  ------------------
 1241|  22.6k|		extensions_comma();
 1242|       |
 1243|  22.6k|		auto volume_obj = scoped_object<"KHR_materials_volume">(builder);
 1244|       |
 1245|  22.6k|		comma_separator comma { builder };
 1246|  22.6k|		if (material.volume->thicknessFactor != 0.0f) {
  ------------------
  |  Branch (1246:7): [True: 14.5k, False: 8.16k]
  ------------------
 1247|  14.5k|			comma();
 1248|  14.5k|			builder.append_key_value<"thicknessFactor">(
 1249|  14.5k|				material.volume->thicknessFactor);
 1250|  14.5k|		}
 1251|  22.6k|		if (material.volume->thicknessTexture.has_value()) {
  ------------------
  |  Branch (1251:7): [True: 6.04k, False: 16.6k]
  ------------------
 1252|  6.04k|			comma();
 1253|  6.04k|			append_texture_info<"thicknessTexture">(
 1254|  6.04k|				builder, &material.volume->thicknessTexture.value());
 1255|  6.04k|		}
 1256|  22.6k|		if (material.volume->attenuationDistance != std::numeric_limits<num>::infinity()) {
  ------------------
  |  Branch (1256:7): [True: 7.22k, False: 15.4k]
  ------------------
 1257|  7.22k|			comma();
 1258|  7.22k|			builder.append_key_value<"attenuationDistance">(
 1259|  7.22k|				material.volume->attenuationDistance);
 1260|  7.22k|		}
 1261|  22.6k|		if (material.volume->attenuationColor != math::nvec3(1)) {
  ------------------
  |  Branch (1261:7): [True: 7.96k, False: 14.7k]
  ------------------
 1262|  7.96k|			comma();
 1263|  7.96k|			append_key_range<"attenuationColor">(
 1264|  7.96k|				builder, material.volume->attenuationColor);
 1265|  7.96k|		}
 1266|  22.6k|	}
 1267|       |
 1268|   487k|	if (material.packedNormalMetallicRoughnessTexture.has_value()) {
  ------------------
  |  Branch (1268:6): [True: 0, False: 487k]
  ------------------
 1269|      0|		extensions_comma();
 1270|       |
 1271|      0|		auto packing_obj = scoped_object<"MSFT_packing_normalRoughnessMetallic">(builder);
 1272|       |
 1273|      0|		append_texture_info<"normalRoughnessMetallicTexture">(
 1274|      0|			builder, &material.packedNormalMetallicRoughnessTexture.value());
 1275|      0|	}
 1276|       |
 1277|   487k|	if (material.packedOcclusionRoughnessMetallicTextures) {
  ------------------
  |  Branch (1277:6): [True: 0, False: 487k]
  ------------------
 1278|      0|		extensions_comma();
 1279|       |
 1280|      0|		auto packing_obj = scoped_object<"MSFT_packing_occlusionRoughnessMetallic">(builder);
 1281|       |
 1282|      0|		comma_separator comma { builder };
 1283|      0|		if (material.packedOcclusionRoughnessMetallicTextures->occlusionRoughnessMetallicTexture.has_value()) {
  ------------------
  |  Branch (1283:7): [True: 0, False: 0]
  ------------------
 1284|      0|			comma();
 1285|      0|			append_texture_info<"occlusionRoughnessMetallicTexture">(
 1286|      0|				builder, &material.packedOcclusionRoughnessMetallicTextures->occlusionRoughnessMetallicTexture.value());
 1287|      0|		}
 1288|      0|		if (material.packedOcclusionRoughnessMetallicTextures->roughnessMetallicOcclusionTexture.has_value()) {
  ------------------
  |  Branch (1288:7): [True: 0, False: 0]
  ------------------
 1289|      0|			comma();
 1290|      0|			append_texture_info<"roughnessMetallicOcclusionTexture">(
 1291|      0|				builder, &material.packedOcclusionRoughnessMetallicTextures->roughnessMetallicOcclusionTexture.value());
 1292|      0|		}
 1293|      0|		if (material.packedOcclusionRoughnessMetallicTextures->normalTexture.has_value()) {
  ------------------
  |  Branch (1293:7): [True: 0, False: 0]
  ------------------
 1294|      0|			comma();
 1295|      0|			append_texture_info<"normalTexture">(
 1296|      0|				builder, &material.packedOcclusionRoughnessMetallicTextures->normalTexture.value());
 1297|      0|		}
 1298|      0|	}
 1299|   487k|}
_ZN8fastgltf8Exporter4impl14writeMaterialsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1301|  15.0k|void fg::Exporter::impl::writeMaterials(const Asset& asset, simdjson::builder::string_builder& builder) {
 1302|  15.0k|	if (asset.materials.empty())
  ------------------
  |  Branch (1302:6): [True: 0, False: 15.0k]
  ------------------
 1303|      0|		return;
 1304|       |
 1305|  15.0k|	auto materials = scoped_array<"materials">(builder);
 1306|       |
 1307|   502k|	for (auto it = asset.materials.begin(); it != asset.materials.end(); ++it) {
  ------------------
  |  Branch (1307:42): [True: 487k, False: 15.0k]
  ------------------
 1308|   487k|		if (it != asset.materials.begin())
  ------------------
  |  Branch (1308:7): [True: 472k, False: 15.0k]
  ------------------
 1309|   472k|			builder.append_comma();
 1310|       |
 1311|   487k|		auto obj = scoped_object(builder);
 1312|       |
 1313|   487k|		{
 1314|   487k|			auto pbr_obj = scoped_object<"pbrMetallicRoughness">(builder);
 1315|       |
 1316|   487k|			comma_separator comma {builder};
 1317|   487k|			if (it->pbrData.baseColorFactor != math::nvec4(1)) {
  ------------------
  |  Branch (1317:8): [True: 74.3k, False: 413k]
  ------------------
 1318|  74.3k|				comma();
 1319|  74.3k|				append_key_range<"baseColorFactor">(builder, it->pbrData.baseColorFactor);
 1320|  74.3k|			}
 1321|       |
 1322|   487k|			if (it->pbrData.baseColorTexture.has_value()) {
  ------------------
  |  Branch (1322:8): [True: 43.0k, False: 444k]
  ------------------
 1323|  43.0k|				comma();
 1324|  43.0k|				append_texture_info<"baseColorTexture">(builder, &it->pbrData.baseColorTexture.value());
 1325|  43.0k|			}
 1326|       |
 1327|   487k|			if (it->pbrData.metallicFactor != 1.0f) {
  ------------------
  |  Branch (1327:8): [True: 57.3k, False: 430k]
  ------------------
 1328|  57.3k|				comma();
 1329|  57.3k|				builder.append_key_value<"metallicFactor">(it->pbrData.metallicFactor);
 1330|  57.3k|			}
 1331|       |
 1332|   487k|			if (it->pbrData.roughnessFactor != 1.0f) {
  ------------------
  |  Branch (1332:8): [True: 70.4k, False: 417k]
  ------------------
 1333|  70.4k|				comma();
 1334|  70.4k|				builder.append_key_value<"roughnessFactor">(it->pbrData.roughnessFactor);
 1335|  70.4k|			}
 1336|       |
 1337|   487k|			if (it->pbrData.metallicRoughnessTexture.has_value()) {
  ------------------
  |  Branch (1337:8): [True: 27.3k, False: 460k]
  ------------------
 1338|  27.3k|				comma();
 1339|  27.3k|				append_texture_info<"metallicRoughnessTexture">(builder, &it->pbrData.metallicRoughnessTexture.value());
 1340|  27.3k|			}
 1341|   487k|		}
 1342|       |
 1343|   487k|		if (it->normalTexture.has_value()) {
  ------------------
  |  Branch (1343:7): [True: 41.9k, False: 445k]
  ------------------
 1344|  41.9k|			builder.append_comma();
 1345|  41.9k|			append_texture_info<"normalTexture", internal::TextureInfoType::NormalTexture>(builder, &it->normalTexture.value());
 1346|  41.9k|		}
 1347|       |
 1348|   487k|		if (it->occlusionTexture.has_value()) {
  ------------------
  |  Branch (1348:7): [True: 54.0k, False: 433k]
  ------------------
 1349|  54.0k|			builder.append_comma();
 1350|  54.0k|			append_texture_info<"occlusionTexture", internal::TextureInfoType::OcclusionTexture>(builder, &it->occlusionTexture.value());
 1351|  54.0k|		}
 1352|       |
 1353|   487k|		if (it->emissiveTexture.has_value()) {
  ------------------
  |  Branch (1353:7): [True: 12.8k, False: 474k]
  ------------------
 1354|  12.8k|			builder.append_comma();
 1355|  12.8k|			append_texture_info<"emissiveTexture">(builder, &it->emissiveTexture.value());
 1356|  12.8k|		}
 1357|       |
 1358|   487k|		if (it->emissiveFactor != math::nvec3(0)) {
  ------------------
  |  Branch (1358:7): [True: 18.4k, False: 469k]
  ------------------
 1359|  18.4k|			builder.append_comma();
 1360|  18.4k|			append_key_range<"emissiveFactor">(builder, it->emissiveFactor);
 1361|  18.4k|		}
 1362|       |
 1363|   487k|		if (it->alphaMode != AlphaMode::Opaque) {
  ------------------
  |  Branch (1363:7): [True: 8.24k, False: 479k]
  ------------------
 1364|  8.24k|			builder.append_comma();
 1365|  8.24k|			builder.escape_and_append_with_quotes<"alphaMode">();
 1366|  8.24k|			builder.append_colon();
 1367|  8.24k|			if (it->alphaMode == AlphaMode::Blend) {
  ------------------
  |  Branch (1367:8): [True: 327, False: 7.91k]
  ------------------
 1368|    327|				builder.escape_and_append_with_quotes<"BLEND">();
 1369|  7.91k|			} else if (it->alphaMode == AlphaMode::Mask) {
  ------------------
  |  Branch (1369:15): [True: 7.91k, False: 0]
  ------------------
 1370|  7.91k|				builder.escape_and_append_with_quotes<"MASK">();
 1371|  7.91k|			}
 1372|  8.24k|		}
 1373|       |
 1374|   487k|		if (it->alphaMode == AlphaMode::Mask && it->alphaCutoff != 0.5f) {
  ------------------
  |  Branch (1374:7): [True: 7.91k, False: 479k]
  |  Branch (1374:43): [True: 5.14k, False: 2.77k]
  ------------------
 1375|  5.14k|			builder.append_comma();
 1376|  5.14k|			builder.append_key_value<"alphaCutoff">(it->alphaCutoff);
 1377|  5.14k|		}
 1378|       |
 1379|   487k|		if (it->doubleSided) {
  ------------------
  |  Branch (1379:7): [True: 11.9k, False: 475k]
  ------------------
 1380|  11.9k|			builder.append_comma();
 1381|  11.9k|			append_const_key_value<"doubleSided", true>(builder);
 1382|  11.9k|		}
 1383|       |
 1384|   487k|		builder.append_comma();
 1385|   487k|		writeMaterialExtensions(*it, builder);
 1386|       |
 1387|   487k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1387:7): [True: 0, False: 487k]
  ------------------
 1388|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.materials.begin(), it)), Category::Materials, userPointer);
 1389|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1389:8): [True: 0, False: 0]
  ------------------
 1390|      0|				builder.append_comma();
 1391|      0|				append_raw_key_value<"extras">(builder, *extras);
 1392|      0|			}
 1393|      0|		}
 1394|       |
 1395|   487k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1395:7): [True: 244k, False: 243k]
  ------------------
 1396|   244k|			builder.append_comma();
 1397|   244k|			builder.append_key_value<"name">(it->name);
 1398|   244k|		}
 1399|   487k|	}
 1400|  15.0k|}
_ZN8fastgltf8Exporter4impl11writeMeshesERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1402|  3.61k|void fg::Exporter::impl::writeMeshes(const Asset& asset, simdjson::builder::string_builder& builder) {
 1403|  3.61k|	if (asset.meshes.empty())
  ------------------
  |  Branch (1403:6): [True: 0, False: 3.61k]
  ------------------
 1404|      0|		return;
 1405|       |
 1406|  3.61k|	auto meshes = scoped_array<"meshes">(builder);
 1407|       |
 1408|  37.3k|	for (auto it = asset.meshes.begin(); it != asset.meshes.end(); ++it) {
  ------------------
  |  Branch (1408:39): [True: 33.6k, False: 3.61k]
  ------------------
 1409|  33.6k|		if (it != asset.meshes.begin())
  ------------------
  |  Branch (1409:7): [True: 30.0k, False: 3.61k]
  ------------------
 1410|  30.0k|			builder.append_comma();
 1411|       |
 1412|  33.6k|		auto obj = scoped_object(builder);
 1413|       |
 1414|  33.6k|		comma_separator comma { builder };
 1415|       |
 1416|  33.6k|		if (!it->primitives.empty()) {
  ------------------
  |  Branch (1416:7): [True: 33.6k, False: 0]
  ------------------
 1417|  33.6k|			comma();
 1418|       |
 1419|  33.6k|			auto primitives = scoped_array<"primitives">(builder);
 1420|       |
 1421|  73.8k|			for (auto itp = it->primitives.begin(); itp != it->primitives.end(); ++itp) {
  ------------------
  |  Branch (1421:44): [True: 40.2k, False: 33.6k]
  ------------------
 1422|  40.2k|				if (itp != it->primitives.begin())
  ------------------
  |  Branch (1422:9): [True: 6.50k, False: 33.6k]
  ------------------
 1423|  6.50k|					builder.append_comma();
 1424|       |
 1425|  40.2k|				auto pobj = scoped_object(builder);
 1426|       |
 1427|  40.2k|				{
 1428|  40.2k|					auto attributes = scoped_object<"attributes">(builder);
 1429|   140k|					for (auto ita = itp->attributes.begin(); ita != itp->attributes.end(); ++ita) {
  ------------------
  |  Branch (1429:47): [True: 100k, False: 40.2k]
  ------------------
 1430|   100k|						if (ita != itp->attributes.begin())
  ------------------
  |  Branch (1430:11): [True: 62.6k, False: 38.0k]
  ------------------
 1431|  62.6k|							builder.append_comma();
 1432|       |
 1433|   100k|						builder.append_key_value(ita->name, ita->accessorIndex);
 1434|   100k|					}
 1435|  40.2k|				}
 1436|       |
 1437|  40.2k|				if (itp->indicesAccessor.has_value()) {
  ------------------
  |  Branch (1437:9): [True: 40.2k, False: 0]
  ------------------
 1438|  40.2k|					builder.append_comma();
 1439|  40.2k|					builder.append_key_value<"indices">(itp->indicesAccessor.value());
 1440|  40.2k|				}
 1441|       |
 1442|  40.2k|				if (itp->materialIndex.has_value()) {
  ------------------
  |  Branch (1442:9): [True: 26.2k, False: 13.9k]
  ------------------
 1443|  26.2k|					builder.append_comma();
 1444|  26.2k|					builder.append_key_value<"material">(itp->materialIndex.value());
 1445|  26.2k|				}
 1446|       |
 1447|  40.2k|				if (!itp->targets.empty()) {
  ------------------
  |  Branch (1447:9): [True: 4.83k, False: 35.3k]
  ------------------
 1448|  4.83k|					builder.append_comma();
 1449|       |
 1450|  4.83k|					auto targets = scoped_array<"targets">(builder);
 1451|  11.3k|					for (auto itt = itp->targets.begin(); itt != itp->targets.end(); ++itt) {
  ------------------
  |  Branch (1451:44): [True: 6.55k, False: 4.83k]
  ------------------
 1452|  6.55k|						if (itt != itp->targets.begin())
  ------------------
  |  Branch (1452:11): [True: 1.72k, False: 4.83k]
  ------------------
 1453|  1.72k|							builder.append_comma();
 1454|       |
 1455|  6.55k|						auto target_obj = scoped_object(builder);
 1456|  18.7k|						for (auto ita = itt->begin(); ita != itt->end(); ++ita) {
  ------------------
  |  Branch (1456:37): [True: 12.1k, False: 6.55k]
  ------------------
 1457|  12.1k|							if (ita != itt->begin())
  ------------------
  |  Branch (1457:12): [True: 10.5k, False: 1.63k]
  ------------------
 1458|  10.5k|								builder.append_comma();
 1459|       |
 1460|  12.1k|							builder.append_key_value(ita->name, ita->accessorIndex);
 1461|  12.1k|						}
 1462|  6.55k|					}
 1463|  4.83k|				}
 1464|       |
 1465|  40.2k|				if (itp->type != PrimitiveType::Triangles) {
  ------------------
  |  Branch (1465:9): [True: 8.22k, False: 31.9k]
  ------------------
 1466|  8.22k|					builder.append_comma();
 1467|  8.22k|					builder.append_key_value<"mode">(to_underlying(itp->type));
 1468|  8.22k|				}
 1469|       |
 1470|  40.2k|				const bool hasExtensions = !itp->mappings.empty() || itp->dracoCompression || itp->gaussianSplatting;
  ------------------
  |  Branch (1470:32): [True: 1.03k, False: 39.1k]
  |  Branch (1470:58): [True: 4.80k, False: 34.3k]
  |  Branch (1470:83): [True: 0, False: 34.3k]
  ------------------
 1471|  40.2k|				if (hasExtensions) {
  ------------------
  |  Branch (1471:9): [True: 5.83k, False: 34.3k]
  ------------------
 1472|  5.83k|					builder.append_comma();
 1473|  5.83k|					builder.escape_and_append_with_quotes<"extensions">();
 1474|  5.83k|					builder.append_colon();
 1475|  5.83k|					builder.start_object();
 1476|  5.83k|				}
 1477|  40.2k|				comma_separator comma {builder};
 1478|  40.2k|				if (!itp->mappings.empty()) {
  ------------------
  |  Branch (1478:9): [True: 1.03k, False: 39.1k]
  ------------------
 1479|  1.03k|					comma();
 1480|       |
 1481|  1.03k|					auto variants_obj = scoped_object<"KHR_materials_variants">(builder);
 1482|  1.03k|					auto mappings = scoped_array<"mappings">(builder);
 1483|       |
 1484|  1.03k|					comma_separator mappingComma {builder};
 1485|       |					// TODO: We should optimise to avoid writing multiple objects for the same material index
 1486|  2.26k|					for (const auto& [variant, material] : itp->mappings) {
  ------------------
  |  Branch (1486:43): [True: 2.26k, False: 1.03k]
  ------------------
 1487|  2.26k|						mappingComma();
 1488|       |
 1489|  2.26k|						auto variant_obj = scoped_object(builder);
 1490|  2.26k|						builder.append_key_value<"material">(material);
 1491|  2.26k|						builder.append_comma();
 1492|  2.26k|						builder.escape_and_append_with_quotes<"variants">();
 1493|  2.26k|						builder.append_colon();
 1494|       |
 1495|  2.26k|						auto arr = scoped_array(builder);
 1496|  2.26k|						builder.append(variant);
 1497|  2.26k|					}
 1498|  1.03k|				}
 1499|  40.2k|				if (itp->dracoCompression) {
  ------------------
  |  Branch (1499:9): [True: 4.82k, False: 35.3k]
  ------------------
 1500|  4.82k|					comma();
 1501|       |
 1502|  4.82k|					auto draco_obj = scoped_object<"KHR_draco_mesh_compression">(builder);
 1503|       |
 1504|  4.82k|					builder.append_key_value<"bufferView">(itp->dracoCompression->bufferView);
 1505|  4.82k|					builder.append_comma();
 1506|       |
 1507|  4.82k|					auto attributes = scoped_object<"attributes">(builder);
 1508|  30.9k|					for (auto ita = itp->dracoCompression->attributes.begin(); ita != itp->dracoCompression->attributes.end(); ++ita) {
  ------------------
  |  Branch (1508:65): [True: 26.0k, False: 4.82k]
  ------------------
 1509|  26.0k|						if (ita != itp->dracoCompression->attributes.begin())
  ------------------
  |  Branch (1509:11): [True: 21.2k, False: 4.82k]
  ------------------
 1510|  21.2k|							builder.append_comma();
 1511|       |
 1512|  26.0k|						builder.append_key_value(ita->name, ita->accessorIndex);
 1513|  26.0k|					}
 1514|  4.82k|				}
 1515|  40.2k|				if (itp->gaussianSplatting) {
  ------------------
  |  Branch (1515:9): [True: 0, False: 40.2k]
  ------------------
 1516|      0|					comma();
 1517|       |
 1518|      0|					auto gauss_obj = scoped_object<"KHR_gaussian_splatting">(builder);
 1519|       |
 1520|      0|					auto& gaussianSplatting = *itp->gaussianSplatting;
 1521|      0|					builder.append_key_value<"kernel">("ellipse");
 1522|      0|					builder.append_key_value<"colorSpace">([&] {
 1523|      0|						switch (gaussianSplatting.colorSpace) {
 1524|      0|							using enum ColorSpace;
 1525|      0|							default:
 1526|      0|							case ColorSpace::srgb_rec709_display: return "srgb_rec709_display";
 1527|      0|							case ColorSpace::lin_rec709_display: return "lin_rec709_display";
 1528|      0|						}
 1529|      0|					}());
 1530|      0|				}
 1531|  40.2k|				if (hasExtensions) {
  ------------------
  |  Branch (1531:9): [True: 5.83k, False: 34.3k]
  ------------------
 1532|  5.83k|					builder.end_object();
 1533|  5.83k|				}
 1534|  40.2k|			}
 1535|  33.6k|		}
 1536|       |
 1537|  33.6k|		if (!it->weights.empty()) {
  ------------------
  |  Branch (1537:7): [True: 194, False: 33.5k]
  ------------------
 1538|    194|			comma();
 1539|    194|			append_key_range<"weights">(builder, it->weights);
 1540|    194|		}
 1541|       |
 1542|  33.6k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1542:7): [True: 0, False: 33.6k]
  ------------------
 1543|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.meshes.begin(), it)), Category::Meshes, userPointer);
 1544|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1544:8): [True: 0, False: 0]
  ------------------
 1545|      0|				comma();
 1546|      0|				append_raw_key_value<"extras">(builder, *extras);
 1547|      0|			}
 1548|      0|		}
 1549|       |
 1550|  33.6k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1550:7): [True: 27.7k, False: 5.94k]
  ------------------
 1551|  27.7k|			comma();
 1552|  27.7k|			builder.append_key_value<"name">(it->name);
 1553|  27.7k|		}
 1554|  33.6k|	}
 1555|  3.61k|}
_ZN8fastgltf8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1557|  9.95k|void fg::Exporter::impl::writeNodes(const Asset& asset, simdjson::builder::string_builder& builder) {
 1558|  9.95k|	if (asset.nodes.empty())
  ------------------
  |  Branch (1558:6): [True: 0, False: 9.95k]
  ------------------
 1559|      0|		return;
 1560|       |
 1561|  9.95k|	auto nodes = scoped_array<"nodes">(builder);
 1562|       |
 1563|   188k|	for (auto it = asset.nodes.begin(); it != asset.nodes.end(); ++it) {
  ------------------
  |  Branch (1563:38): [True: 178k, False: 9.95k]
  ------------------
 1564|   178k|		if (it != asset.nodes.begin())
  ------------------
  |  Branch (1564:7): [True: 168k, False: 9.95k]
  ------------------
 1565|   168k|			builder.append_comma();
 1566|       |
 1567|   178k|		auto obj = scoped_object(builder);
 1568|       |
 1569|   178k|		comma_separator comma { builder };
 1570|       |
 1571|   178k|		if (it->meshIndex.has_value()) {
  ------------------
  |  Branch (1571:7): [True: 16.6k, False: 161k]
  ------------------
 1572|  16.6k|			comma();
 1573|  16.6k|			builder.append_key_value<"mesh">(it->meshIndex.value());
 1574|  16.6k|		}
 1575|   178k|		if (it->cameraIndex.has_value()) {
  ------------------
  |  Branch (1575:7): [True: 1.86k, False: 176k]
  ------------------
 1576|  1.86k|			comma();
 1577|  1.86k|			builder.append_key_value<"camera">(it->cameraIndex.value());
 1578|  1.86k|		}
 1579|   178k|		if (it->skinIndex.has_value()) {
  ------------------
  |  Branch (1579:7): [True: 683, False: 177k]
  ------------------
 1580|    683|			comma();
 1581|    683|			builder.append_key_value<"skin">(it->skinIndex.value());
 1582|    683|		}
 1583|       |
 1584|   178k|		if (!it->children.empty()) {
  ------------------
  |  Branch (1584:7): [True: 21.9k, False: 156k]
  ------------------
 1585|  21.9k|			comma();
 1586|  21.9k|			append_key_range<"children">(builder, it->children);
 1587|  21.9k|		}
 1588|       |
 1589|   178k|		if (!it->weights.empty()) {
  ------------------
  |  Branch (1589:7): [True: 33, False: 178k]
  ------------------
 1590|     33|			comma();
 1591|     33|			append_key_range<"weights">(builder, it->weights);
 1592|     33|		}
 1593|       |
 1594|   178k|		visit_exhaustive(visitor {
 1595|   178k|			[&](const TRS& trs) {
 1596|   178k|				if (trs.rotation != math::nquat(0.f, 0.f, 0.f, 1.f)) {
 1597|   178k|					comma();
 1598|   178k|					append_key_range<"rotation">(builder, trs.rotation);
 1599|   178k|				}
 1600|       |
 1601|   178k|				if (trs.scale != math::nvec3(1.f)) {
 1602|   178k|					comma();
 1603|   178k|					append_key_range<"scale">(builder, trs.scale);
 1604|   178k|				}
 1605|       |
 1606|   178k|				if (trs.translation != math::nvec3(0.f)) {
 1607|   178k|					comma();
 1608|   178k|					append_key_range<"translation">(builder, trs.translation);
 1609|   178k|				}
 1610|   178k|			},
 1611|   178k|			[&](const math::nmat4x4& matrix) {
 1612|   178k|				comma();
 1613|   178k|				auto arr = scoped_array<"matrix">(builder);
 1614|   178k|				for (std::size_t i = 0; i < matrix.columns(); ++i) {
 1615|   178k|					for (std::size_t j = 0; j < matrix.rows(); ++j) {
 1616|   178k|						builder.append(matrix.col(i)[j]);
 1617|   178k|						if (i * matrix.columns() + j + 1 < matrix.columns() * matrix.rows()) {
 1618|   178k|							builder.append_comma();
 1619|   178k|						}
 1620|   178k|					}
 1621|   178k|				}
 1622|   178k|			},
 1623|   178k|		}, it->transform);
 1624|       |
 1625|   178k|		if (!it->instancingAttributes.empty() || it->lightIndex.has_value() ||
  ------------------
  |  Branch (1625:7): [True: 833, False: 177k]
  |  Branch (1625:44): [True: 12.5k, False: 165k]
  ------------------
 1626|   165k|			it->physicsRigidBody ||
  ------------------
  |  Branch (1626:4): [True: 38.5k, False: 126k]
  ------------------
 1627|   126k|			!it->visible || !it->selectable || !it->hoverable) {
  ------------------
  |  Branch (1627:4): [True: 339, False: 126k]
  |  Branch (1627:20): [True: 4.42k, False: 121k]
  |  Branch (1627:39): [True: 964, False: 120k]
  ------------------
 1628|  57.7k|			comma();
 1629|       |
 1630|  57.7k|			auto extensions_obj = scoped_object<"extensions">(builder);
 1631|       |
 1632|  57.7k|			comma_separator extensionComma { builder };
 1633|       |
 1634|  57.7k|			if (!it->instancingAttributes.empty()) {
  ------------------
  |  Branch (1634:8): [True: 833, False: 56.8k]
  ------------------
 1635|    833|				extensionComma();
 1636|       |
 1637|    833|				auto instancing_obj = scoped_object<"EXT_mesh_gpu_instancing">(builder);
 1638|    833|				auto attributes = scoped_object<"attributes">(builder);
 1639|  10.8k|				for (auto ait = it->instancingAttributes.begin(); ait != it->instancingAttributes.end(); ++ait) {
  ------------------
  |  Branch (1639:55): [True: 9.99k, False: 833]
  ------------------
 1640|  9.99k|					if (ait != it->instancingAttributes.begin())
  ------------------
  |  Branch (1640:10): [True: 9.15k, False: 833]
  ------------------
 1641|  9.15k|						builder.append_comma();
 1642|       |
 1643|  9.99k|					builder.append_key_value(ait->name, ait->accessorIndex);
 1644|  9.99k|				}
 1645|    833|			}
 1646|  57.7k|			if (it->lightIndex.has_value()) {
  ------------------
  |  Branch (1646:8): [True: 12.5k, False: 45.1k]
  ------------------
 1647|  12.5k|				extensionComma();
 1648|       |
 1649|  12.5k|				auto lights_obj = scoped_object<"KHR_lights_punctual">(builder);
 1650|  12.5k|				builder.append_key_value<"light">(it->lightIndex.value());
 1651|  12.5k|			}
 1652|       |
 1653|  57.7k|			if (it->physicsRigidBody) {
  ------------------
  |  Branch (1653:8): [True: 39.0k, False: 18.6k]
  ------------------
 1654|  39.0k|				extensionComma();
 1655|       |
 1656|  39.0k|				auto physics_obj = scoped_object<"KHR_physics_rigid_bodies">(builder);
 1657|  39.0k|				comma_separator bodyComma { builder };
 1658|       |
 1659|  39.0k|				const auto writeGeometry = [&builder](const Geometry& geom) {
 1660|  39.0k|					auto geometry_obj = scoped_object<"geometry">(builder);
 1661|       |
 1662|  39.0k|					comma_separator geometryComma { builder };
 1663|       |
 1664|  39.0k|					if (geom.shape.has_value()) {
 1665|  39.0k|						geometryComma();
 1666|  39.0k|						builder.append_key_value<"shape">(*geom.shape);
 1667|  39.0k|					} else if (geom.mesh.has_value()) {
 1668|  39.0k|						geometryComma();
 1669|  39.0k|						builder.append_key_value<"mesh">(*geom.mesh);
 1670|  39.0k|					}
 1671|  39.0k|					if (geom.convexHull) {
 1672|  39.0k|						geometryComma();
 1673|  39.0k|						append_const_key_value<"convexHull", true>(builder);
 1674|  39.0k|					}
 1675|  39.0k|				};
 1676|       |
 1677|  39.0k|				if (it->physicsRigidBody->motion.has_value()) {
  ------------------
  |  Branch (1677:9): [True: 1.88k, False: 37.1k]
  ------------------
 1678|  1.88k|					const auto& motion = *it->physicsRigidBody->motion;
 1679|  1.88k|					bodyComma();
 1680|       |
 1681|  1.88k|					auto motion_obj = scoped_object<"motion">(builder);
 1682|       |
 1683|  1.88k|					comma_separator motionComma { builder };
 1684|       |
 1685|  1.88k|					if (motion.isKinematic) {
  ------------------
  |  Branch (1685:10): [True: 0, False: 1.88k]
  ------------------
 1686|      0|						motionComma();
 1687|      0|						append_const_key_value<"isKinematic", true>(builder);
 1688|      0|					}
 1689|  1.88k|					if (motion.mass.has_value()) {
  ------------------
  |  Branch (1689:10): [True: 10, False: 1.87k]
  ------------------
 1690|     10|						motionComma();
 1691|     10|						builder.append_key_value<"mass">(*motion.mass);
 1692|     10|					}
 1693|  1.88k|					if (motion.centerOfMass != math::nvec3(0)) {
  ------------------
  |  Branch (1693:10): [True: 0, False: 1.88k]
  ------------------
 1694|      0|						motionComma();
 1695|      0|						append_key_range<"centerOfMass">(builder, motion.centerOfMass);
 1696|      0|					}
 1697|  1.88k|					if (motion.inertialDiagonal.has_value()) {
  ------------------
  |  Branch (1697:10): [True: 0, False: 1.88k]
  ------------------
 1698|      0|						motionComma();
 1699|      0|						append_key_range<"inertiaDiagonal">(builder, *motion.inertialDiagonal);
 1700|      0|					}
 1701|  1.88k|					if (motion.inertialOrientation.has_value()) {
  ------------------
  |  Branch (1701:10): [True: 0, False: 1.88k]
  ------------------
 1702|      0|						motionComma();
 1703|      0|						append_key_range<"inertiaOrientation">(builder, *motion.inertialOrientation);
 1704|      0|					}
 1705|  1.88k|					if (motion.linearVelocity != math::nvec3(0)) {
  ------------------
  |  Branch (1705:10): [True: 0, False: 1.88k]
  ------------------
 1706|      0|						motionComma();
 1707|      0|						append_key_range<"linearVelocity">(builder, motion.linearVelocity);
 1708|      0|					}
 1709|  1.88k|					if (motion.angularVelocity != math::nvec3(0)) {
  ------------------
  |  Branch (1709:10): [True: 1, False: 1.88k]
  ------------------
 1710|      1|						motionComma();
 1711|      1|						append_key_range<"angularVelocity">(builder, motion.angularVelocity);
 1712|      1|					}
 1713|  1.88k|					if (motion.gravityFactor != num(1)) {
  ------------------
  |  Branch (1713:10): [True: 44, False: 1.83k]
  ------------------
 1714|     44|						motionComma();
 1715|     44|						builder.append_key_value<"gravityFactor">(motion.gravityFactor);
 1716|     44|					}
 1717|  1.88k|				}
 1718|       |
 1719|  39.0k|				if (it->physicsRigidBody->collider.has_value()) {
  ------------------
  |  Branch (1719:9): [True: 19.3k, False: 19.6k]
  ------------------
 1720|  19.3k|					const auto& collider = *it->physicsRigidBody->collider;
 1721|  19.3k|					bodyComma();
 1722|       |
 1723|  19.3k|					auto collider_obj = scoped_object<"collider">(builder);
 1724|  19.3k|					writeGeometry(collider.geometry);
 1725|  19.3k|					if (collider.physicsMaterial.has_value()) {
  ------------------
  |  Branch (1725:10): [True: 7.92k, False: 11.4k]
  ------------------
 1726|  7.92k|						builder.append_comma();
 1727|  7.92k|						builder.append_key_value<"physicsMaterial">(*collider.physicsMaterial);
 1728|  7.92k|					}
 1729|  19.3k|					if (collider.collisionFilter.has_value()) {
  ------------------
  |  Branch (1729:10): [True: 7.62k, False: 11.7k]
  ------------------
 1730|  7.62k|						builder.append_comma();
 1731|  7.62k|						builder.append_key_value<"collisionFilter">(*collider.collisionFilter);
 1732|  7.62k|					}
 1733|  19.3k|				}
 1734|       |
 1735|  39.0k|				if (it->physicsRigidBody->trigger.has_value()) {
  ------------------
  |  Branch (1735:9): [True: 10.2k, False: 28.8k]
  ------------------
 1736|  10.2k|					bodyComma();
 1737|       |
 1738|  10.2k|					auto trigger_obj = scoped_object<"trigger">(builder);
 1739|  10.2k|					visit_exhaustive(visitor{
 1740|  10.2k|						[&](const GeometryTrigger& gt) {
 1741|  10.2k|							writeGeometry(gt.geometry);
 1742|  10.2k|							if (gt.collisionFilter.has_value()) {
 1743|  10.2k|								builder.append_comma();
 1744|  10.2k|								builder.append_key_value<"collisionFilter">(*gt.collisionFilter);
 1745|  10.2k|							}
 1746|  10.2k|						},
 1747|  10.2k|						[&](const NodeTrigger& nt) {
 1748|  10.2k|							append_key_range<"nodes">(builder, nt.nodes);
 1749|  10.2k|						}
 1750|  10.2k|					}, *it->physicsRigidBody->trigger);
 1751|  10.2k|				}
 1752|       |
 1753|  39.0k|				if (it->physicsRigidBody->joint.has_value()) {
  ------------------
  |  Branch (1753:9): [True: 5.89k, False: 33.1k]
  ------------------
 1754|  5.89k|					const auto& joint = *it->physicsRigidBody->joint;
 1755|  5.89k|					bodyComma();
 1756|       |
 1757|  5.89k|					auto joint_obj = scoped_object<"joint">(builder);
 1758|  5.89k|					builder.append_key_value<"connectedNode">(joint.connectedNode);
 1759|  5.89k|					builder.append_comma();
 1760|  5.89k|					builder.append_key_value<"joint">(joint.joint);
 1761|  5.89k|					if (joint.enableCollision) {
  ------------------
  |  Branch (1761:10): [True: 0, False: 5.89k]
  ------------------
 1762|      0|						builder.append_comma();
 1763|      0|						append_const_key_value<"enableCollision", true>(builder);
 1764|      0|					}
 1765|  5.89k|				}
 1766|  39.0k|			}
 1767|       |
 1768|  57.7k|			if (!it->visible) {
  ------------------
  |  Branch (1768:8): [True: 5.26k, False: 52.4k]
  ------------------
 1769|  5.26k|				extensionComma();
 1770|       |
 1771|  5.26k|				auto visibility_obj = scoped_object<"KHR_node_visibility">(builder);
 1772|  5.26k|				append_const_key_value<"visible", false>(builder);
 1773|  5.26k|			}
 1774|       |
 1775|  57.7k|			if (!it->selectable) {
  ------------------
  |  Branch (1775:8): [True: 4.42k, False: 53.3k]
  ------------------
 1776|  4.42k|				extensionComma();
 1777|       |
 1778|  4.42k|				auto selectable_obj = scoped_object<"KHR_node_selectability">(builder);
 1779|  4.42k|				append_const_key_value<"selectable", false>(builder);
 1780|  4.42k|			}
 1781|       |
 1782|  57.7k|			if (!it->hoverable) {
  ------------------
  |  Branch (1782:8): [True: 964, False: 56.7k]
  ------------------
 1783|    964|				extensionComma();
 1784|       |
 1785|    964|				auto hoverability_obj = scoped_object<"KHR_node_hoverability">(builder);
 1786|    964|				append_const_key_value<"hoverable", false>(builder);
 1787|    964|			}
 1788|  57.7k|		}
 1789|       |
 1790|   178k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1790:7): [True: 0, False: 178k]
  ------------------
 1791|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.nodes.begin(), it)), Category::Nodes, userPointer);
 1792|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 0]
  ------------------
 1793|      0|				comma();
 1794|      0|				append_raw_key_value<"extras">(builder, *extras);
 1795|      0|			}
 1796|      0|		}
 1797|       |
 1798|   178k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1798:7): [True: 41.1k, False: 137k]
  ------------------
 1799|  41.1k|			comma();
 1800|  41.1k|			builder.append_key_value<"name">(it->name);
 1801|  41.1k|		}
 1802|   178k|	}
 1803|  9.95k|}
_ZN8fastgltf8Exporter4impl13writeSamplersERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1805|  4.19k|void fg::Exporter::impl::writeSamplers(const Asset& asset, simdjson::builder::string_builder& builder) {
 1806|  4.19k|	if (asset.samplers.empty())
  ------------------
  |  Branch (1806:6): [True: 0, False: 4.19k]
  ------------------
 1807|      0|		return;
 1808|       |
 1809|  4.19k|	auto samplers = scoped_array<"samplers">(builder);
 1810|       |
 1811|  46.5k|	for (auto it = asset.samplers.begin(); it != asset.samplers.end(); ++it) {
  ------------------
  |  Branch (1811:41): [True: 42.3k, False: 4.19k]
  ------------------
 1812|  42.3k|		if (it != asset.samplers.begin())
  ------------------
  |  Branch (1812:7): [True: 38.1k, False: 4.19k]
  ------------------
 1813|  38.1k|			builder.append_comma();
 1814|       |
 1815|  42.3k|		auto obj = scoped_object(builder);
 1816|       |
 1817|  42.3k|		comma_separator comma { builder };
 1818|       |
 1819|  42.3k|		if (it->magFilter.has_value()) {
  ------------------
  |  Branch (1819:7): [True: 6.78k, False: 35.5k]
  ------------------
 1820|  6.78k|			comma();
 1821|  6.78k|			builder.append_key_value<"magFilter">(to_underlying(it->magFilter.value()));
 1822|  6.78k|		}
 1823|  42.3k|		if (it->minFilter.has_value()) {
  ------------------
  |  Branch (1823:7): [True: 8.64k, False: 33.7k]
  ------------------
 1824|  8.64k|			comma();
 1825|  8.64k|			builder.append_key_value<"minFilter">(to_underlying(it->minFilter.value()));
 1826|  8.64k|		}
 1827|  42.3k|		if (it->wrapS != Wrap::Repeat) {
  ------------------
  |  Branch (1827:7): [True: 2.97k, False: 39.3k]
  ------------------
 1828|  2.97k|			comma();
 1829|  2.97k|			builder.append_key_value<"wrapS">(to_underlying(it->wrapS));
 1830|  2.97k|		}
 1831|  42.3k|		if (it->wrapT != Wrap::Repeat) {
  ------------------
  |  Branch (1831:7): [True: 3.32k, False: 39.0k]
  ------------------
 1832|  3.32k|			comma();
 1833|  3.32k|			builder.append_key_value<"wrapT">(to_underlying(it->wrapT));
 1834|  3.32k|		}
 1835|       |
 1836|  42.3k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1836:7): [True: 0, False: 42.3k]
  ------------------
 1837|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.samplers.begin(), it)), Category::Samplers, userPointer);
 1838|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1838:8): [True: 0, False: 0]
  ------------------
 1839|      0|				comma();
 1840|      0|				append_raw_key_value<"extras">(builder, *extras);
 1841|      0|			}
 1842|      0|		}
 1843|       |
 1844|  42.3k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1844:7): [True: 10.2k, False: 32.1k]
  ------------------
 1845|  10.2k|			comma();
 1846|  10.2k|			builder.append_key_value<"name">(it->name);
 1847|  10.2k|		}
 1848|  42.3k|	}
 1849|  4.19k|}
_ZN8fastgltf8Exporter4impl11writeScenesERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1851|  6.06k|void fg::Exporter::impl::writeScenes(const Asset& asset, simdjson::builder::string_builder& builder) {
 1852|  6.06k|	if (asset.scenes.empty())
  ------------------
  |  Branch (1852:6): [True: 0, False: 6.06k]
  ------------------
 1853|      0|		return;
 1854|       |
 1855|  6.06k|	if (asset.defaultScene.has_value()) {
  ------------------
  |  Branch (1855:6): [True: 5.63k, False: 430]
  ------------------
 1856|  5.63k|		builder.append_key_value<"scene">(asset.defaultScene.value());
 1857|  5.63k|		builder.append_comma();
 1858|  5.63k|	}
 1859|       |
 1860|  6.06k|	auto scenes = scoped_array<"scenes">(builder);
 1861|       |
 1862|  45.5k|	for (auto it = asset.scenes.begin(); it != asset.scenes.end(); ++it) {
  ------------------
  |  Branch (1862:39): [True: 39.4k, False: 6.06k]
  ------------------
 1863|  39.4k|		if (it != asset.scenes.begin())
  ------------------
  |  Branch (1863:7): [True: 33.3k, False: 6.06k]
  ------------------
 1864|  33.3k|			builder.append_comma();
 1865|       |
 1866|  39.4k|		auto obj = scoped_object(builder);
 1867|       |
 1868|  39.4k|		comma_separator comma {builder};
 1869|       |
 1870|       |		// scene.nodes is optional (minItems:1), so omit when empty.
 1871|  39.4k|		if (!it->nodeIndices.empty()) {
  ------------------
  |  Branch (1871:7): [True: 2.90k, False: 36.5k]
  ------------------
 1872|  2.90k|			comma();
 1873|  2.90k|			append_key_range<"nodes">(builder, it->nodeIndices);
 1874|  2.90k|		}
 1875|       |
 1876|  39.4k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1876:7): [True: 0, False: 39.4k]
  ------------------
 1877|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.scenes.begin(), it)), Category::Scenes, userPointer);
 1878|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1878:8): [True: 0, False: 0]
  ------------------
 1879|      0|				comma();
 1880|      0|				append_raw_key_value<"extras">(builder, *extras);
 1881|      0|			}
 1882|      0|		}
 1883|       |
 1884|  39.4k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1884:7): [True: 11.2k, False: 28.2k]
  ------------------
 1885|  11.2k|			comma();
 1886|  11.2k|			builder.append_key_value<"name">(it->name);
 1887|  11.2k|		}
 1888|  39.4k|	}
 1889|  6.06k|}
_ZN8fastgltf8Exporter4impl10writeSkinsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1891|  2.13k|void fg::Exporter::impl::writeSkins(const Asset& asset, simdjson::builder::string_builder& builder) {
 1892|  2.13k|	if (asset.skins.empty())
  ------------------
  |  Branch (1892:6): [True: 0, False: 2.13k]
  ------------------
 1893|      0|		return;
 1894|       |
 1895|  2.13k|	auto skins = scoped_array<"skins">(builder);
 1896|       |
 1897|  16.4k|	for (auto it = asset.skins.begin(); it != asset.skins.end(); ++it) {
  ------------------
  |  Branch (1897:38): [True: 14.3k, False: 2.13k]
  ------------------
 1898|  14.3k|		if (it != asset.skins.begin())
  ------------------
  |  Branch (1898:7): [True: 12.1k, False: 2.13k]
  ------------------
 1899|  12.1k|			builder.append_comma();
 1900|       |
 1901|  14.3k|		auto obj = scoped_object(builder);
 1902|       |
 1903|  14.3k|		if (it->inverseBindMatrices.has_value()) {
  ------------------
  |  Branch (1903:7): [True: 668, False: 13.6k]
  ------------------
 1904|    668|			builder.append_key_value<"inverseBindMatrices">(it->inverseBindMatrices.value());
 1905|    668|			builder.append_comma();
 1906|    668|		}
 1907|       |
 1908|  14.3k|		if (it->skeleton.has_value()) {
  ------------------
  |  Branch (1908:7): [True: 89, False: 14.2k]
  ------------------
 1909|     89|			builder.append_key_value<"skeleton">(it->skeleton.value());
 1910|     89|			builder.append_comma();
 1911|     89|		}
 1912|       |
 1913|  14.3k|		append_key_range<"joints">(builder, it->joints);
 1914|       |
 1915|  14.3k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1915:7): [True: 0, False: 14.3k]
  ------------------
 1916|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.skins.begin(), it)), Category::Skins, userPointer);
 1917|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1917:8): [True: 0, False: 0]
  ------------------
 1918|      0|				builder.append_comma();
 1919|      0|				append_raw_key_value<"extras">(builder, *extras);
 1920|      0|			}
 1921|      0|		}
 1922|       |
 1923|  14.3k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1923:7): [True: 7.96k, False: 6.36k]
  ------------------
 1924|  7.96k|			builder.append_comma();
 1925|  7.96k|			builder.append_key_value<"name">(it->name);
 1926|  7.96k|		}
 1927|  14.3k|	}
 1928|  2.13k|}
_ZN8fastgltf8Exporter4impl13writeTexturesERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1930|  4.36k|void fg::Exporter::impl::writeTextures(const Asset& asset, simdjson::builder::string_builder& builder) {
 1931|  4.36k|	if (asset.textures.empty())
  ------------------
  |  Branch (1931:6): [True: 0, False: 4.36k]
  ------------------
 1932|      0|		return;
 1933|       |
 1934|  4.36k|	auto textures = scoped_array<"textures">(builder);
 1935|       |
 1936|  33.6k|	for (auto it = asset.textures.begin(); it != asset.textures.end(); ++it) {
  ------------------
  |  Branch (1936:41): [True: 29.2k, False: 4.36k]
  ------------------
 1937|  29.2k|		if (it != asset.textures.begin())
  ------------------
  |  Branch (1937:7): [True: 24.9k, False: 4.36k]
  ------------------
 1938|  24.9k|			builder.append_comma();
 1939|       |
 1940|  29.2k|		auto obj = scoped_object(builder);
 1941|       |
 1942|  29.2k|		comma_separator comma { builder };
 1943|       |
 1944|  29.2k|		if (it->samplerIndex.has_value()) {
  ------------------
  |  Branch (1944:7): [True: 18.5k, False: 10.7k]
  ------------------
 1945|  18.5k|			comma();
 1946|  18.5k|			builder.append_key_value<"sampler">(it->samplerIndex.value());
 1947|  18.5k|		}
 1948|       |
 1949|  29.2k|		if (it->imageIndex.has_value()) {
  ------------------
  |  Branch (1949:7): [True: 25.2k, False: 3.98k]
  ------------------
 1950|  25.2k|			comma();
 1951|  25.2k|			builder.append_key_value<"source">(it->imageIndex.value());
 1952|  25.2k|		}
 1953|       |
 1954|  29.2k|		if (it->basisuImageIndex.has_value() || it->ddsImageIndex.has_value() || it->webpImageIndex.has_value() || it->avifImageIndex.has_value()) {
  ------------------
  |  Branch (1954:7): [True: 3.82k, False: 25.4k]
  |  Branch (1954:43): [True: 15, False: 25.4k]
  |  Branch (1954:76): [True: 120, False: 25.3k]
  |  Branch (1954:110): [True: 28, False: 25.2k]
  ------------------
 1955|  3.98k|			comma();
 1956|       |
 1957|  3.98k|			auto extensions_obj = scoped_object<"extensions">(builder);
 1958|       |
 1959|  3.98k|			comma_separator extensionComma { builder };
 1960|       |
 1961|  3.98k|			if (it->basisuImageIndex.has_value()) {
  ------------------
  |  Branch (1961:8): [True: 3.82k, False: 163]
  ------------------
 1962|  3.82k|				extensionComma();
 1963|  3.82k|				auto basisu_obj = scoped_object<"KHR_texture_basisu">(builder);
 1964|  3.82k|				builder.append_key_value<"source">(it->basisuImageIndex.value());
 1965|  3.82k|			}
 1966|  3.98k|			if (it->ddsImageIndex.has_value()) {
  ------------------
  |  Branch (1966:8): [True: 15, False: 3.96k]
  ------------------
 1967|     15|				extensionComma();
 1968|     15|				auto dds_obj = scoped_object<"MSFT_texture_dds">(builder);
 1969|     15|				builder.append_key_value<"source">(it->ddsImageIndex.value());
 1970|     15|			}
 1971|  3.98k|			if (it->webpImageIndex.has_value()) {
  ------------------
  |  Branch (1971:8): [True: 120, False: 3.86k]
  ------------------
 1972|    120|				extensionComma();
 1973|    120|				auto webp_obj = scoped_object<"EXT_texture_webp">(builder);
 1974|    120|				builder.append_key_value<"source">(it->webpImageIndex.value());
 1975|    120|			}
 1976|  3.98k|			if (it->avifImageIndex.has_value()) {
  ------------------
  |  Branch (1976:8): [True: 28, False: 3.95k]
  ------------------
 1977|     28|				extensionComma();
 1978|     28|				auto avif_obj = scoped_object<"EXT_texture_avif">(builder);
 1979|     28|				builder.append_key_value<"source">(it->avifImageIndex.value());
 1980|     28|			}
 1981|  3.98k|		}
 1982|       |
 1983|  29.2k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (1983:7): [True: 0, False: 29.2k]
  ------------------
 1984|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.textures.begin(), it)), Category::Textures, userPointer);
 1985|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (1985:8): [True: 0, False: 0]
  ------------------
 1986|      0|				comma();
 1987|      0|				append_raw_key_value<"extras">(builder, *extras);
 1988|      0|			}
 1989|      0|		}
 1990|       |
 1991|  29.2k|		if (!it->name.empty()) {
  ------------------
  |  Branch (1991:7): [True: 11.6k, False: 17.6k]
  ------------------
 1992|  11.6k|			comma();
 1993|  11.6k|			builder.append_key_value<"name">(it->name);
 1994|  11.6k|		}
 1995|  29.2k|	}
 1996|  4.36k|}
_ZN8fastgltf8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 1998|    942|void fg::Exporter::impl::writeShapes(const Asset& asset, simdjson::builder::string_builder& builder) {
 1999|    942|	if (asset.shapes.empty()) {
  ------------------
  |  Branch (1999:6): [True: 0, False: 942]
  ------------------
 2000|      0|		return;
 2001|      0|	}
 2002|       |
 2003|    942|	auto implicit_shapes = scoped_object<"KHR_implicit_shapes">(builder);
 2004|    942|	auto shapes = scoped_array<"shapes">(builder);
 2005|       |
 2006|  45.2k|	for (auto it = asset.shapes.begin(); it != asset.shapes.end(); ++it) {
  ------------------
  |  Branch (2006:39): [True: 44.3k, False: 942]
  ------------------
 2007|  44.3k|		if (it != asset.shapes.begin())
  ------------------
  |  Branch (2007:7): [True: 43.3k, False: 942]
  ------------------
 2008|  43.3k|			builder.append_comma();
 2009|       |
 2010|  44.3k|		auto obj = scoped_object(builder);
 2011|       |
 2012|  44.3k|		const auto& shape = *it;
 2013|       |
 2014|  44.3k|		visit_exhaustive(visitor {
 2015|  44.3k|			[&](const SphereShape& sphere) {
 2016|  44.3k|				append_const_key_value<"type", "sphere">(builder);
 2017|  44.3k|				builder.append_comma();
 2018|       |
 2019|  44.3k|				auto sphere_obj = scoped_object<"sphere">(builder);
 2020|  44.3k|				builder.append_key_value<"radius">(sphere.radius);
 2021|  44.3k|			},
 2022|  44.3k|			[&](const BoxShape& box) {
 2023|  44.3k|				append_const_key_value<"type", "box">(builder);
 2024|  44.3k|				builder.append_comma();
 2025|       |
 2026|  44.3k|				auto box_obj = scoped_object<"box">(builder);
 2027|  44.3k|				append_key_range<"size">(builder, box.size);
 2028|  44.3k|			},
 2029|  44.3k|			[&](const CylinderShape& cylinder) {
 2030|  44.3k|				append_const_key_value<"type", "cylinder">(builder);
 2031|  44.3k|				builder.append_comma();
 2032|       |
 2033|  44.3k|				auto cylinder_obj = scoped_object<"cylinder">(builder);
 2034|  44.3k|				builder.append_key_value<"height">(cylinder.height);
 2035|  44.3k|				builder.append_comma();
 2036|  44.3k|				builder.append_key_value<"radiusBottom">(cylinder.radiusBottom);
 2037|  44.3k|				builder.append_comma();
 2038|  44.3k|				builder.append_key_value<"radiusTop">(cylinder.radiusTop);
 2039|  44.3k|			},
 2040|  44.3k|			[&](const CapsuleShape& capsule) {
 2041|  44.3k|				append_const_key_value<"type", "capsule">(builder);
 2042|  44.3k|				builder.append_comma();
 2043|       |
 2044|  44.3k|				auto capsule_obj = scoped_object<"capsule">(builder);
 2045|  44.3k|				builder.append_key_value<"height">(capsule.height);
 2046|  44.3k|				builder.append_comma();
 2047|  44.3k|				builder.append_key_value<"radiusBottom">(capsule.radiusBottom);
 2048|  44.3k|				builder.append_comma();
 2049|  44.3k|				builder.append_key_value<"radiusTop">(capsule.radiusTop);
 2050|  44.3k|			},
 2051|  44.3k|			[&](const PlaneShape& plane) {
 2052|  44.3k|				append_const_key_value<"type", "plane">(builder);
 2053|  44.3k|				builder.append_comma();
 2054|       |
 2055|  44.3k|				auto plane_obj = scoped_object<"plane">(builder);
 2056|  44.3k|				builder.append_key_value<"sizeX">(plane.sizeX);
 2057|  44.3k|				builder.append_comma();
 2058|  44.3k|				builder.append_key_value<"sizeZ">(plane.sizeZ);
 2059|  44.3k|				builder.append_comma();
 2060|  44.3k|				builder.append_key_value<"doubleSided">(plane.doubleSided);
 2061|  44.3k|			}
 2062|  44.3k|		}, shape.data);
 2063|       |
 2064|  44.3k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (2064:7): [True: 0, False: 44.3k]
  ------------------
 2065|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.shapes.begin(), it)), Category::Shapes, userPointer);
 2066|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (2066:8): [True: 0, False: 0]
  ------------------
 2067|      0|				builder.append_comma();
 2068|      0|				append_raw_key_value<"extras">(builder, *extras);
 2069|      0|			}
 2070|      0|		}
 2071|       |
 2072|  44.3k|		if (!it->name.empty()) {
  ------------------
  |  Branch (2072:7): [True: 14.7k, False: 29.5k]
  ------------------
 2073|  14.7k|			builder.append_comma();
 2074|  14.7k|			builder.append_key_value<"name">(it->name);
 2075|  14.7k|		}
 2076|  44.3k|	}
 2077|    942|}
_ZN8fastgltf8Exporter4impl21writePhysicsMaterialsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 2079|    749|void fg::Exporter::impl::writePhysicsMaterials(const Asset& asset, simdjson::builder::string_builder& builder) {
 2080|    749|	if (asset.physicsMaterials.empty()) {
  ------------------
  |  Branch (2080:6): [True: 0, False: 749]
  ------------------
 2081|      0|		return;
 2082|      0|	}
 2083|       |
 2084|    749|	auto physics_materials = scoped_array<"physicsMaterials">(builder);
 2085|       |
 2086|    749|	const auto writeCombineMode = [&builder](CombineMode mode) {
 2087|    749|		switch (mode) {
 2088|    749|		case CombineMode::Average:
 2089|    749|		case CombineMode::Invalid:
 2090|    749|			builder.escape_and_append_with_quotes<"average">();
 2091|    749|			break;
 2092|    749|		case CombineMode::Minimum:
 2093|    749|			builder.escape_and_append_with_quotes<"minimum">();
 2094|    749|			break;
 2095|    749|		case CombineMode::Maximum:
 2096|    749|			builder.escape_and_append_with_quotes<"maximum">();
 2097|    749|			break;
 2098|    749|		case CombineMode::Multiply:
 2099|    749|			builder.escape_and_append_with_quotes<"multiply">();
 2100|    749|			break;
 2101|    749|		}
 2102|    749|	};
 2103|       |
 2104|   109k|	for (auto it = asset.physicsMaterials.begin(); it != asset.physicsMaterials.end(); ++it) {
  ------------------
  |  Branch (2104:49): [True: 108k, False: 749]
  ------------------
 2105|   108k|		if (it != asset.physicsMaterials.begin())
  ------------------
  |  Branch (2105:7): [True: 108k, False: 749]
  ------------------
 2106|   108k|			builder.append_comma();
 2107|       |
 2108|   108k|		auto obj = scoped_object(builder);
 2109|       |
 2110|   108k|		const auto& material = *it;
 2111|       |
 2112|   108k|		builder.append_key_value<"staticFriction">(material.staticFriction);
 2113|   108k|		builder.append_comma();
 2114|   108k|		builder.append_key_value<"dynamicFriction">(material.dynamicFriction);
 2115|   108k|		builder.append_comma();
 2116|   108k|		builder.append_key_value<"restitution">(material.restitution);
 2117|   108k|		builder.append_comma();
 2118|       |
 2119|   108k|		builder.escape_and_append_with_quotes<"frictionCombine">();
 2120|   108k|		builder.append_colon();
 2121|   108k|		writeCombineMode(material.frictionCombine);
 2122|       |
 2123|   108k|		builder.append_comma();
 2124|       |
 2125|   108k|		builder.escape_and_append_with_quotes<"restitutionCombine">();
 2126|   108k|		builder.append_colon();
 2127|   108k|		writeCombineMode(material.restitutionCombine);
 2128|       |
 2129|   108k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (2129:7): [True: 0, False: 108k]
  ------------------
 2130|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.physicsMaterials.begin(), it)), Category::PhysicsMaterials, userPointer);
 2131|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (2131:8): [True: 0, False: 0]
  ------------------
 2132|      0|				builder.append_comma();
 2133|      0|				append_raw_key_value<"extras">(builder, *extras);
 2134|      0|			}
 2135|      0|		}
 2136|   108k|	}
 2137|    749|}
_ZN8fastgltf8Exporter4impl21writeCollisionFiltersERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 2139|  1.06k|void fg::Exporter::impl::writeCollisionFilters(const Asset& asset, simdjson::builder::string_builder& builder) {
 2140|  1.06k|	if (asset.collisionFilters.empty()) {
  ------------------
  |  Branch (2140:6): [True: 0, False: 1.06k]
  ------------------
 2141|      0|		return;
 2142|      0|	}
 2143|       |
 2144|  1.06k|	auto collision_filters = scoped_array<"collisionFilters">(builder);
 2145|       |
 2146|  49.5k|	for (auto it = asset.collisionFilters.begin(); it != asset.collisionFilters.end(); ++it) {
  ------------------
  |  Branch (2146:49): [True: 48.5k, False: 1.06k]
  ------------------
 2147|  48.5k|		if (it != asset.collisionFilters.begin())
  ------------------
  |  Branch (2147:7): [True: 47.4k, False: 1.06k]
  ------------------
 2148|  47.4k|			builder.append_comma();
 2149|       |
 2150|  48.5k|		auto obj = scoped_object(builder);
 2151|       |
 2152|  48.5k|		const auto& filter = *it;
 2153|       |
 2154|  48.5k|		comma_separator comma { builder };
 2155|       |
 2156|  48.5k|		if (!filter.collisionSystems.empty()) {
  ------------------
  |  Branch (2156:7): [True: 4.08k, False: 44.4k]
  ------------------
 2157|  4.08k|			comma();
 2158|  4.08k|			append_key_range<"collisionSystems">(builder, filter.collisionSystems);
 2159|  4.08k|		}
 2160|       |
 2161|  48.5k|		if (!filter.collideWithSystems.empty()) {
  ------------------
  |  Branch (2161:7): [True: 4.94k, False: 43.5k]
  ------------------
 2162|  4.94k|			comma();
 2163|  4.94k|			append_key_range<"collideWithSystems">(builder, filter.collideWithSystems);
 2164|  4.94k|		}
 2165|       |
 2166|  48.5k|		if (!filter.notCollideWithSystems.empty()) {
  ------------------
  |  Branch (2166:7): [True: 5.41k, False: 43.1k]
  ------------------
 2167|  5.41k|			comma();
 2168|  5.41k|			append_key_range<"notCollideWithSystems">(builder, filter.notCollideWithSystems);
 2169|  5.41k|		}
 2170|       |
 2171|  48.5k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (2171:7): [True: 0, False: 48.5k]
  ------------------
 2172|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.collisionFilters.begin(), it)), Category::Shapes, userPointer);
 2173|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (2173:8): [True: 0, False: 0]
  ------------------
 2174|      0|				comma();
 2175|      0|				append_raw_key_value<"extras">(builder, *extras);
 2176|      0|			}
 2177|      0|		}
 2178|  48.5k|	}
 2179|  1.06k|}
_ZN8fastgltf8Exporter4impl18writePhysicsJointsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 2181|    100|void fg::Exporter::impl::writePhysicsJoints(const Asset& asset, simdjson::builder::string_builder& builder) {
 2182|    100|	if (asset.physicsJoints.empty()) {
  ------------------
  |  Branch (2182:6): [True: 0, False: 100]
  ------------------
 2183|      0|		return;
 2184|      0|	}
 2185|       |
 2186|    100|	auto physics_joints = scoped_array<"physicsJoints">(builder);
 2187|       |
 2188|   135k|	for (auto it = asset.physicsJoints.begin(); it != asset.physicsJoints.end(); ++it) {
  ------------------
  |  Branch (2188:46): [True: 135k, False: 100]
  ------------------
 2189|   135k|		if (it != asset.physicsJoints.begin())
  ------------------
  |  Branch (2189:7): [True: 135k, False: 100]
  ------------------
 2190|   135k|			builder.append_comma();
 2191|       |
 2192|   135k|		auto obj = scoped_object(builder);
 2193|       |
 2194|   135k|		const auto& joint = *it;
 2195|       |
 2196|   135k|		if (!joint.limits.empty()) {
  ------------------
  |  Branch (2196:7): [True: 0, False: 135k]
  ------------------
 2197|      0|			auto limits = scoped_array<"limits">(builder);
 2198|       |
 2199|      0|			for (auto lit = joint.limits.begin(); lit != joint.limits.end(); ++lit) {
  ------------------
  |  Branch (2199:42): [True: 0, False: 0]
  ------------------
 2200|      0|				if (lit != joint.limits.begin())
  ------------------
  |  Branch (2200:9): [True: 0, False: 0]
  ------------------
 2201|      0|					builder.append_comma();
 2202|       |
 2203|      0|				auto limit_obj = scoped_object(builder);
 2204|       |
 2205|      0|				const auto& limit = *lit;
 2206|       |
 2207|      0|				if (!limit.linearAxes.empty()) {
  ------------------
  |  Branch (2207:9): [True: 0, False: 0]
  ------------------
 2208|      0|					append_key_range<"linearAxes">(builder, limit.linearAxes);
 2209|      0|					builder.append_comma();
 2210|      0|				}
 2211|      0|				if (!limit.angularAxes.empty()) {
  ------------------
  |  Branch (2211:9): [True: 0, False: 0]
  ------------------
 2212|      0|					append_key_range<"angularAxes">(builder, limit.angularAxes);
 2213|      0|					builder.append_comma();
 2214|      0|				}
 2215|      0|				if (limit.min) {
  ------------------
  |  Branch (2215:9): [True: 0, False: 0]
  ------------------
 2216|      0|					builder.append_key_value<"min">(*limit.min);
 2217|      0|					builder.append_comma();
 2218|      0|				}
 2219|      0|				if (limit.max) {
  ------------------
  |  Branch (2219:9): [True: 0, False: 0]
  ------------------
 2220|      0|					builder.append_key_value<"max">(*limit.max);
 2221|      0|					builder.append_comma();
 2222|      0|				}
 2223|      0|				if (limit.stiffness) {
  ------------------
  |  Branch (2223:9): [True: 0, False: 0]
  ------------------
 2224|      0|					builder.append_key_value<"stiffness">(*limit.stiffness);
 2225|      0|					builder.append_comma();
 2226|      0|				}
 2227|      0|				builder.append_key_value<"damping">(limit.damping);
 2228|      0|			}
 2229|      0|		}
 2230|       |
 2231|   135k|		if (!joint.drives.empty()) {
  ------------------
  |  Branch (2231:7): [True: 0, False: 135k]
  ------------------
 2232|      0|			if (!joint.limits.empty())
  ------------------
  |  Branch (2232:8): [True: 0, False: 0]
  ------------------
 2233|      0|				builder.append_comma();
 2234|       |
 2235|      0|			auto drives = scoped_array<"drives">(builder);
 2236|       |
 2237|      0|			for (auto dit = joint.drives.begin(); dit != joint.drives.end(); ++dit) {
  ------------------
  |  Branch (2237:42): [True: 0, False: 0]
  ------------------
 2238|      0|				if (dit != joint.drives.begin())
  ------------------
  |  Branch (2238:9): [True: 0, False: 0]
  ------------------
 2239|      0|					builder.append_comma();
 2240|       |
 2241|      0|				auto drive_obj = scoped_object(builder);
 2242|       |
 2243|      0|				const auto& drive = *dit;
 2244|       |
 2245|      0|				switch (drive.type) {
  ------------------
  |  Branch (2245:13): [True: 0, False: 0]
  ------------------
 2246|      0|				case DriveType::Linear:
  ------------------
  |  Branch (2246:5): [True: 0, False: 0]
  ------------------
 2247|      0|					append_const_key_value<"type", "linear">(builder);
 2248|      0|					break;
 2249|      0|				case DriveType::Angular:
  ------------------
  |  Branch (2249:5): [True: 0, False: 0]
  ------------------
 2250|      0|					append_const_key_value<"type", "angular">(builder);
 2251|      0|					break;
 2252|      0|				}
 2253|       |
 2254|      0|				builder.append_comma();
 2255|      0|				switch (drive.mode) {
  ------------------
  |  Branch (2255:13): [True: 0, False: 0]
  ------------------
 2256|      0|				case DriveMode::Force:
  ------------------
  |  Branch (2256:5): [True: 0, False: 0]
  ------------------
 2257|      0|					append_const_key_value<"mode", "force">(builder);
 2258|      0|					break;
 2259|      0|				case DriveMode::Acceleration:
  ------------------
  |  Branch (2259:5): [True: 0, False: 0]
  ------------------
 2260|      0|					append_const_key_value<"mode", "acceleration">(builder);
 2261|      0|					break;
 2262|      0|				}
 2263|       |
 2264|      0|				builder.append_comma();
 2265|      0|				builder.append_key_value<"axis">(drive.axis);
 2266|      0|				builder.append_comma();
 2267|      0|				builder.append_key_value<"maxForce">(drive.maxForce);
 2268|      0|				builder.append_comma();
 2269|      0|				builder.append_key_value<"positionTarget">(drive.positionTarget);
 2270|      0|				builder.append_comma();
 2271|      0|				builder.append_key_value<"velocityTarget">(drive.velocityTarget);
 2272|      0|				builder.append_comma();
 2273|      0|				builder.append_key_value<"stiffness">(drive.stiffness);
 2274|      0|				builder.append_comma();
 2275|      0|				builder.append_key_value<"damping">(drive.damping);
 2276|      0|			}
 2277|      0|		}
 2278|       |
 2279|   135k|		if (extrasWriteCallback != nullptr) {
  ------------------
  |  Branch (2279:7): [True: 0, False: 135k]
  ------------------
 2280|      0|			auto extras = extrasWriteCallback(uabs(std::distance(asset.physicsJoints.begin(), it)), Category::PhysicsJoints, userPointer);
 2281|      0|			if (extras.has_value()) {
  ------------------
  |  Branch (2281:8): [True: 0, False: 0]
  ------------------
 2282|      0|				if (!joint.limits.empty() || !joint.drives.empty()) {
  ------------------
  |  Branch (2282:9): [True: 0, False: 0]
  |  Branch (2282:34): [True: 0, False: 0]
  ------------------
 2283|      0|					builder.append_comma();
 2284|      0|				}
 2285|      0|				append_raw_key_value<"extras">(builder, *extras);
 2286|      0|			}
 2287|      0|		}
 2288|   135k|	}
 2289|    100|}
_ZN8fastgltf8Exporter4impl15writeExtensionsERKNS_5AssetERN8simdjson8fallback7builder14string_builderE:
 2291|  40.9k|void fg::Exporter::impl::writeExtensions(const Asset& asset, simdjson::builder::string_builder& builder) {
 2292|  40.9k|	auto extensions = scoped_object<"extensions">(builder);
 2293|       |
 2294|  40.9k|	comma_separator comma { builder };
 2295|       |
 2296|  40.9k|	if (!asset.lights.empty()) {
  ------------------
  |  Branch (2296:6): [True: 874, False: 40.1k]
  ------------------
 2297|    874|		comma();
 2298|    874|		writeLights(asset, builder);
 2299|    874|	}
 2300|       |
 2301|  40.9k|	if (!asset.shapes.empty()) {
  ------------------
  |  Branch (2301:6): [True: 942, False: 40.0k]
  ------------------
 2302|    942|		comma();
 2303|    942|		writeShapes(asset, builder);
 2304|    942|	}
 2305|       |
 2306|  40.9k|	if (!asset.physicsMaterials.empty() || !asset.collisionFilters.empty() || !asset.physicsJoints.empty()) {
  ------------------
  |  Branch (2306:6): [True: 749, False: 40.2k]
  |  Branch (2306:41): [True: 1.05k, False: 39.1k]
  |  Branch (2306:76): [True: 75, False: 39.1k]
  ------------------
 2307|  1.88k|		comma();
 2308|       |
 2309|  1.88k|		auto obj = scoped_object<"KHR_physics_rigid_bodies">(builder);
 2310|       |
 2311|  1.88k|		comma_separator physicsComma { builder };
 2312|  1.88k|		if (!asset.physicsMaterials.empty()) {
  ------------------
  |  Branch (2312:7): [True: 749, False: 1.13k]
  ------------------
 2313|    749|			physicsComma();
 2314|    749|			writePhysicsMaterials(asset, builder);
 2315|    749|		}
 2316|  1.88k|		if (!asset.collisionFilters.empty()) {
  ------------------
  |  Branch (2316:7): [True: 1.06k, False: 819]
  ------------------
 2317|  1.06k|			physicsComma();
 2318|  1.06k|			writeCollisionFilters(asset, builder);
 2319|  1.06k|		}
 2320|  1.88k|		if (!asset.physicsJoints.empty()) {
  ------------------
  |  Branch (2320:7): [True: 100, False: 1.78k]
  ------------------
 2321|    100|			physicsComma();
 2322|    100|			writePhysicsJoints(asset, builder);
 2323|    100|		}
 2324|  1.88k|	}
 2325|       |
 2326|  40.9k|	if (!asset.materialVariants.empty()) {
  ------------------
  |  Branch (2326:6): [True: 1.42k, False: 39.5k]
  ------------------
 2327|  1.42k|		comma();
 2328|       |
 2329|  1.42k|		auto obj = scoped_object<"KHR_materials_variants">(builder);
 2330|  1.42k|		auto arr = scoped_array<"variants">(builder);
 2331|  11.5k|		for (auto it = asset.materialVariants.begin(); it != asset.materialVariants.end(); ++it) {
  ------------------
  |  Branch (2331:50): [True: 10.0k, False: 1.42k]
  ------------------
 2332|  10.0k|			if (it != asset.materialVariants.begin())
  ------------------
  |  Branch (2332:8): [True: 8.65k, False: 1.42k]
  ------------------
 2333|  8.65k|				builder.append_comma();
 2334|       |
 2335|  10.0k|			auto variant_obj = scoped_object(builder);
 2336|  10.0k|			builder.append_key_value<"name">(*it);
 2337|  10.0k|		}
 2338|  1.42k|	}
 2339|  40.9k|}
_ZN8fastgltf8Exporter4impl17getBufferFilePathERKNS_5AssetEm:
 2341|  16.0k|fs::path fg::Exporter::impl::getBufferFilePath(const Asset& asset, std::size_t index) {
 2342|  16.0k|	const auto& bufferName = asset.buffers[index].name;
 2343|  16.0k|	if (bufferName.empty()) {
  ------------------
  |  Branch (2343:6): [True: 12.0k, False: 3.95k]
  ------------------
 2344|  12.0k|		return bufferFolder / ("buffer" + std::to_string(index) + ".bin");
 2345|  12.0k|	}
 2346|  3.95k|	return bufferFolder / (bufferName + ".bin");
 2347|  16.0k|}
_ZN8fastgltf8Exporter4impl16getImageFilePathERKNS_5AssetEmNS_8MimeTypeE:
 2349|  11.6k|fs::path fg::Exporter::impl::getImageFilePath(const Asset& asset, std::size_t index, MimeType mimeType) {
 2350|  11.6k|	auto extension = internal::getFileExtensionForMime(mimeType);
 2351|  11.6k|	const auto& imageName = asset.images[index].name;
 2352|  11.6k|	if (imageName.empty()) {
  ------------------
  |  Branch (2352:6): [True: 2.63k, False: 8.99k]
  ------------------
 2353|  2.63k|		return imageFolder / ("image" + std::to_string(index) + std::string(extension));
 2354|  2.63k|	}
 2355|  8.99k|	return imageFolder / (std::string(imageName) + std::string(extension));
 2356|  11.6k|}
_ZN8fastgltf8Exporter4impl9writeJsonERKNS_5AssetE:
 2358|  40.9k|fg::Expected<std::string> fg::Exporter::impl::writeJson(const Asset &asset) {
 2359|  40.9k|	simdjson::builder::string_builder builder;
 2360|       |
 2361|  40.9k|	{
 2362|  40.9k|		auto root_obj = scoped_object(builder);
 2363|       |
 2364|       |		// Write asset info
 2365|  40.9k|		{
 2366|  40.9k|			auto asset_obj = scoped_object<"asset">(builder);
 2367|  40.9k|			builder.append_key_value<"version">(asset.assetInfo.version.asString());
 2368|  40.9k|			if (!asset.assetInfo.copyright.empty()) {
  ------------------
  |  Branch (2368:8): [True: 4.91k, False: 36.0k]
  ------------------
 2369|  4.91k|				builder.append_comma();
 2370|  4.91k|				builder.append_key_value<"copyright">(asset.assetInfo.copyright);
 2371|  4.91k|			}
 2372|  40.9k|			if (!asset.assetInfo.generator.empty()) {
  ------------------
  |  Branch (2372:8): [True: 6.35k, False: 34.6k]
  ------------------
 2373|  6.35k|				builder.append_comma();
 2374|  6.35k|				builder.append_key_value<"generator">(asset.assetInfo.generator);
 2375|  34.6k|			} else {
 2376|  34.6k|				builder.append_comma();
 2377|  34.6k|				append_const_key_value<"generator", "fastgltf " FASTGLTF_QUOTE(FASTGLTF_VERSION)>(builder);
 2378|  34.6k|			}
 2379|  40.9k|			if (asset.assetInfo.minVersion.has_value()) {
  ------------------
  |  Branch (2379:8): [True: 22, False: 40.9k]
  ------------------
 2380|     22|				builder.append_comma();
 2381|     22|				builder.append_key_value<"minVersion">(asset.assetInfo.minVersion->asString());
 2382|     22|			}
 2383|  40.9k|		}
 2384|       |
 2385|       |		// Write extension usage info
 2386|  40.9k|		if (!asset.extensionsUsed.empty()) {
  ------------------
  |  Branch (2386:7): [True: 14.0k, False: 26.9k]
  ------------------
 2387|  14.0k|			builder.append_comma();
 2388|  14.0k|			append_key_range<"extensionsUsed">(builder, asset.extensionsUsed);
 2389|  14.0k|		}
 2390|  40.9k|		if (!asset.extensionsRequired.empty()) {
  ------------------
  |  Branch (2390:7): [True: 2.59k, False: 38.3k]
  ------------------
 2391|  2.59k|			builder.append_comma();
 2392|  2.59k|			append_key_range<"extensionsRequired">(builder, asset.extensionsRequired);
 2393|  2.59k|		}
 2394|       |
 2395|  40.9k|		if (!asset.accessors.empty()) {
  ------------------
  |  Branch (2395:7): [True: 7.07k, False: 33.9k]
  ------------------
 2396|  7.07k|			builder.append_comma();
 2397|  7.07k|			writeAccessors(asset, builder);
 2398|  7.07k|		}
 2399|  40.9k|		if (!asset.animations.empty()) {
  ------------------
  |  Branch (2399:7): [True: 643, False: 40.3k]
  ------------------
 2400|    643|			builder.append_comma();
 2401|    643|			writeAnimations(asset, builder);
 2402|    643|		}
 2403|  40.9k|		if (!asset.buffers.empty()) {
  ------------------
  |  Branch (2403:7): [True: 8.57k, False: 32.4k]
  ------------------
 2404|  8.57k|			builder.append_comma();
 2405|  8.57k|			if (const auto error = writeBuffers(asset, builder); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2405:57): [True: 0, False: 8.57k]
  ------------------
 2406|      0|				return error;
 2407|  8.57k|		}
 2408|  40.9k|		if (!asset.bufferViews.empty()) {
  ------------------
  |  Branch (2408:7): [True: 5.21k, False: 35.7k]
  ------------------
 2409|  5.21k|			builder.append_comma();
 2410|  5.21k|			writeBufferViews(asset, builder);
 2411|  5.21k|		}
 2412|  40.9k|		if (!asset.cameras.empty()) {
  ------------------
  |  Branch (2412:7): [True: 827, False: 40.1k]
  ------------------
 2413|    827|			builder.append_comma();
 2414|    827|			writeCameras(asset, builder);
 2415|    827|		}
 2416|  40.9k|		if (!asset.images.empty()) {
  ------------------
  |  Branch (2416:7): [True: 8.27k, False: 32.7k]
  ------------------
 2417|  8.27k|			builder.append_comma();
 2418|  8.27k|			if (const auto error = writeImages(asset, builder); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2418:56): [True: 0, False: 8.27k]
  ------------------
 2419|      0|				return error;
 2420|  8.27k|		}
 2421|  40.9k|		if (!asset.materials.empty()) {
  ------------------
  |  Branch (2421:7): [True: 15.0k, False: 25.9k]
  ------------------
 2422|  15.0k|			builder.append_comma();
 2423|  15.0k|			writeMaterials(asset, builder);
 2424|  15.0k|		}
 2425|  40.9k|		if (!asset.meshes.empty()) {
  ------------------
  |  Branch (2425:7): [True: 3.61k, False: 37.3k]
  ------------------
 2426|  3.61k|			builder.append_comma();
 2427|  3.61k|			writeMeshes(asset, builder);
 2428|  3.61k|		}
 2429|  40.9k|		if (!asset.nodes.empty()) {
  ------------------
  |  Branch (2429:7): [True: 9.95k, False: 31.0k]
  ------------------
 2430|  9.95k|			builder.append_comma();
 2431|  9.95k|			writeNodes(asset, builder);
 2432|  9.95k|		}
 2433|  40.9k|		if (!asset.samplers.empty()) {
  ------------------
  |  Branch (2433:7): [True: 4.19k, False: 36.7k]
  ------------------
 2434|  4.19k|			builder.append_comma();
 2435|  4.19k|			writeSamplers(asset, builder);
 2436|  4.19k|		}
 2437|  40.9k|		if (!asset.scenes.empty()) {
  ------------------
  |  Branch (2437:7): [True: 6.06k, False: 34.9k]
  ------------------
 2438|  6.06k|			builder.append_comma();
 2439|  6.06k|			writeScenes(asset, builder);
 2440|  6.06k|		}
 2441|  40.9k|		if (!asset.skins.empty()) {
  ------------------
  |  Branch (2441:7): [True: 2.13k, False: 38.8k]
  ------------------
 2442|  2.13k|			builder.append_comma();
 2443|  2.13k|			writeSkins(asset, builder);
 2444|  2.13k|		}
 2445|  40.9k|		if (!asset.textures.empty()) {
  ------------------
  |  Branch (2445:7): [True: 4.36k, False: 36.6k]
  ------------------
 2446|  4.36k|			builder.append_comma();
 2447|  4.36k|			writeTextures(asset, builder);
 2448|  4.36k|		}
 2449|       |
 2450|  40.9k|		builder.append_comma();
 2451|  40.9k|		writeExtensions(asset, builder);
 2452|  40.9k|	}
 2453|       |
 2454|      0|	std::string json;
 2455|  40.9k|	if (builder.move_to(json) != simdjson::SUCCESS)
  ------------------
  |  Branch (2455:6): [True: 0, False: 40.9k]
  ------------------
 2456|      0|		return Error::Unknown;
 2457|       |
 2458|  40.9k|	if (hasBit(options, ExportOptions::PrettyPrintJson)) {
  ------------------
  |  Branch (2458:6): [True: 0, False: 40.9k]
  ------------------
 2459|      0|       	prettyPrintJson(json);
 2460|      0|	}
 2461|       |
 2462|  40.9k|	return json;
 2463|  40.9k|}
_ZN8fastgltf8Exporter4impl13writeGltfJsonERKNS_5AssetENS_13ExportOptionsE:
 2465|  45.4k|fg::Expected<fg::ExportResult<std::string>> fg::Exporter::impl::writeGltfJson(const Asset& asset, ExportOptions _options) {
 2466|  45.4k|	bufferPaths.clear();
 2467|  45.4k|	imagePaths.clear();
 2468|  45.4k|	options = _options;
 2469|  45.4k|	exportingBinary = false;
 2470|       |
 2471|  45.4k|	if (hasBit(options, ExportOptions::ValidateAsset)) {
  ------------------
  |  Branch (2471:6): [True: 45.4k, False: 0]
  ------------------
 2472|  45.4k|		if (const auto validation = validate(asset); validation != Error::None) {
  ------------------
  |  Branch (2472:48): [True: 4.45k, False: 40.9k]
  ------------------
 2473|  4.45k|			return validation;
 2474|  4.45k|		}
 2475|  45.4k|	}
 2476|       |
 2477|       |	// Fairly rudimentary approach of just composing the JSON string using a std::string.
 2478|  40.9k|	auto outputString = writeJson(asset);
 2479|  40.9k|	if (outputString.has_error()) {
  ------------------
  |  Branch (2479:6): [True: 0, False: 40.9k]
  ------------------
 2480|      0|		return outputString.error();
 2481|      0|	}
 2482|       |
 2483|  40.9k|	ExportResult<std::string> result;
 2484|  40.9k|	result.output = std::move(outputString.get());
 2485|  40.9k|	result.bufferPaths = std::move(bufferPaths);
 2486|  40.9k|	result.imagePaths = std::move(imagePaths);
 2487|  40.9k|	return result;
 2488|  40.9k|}
exporter.cpp:_ZZN8fastgltf8Exporter4impl12writeBuffersERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_4clERKNS_7sources3URIE:
  612|  21.5k|			[&](const sources::URI& uri) {
  613|  21.5k|				builder.append_key_value<"uri">(uri.uri->string());
  614|  21.5k|				builder.append_comma();
  615|  21.5k|				bufferPaths.emplace_back(std::nullopt);
  616|  21.5k|				return Error::None;
  617|  21.5k|			},
exporter.cpp:_ZZN8fastgltf8Exporter4impl12writeBuffersERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_1clERKNS_7sources5ArrayE:
  579|  16.0k|			[&]([[maybe_unused]] const sources::Array& vector) {
  580|  16.0k|				if (bufferIdx == 0 && exportingBinary) {
  ------------------
  |  Branch (580:9): [True: 282, False: 15.7k]
  |  Branch (580:27): [True: 0, False: 282]
  ------------------
  581|      0|					bufferPaths.emplace_back(std::nullopt);
  582|      0|					return Error::None;
  583|      0|				}
  584|  16.0k|				auto path = getBufferFilePath(asset, bufferIdx);
  585|  16.0k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  586|  16.0k|				builder.append_comma();
  587|  16.0k|				bufferPaths.emplace_back(path);
  588|  16.0k|				return Error::None;
  589|  16.0k|			},
exporter.cpp:_ZN8fastgltfL22normalizeAndFormatPathERKNSt3__14__fs10filesystem4pathE:
  190|  27.6k|	static std::string normalizeAndFormatPath(const fs::path& path) {
  191|  27.6k|		return encodePercents(path.lexically_normal().generic_string());
  192|  27.6k|	}
exporter.cpp:_ZZN8fastgltf8Exporter4impl12writeBuffersERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_5clERKNS_7sources8FallbackE:
  618|  5.19k|			[&]([[maybe_unused]] const sources::Fallback& fallback) {
  619|  5.19k|				{
  620|  5.19k|					auto extensions_obj = scoped_object<"extensions">(builder);
  621|  5.19k|					auto meshopt_obj = scoped_object<"EXT_meshopt_compression">(builder);
  622|  5.19k|					append_const_key_value<"fallback", true>(builder);
  623|  5.19k|				}
  624|  5.19k|				builder.append_comma();
  625|  5.19k|				bufferPaths.emplace_back(std::nullopt);
  626|  5.19k|				return Error::None;
  627|  5.19k|			},
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm9EEEtlA9_cLc102ELc97ELc108ELc108ELc98ELc97ELc99ELc107EEEETnDaLb1EEEvRNS1_8fallback7builder14string_builderE:
  278|  5.19k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|  5.19k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|  5.19k|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|  5.19k|	}
exporter.cpp:_ZZN8fastgltf8Exporter4impl12writeCamerasERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_1clERKNS_6Camera11PerspectiveE:
  773|  7.21k|			[&](const Camera::Perspective& perspective) {
  774|  7.21k|				append_const_key_value<"type", "perspective">(builder);
  775|  7.21k|				builder.append_comma();
  776|       |
  777|  7.21k|				{
  778|  7.21k|					auto perspective_obj = scoped_object<"perspective">(builder);
  779|       |
  780|  7.21k|					if (perspective.aspectRatio.has_value()) {
  ------------------
  |  Branch (780:10): [True: 1.51k, False: 5.70k]
  ------------------
  781|  1.51k|						builder.append_key_value<"aspectRatio">(perspective.aspectRatio.value());
  782|  1.51k|						builder.append_comma();
  783|  1.51k|					}
  784|       |
  785|  7.21k|					builder.append_key_value<"yfov">(perspective.yfov);
  786|  7.21k|					builder.append_comma();
  787|       |
  788|  7.21k|					if (perspective.zfar.has_value()) {
  ------------------
  |  Branch (788:10): [True: 3.05k, False: 4.16k]
  ------------------
  789|  3.05k|						builder.append_key_value<"zfar">(perspective.zfar.value());
  790|  3.05k|						builder.append_comma();
  791|  3.05k|					}
  792|       |
  793|  7.21k|					builder.append_key_value<"znear">(perspective.znear);
  794|  7.21k|				}
  795|  7.21k|			},
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  7.21k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  7.21k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  7.21k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  7.21k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  7.21k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  7.21k|			if constexpr (key.view().size() != 0) {
  201|  7.21k|				_builder.escape_and_append_with_quotes<key>();
  202|  7.21k|				_builder.append_colon();
  203|  7.21k|			}
  204|  7.21k|			_builder.start_object();
  205|  7.21k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEED2Ev:
  206|  7.21k|		~scoped_object() {
  207|  7.21k|			_builder.end_object();
  208|  7.21k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl12writeCamerasERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_2clERKNS_6Camera12OrthographicE:
  796|  10.0k|			[&](const Camera::Orthographic& orthographic) {
  797|  10.0k|				append_const_key_value<"type", "orthographic">(builder);
  798|  10.0k|				builder.append_comma();
  799|       |
  800|  10.0k|				{
  801|  10.0k|					auto perspective_obj = scoped_object<"orthographic">(builder);
  802|       |
  803|  10.0k|					builder.append_key_value<"xmag">(orthographic.xmag);
  804|  10.0k|					builder.append_comma();
  805|  10.0k|					builder.append_key_value<"ymag">(orthographic.ymag);
  806|  10.0k|					builder.append_comma();
  807|  10.0k|					builder.append_key_value<"zfar">(orthographic.zfar);
  808|  10.0k|					builder.append_comma();
  809|  10.0k|					builder.append_key_value<"znear">(orthographic.znear);
  810|  10.0k|				}
  811|  10.0k|			}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  10.0k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  10.0k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  10.0k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  10.0k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  10.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  10.0k|			if constexpr (key.view().size() != 0) {
  201|  10.0k|				_builder.escape_and_append_with_quotes<key>();
  202|  10.0k|				_builder.append_colon();
  203|  10.0k|			}
  204|  10.0k|			_builder.start_object();
  205|  10.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEED2Ev:
  206|  10.0k|		~scoped_object() {
  207|  10.0k|			_builder.end_object();
  208|  10.0k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeImagesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_1clERKNS_7sources10BufferViewE:
  846|  2.00k|			[&](const sources::BufferView& bufferView) {
  847|  2.00k|				builder.append_key_value<"bufferView">(bufferView.bufferViewIndex);
  848|  2.00k|				builder.append_comma();
  849|  2.00k|				builder.append_key_value<"mimeType">(internal::getMimeTypeString(bufferView.mimeType));
  850|  2.00k|				imagePaths.emplace_back(std::nullopt);
  851|  2.00k|				return Error::None;
  852|  2.00k|			},
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeImagesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_4clERKNS_7sources3URIE:
  873|  49.9k|			[&](const sources::URI& uri) {
  874|  49.9k|				builder.append_key_value<"uri">(uri.uri->string());
  875|  49.9k|				if (uri.mimeType != MimeType::None) {
  ------------------
  |  Branch (875:9): [True: 6.67k, False: 43.3k]
  ------------------
  876|  6.67k|					builder.append_comma();
  877|  6.67k|					builder.append_key_value<"mimeType">(internal::getMimeTypeString(uri.mimeType));
  878|  6.67k|				}
  879|  49.9k|				imagePaths.emplace_back(std::nullopt);
  880|  49.9k|				return Error::None;
  881|  49.9k|			},
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeImagesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_2clERKNS_7sources5ArrayE:
  853|  11.6k|			[&](const sources::Array& vector) {
  854|  11.6k|				auto path = getImageFilePath(asset, imageIdx, vector.mimeType);
  855|  11.6k|				builder.append_key_value<"uri">(fg::normalizeAndFormatPath(path));
  856|  11.6k|				if (vector.mimeType != MimeType::None) {
  ------------------
  |  Branch (856:9): [True: 1.77k, False: 9.84k]
  ------------------
  857|  1.77k|					builder.append_comma();
  858|  1.77k|					builder.append_key_value<"mimeType">(internal::getMimeTypeString(vector.mimeType));
  859|  1.77k|				}
  860|  11.6k|				imagePaths.emplace_back(path);
  861|  11.6k|				return Error::None;
  862|  11.6k|			},
_ZN8fastgltf15comma_separatorclEv:
  243|  1.59M|		void operator()() {
  244|  1.59M|			if (!first)
  ------------------
  |  Branch (244:8): [True: 546k, False: 1.04M]
  ------------------
  245|   546k|				builder.append_comma();
  246|  1.59M|			first = false;
  247|  1.59M|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_0clERKNS_3TRSE:
 1595|   178k|			[&](const TRS& trs) {
 1596|   178k|				if (trs.rotation != math::nquat(0.f, 0.f, 0.f, 1.f)) {
  ------------------
  |  Branch (1596:9): [True: 12.1k, False: 166k]
  ------------------
 1597|  12.1k|					comma();
 1598|  12.1k|					append_key_range<"rotation">(builder, trs.rotation);
 1599|  12.1k|				}
 1600|       |
 1601|   178k|				if (trs.scale != math::nvec3(1.f)) {
  ------------------
  |  Branch (1601:9): [True: 23.6k, False: 154k]
  ------------------
 1602|  23.6k|					comma();
 1603|  23.6k|					append_key_range<"scale">(builder, trs.scale);
 1604|  23.6k|				}
 1605|       |
 1606|   178k|				if (trs.translation != math::nvec3(0.f)) {
  ------------------
  |  Branch (1606:9): [True: 31.9k, False: 146k]
  ------------------
 1607|  31.9k|					comma();
 1608|  31.9k|					append_key_range<"translation">(builder, trs.translation);
 1609|  31.9k|				}
 1610|   178k|			},
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEENS_4math4quatIfEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  12.1k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  12.1k|		auto arr = scoped_array<key>(builder);
  263|  60.9k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 48.7k, False: 12.1k]
  ------------------
  264|  48.7k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 36.5k, False: 12.1k]
  ------------------
  265|  36.5k|				builder.append_comma();
  266|  48.7k|			builder.append(values[i]);
  267|  48.7k|		}
  268|  12.1k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  12.1k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  12.1k|			if constexpr (key.view().size() != 0) {
  222|  12.1k|				_builder.escape_and_append_with_quotes<key>();
  223|  12.1k|				_builder.append_colon();
  224|  12.1k|			}
  225|  12.1k|			_builder.start_array();
  226|  12.1k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEED2Ev:
  227|  12.1k|		~scoped_array() {
  228|  12.1k|			_builder.end_array();
  229|  12.1k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  23.6k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  23.6k|		auto arr = scoped_array<key>(builder);
  263|  94.4k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 70.8k, False: 23.6k]
  ------------------
  264|  70.8k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 47.2k, False: 23.6k]
  ------------------
  265|  47.2k|				builder.append_comma();
  266|  70.8k|			builder.append(values[i]);
  267|  70.8k|		}
  268|  23.6k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  66.3k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  66.3k|			if constexpr (key.view().size() != 0) {
  222|  66.3k|				_builder.escape_and_append_with_quotes<key>();
  223|  66.3k|				_builder.append_colon();
  224|  66.3k|			}
  225|  66.3k|			_builder.start_array();
  226|  66.3k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEED2Ev:
  227|  66.3k|		~scoped_array() {
  228|  66.3k|			_builder.end_array();
  229|  66.3k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  31.9k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  31.9k|		auto arr = scoped_array<key>(builder);
  263|   127k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 95.9k, False: 31.9k]
  ------------------
  264|  95.9k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 63.9k, False: 31.9k]
  ------------------
  265|  63.9k|				builder.append_comma();
  266|  95.9k|			builder.append(values[i]);
  267|  95.9k|		}
  268|  31.9k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  31.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  31.9k|			if constexpr (key.view().size() != 0) {
  222|  31.9k|				_builder.escape_and_append_with_quotes<key>();
  223|  31.9k|				_builder.append_colon();
  224|  31.9k|			}
  225|  31.9k|			_builder.start_array();
  226|  31.9k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEED2Ev:
  227|  31.9k|		~scoped_array() {
  228|  31.9k|			_builder.end_array();
  229|  31.9k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_4clERKNS_8GeometryE:
 1659|  25.7k|				const auto writeGeometry = [&builder](const Geometry& geom) {
 1660|  25.7k|					auto geometry_obj = scoped_object<"geometry">(builder);
 1661|       |
 1662|  25.7k|					comma_separator geometryComma { builder };
 1663|       |
 1664|  25.7k|					if (geom.shape.has_value()) {
  ------------------
  |  Branch (1664:10): [True: 2.88k, False: 22.8k]
  ------------------
 1665|  2.88k|						geometryComma();
 1666|  2.88k|						builder.append_key_value<"shape">(*geom.shape);
 1667|  22.8k|					} else if (geom.mesh.has_value()) {
  ------------------
  |  Branch (1667:17): [True: 2.53k, False: 20.3k]
  ------------------
 1668|  2.53k|						geometryComma();
 1669|  2.53k|						builder.append_key_value<"mesh">(*geom.mesh);
 1670|  2.53k|					}
 1671|  25.7k|					if (geom.convexHull) {
  ------------------
  |  Branch (1671:10): [True: 1, False: 25.7k]
  ------------------
 1672|      1|						geometryComma();
 1673|      1|						append_const_key_value<"convexHull", true>(builder);
 1674|      1|					}
 1675|  25.7k|				};
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  25.7k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  25.7k|			if constexpr (key.view().size() != 0) {
  201|  25.7k|				_builder.escape_and_append_with_quotes<key>();
  202|  25.7k|				_builder.append_colon();
  203|  25.7k|			}
  204|  25.7k|			_builder.start_object();
  205|  25.7k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEETnDaLb1EEEvRNS1_8fallback7builder14string_builderE:
  278|      1|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|      1|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|      1|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|      1|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEED2Ev:
  206|  25.7k|		~scoped_object() {
  207|  25.7k|			_builder.end_object();
  208|  25.7k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_2clERKNS_15GeometryTriggerE:
 1740|  6.35k|						[&](const GeometryTrigger& gt) {
 1741|  6.35k|							writeGeometry(gt.geometry);
 1742|  6.35k|							if (gt.collisionFilter.has_value()) {
  ------------------
  |  Branch (1742:12): [True: 4.22k, False: 2.12k]
  ------------------
 1743|  4.22k|								builder.append_comma();
 1744|  4.22k|								builder.append_key_value<"collisionFilter">(*gt.collisionFilter);
 1745|  4.22k|							}
 1746|  6.35k|						},
exporter.cpp:_ZZN8fastgltf8Exporter4impl10writeNodesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_3clERKNS_11NodeTriggerE:
 1747|  3.88k|						[&](const NodeTrigger& nt) {
 1748|  3.88k|							append_key_range<"nodes">(builder, nt.nodes);
 1749|  3.88k|						}
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_0clERKNS_11SphereShapeE:
 2015|  21.1k|			[&](const SphereShape& sphere) {
 2016|  21.1k|				append_const_key_value<"type", "sphere">(builder);
 2017|  21.1k|				builder.append_comma();
 2018|       |
 2019|  21.1k|				auto sphere_obj = scoped_object<"sphere">(builder);
 2020|  21.1k|				builder.append_key_value<"radius">(sphere.radius);
 2021|  21.1k|			},
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  21.1k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  21.1k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  21.1k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  21.1k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  21.1k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  21.1k|			if constexpr (key.view().size() != 0) {
  201|  21.1k|				_builder.escape_and_append_with_quotes<key>();
  202|  21.1k|				_builder.append_colon();
  203|  21.1k|			}
  204|  21.1k|			_builder.start_object();
  205|  21.1k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEED2Ev:
  206|  21.1k|		~scoped_object() {
  207|  21.1k|			_builder.end_object();
  208|  21.1k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_1clERKNS_8BoxShapeE:
 2022|     11|			[&](const BoxShape& box) {
 2023|     11|				append_const_key_value<"type", "box">(builder);
 2024|     11|				builder.append_comma();
 2025|       |
 2026|     11|				auto box_obj = scoped_object<"box">(builder);
 2027|     11|				append_key_range<"size">(builder, box.size);
 2028|     11|			},
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm4EEEtlA4_cLc98ELc111ELc120EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|     11|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|     11|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|     11|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|     11|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm4EEEtlA4_cLc98ELc111ELc120EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|     11|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|     11|			if constexpr (key.view().size() != 0) {
  201|     11|				_builder.escape_and_append_with_quotes<key>();
  202|     11|				_builder.append_colon();
  203|     11|			}
  204|     11|			_builder.start_object();
  205|     11|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|     11|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|     11|		auto arr = scoped_array<key>(builder);
  263|     44|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 33, False: 11]
  ------------------
  264|     33|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 22, False: 11]
  ------------------
  265|     22|				builder.append_comma();
  266|     33|			builder.append(values[i]);
  267|     33|		}
  268|     11|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|     11|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|     11|			if constexpr (key.view().size() != 0) {
  222|     11|				_builder.escape_and_append_with_quotes<key>();
  223|     11|				_builder.append_colon();
  224|     11|			}
  225|     11|			_builder.start_array();
  226|     11|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEED2Ev:
  227|     11|		~scoped_array() {
  228|     11|			_builder.end_array();
  229|     11|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm4EEEtlA4_cLc98ELc111ELc120EEEEED2Ev:
  206|     11|		~scoped_object() {
  207|     11|			_builder.end_object();
  208|     11|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_3clERKNS_12CapsuleShapeE:
 2040|  6.73k|			[&](const CapsuleShape& capsule) {
 2041|  6.73k|				append_const_key_value<"type", "capsule">(builder);
 2042|  6.73k|				builder.append_comma();
 2043|       |
 2044|  6.73k|				auto capsule_obj = scoped_object<"capsule">(builder);
 2045|  6.73k|				builder.append_key_value<"height">(capsule.height);
 2046|  6.73k|				builder.append_comma();
 2047|  6.73k|				builder.append_key_value<"radiusBottom">(capsule.radiusBottom);
 2048|  6.73k|				builder.append_comma();
 2049|  6.73k|				builder.append_key_value<"radiusTop">(capsule.radiusTop);
 2050|  6.73k|			},
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  6.73k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  6.73k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  6.73k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  6.73k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  6.73k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  6.73k|			if constexpr (key.view().size() != 0) {
  201|  6.73k|				_builder.escape_and_append_with_quotes<key>();
  202|  6.73k|				_builder.append_colon();
  203|  6.73k|			}
  204|  6.73k|			_builder.start_object();
  205|  6.73k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEED2Ev:
  206|  6.73k|		~scoped_object() {
  207|  6.73k|			_builder.end_object();
  208|  6.73k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_2clERKNS_13CylinderShapeE:
 2029|  3.87k|			[&](const CylinderShape& cylinder) {
 2030|  3.87k|				append_const_key_value<"type", "cylinder">(builder);
 2031|  3.87k|				builder.append_comma();
 2032|       |
 2033|  3.87k|				auto cylinder_obj = scoped_object<"cylinder">(builder);
 2034|  3.87k|				builder.append_key_value<"height">(cylinder.height);
 2035|  3.87k|				builder.append_comma();
 2036|  3.87k|				builder.append_key_value<"radiusBottom">(cylinder.radiusBottom);
 2037|  3.87k|				builder.append_comma();
 2038|  3.87k|				builder.append_key_value<"radiusTop">(cylinder.radiusTop);
 2039|  3.87k|			},
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  3.87k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  3.87k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  3.87k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  3.87k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  3.87k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  3.87k|			if constexpr (key.view().size() != 0) {
  201|  3.87k|				_builder.escape_and_append_with_quotes<key>();
  202|  3.87k|				_builder.append_colon();
  203|  3.87k|			}
  204|  3.87k|			_builder.start_object();
  205|  3.87k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEED2Ev:
  206|  3.87k|		~scoped_object() {
  207|  3.87k|			_builder.end_object();
  208|  3.87k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl11writeShapesERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_4clERKNS_10PlaneShapeE:
 2051|  12.5k|			[&](const PlaneShape& plane) {
 2052|  12.5k|				append_const_key_value<"type", "plane">(builder);
 2053|  12.5k|				builder.append_comma();
 2054|       |
 2055|  12.5k|				auto plane_obj = scoped_object<"plane">(builder);
 2056|  12.5k|				builder.append_key_value<"sizeX">(plane.sizeX);
 2057|  12.5k|				builder.append_comma();
 2058|  12.5k|				builder.append_key_value<"sizeZ">(plane.sizeZ);
 2059|  12.5k|				builder.append_comma();
 2060|  12.5k|				builder.append_key_value<"doubleSided">(plane.doubleSided);
 2061|  12.5k|			}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  12.5k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  12.5k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  12.5k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  12.5k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  12.5k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  12.5k|			if constexpr (key.view().size() != 0) {
  201|  12.5k|				_builder.escape_and_append_with_quotes<key>();
  202|  12.5k|				_builder.append_colon();
  203|  12.5k|			}
  204|  12.5k|			_builder.start_object();
  205|  12.5k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEED2Ev:
  206|  12.5k|		~scoped_object() {
  207|  12.5k|			_builder.end_object();
  208|  12.5k|		}
exporter.cpp:_ZZN8fastgltf8Exporter4impl21writePhysicsMaterialsERKNS_5AssetERN8simdjson8fallback7builder14string_builderEENK3$_0clENS_11CombineModeE:
 2086|   217k|	const auto writeCombineMode = [&builder](CombineMode mode) {
 2087|   217k|		switch (mode) {
  ------------------
  |  Branch (2087:11): [True: 217k, False: 0]
  ------------------
 2088|   217k|		case CombineMode::Average:
  ------------------
  |  Branch (2088:3): [True: 217k, False: 0]
  ------------------
 2089|   217k|		case CombineMode::Invalid:
  ------------------
  |  Branch (2089:3): [True: 0, False: 217k]
  ------------------
 2090|   217k|			builder.escape_and_append_with_quotes<"average">();
 2091|   217k|			break;
 2092|      0|		case CombineMode::Minimum:
  ------------------
  |  Branch (2092:3): [True: 0, False: 217k]
  ------------------
 2093|      0|			builder.escape_and_append_with_quotes<"minimum">();
 2094|      0|			break;
 2095|      0|		case CombineMode::Maximum:
  ------------------
  |  Branch (2095:3): [True: 0, False: 217k]
  ------------------
 2096|      0|			builder.escape_and_append_with_quotes<"maximum">();
 2097|      0|			break;
 2098|      0|		case CombineMode::Multiply:
  ------------------
  |  Branch (2098:3): [True: 0, False: 217k]
  ------------------
 2099|      0|			builder.escape_and_append_with_quotes<"multiply">();
 2100|      0|			break;
 2101|   217k|		}
 2102|   217k|	};
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm10EEEtlA10_cLc97ELc99ELc99ELc101ELc115ELc115ELc111ELc114ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  7.07k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  7.07k|			if constexpr (key.view().size() != 0) {
  222|  7.07k|				_builder.escape_and_append_with_quotes<key>();
  223|  7.07k|				_builder.append_colon();
  224|  7.07k|			}
  225|  7.07k|			_builder.start_array();
  226|  7.07k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm10EEEtlA10_cLc97ELc99ELc99ELc101ELc115ELc115ELc111ELc114ELc115EEEEED2Ev:
  227|  7.07k|		~scoped_array() {
  228|  7.07k|			_builder.end_array();
  229|  7.07k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm1EEEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.77M|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|       |			if constexpr (key.view().size() != 0) {
  201|       |				_builder.escape_and_append_with_quotes<key>();
  202|       |				_builder.append_colon();
  203|       |			}
  204|  1.77M|			_builder.start_object();
  205|  1.77M|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm1EEEEEED2Ev:
  206|  1.77M|		~scoped_object() {
  207|  1.77M|			_builder.end_object();
  208|  1.77M|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm11EEEtlA11_cLc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEETnDaLb1EEEvRNS1_8fallback7builder14string_builderE:
  278|  4.85k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|  4.85k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|  4.85k|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|  4.85k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  14.2k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  14.2k|			if constexpr (key.view().size() != 0) {
  201|  14.2k|				_builder.escape_and_append_with_quotes<key>();
  202|  14.2k|				_builder.append_colon();
  203|  14.2k|			}
  204|  14.2k|			_builder.start_object();
  205|  14.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEED2Ev:
  206|  14.2k|		~scoped_object() {
  207|  14.2k|			_builder.end_object();
  208|  14.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  14.2k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  14.2k|			if constexpr (key.view().size() != 0) {
  201|  14.2k|				_builder.escape_and_append_with_quotes<key>();
  202|  14.2k|				_builder.append_colon();
  203|  14.2k|			}
  204|  14.2k|			_builder.start_object();
  205|  14.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEED2Ev:
  206|  14.2k|		~scoped_object() {
  207|  14.2k|			_builder.end_object();
  208|  14.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  14.2k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  14.2k|			if constexpr (key.view().size() != 0) {
  201|  14.2k|				_builder.escape_and_append_with_quotes<key>();
  202|  14.2k|				_builder.append_colon();
  203|  14.2k|			}
  204|  14.2k|			_builder.start_object();
  205|  14.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEED2Ev:
  206|  14.2k|		~scoped_object() {
  207|  14.2k|			_builder.end_object();
  208|  14.2k|		}
exporter.cpp:_ZN8fastgltfL11writeMinMaxITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm4EEEtlA4_cLc109ELc97ELc120EEEEEEvRNS1_8fallback7builder14string_builderERKNS_14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageISB_EEEE:
  297|   154k|	static void writeMinMax(simdjson::builder::string_builder& builder, const optional<AccessorBoundsArray>& ref) {
  298|   154k|		if (!ref.has_value())
  ------------------
  |  Branch (298:7): [True: 72.7k, False: 82.1k]
  ------------------
  299|  72.7k|			return; // This is valid, since min/max are only required on specific accessors.
  300|       |
  301|  82.1k|		builder.append_comma();
  302|       |
  303|  82.1k|		auto arr = scoped_array<key>(builder);
  304|       |
  305|  82.1k|		const auto size = ref->size();
  306|  82.1k|		if (ref->isType<double>()) {
  ------------------
  |  Branch (306:7): [True: 66.3k, False: 15.8k]
  ------------------
  307|   240k|			for (std::size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (307:28): [True: 174k, False: 66.3k]
  ------------------
  308|   174k|				builder.append(ref->get<double>(i));
  309|       |
  310|   174k|				if (i + 1 < ref->size())
  ------------------
  |  Branch (310:9): [True: 108k, False: 66.3k]
  ------------------
  311|   108k|					builder.append_comma();
  312|   174k|			}
  313|  66.3k|		} else if (ref->isType<std::int64_t>()) {
  ------------------
  |  Branch (313:14): [True: 15.8k, False: 0]
  ------------------
  314|  53.2k|			for (std::size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (314:28): [True: 37.3k, False: 15.8k]
  ------------------
  315|  37.3k|				builder.append(ref->get<std::int64_t>(i));
  316|       |
  317|  37.3k|				if (i + 1 < ref->size())
  ------------------
  |  Branch (317:9): [True: 21.5k, False: 15.8k]
  ------------------
  318|  21.5k|					builder.append_comma();
  319|  37.3k|			}
  320|  15.8k|		}
  321|  82.1k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc97ELc120EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  82.1k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  82.1k|			if constexpr (key.view().size() != 0) {
  222|  82.1k|				_builder.escape_and_append_with_quotes<key>();
  223|  82.1k|				_builder.append_colon();
  224|  82.1k|			}
  225|  82.1k|			_builder.start_array();
  226|  82.1k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc97ELc120EEEEED2Ev:
  227|  82.1k|		~scoped_array() {
  228|  82.1k|			_builder.end_array();
  229|  82.1k|		}
exporter.cpp:_ZN8fastgltfL11writeMinMaxITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm4EEEtlA4_cLc109ELc105ELc110EEEEEEvRNS1_8fallback7builder14string_builderERKNS_14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageISB_EEEE:
  297|   154k|	static void writeMinMax(simdjson::builder::string_builder& builder, const optional<AccessorBoundsArray>& ref) {
  298|   154k|		if (!ref.has_value())
  ------------------
  |  Branch (298:7): [True: 72.9k, False: 81.9k]
  ------------------
  299|  72.9k|			return; // This is valid, since min/max are only required on specific accessors.
  300|       |
  301|  81.9k|		builder.append_comma();
  302|       |
  303|  81.9k|		auto arr = scoped_array<key>(builder);
  304|       |
  305|  81.9k|		const auto size = ref->size();
  306|  81.9k|		if (ref->isType<double>()) {
  ------------------
  |  Branch (306:7): [True: 65.5k, False: 16.4k]
  ------------------
  307|   237k|			for (std::size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (307:28): [True: 172k, False: 65.5k]
  ------------------
  308|   172k|				builder.append(ref->get<double>(i));
  309|       |
  310|   172k|				if (i + 1 < ref->size())
  ------------------
  |  Branch (310:9): [True: 106k, False: 65.5k]
  ------------------
  311|   106k|					builder.append_comma();
  312|   172k|			}
  313|  65.5k|		} else if (ref->isType<std::int64_t>()) {
  ------------------
  |  Branch (313:14): [True: 16.4k, False: 0]
  ------------------
  314|  58.4k|			for (std::size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (314:28): [True: 42.0k, False: 16.4k]
  ------------------
  315|  42.0k|				builder.append(ref->get<std::int64_t>(i));
  316|       |
  317|  42.0k|				if (i + 1 < ref->size())
  ------------------
  |  Branch (317:9): [True: 25.5k, False: 16.4k]
  ------------------
  318|  25.5k|					builder.append_comma();
  319|  42.0k|			}
  320|  16.4k|		}
  321|  81.9k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  81.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  81.9k|			if constexpr (key.view().size() != 0) {
  222|  81.9k|				_builder.escape_and_append_with_quotes<key>();
  223|  81.9k|				_builder.append_colon();
  224|  81.9k|			}
  225|  81.9k|			_builder.start_array();
  226|  81.9k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEED2Ev:
  227|  81.9k|		~scoped_array() {
  228|  81.9k|			_builder.end_array();
  229|  81.9k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc110ELc105ELc109ELc97ELc116ELc105ELc111ELc110ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|    643|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|    643|			if constexpr (key.view().size() != 0) {
  222|    643|				_builder.escape_and_append_with_quotes<key>();
  223|    643|				_builder.append_colon();
  224|    643|			}
  225|    643|			_builder.start_array();
  226|    643|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc110ELc105ELc109ELc97ELc116ELc105ELc111ELc110ELc115EEEEED2Ev:
  227|    643|		~scoped_array() {
  228|    643|			_builder.end_array();
  229|    643|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  22.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  22.0k|			if constexpr (key.view().size() != 0) {
  222|  22.0k|				_builder.escape_and_append_with_quotes<key>();
  223|  22.0k|				_builder.append_colon();
  224|  22.0k|			}
  225|  22.0k|			_builder.start_array();
  226|  22.0k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEED2Ev:
  227|  22.0k|		~scoped_array() {
  228|  22.0k|			_builder.end_array();
  229|  22.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  28.6k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  28.6k|			if constexpr (key.view().size() != 0) {
  201|  28.6k|				_builder.escape_and_append_with_quotes<key>();
  202|  28.6k|				_builder.append_colon();
  203|  28.6k|			}
  204|  28.6k|			_builder.start_object();
  205|  28.6k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEED2Ev:
  206|  28.6k|		~scoped_object() {
  207|  28.6k|			_builder.end_object();
  208|  28.6k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  26.2k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  26.2k|			if constexpr (key.view().size() != 0) {
  222|  26.2k|				_builder.escape_and_append_with_quotes<key>();
  223|  26.2k|				_builder.append_colon();
  224|  26.2k|			}
  225|  26.2k|			_builder.start_array();
  226|  26.2k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEED2Ev:
  227|  26.2k|		~scoped_array() {
  228|  26.2k|			_builder.end_array();
  229|  26.2k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEETnS3_XtlNS3_ILm5EEEtlA5_cLc83ELc84ELc69ELc80EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  7.40k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  7.40k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  7.40k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  7.40k|	}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEETnS3_XtlNS3_ILm12EEEtlA12_cLc67ELc85ELc66ELc73ELc67ELc83ELc80ELc76ELc73ELc78ELc69EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  6.19k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  6.19k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  6.19k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  6.19k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc98ELc117ELc102ELc102ELc101ELc114ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  8.57k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  8.57k|			if constexpr (key.view().size() != 0) {
  222|  8.57k|				_builder.escape_and_append_with_quotes<key>();
  223|  8.57k|				_builder.append_colon();
  224|  8.57k|			}
  225|  8.57k|			_builder.start_array();
  226|  8.57k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc98ELc117ELc102ELc102ELc101ELc114ELc115EEEEED2Ev:
  227|  8.57k|		~scoped_array() {
  228|  8.57k|			_builder.end_array();
  229|  8.57k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|   715k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|   715k|			if constexpr (key.view().size() != 0) {
  201|   715k|				_builder.escape_and_append_with_quotes<key>();
  202|   715k|				_builder.append_colon();
  203|   715k|			}
  204|   715k|			_builder.start_object();
  205|   715k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEED2Ev:
  206|   715k|		~scoped_object() {
  207|   715k|			_builder.end_object();
  208|   715k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  27.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  27.0k|			if constexpr (key.view().size() != 0) {
  201|  27.0k|				_builder.escape_and_append_with_quotes<key>();
  202|  27.0k|				_builder.append_colon();
  203|  27.0k|			}
  204|  27.0k|			_builder.start_object();
  205|  27.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEED2Ev:
  206|  27.0k|		~scoped_object() {
  207|  27.0k|			_builder.end_object();
  208|  27.0k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm12EEEtlA12_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  5.21k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  5.21k|			if constexpr (key.view().size() != 0) {
  222|  5.21k|				_builder.escape_and_append_with_quotes<key>();
  223|  5.21k|				_builder.append_colon();
  224|  5.21k|			}
  225|  5.21k|			_builder.start_array();
  226|  5.21k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm12EEEtlA12_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119ELc115EEEEED2Ev:
  227|  5.21k|		~scoped_array() {
  228|  5.21k|			_builder.end_array();
  229|  5.21k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc99ELc97ELc109ELc101ELc114ELc97ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|    827|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|    827|			if constexpr (key.view().size() != 0) {
  222|    827|				_builder.escape_and_append_with_quotes<key>();
  223|    827|				_builder.append_colon();
  224|    827|			}
  225|    827|			_builder.start_array();
  226|    827|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc99ELc97ELc109ELc101ELc114ELc97ELc115EEEEED2Ev:
  227|    827|		~scoped_array() {
  228|    827|			_builder.end_array();
  229|    827|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc105ELc109ELc97ELc103ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  8.27k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  8.27k|			if constexpr (key.view().size() != 0) {
  222|  8.27k|				_builder.escape_and_append_with_quotes<key>();
  223|  8.27k|				_builder.append_colon();
  224|  8.27k|			}
  225|  8.27k|			_builder.start_array();
  226|  8.27k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc105ELc109ELc97ELc103ELc101ELc115EEEEED2Ev:
  227|  8.27k|		~scoped_array() {
  228|  8.27k|			_builder.end_array();
  229|  8.27k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  13.4k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  13.4k|			if constexpr (key.view().size() != 0) {
  201|  13.4k|				_builder.escape_and_append_with_quotes<key>();
  202|  13.4k|				_builder.append_colon();
  203|  13.4k|			}
  204|  13.4k|			_builder.start_object();
  205|  13.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEED2Ev:
  206|  13.4k|		~scoped_object() {
  207|  13.4k|			_builder.end_object();
  208|  13.4k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|    874|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|    874|			if constexpr (key.view().size() != 0) {
  222|    874|				_builder.escape_and_append_with_quotes<key>();
  223|    874|				_builder.append_colon();
  224|    874|			}
  225|    874|			_builder.start_array();
  226|    874|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEED2Ev:
  227|    874|		~scoped_array() {
  228|    874|			_builder.end_array();
  229|    874|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  7.95k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  7.95k|		auto arr = scoped_array<key>(builder);
  263|  31.8k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 23.8k, False: 7.95k]
  ------------------
  264|  23.8k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 15.9k, False: 7.95k]
  ------------------
  265|  15.9k|				builder.append_comma();
  266|  23.8k|			builder.append(values[i]);
  267|  23.8k|		}
  268|  7.95k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  7.95k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  7.95k|			if constexpr (key.view().size() != 0) {
  222|  7.95k|				_builder.escape_and_append_with_quotes<key>();
  223|  7.95k|				_builder.append_colon();
  224|  7.95k|			}
  225|  7.95k|			_builder.start_array();
  226|  7.95k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEED2Ev:
  227|  7.95k|		~scoped_array() {
  228|  7.95k|			_builder.end_array();
  229|  7.95k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm12EEEtlA12_cLc100ELc105ELc114ELc101ELc99ELc116ELc105ELc111ELc110ELc97ELc108EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|    428|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|    428|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|    428|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|    428|	}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlS4_tlS5_Lc115ELc112ELc111ELc116EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  5.69k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  5.69k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  5.69k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  5.69k|	}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS3_XtlNS3_ILm6EEEtlA6_cLc112ELc111ELc105ELc110ELc116EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  16.0k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  16.0k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  16.0k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  16.0k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc112ELc111ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  5.69k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  5.69k|			if constexpr (key.view().size() != 0) {
  201|  5.69k|				_builder.escape_and_append_with_quotes<key>();
  202|  5.69k|				_builder.append_colon();
  203|  5.69k|			}
  204|  5.69k|			_builder.start_object();
  205|  5.69k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc112ELc111ELc116EEEEED2Ev:
  206|  5.69k|		~scoped_object() {
  207|  5.69k|			_builder.end_object();
  208|  5.69k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  46.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  46.0k|			if constexpr (key.view().size() != 0) {
  201|  46.0k|				_builder.escape_and_append_with_quotes<key>();
  202|  46.0k|				_builder.append_colon();
  203|  46.0k|			}
  204|  46.0k|			_builder.start_object();
  205|  46.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEED2Ev:
  206|  46.0k|		~scoped_object() {
  207|  46.0k|			_builder.end_object();
  208|  46.0k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  20.4k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  20.4k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  20.4k|		builder.append_key_value<"index">(info->textureIndex);
  328|  20.4k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 3.82k, False: 16.6k]
  ------------------
  329|  3.82k|			builder.append_comma();
  330|  3.82k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  3.82k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  20.4k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  20.4k|			builder.append_comma();
  338|  20.4k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  20.4k|		}
  340|       |
  341|  20.4k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 3.78k, False: 16.6k]
  ------------------
  342|  3.78k|			builder.append_comma();
  343|       |
  344|  3.78k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  3.78k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  3.78k|			const auto& transform = *info->transform;
  348|  3.78k|			comma_separator comma {builder};
  349|  3.78k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 2.80k, False: 975]
  |  Branch (349:40): [True: 70, False: 905]
  ------------------
  350|  2.87k|				comma();
  351|  2.87k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  2.87k|			}
  353|  3.78k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 1.64k, False: 2.13k]
  ------------------
  354|  1.64k|				comma();
  355|  1.64k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  1.64k|			}
  357|  3.78k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 145, False: 3.63k]
  |  Branch (357:39): [True: 1, False: 3.63k]
  ------------------
  358|    146|				comma();
  359|    146|				append_key_range<"scale">(builder, transform.uvScale);
  360|    146|			}
  361|  3.78k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 1.56k, False: 2.21k]
  ------------------
  362|  1.56k|				comma();
  363|  1.56k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  1.56k|			}
  365|  3.78k|		}
  366|  20.4k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  20.4k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  20.4k|			if constexpr (key.view().size() != 0) {
  201|  20.4k|				_builder.escape_and_append_with_quotes<key>();
  202|  20.4k|				_builder.append_colon();
  203|  20.4k|			}
  204|  20.4k|			_builder.start_object();
  205|  20.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  97.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  97.9k|			if constexpr (key.view().size() != 0) {
  201|  97.9k|				_builder.escape_and_append_with_quotes<key>();
  202|  97.9k|				_builder.append_colon();
  203|  97.9k|			}
  204|  97.9k|			_builder.start_object();
  205|  97.9k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEENS_4math3vecIfLm2EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  41.5k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  41.5k|		auto arr = scoped_array<key>(builder);
  263|   124k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 83.0k, False: 41.5k]
  ------------------
  264|  83.0k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 41.5k, False: 41.5k]
  ------------------
  265|  41.5k|				builder.append_comma();
  266|  83.0k|			builder.append(values[i]);
  267|  83.0k|		}
  268|  41.5k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  41.5k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  41.5k|			if constexpr (key.view().size() != 0) {
  222|  41.5k|				_builder.escape_and_append_with_quotes<key>();
  223|  41.5k|				_builder.append_colon();
  224|  41.5k|			}
  225|  41.5k|			_builder.start_array();
  226|  41.5k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEED2Ev:
  227|  41.5k|		~scoped_array() {
  228|  41.5k|			_builder.end_array();
  229|  41.5k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEENS_4math3vecIfLm2EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  42.7k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  42.7k|		auto arr = scoped_array<key>(builder);
  263|   128k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 85.4k, False: 42.7k]
  ------------------
  264|  85.4k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 42.7k, False: 42.7k]
  ------------------
  265|  42.7k|				builder.append_comma();
  266|  85.4k|			builder.append(values[i]);
  267|  85.4k|		}
  268|  42.7k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEED2Ev:
  206|  97.9k|		~scoped_object() {
  207|  97.9k|			_builder.end_object();
  208|  97.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  20.4k|		~scoped_object() {
  207|  20.4k|			_builder.end_object();
  208|  20.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  52.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  52.9k|			if constexpr (key.view().size() != 0) {
  201|  52.9k|				_builder.escape_and_append_with_quotes<key>();
  202|  52.9k|				_builder.append_colon();
  203|  52.9k|			}
  204|  52.9k|			_builder.start_object();
  205|  52.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEED2Ev:
  206|  52.9k|		~scoped_object() {
  207|  52.9k|			_builder.end_object();
  208|  52.9k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  10.6k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  10.6k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  10.6k|		builder.append_key_value<"index">(info->textureIndex);
  328|  10.6k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 2.99k, False: 7.62k]
  ------------------
  329|  2.99k|			builder.append_comma();
  330|  2.99k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  2.99k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  10.6k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  10.6k|			builder.append_comma();
  338|  10.6k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  10.6k|		}
  340|       |
  341|  10.6k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 4.34k, False: 6.27k]
  ------------------
  342|  4.34k|			builder.append_comma();
  343|       |
  344|  4.34k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  4.34k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  4.34k|			const auto& transform = *info->transform;
  348|  4.34k|			comma_separator comma {builder};
  349|  4.34k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 1.66k, False: 2.67k]
  |  Branch (349:40): [True: 351, False: 2.32k]
  ------------------
  350|  2.01k|				comma();
  351|  2.01k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  2.01k|			}
  353|  4.34k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 878, False: 3.46k]
  ------------------
  354|    878|				comma();
  355|    878|				builder.append_key_value<"rotation">(transform.rotation);
  356|    878|			}
  357|  4.34k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 1.67k, False: 2.66k]
  |  Branch (357:39): [True: 125, False: 2.53k]
  ------------------
  358|  1.80k|				comma();
  359|  1.80k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  1.80k|			}
  361|  4.34k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 521, False: 3.82k]
  ------------------
  362|    521|				comma();
  363|    521|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|    521|			}
  365|  4.34k|		}
  366|  10.6k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  10.6k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  10.6k|			if constexpr (key.view().size() != 0) {
  201|  10.6k|				_builder.escape_and_append_with_quotes<key>();
  202|  10.6k|				_builder.append_colon();
  203|  10.6k|			}
  204|  10.6k|			_builder.start_object();
  205|  10.6k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  10.6k|		~scoped_object() {
  207|  10.6k|			_builder.end_object();
  208|  10.6k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  15.8k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  15.8k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  15.8k|		builder.append_key_value<"index">(info->textureIndex);
  328|  15.8k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 4.51k, False: 11.3k]
  ------------------
  329|  4.51k|			builder.append_comma();
  330|  4.51k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  4.51k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  15.8k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  15.8k|			builder.append_comma();
  338|  15.8k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  15.8k|		}
  340|       |
  341|  15.8k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 5.40k, False: 10.4k]
  ------------------
  342|  5.40k|			builder.append_comma();
  343|       |
  344|  5.40k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  5.40k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  5.40k|			const auto& transform = *info->transform;
  348|  5.40k|			comma_separator comma {builder};
  349|  5.40k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 2.05k, False: 3.34k]
  |  Branch (349:40): [True: 69, False: 3.27k]
  ------------------
  350|  2.12k|				comma();
  351|  2.12k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  2.12k|			}
  353|  5.40k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 2.46k, False: 2.93k]
  ------------------
  354|  2.46k|				comma();
  355|  2.46k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  2.46k|			}
  357|  5.40k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 3.40k, False: 1.99k]
  |  Branch (357:39): [True: 44, False: 1.95k]
  ------------------
  358|  3.44k|				comma();
  359|  3.44k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  3.44k|			}
  361|  5.40k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 2.38k, False: 3.01k]
  ------------------
  362|  2.38k|				comma();
  363|  2.38k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  2.38k|			}
  365|  5.40k|		}
  366|  15.8k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  15.8k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  15.8k|			if constexpr (key.view().size() != 0) {
  201|  15.8k|				_builder.escape_and_append_with_quotes<key>();
  202|  15.8k|				_builder.append_colon();
  203|  15.8k|			}
  204|  15.8k|			_builder.start_object();
  205|  15.8k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  15.8k|		~scoped_object() {
  207|  15.8k|			_builder.end_object();
  208|  15.8k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE1EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  13.4k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  13.4k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  13.4k|		builder.append_key_value<"index">(info->textureIndex);
  328|  13.4k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 2.60k, False: 10.7k]
  ------------------
  329|  2.60k|			builder.append_comma();
  330|  2.60k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  2.60k|		}
  332|       |
  333|  13.4k|		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|  13.4k|			builder.append_comma();
  335|  13.4k|			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|       |		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|       |			builder.append_comma();
  338|       |			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|       |		}
  340|       |
  341|  13.4k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 4.21k, False: 9.18k]
  ------------------
  342|  4.21k|			builder.append_comma();
  343|       |
  344|  4.21k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  4.21k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  4.21k|			const auto& transform = *info->transform;
  348|  4.21k|			comma_separator comma {builder};
  349|  4.21k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 2.59k, False: 1.62k]
  |  Branch (349:40): [True: 1, False: 1.62k]
  ------------------
  350|  2.59k|				comma();
  351|  2.59k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  2.59k|			}
  353|  4.21k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 2.07k, False: 2.14k]
  ------------------
  354|  2.07k|				comma();
  355|  2.07k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  2.07k|			}
  357|  4.21k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 2.61k, False: 1.60k]
  |  Branch (357:39): [True: 69, False: 1.53k]
  ------------------
  358|  2.68k|				comma();
  359|  2.68k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  2.68k|			}
  361|  4.21k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 1.50k, False: 2.71k]
  ------------------
  362|  1.50k|				comma();
  363|  1.50k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  1.50k|			}
  365|  4.21k|		}
  366|  13.4k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  13.4k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  13.4k|			if constexpr (key.view().size() != 0) {
  201|  13.4k|				_builder.escape_and_append_with_quotes<key>();
  202|  13.4k|				_builder.append_colon();
  203|  13.4k|			}
  204|  13.4k|			_builder.start_object();
  205|  13.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  13.4k|		~scoped_object() {
  207|  13.4k|			_builder.end_object();
  208|  13.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  26.1k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  26.1k|			if constexpr (key.view().size() != 0) {
  201|  26.1k|				_builder.escape_and_append_with_quotes<key>();
  202|  26.1k|				_builder.append_colon();
  203|  26.1k|			}
  204|  26.1k|			_builder.start_object();
  205|  26.1k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEED2Ev:
  206|  26.1k|		~scoped_object() {
  207|  26.1k|			_builder.end_object();
  208|  26.1k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  9.38k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  9.38k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  9.38k|		builder.append_key_value<"index">(info->textureIndex);
  328|  9.38k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 208, False: 9.17k]
  ------------------
  329|    208|			builder.append_comma();
  330|    208|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|    208|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  9.38k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  9.38k|			builder.append_comma();
  338|  9.38k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  9.38k|		}
  340|       |
  341|  9.38k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 4.07k, False: 5.30k]
  ------------------
  342|  4.07k|			builder.append_comma();
  343|       |
  344|  4.07k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  4.07k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  4.07k|			const auto& transform = *info->transform;
  348|  4.07k|			comma_separator comma {builder};
  349|  4.07k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 1.65k, False: 2.41k]
  |  Branch (349:40): [True: 611, False: 1.80k]
  ------------------
  350|  2.26k|				comma();
  351|  2.26k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  2.26k|			}
  353|  4.07k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 103, False: 3.97k]
  ------------------
  354|    103|				comma();
  355|    103|				builder.append_key_value<"rotation">(transform.rotation);
  356|    103|			}
  357|  4.07k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 475, False: 3.60k]
  |  Branch (357:39): [True: 3, False: 3.59k]
  ------------------
  358|    478|				comma();
  359|    478|				append_key_range<"scale">(builder, transform.uvScale);
  360|    478|			}
  361|  4.07k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 1.25k, False: 2.82k]
  ------------------
  362|  1.25k|				comma();
  363|  1.25k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  1.25k|			}
  365|  4.07k|		}
  366|  9.38k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  9.38k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  9.38k|			if constexpr (key.view().size() != 0) {
  201|  9.38k|				_builder.escape_and_append_with_quotes<key>();
  202|  9.38k|				_builder.append_colon();
  203|  9.38k|			}
  204|  9.38k|			_builder.start_object();
  205|  9.38k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  9.38k|		~scoped_object() {
  207|  9.38k|			_builder.end_object();
  208|  9.38k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  9.22k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  9.22k|		auto arr = scoped_array<key>(builder);
  263|  36.9k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 27.6k, False: 9.22k]
  ------------------
  264|  27.6k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 18.4k, False: 9.22k]
  ------------------
  265|  18.4k|				builder.append_comma();
  266|  27.6k|			builder.append(values[i]);
  267|  27.6k|		}
  268|  9.22k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  9.22k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  9.22k|			if constexpr (key.view().size() != 0) {
  222|  9.22k|				_builder.escape_and_append_with_quotes<key>();
  223|  9.22k|				_builder.append_colon();
  224|  9.22k|			}
  225|  9.22k|			_builder.start_array();
  226|  9.22k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|  9.22k|		~scoped_array() {
  228|  9.22k|			_builder.end_array();
  229|  9.22k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  10.4k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  10.4k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  10.4k|		builder.append_key_value<"index">(info->textureIndex);
  328|  10.4k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 129, False: 10.3k]
  ------------------
  329|    129|			builder.append_comma();
  330|    129|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|    129|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  10.4k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  10.4k|			builder.append_comma();
  338|  10.4k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  10.4k|		}
  340|       |
  341|  10.4k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 6.43k, False: 4.05k]
  ------------------
  342|  6.43k|			builder.append_comma();
  343|       |
  344|  6.43k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  6.43k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  6.43k|			const auto& transform = *info->transform;
  348|  6.43k|			comma_separator comma {builder};
  349|  6.43k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 559, False: 5.87k]
  |  Branch (349:40): [True: 67, False: 5.80k]
  ------------------
  350|    626|				comma();
  351|    626|				append_key_range<"offset">(builder, transform.uvOffset);
  352|    626|			}
  353|  6.43k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 753, False: 5.67k]
  ------------------
  354|    753|				comma();
  355|    753|				builder.append_key_value<"rotation">(transform.rotation);
  356|    753|			}
  357|  6.43k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 1.50k, False: 4.92k]
  |  Branch (357:39): [True: 19, False: 4.90k]
  ------------------
  358|  1.52k|				comma();
  359|  1.52k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  1.52k|			}
  361|  6.43k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 1.29k, False: 5.13k]
  ------------------
  362|  1.29k|				comma();
  363|  1.29k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  1.29k|			}
  365|  6.43k|		}
  366|  10.4k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  10.4k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  10.4k|			if constexpr (key.view().size() != 0) {
  201|  10.4k|				_builder.escape_and_append_with_quotes<key>();
  202|  10.4k|				_builder.append_colon();
  203|  10.4k|			}
  204|  10.4k|			_builder.start_object();
  205|  10.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  10.4k|		~scoped_object() {
  207|  10.4k|			_builder.end_object();
  208|  10.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  6.52k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  6.52k|			if constexpr (key.view().size() != 0) {
  201|  6.52k|				_builder.escape_and_append_with_quotes<key>();
  202|  6.52k|				_builder.append_colon();
  203|  6.52k|			}
  204|  6.52k|			_builder.start_object();
  205|  6.52k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEED2Ev:
  206|  6.52k|		~scoped_object() {
  207|  6.52k|			_builder.end_object();
  208|  6.52k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.84k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  1.84k|			if constexpr (key.view().size() != 0) {
  201|  1.84k|				_builder.escape_and_append_with_quotes<key>();
  202|  1.84k|				_builder.append_colon();
  203|  1.84k|			}
  204|  1.84k|			_builder.start_object();
  205|  1.84k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEED2Ev:
  206|  1.84k|		~scoped_object() {
  207|  1.84k|			_builder.end_object();
  208|  1.84k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  15.2k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  15.2k|			if constexpr (key.view().size() != 0) {
  201|  15.2k|				_builder.escape_and_append_with_quotes<key>();
  202|  15.2k|				_builder.append_colon();
  203|  15.2k|			}
  204|  15.2k|			_builder.start_object();
  205|  15.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEED2Ev:
  206|  15.2k|		~scoped_object() {
  207|  15.2k|			_builder.end_object();
  208|  15.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  50.3k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  50.3k|			if constexpr (key.view().size() != 0) {
  201|  50.3k|				_builder.escape_and_append_with_quotes<key>();
  202|  50.3k|				_builder.append_colon();
  203|  50.3k|			}
  204|  50.3k|			_builder.start_object();
  205|  50.3k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEED2Ev:
  206|  50.3k|		~scoped_object() {
  207|  50.3k|			_builder.end_object();
  208|  50.3k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  16.3k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  16.3k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  16.3k|		builder.append_key_value<"index">(info->textureIndex);
  328|  16.3k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 872, False: 15.5k]
  ------------------
  329|    872|			builder.append_comma();
  330|    872|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|    872|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  16.3k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  16.3k|			builder.append_comma();
  338|  16.3k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  16.3k|		}
  340|       |
  341|  16.3k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 9.47k, False: 6.91k]
  ------------------
  342|  9.47k|			builder.append_comma();
  343|       |
  344|  9.47k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  9.47k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  9.47k|			const auto& transform = *info->transform;
  348|  9.47k|			comma_separator comma {builder};
  349|  9.47k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 6.07k, False: 3.39k]
  |  Branch (349:40): [True: 118, False: 3.28k]
  ------------------
  350|  6.19k|				comma();
  351|  6.19k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  6.19k|			}
  353|  9.47k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 664, False: 8.81k]
  ------------------
  354|    664|				comma();
  355|    664|				builder.append_key_value<"rotation">(transform.rotation);
  356|    664|			}
  357|  9.47k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 1.14k, False: 8.33k]
  |  Branch (357:39): [True: 195, False: 8.13k]
  ------------------
  358|  1.33k|				comma();
  359|  1.33k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  1.33k|			}
  361|  9.47k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 2.57k, False: 6.89k]
  ------------------
  362|  2.57k|				comma();
  363|  2.57k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  2.57k|			}
  365|  9.47k|		}
  366|  16.3k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  16.3k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  16.3k|			if constexpr (key.view().size() != 0) {
  201|  16.3k|				_builder.escape_and_append_with_quotes<key>();
  202|  16.3k|				_builder.append_colon();
  203|  16.3k|			}
  204|  16.3k|			_builder.start_object();
  205|  16.3k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  16.3k|		~scoped_object() {
  207|  16.3k|			_builder.end_object();
  208|  16.3k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  15.0k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  15.0k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  15.0k|		builder.append_key_value<"index">(info->textureIndex);
  328|  15.0k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 3.77k, False: 11.3k]
  ------------------
  329|  3.77k|			builder.append_comma();
  330|  3.77k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  3.77k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  15.0k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  15.0k|			builder.append_comma();
  338|  15.0k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  15.0k|		}
  340|       |
  341|  15.0k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 5.90k, False: 9.19k]
  ------------------
  342|  5.90k|			builder.append_comma();
  343|       |
  344|  5.90k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  5.90k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  5.90k|			const auto& transform = *info->transform;
  348|  5.90k|			comma_separator comma {builder};
  349|  5.90k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 3.34k, False: 2.55k]
  |  Branch (349:40): [True: 70, False: 2.48k]
  ------------------
  350|  3.41k|				comma();
  351|  3.41k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  3.41k|			}
  353|  5.90k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 854, False: 5.04k]
  ------------------
  354|    854|				comma();
  355|    854|				builder.append_key_value<"rotation">(transform.rotation);
  356|    854|			}
  357|  5.90k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 652, False: 5.24k]
  |  Branch (357:39): [True: 1, False: 5.24k]
  ------------------
  358|    653|				comma();
  359|    653|				append_key_range<"scale">(builder, transform.uvScale);
  360|    653|			}
  361|  5.90k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 2.62k, False: 3.27k]
  ------------------
  362|  2.62k|				comma();
  363|  2.62k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  2.62k|			}
  365|  5.90k|		}
  366|  15.0k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  15.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  15.0k|			if constexpr (key.view().size() != 0) {
  201|  15.0k|				_builder.escape_and_append_with_quotes<key>();
  202|  15.0k|				_builder.append_colon();
  203|  15.0k|			}
  204|  15.0k|			_builder.start_object();
  205|  15.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  15.0k|		~scoped_object() {
  207|  15.0k|			_builder.end_object();
  208|  15.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  2.39k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  2.39k|			if constexpr (key.view().size() != 0) {
  201|  2.39k|				_builder.escape_and_append_with_quotes<key>();
  202|  2.39k|				_builder.append_colon();
  203|  2.39k|			}
  204|  2.39k|			_builder.start_object();
  205|  2.39k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEED2Ev:
  206|  2.39k|		~scoped_object() {
  207|  2.39k|			_builder.end_object();
  208|  2.39k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm21EEEtlA21_cLc114ELc101ELc116ELc114ELc111ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  1.67k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  1.67k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  1.67k|		builder.append_key_value<"index">(info->textureIndex);
  328|  1.67k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 478, False: 1.19k]
  ------------------
  329|    478|			builder.append_comma();
  330|    478|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|    478|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  1.67k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  1.67k|			builder.append_comma();
  338|  1.67k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  1.67k|		}
  340|       |
  341|  1.67k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 6, False: 1.66k]
  ------------------
  342|      6|			builder.append_comma();
  343|       |
  344|      6|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|      6|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|      6|			const auto& transform = *info->transform;
  348|      6|			comma_separator comma {builder};
  349|      6|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 0, False: 6]
  |  Branch (349:40): [True: 0, False: 6]
  ------------------
  350|      0|				comma();
  351|      0|				append_key_range<"offset">(builder, transform.uvOffset);
  352|      0|			}
  353|      6|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 0, False: 6]
  ------------------
  354|      0|				comma();
  355|      0|				builder.append_key_value<"rotation">(transform.rotation);
  356|      0|			}
  357|      6|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 0, False: 6]
  |  Branch (357:39): [True: 0, False: 6]
  ------------------
  358|      0|				comma();
  359|      0|				append_key_range<"scale">(builder, transform.uvScale);
  360|      0|			}
  361|      6|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 0, False: 6]
  ------------------
  362|      0|				comma();
  363|      0|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|      0|			}
  365|      6|		}
  366|  1.67k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc114ELc101ELc116ELc114ELc111ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.67k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  1.67k|			if constexpr (key.view().size() != 0) {
  201|  1.67k|				_builder.escape_and_append_with_quotes<key>();
  202|  1.67k|				_builder.append_colon();
  203|  1.67k|			}
  204|  1.67k|			_builder.start_object();
  205|  1.67k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc114ELc101ELc116ELc114ELc111ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  1.67k|		~scoped_object() {
  207|  1.67k|			_builder.end_object();
  208|  1.67k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  22.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  22.9k|			if constexpr (key.view().size() != 0) {
  201|  22.9k|				_builder.escape_and_append_with_quotes<key>();
  202|  22.9k|				_builder.append_colon();
  203|  22.9k|			}
  204|  22.9k|			_builder.start_object();
  205|  22.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEED2Ev:
  206|  22.9k|		~scoped_object() {
  207|  22.9k|			_builder.end_object();
  208|  22.9k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  8.09k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  8.09k|		auto arr = scoped_array<key>(builder);
  263|  32.3k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 24.2k, False: 8.09k]
  ------------------
  264|  24.2k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 16.1k, False: 8.09k]
  ------------------
  265|  16.1k|				builder.append_comma();
  266|  24.2k|			builder.append(values[i]);
  267|  24.2k|		}
  268|  8.09k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  8.09k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  8.09k|			if constexpr (key.view().size() != 0) {
  222|  8.09k|				_builder.escape_and_append_with_quotes<key>();
  223|  8.09k|				_builder.append_colon();
  224|  8.09k|			}
  225|  8.09k|			_builder.start_array();
  226|  8.09k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|  8.09k|		~scoped_array() {
  228|  8.09k|			_builder.end_array();
  229|  8.09k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  8.27k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  8.27k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  8.27k|		builder.append_key_value<"index">(info->textureIndex);
  328|  8.27k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 4.10k, False: 4.16k]
  ------------------
  329|  4.10k|			builder.append_comma();
  330|  4.10k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  4.10k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  8.27k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  8.27k|			builder.append_comma();
  338|  8.27k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  8.27k|		}
  340|       |
  341|  8.27k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 3.04k, False: 5.22k]
  ------------------
  342|  3.04k|			builder.append_comma();
  343|       |
  344|  3.04k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  3.04k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  3.04k|			const auto& transform = *info->transform;
  348|  3.04k|			comma_separator comma {builder};
  349|  3.04k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 1.79k, False: 1.25k]
  |  Branch (349:40): [True: 22, False: 1.23k]
  ------------------
  350|  1.81k|				comma();
  351|  1.81k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  1.81k|			}
  353|  3.04k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 763, False: 2.28k]
  ------------------
  354|    763|				comma();
  355|    763|				builder.append_key_value<"rotation">(transform.rotation);
  356|    763|			}
  357|  3.04k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 80, False: 2.96k]
  |  Branch (357:39): [True: 1, False: 2.96k]
  ------------------
  358|     81|				comma();
  359|     81|				append_key_range<"scale">(builder, transform.uvScale);
  360|     81|			}
  361|  3.04k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 95, False: 2.95k]
  ------------------
  362|     95|				comma();
  363|     95|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|     95|			}
  365|  3.04k|		}
  366|  8.27k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  8.27k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  8.27k|			if constexpr (key.view().size() != 0) {
  201|  8.27k|				_builder.escape_and_append_with_quotes<key>();
  202|  8.27k|				_builder.append_colon();
  203|  8.27k|			}
  204|  8.27k|			_builder.start_object();
  205|  8.27k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  8.27k|		~scoped_object() {
  207|  8.27k|			_builder.end_object();
  208|  8.27k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  3.71k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  3.71k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  3.71k|		builder.append_key_value<"index">(info->textureIndex);
  328|  3.71k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 166, False: 3.55k]
  ------------------
  329|    166|			builder.append_comma();
  330|    166|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|    166|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  3.71k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  3.71k|			builder.append_comma();
  338|  3.71k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  3.71k|		}
  340|       |
  341|  3.71k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 1.86k, False: 1.85k]
  ------------------
  342|  1.86k|			builder.append_comma();
  343|       |
  344|  1.86k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  1.86k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  1.86k|			const auto& transform = *info->transform;
  348|  1.86k|			comma_separator comma {builder};
  349|  1.86k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 1.27k, False: 588]
  |  Branch (349:40): [True: 6, False: 582]
  ------------------
  350|  1.28k|				comma();
  351|  1.28k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  1.28k|			}
  353|  1.86k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 338, False: 1.52k]
  ------------------
  354|    338|				comma();
  355|    338|				builder.append_key_value<"rotation">(transform.rotation);
  356|    338|			}
  357|  1.86k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 76, False: 1.78k]
  |  Branch (357:39): [True: 1, False: 1.78k]
  ------------------
  358|     77|				comma();
  359|     77|				append_key_range<"scale">(builder, transform.uvScale);
  360|     77|			}
  361|  1.86k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 82, False: 1.78k]
  ------------------
  362|     82|				comma();
  363|     82|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|     82|			}
  365|  1.86k|		}
  366|  3.71k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  3.71k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  3.71k|			if constexpr (key.view().size() != 0) {
  201|  3.71k|				_builder.escape_and_append_with_quotes<key>();
  202|  3.71k|				_builder.append_colon();
  203|  3.71k|			}
  204|  3.71k|			_builder.start_object();
  205|  3.71k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  3.71k|		~scoped_object() {
  207|  3.71k|			_builder.end_object();
  208|  3.71k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  10.8k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  10.8k|			if constexpr (key.view().size() != 0) {
  201|  10.8k|				_builder.escape_and_append_with_quotes<key>();
  202|  10.8k|				_builder.append_colon();
  203|  10.8k|			}
  204|  10.8k|			_builder.start_object();
  205|  10.8k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEED2Ev:
  206|  10.8k|		~scoped_object() {
  207|  10.8k|			_builder.end_object();
  208|  10.8k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  1.75k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  1.75k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  1.75k|		builder.append_key_value<"index">(info->textureIndex);
  328|  1.75k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 99, False: 1.65k]
  ------------------
  329|     99|			builder.append_comma();
  330|     99|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|     99|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  1.75k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  1.75k|			builder.append_comma();
  338|  1.75k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  1.75k|		}
  340|       |
  341|  1.75k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 326, False: 1.42k]
  ------------------
  342|    326|			builder.append_comma();
  343|       |
  344|    326|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|    326|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|    326|			const auto& transform = *info->transform;
  348|    326|			comma_separator comma {builder};
  349|    326|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 120, False: 206]
  |  Branch (349:40): [True: 0, False: 206]
  ------------------
  350|    120|				comma();
  351|    120|				append_key_range<"offset">(builder, transform.uvOffset);
  352|    120|			}
  353|    326|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 85, False: 241]
  ------------------
  354|     85|				comma();
  355|     85|				builder.append_key_value<"rotation">(transform.rotation);
  356|     85|			}
  357|    326|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 110, False: 216]
  |  Branch (357:39): [True: 1, False: 215]
  ------------------
  358|    111|				comma();
  359|    111|				append_key_range<"scale">(builder, transform.uvScale);
  360|    111|			}
  361|    326|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 0, False: 326]
  ------------------
  362|      0|				comma();
  363|      0|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|      0|			}
  365|    326|		}
  366|  1.75k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.75k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  1.75k|			if constexpr (key.view().size() != 0) {
  201|  1.75k|				_builder.escape_and_append_with_quotes<key>();
  202|  1.75k|				_builder.append_colon();
  203|  1.75k|			}
  204|  1.75k|			_builder.start_object();
  205|  1.75k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  1.75k|		~scoped_object() {
  207|  1.75k|			_builder.end_object();
  208|  1.75k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  3.77k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  3.77k|		auto arr = scoped_array<key>(builder);
  263|  15.0k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 11.3k, False: 3.77k]
  ------------------
  264|  11.3k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 7.54k, False: 3.77k]
  ------------------
  265|  7.54k|				builder.append_comma();
  266|  11.3k|			builder.append(values[i]);
  267|  11.3k|		}
  268|  3.77k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  3.77k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  3.77k|			if constexpr (key.view().size() != 0) {
  222|  3.77k|				_builder.escape_and_append_with_quotes<key>();
  223|  3.77k|				_builder.append_colon();
  224|  3.77k|			}
  225|  3.77k|			_builder.start_array();
  226|  3.77k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|  3.77k|		~scoped_array() {
  228|  3.77k|			_builder.end_array();
  229|  3.77k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  4.98k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  4.98k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  4.98k|		builder.append_key_value<"index">(info->textureIndex);
  328|  4.98k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 1.67k, False: 3.30k]
  ------------------
  329|  1.67k|			builder.append_comma();
  330|  1.67k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  1.67k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  4.98k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  4.98k|			builder.append_comma();
  338|  4.98k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  4.98k|		}
  340|       |
  341|  4.98k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 341, False: 4.64k]
  ------------------
  342|    341|			builder.append_comma();
  343|       |
  344|    341|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|    341|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|    341|			const auto& transform = *info->transform;
  348|    341|			comma_separator comma {builder};
  349|    341|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 102, False: 239]
  |  Branch (349:40): [True: 0, False: 239]
  ------------------
  350|    102|				comma();
  351|    102|				append_key_range<"offset">(builder, transform.uvOffset);
  352|    102|			}
  353|    341|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 126, False: 215]
  ------------------
  354|    126|				comma();
  355|    126|				builder.append_key_value<"rotation">(transform.rotation);
  356|    126|			}
  357|    341|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 112, False: 229]
  |  Branch (357:39): [True: 0, False: 229]
  ------------------
  358|    112|				comma();
  359|    112|				append_key_range<"scale">(builder, transform.uvScale);
  360|    112|			}
  361|    341|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 0, False: 341]
  ------------------
  362|      0|				comma();
  363|      0|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|      0|			}
  365|    341|		}
  366|  4.98k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  4.98k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  4.98k|			if constexpr (key.view().size() != 0) {
  201|  4.98k|				_builder.escape_and_append_with_quotes<key>();
  202|  4.98k|				_builder.append_colon();
  203|  4.98k|			}
  204|  4.98k|			_builder.start_object();
  205|  4.98k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  4.98k|		~scoped_object() {
  207|  4.98k|			_builder.end_object();
  208|  4.98k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  4.47k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  4.47k|			if constexpr (key.view().size() != 0) {
  201|  4.47k|				_builder.escape_and_append_with_quotes<key>();
  202|  4.47k|				_builder.append_colon();
  203|  4.47k|			}
  204|  4.47k|			_builder.start_object();
  205|  4.47k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEED2Ev:
  206|  4.47k|		~scoped_object() {
  207|  4.47k|			_builder.end_object();
  208|  4.47k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm4EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|      9|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|      9|		auto arr = scoped_array<key>(builder);
  263|     45|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 36, False: 9]
  ------------------
  264|     36|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 27, False: 9]
  ------------------
  265|     27|				builder.append_comma();
  266|     36|			builder.append(values[i]);
  267|     36|		}
  268|      9|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|      9|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|      9|			if constexpr (key.view().size() != 0) {
  222|      9|				_builder.escape_and_append_with_quotes<key>();
  223|      9|				_builder.append_colon();
  224|      9|			}
  225|      9|			_builder.start_array();
  226|      9|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|      9|		~scoped_array() {
  228|      9|			_builder.end_array();
  229|      9|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  3.22k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  3.22k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  3.22k|		builder.append_key_value<"index">(info->textureIndex);
  328|  3.22k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 1, False: 3.22k]
  ------------------
  329|      1|			builder.append_comma();
  330|      1|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|      1|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  3.22k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  3.22k|			builder.append_comma();
  338|  3.22k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  3.22k|		}
  340|       |
  341|  3.22k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 0, False: 3.22k]
  ------------------
  342|      0|			builder.append_comma();
  343|       |
  344|      0|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|      0|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|      0|			const auto& transform = *info->transform;
  348|      0|			comma_separator comma {builder};
  349|      0|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 0, False: 0]
  |  Branch (349:40): [True: 0, False: 0]
  ------------------
  350|      0|				comma();
  351|      0|				append_key_range<"offset">(builder, transform.uvOffset);
  352|      0|			}
  353|      0|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 0, False: 0]
  ------------------
  354|      0|				comma();
  355|      0|				builder.append_key_value<"rotation">(transform.rotation);
  356|      0|			}
  357|      0|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 0, False: 0]
  |  Branch (357:39): [True: 0, False: 0]
  ------------------
  358|      0|				comma();
  359|      0|				append_key_range<"scale">(builder, transform.uvScale);
  360|      0|			}
  361|      0|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 0, False: 0]
  ------------------
  362|      0|				comma();
  363|      0|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|      0|			}
  365|      0|		}
  366|  3.22k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  3.22k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  3.22k|			if constexpr (key.view().size() != 0) {
  201|  3.22k|				_builder.escape_and_append_with_quotes<key>();
  202|  3.22k|				_builder.append_colon();
  203|  3.22k|			}
  204|  3.22k|			_builder.start_object();
  205|  3.22k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  3.22k|		~scoped_object() {
  207|  3.22k|			_builder.end_object();
  208|  3.22k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  2.18k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  2.18k|		auto arr = scoped_array<key>(builder);
  263|  8.72k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 6.54k, False: 2.18k]
  ------------------
  264|  6.54k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 4.36k, False: 2.18k]
  ------------------
  265|  4.36k|				builder.append_comma();
  266|  6.54k|			builder.append(values[i]);
  267|  6.54k|		}
  268|  2.18k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  2.18k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  2.18k|			if constexpr (key.view().size() != 0) {
  222|  2.18k|				_builder.escape_and_append_with_quotes<key>();
  223|  2.18k|				_builder.append_colon();
  224|  2.18k|			}
  225|  2.18k|			_builder.start_array();
  226|  2.18k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|  2.18k|		~scoped_array() {
  228|  2.18k|			_builder.end_array();
  229|  2.18k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|    176|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|    176|		auto obj = scoped_object<key>(builder);
  326|       |
  327|    176|		builder.append_key_value<"index">(info->textureIndex);
  328|    176|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 0, False: 176]
  ------------------
  329|      0|			builder.append_comma();
  330|      0|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|      0|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|    176|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|    176|			builder.append_comma();
  338|    176|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|    176|		}
  340|       |
  341|    176|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 0, False: 176]
  ------------------
  342|      0|			builder.append_comma();
  343|       |
  344|      0|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|      0|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|      0|			const auto& transform = *info->transform;
  348|      0|			comma_separator comma {builder};
  349|      0|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 0, False: 0]
  |  Branch (349:40): [True: 0, False: 0]
  ------------------
  350|      0|				comma();
  351|      0|				append_key_range<"offset">(builder, transform.uvOffset);
  352|      0|			}
  353|      0|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 0, False: 0]
  ------------------
  354|      0|				comma();
  355|      0|				builder.append_key_value<"rotation">(transform.rotation);
  356|      0|			}
  357|      0|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 0, False: 0]
  |  Branch (357:39): [True: 0, False: 0]
  ------------------
  358|      0|				comma();
  359|      0|				append_key_range<"scale">(builder, transform.uvScale);
  360|      0|			}
  361|      0|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 0, False: 0]
  ------------------
  362|      0|				comma();
  363|      0|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|      0|			}
  365|      0|		}
  366|    176|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|    176|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|    176|			if constexpr (key.view().size() != 0) {
  201|    176|				_builder.escape_and_append_with_quotes<key>();
  202|    176|				_builder.append_colon();
  203|    176|			}
  204|    176|			_builder.start_object();
  205|    176|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|    176|		~scoped_object() {
  207|    176|			_builder.end_object();
  208|    176|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  17.4k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  17.4k|			if constexpr (key.view().size() != 0) {
  201|  17.4k|				_builder.escape_and_append_with_quotes<key>();
  202|  17.4k|				_builder.append_colon();
  203|  17.4k|			}
  204|  17.4k|			_builder.start_object();
  205|  17.4k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEED2Ev:
  206|  17.4k|		~scoped_object() {
  207|  17.4k|			_builder.end_object();
  208|  17.4k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  1.97k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  1.97k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  1.97k|		builder.append_key_value<"index">(info->textureIndex);
  328|  1.97k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 79, False: 1.89k]
  ------------------
  329|     79|			builder.append_comma();
  330|     79|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|     79|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  1.97k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  1.97k|			builder.append_comma();
  338|  1.97k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  1.97k|		}
  340|       |
  341|  1.97k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 358, False: 1.61k]
  ------------------
  342|    358|			builder.append_comma();
  343|       |
  344|    358|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|    358|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|    358|			const auto& transform = *info->transform;
  348|    358|			comma_separator comma {builder};
  349|    358|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 130, False: 228]
  |  Branch (349:40): [True: 0, False: 228]
  ------------------
  350|    130|				comma();
  351|    130|				append_key_range<"offset">(builder, transform.uvOffset);
  352|    130|			}
  353|    358|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 108, False: 250]
  ------------------
  354|    108|				comma();
  355|    108|				builder.append_key_value<"rotation">(transform.rotation);
  356|    108|			}
  357|    358|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 114, False: 244]
  |  Branch (357:39): [True: 0, False: 244]
  ------------------
  358|    114|				comma();
  359|    114|				append_key_range<"scale">(builder, transform.uvScale);
  360|    114|			}
  361|    358|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 0, False: 358]
  ------------------
  362|      0|				comma();
  363|      0|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|      0|			}
  365|    358|		}
  366|  1.97k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.97k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  1.97k|			if constexpr (key.view().size() != 0) {
  201|  1.97k|				_builder.escape_and_append_with_quotes<key>();
  202|  1.97k|				_builder.append_colon();
  203|  1.97k|			}
  204|  1.97k|			_builder.start_object();
  205|  1.97k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  1.97k|		~scoped_object() {
  207|  1.97k|			_builder.end_object();
  208|  1.97k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.77k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  1.77k|			if constexpr (key.view().size() != 0) {
  201|  1.77k|				_builder.escape_and_append_with_quotes<key>();
  202|  1.77k|				_builder.append_colon();
  203|  1.77k|			}
  204|  1.77k|			_builder.start_object();
  205|  1.77k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEED2Ev:
  206|  1.77k|		~scoped_object() {
  207|  1.77k|			_builder.end_object();
  208|  1.77k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  22.6k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  22.6k|			if constexpr (key.view().size() != 0) {
  201|  22.6k|				_builder.escape_and_append_with_quotes<key>();
  202|  22.6k|				_builder.append_colon();
  203|  22.6k|			}
  204|  22.6k|			_builder.start_object();
  205|  22.6k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEED2Ev:
  206|  22.6k|		~scoped_object() {
  207|  22.6k|			_builder.end_object();
  208|  22.6k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  6.04k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  6.04k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  6.04k|		builder.append_key_value<"index">(info->textureIndex);
  328|  6.04k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 888, False: 5.16k]
  ------------------
  329|    888|			builder.append_comma();
  330|    888|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|    888|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  6.04k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  6.04k|			builder.append_comma();
  338|  6.04k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  6.04k|		}
  340|       |
  341|  6.04k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 3.08k, False: 2.96k]
  ------------------
  342|  3.08k|			builder.append_comma();
  343|       |
  344|  3.08k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  3.08k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  3.08k|			const auto& transform = *info->transform;
  348|  3.08k|			comma_separator comma {builder};
  349|  3.08k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 701, False: 2.38k]
  |  Branch (349:40): [True: 855, False: 1.53k]
  ------------------
  350|  1.55k|				comma();
  351|  1.55k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  1.55k|			}
  353|  3.08k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 149, False: 2.93k]
  ------------------
  354|    149|				comma();
  355|    149|				builder.append_key_value<"rotation">(transform.rotation);
  356|    149|			}
  357|  3.08k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 2.20k, False: 879]
  |  Branch (357:39): [True: 1, False: 878]
  ------------------
  358|  2.20k|				comma();
  359|  2.20k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  2.20k|			}
  361|  3.08k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 137, False: 2.94k]
  ------------------
  362|    137|				comma();
  363|    137|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|    137|			}
  365|  3.08k|		}
  366|  6.04k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  6.04k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  6.04k|			if constexpr (key.view().size() != 0) {
  201|  6.04k|				_builder.escape_and_append_with_quotes<key>();
  202|  6.04k|				_builder.append_colon();
  203|  6.04k|			}
  204|  6.04k|			_builder.start_object();
  205|  6.04k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  6.04k|		~scoped_object() {
  207|  6.04k|			_builder.end_object();
  208|  6.04k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  7.96k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  7.96k|		auto arr = scoped_array<key>(builder);
  263|  31.8k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 23.8k, False: 7.96k]
  ------------------
  264|  23.8k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 15.9k, False: 7.96k]
  ------------------
  265|  15.9k|				builder.append_comma();
  266|  23.8k|			builder.append(values[i]);
  267|  23.8k|		}
  268|  7.96k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  7.96k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  7.96k|			if constexpr (key.view().size() != 0) {
  222|  7.96k|				_builder.escape_and_append_with_quotes<key>();
  223|  7.96k|				_builder.append_colon();
  224|  7.96k|			}
  225|  7.96k|			_builder.start_array();
  226|  7.96k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEED2Ev:
  227|  7.96k|		~scoped_array() {
  228|  7.96k|			_builder.end_array();
  229|  7.96k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  41.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  41.9k|			if constexpr (key.view().size() != 0) {
  201|  41.9k|				_builder.escape_and_append_with_quotes<key>();
  202|  41.9k|				_builder.append_colon();
  203|  41.9k|			}
  204|  41.9k|			_builder.start_object();
  205|  41.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  41.9k|		~scoped_object() {
  207|  41.9k|			_builder.end_object();
  208|  41.9k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  15.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  15.0k|			if constexpr (key.view().size() != 0) {
  222|  15.0k|				_builder.escape_and_append_with_quotes<key>();
  223|  15.0k|				_builder.append_colon();
  224|  15.0k|			}
  225|  15.0k|			_builder.start_array();
  226|  15.0k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEED2Ev:
  227|  15.0k|		~scoped_array() {
  228|  15.0k|			_builder.end_array();
  229|  15.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|   487k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|   487k|			if constexpr (key.view().size() != 0) {
  201|   487k|				_builder.escape_and_append_with_quotes<key>();
  202|   487k|				_builder.append_colon();
  203|   487k|			}
  204|   487k|			_builder.start_object();
  205|   487k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEED2Ev:
  206|   487k|		~scoped_object() {
  207|   487k|			_builder.end_object();
  208|   487k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm4EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  74.3k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  74.3k|		auto arr = scoped_array<key>(builder);
  263|   371k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 297k, False: 74.3k]
  ------------------
  264|   297k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 222k, False: 74.3k]
  ------------------
  265|   222k|				builder.append_comma();
  266|   297k|			builder.append(values[i]);
  267|   297k|		}
  268|  74.3k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  74.3k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  74.3k|			if constexpr (key.view().size() != 0) {
  222|  74.3k|				_builder.escape_and_append_with_quotes<key>();
  223|  74.3k|				_builder.append_colon();
  224|  74.3k|			}
  225|  74.3k|			_builder.start_array();
  226|  74.3k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|  74.3k|		~scoped_array() {
  228|  74.3k|			_builder.end_array();
  229|  74.3k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  43.0k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  43.0k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  43.0k|		builder.append_key_value<"index">(info->textureIndex);
  328|  43.0k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 4.59k, False: 38.4k]
  ------------------
  329|  4.59k|			builder.append_comma();
  330|  4.59k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  4.59k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  43.0k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  43.0k|			builder.append_comma();
  338|  43.0k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  43.0k|		}
  340|       |
  341|  43.0k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 12.3k, False: 30.6k]
  ------------------
  342|  12.3k|			builder.append_comma();
  343|       |
  344|  12.3k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  12.3k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  12.3k|			const auto& transform = *info->transform;
  348|  12.3k|			comma_separator comma {builder};
  349|  12.3k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 4.29k, False: 8.09k]
  |  Branch (349:40): [True: 313, False: 7.78k]
  ------------------
  350|  4.61k|				comma();
  351|  4.61k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  4.61k|			}
  353|  12.3k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 3.67k, False: 8.71k]
  ------------------
  354|  3.67k|				comma();
  355|  3.67k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  3.67k|			}
  357|  12.3k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 6.68k, False: 5.70k]
  |  Branch (357:39): [True: 1.45k, False: 4.25k]
  ------------------
  358|  8.14k|				comma();
  359|  8.14k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  8.14k|			}
  361|  12.3k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 7.28k, False: 5.11k]
  ------------------
  362|  7.28k|				comma();
  363|  7.28k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  7.28k|			}
  365|  12.3k|		}
  366|  43.0k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  43.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  43.0k|			if constexpr (key.view().size() != 0) {
  201|  43.0k|				_builder.escape_and_append_with_quotes<key>();
  202|  43.0k|				_builder.append_colon();
  203|  43.0k|			}
  204|  43.0k|			_builder.start_object();
  205|  43.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  43.0k|		~scoped_object() {
  207|  43.0k|			_builder.end_object();
  208|  43.0k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  27.3k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  27.3k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  27.3k|		builder.append_key_value<"index">(info->textureIndex);
  328|  27.3k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 7.28k, False: 20.1k]
  ------------------
  329|  7.28k|			builder.append_comma();
  330|  7.28k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  7.28k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  27.3k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  27.3k|			builder.append_comma();
  338|  27.3k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  27.3k|		}
  340|       |
  341|  27.3k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 4.09k, False: 23.2k]
  ------------------
  342|  4.09k|			builder.append_comma();
  343|       |
  344|  4.09k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  4.09k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  4.09k|			const auto& transform = *info->transform;
  348|  4.09k|			comma_separator comma {builder};
  349|  4.09k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 2.46k, False: 1.63k]
  |  Branch (349:40): [True: 3, False: 1.62k]
  ------------------
  350|  2.47k|				comma();
  351|  2.47k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  2.47k|			}
  353|  4.09k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 2.85k, False: 1.24k]
  ------------------
  354|  2.85k|				comma();
  355|  2.85k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  2.85k|			}
  357|  4.09k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 2.57k, False: 1.51k]
  |  Branch (357:39): [True: 242, False: 1.27k]
  ------------------
  358|  2.82k|				comma();
  359|  2.82k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  2.82k|			}
  361|  4.09k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 1.52k, False: 2.57k]
  ------------------
  362|  1.52k|				comma();
  363|  1.52k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  1.52k|			}
  365|  4.09k|		}
  366|  27.3k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  27.3k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  27.3k|			if constexpr (key.view().size() != 0) {
  201|  27.3k|				_builder.escape_and_append_with_quotes<key>();
  202|  27.3k|				_builder.append_colon();
  203|  27.3k|			}
  204|  27.3k|			_builder.start_object();
  205|  27.3k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  27.3k|		~scoped_object() {
  207|  27.3k|			_builder.end_object();
  208|  27.3k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE1EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  41.9k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  41.9k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  41.9k|		builder.append_key_value<"index">(info->textureIndex);
  328|  41.9k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 9.56k, False: 32.3k]
  ------------------
  329|  9.56k|			builder.append_comma();
  330|  9.56k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  9.56k|		}
  332|       |
  333|  41.9k|		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|  41.9k|			builder.append_comma();
  335|  41.9k|			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|       |		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|       |			builder.append_comma();
  338|       |			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|       |		}
  340|       |
  341|  41.9k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 8.99k, False: 32.9k]
  ------------------
  342|  8.99k|			builder.append_comma();
  343|       |
  344|  8.99k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  8.99k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  8.99k|			const auto& transform = *info->transform;
  348|  8.99k|			comma_separator comma {builder};
  349|  8.99k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 2.58k, False: 6.41k]
  |  Branch (349:40): [True: 1.54k, False: 4.87k]
  ------------------
  350|  4.12k|				comma();
  351|  4.12k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  4.12k|			}
  353|  8.99k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 2.68k, False: 6.31k]
  ------------------
  354|  2.68k|				comma();
  355|  2.68k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  2.68k|			}
  357|  8.99k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 6.06k, False: 2.92k]
  |  Branch (357:39): [True: 540, False: 2.38k]
  ------------------
  358|  6.60k|				comma();
  359|  6.60k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  6.60k|			}
  361|  8.99k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 6.86k, False: 2.13k]
  ------------------
  362|  6.86k|				comma();
  363|  6.86k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  6.86k|			}
  365|  8.99k|		}
  366|  41.9k|	}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE2EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  54.0k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  54.0k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  54.0k|		builder.append_key_value<"index">(info->textureIndex);
  328|  54.0k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 9.67k, False: 44.3k]
  ------------------
  329|  9.67k|			builder.append_comma();
  330|  9.67k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  9.67k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  54.0k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  54.0k|			builder.append_comma();
  338|  54.0k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  54.0k|		}
  340|       |
  341|  54.0k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 14.4k, False: 39.5k]
  ------------------
  342|  14.4k|			builder.append_comma();
  343|       |
  344|  14.4k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  14.4k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  14.4k|			const auto& transform = *info->transform;
  348|  14.4k|			comma_separator comma {builder};
  349|  14.4k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 1.48k, False: 12.9k]
  |  Branch (349:40): [True: 139, False: 12.8k]
  ------------------
  350|  1.62k|				comma();
  351|  1.62k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  1.62k|			}
  353|  14.4k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 4.98k, False: 9.49k]
  ------------------
  354|  4.98k|				comma();
  355|  4.98k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  4.98k|			}
  357|  14.4k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 3.46k, False: 11.0k]
  |  Branch (357:39): [True: 2.76k, False: 8.25k]
  ------------------
  358|  6.22k|				comma();
  359|  6.22k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  6.22k|			}
  361|  14.4k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 5.57k, False: 8.90k]
  ------------------
  362|  5.57k|				comma();
  363|  5.57k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  5.57k|			}
  365|  14.4k|		}
  366|  54.0k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  54.0k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  54.0k|			if constexpr (key.view().size() != 0) {
  201|  54.0k|				_builder.escape_and_append_with_quotes<key>();
  202|  54.0k|				_builder.append_colon();
  203|  54.0k|			}
  204|  54.0k|			_builder.start_object();
  205|  54.0k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  54.0k|		~scoped_object() {
  207|  54.0k|			_builder.end_object();
  208|  54.0k|		}
exporter.cpp:_ZN8fastgltfL19append_texture_infoITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEELNS_8internal15TextureInfoTypeE0EEEvRNS1_8fallback7builder14string_builderEPKNS_11TextureInfoE:
  324|  12.8k|	static void append_texture_info(simdjson::builder::string_builder& builder, const TextureInfo* info) {
  325|  12.8k|		auto obj = scoped_object<key>(builder);
  326|       |
  327|  12.8k|		builder.append_key_value<"index">(info->textureIndex);
  328|  12.8k|		if (info->texCoordIndex != 0) {
  ------------------
  |  Branch (328:7): [True: 2.61k, False: 10.2k]
  ------------------
  329|  2.61k|			builder.append_comma();
  330|  2.61k|			builder.append_key_value<"texCoord">(info->texCoordIndex);
  331|  2.61k|		}
  332|       |
  333|       |		if constexpr (type == internal::TextureInfoType::NormalTexture) {
  334|       |			builder.append_comma();
  335|       |			builder.append_key_value<"scale">(reinterpret_cast<const NormalTextureInfo*>(info)->scale);
  336|  12.8k|		} else if constexpr (type == internal::TextureInfoType::OcclusionTexture) {
  337|  12.8k|			builder.append_comma();
  338|  12.8k|			builder.append_key_value<"strength">(reinterpret_cast<const OcclusionTextureInfo*>(info)->strength);
  339|  12.8k|		}
  340|       |
  341|  12.8k|		if (info->transform.has_value()) {
  ------------------
  |  Branch (341:7): [True: 5.35k, False: 7.52k]
  ------------------
  342|  5.35k|			builder.append_comma();
  343|       |
  344|  5.35k|			auto extensions_obj = scoped_object<"extensions">(builder);
  345|  5.35k|			auto transform_obj = scoped_object<"KHR_texture_transform">(builder);
  346|       |
  347|  5.35k|			const auto& transform = *info->transform;
  348|  5.35k|			comma_separator comma {builder};
  349|  5.35k|			if (transform.uvOffset[0] != 0.0 || transform.uvOffset[1] != 0.0) {
  ------------------
  |  Branch (349:8): [True: 1.57k, False: 3.78k]
  |  Branch (349:40): [True: 18, False: 3.76k]
  ------------------
  350|  1.58k|				comma();
  351|  1.58k|				append_key_range<"offset">(builder, transform.uvOffset);
  352|  1.58k|			}
  353|  5.35k|			if (transform.rotation != 0.0) {
  ------------------
  |  Branch (353:8): [True: 2.56k, False: 2.79k]
  ------------------
  354|  2.56k|				comma();
  355|  2.56k|				builder.append_key_value<"rotation">(transform.rotation);
  356|  2.56k|			}
  357|  5.35k|			if (transform.uvScale[0] != 1.0 || transform.uvScale[1] != 1.0) {
  ------------------
  |  Branch (357:8): [True: 4.06k, False: 1.28k]
  |  Branch (357:39): [True: 66, False: 1.22k]
  ------------------
  358|  4.13k|				comma();
  359|  4.13k|				append_key_range<"scale">(builder, transform.uvScale);
  360|  4.13k|			}
  361|  5.35k|			if (transform.texCoordIndex.has_value()) {
  ------------------
  |  Branch (361:8): [True: 1.20k, False: 4.14k]
  ------------------
  362|  1.20k|				comma();
  363|  1.20k|				builder.append_key_value<"texCoord">(transform.texCoordIndex.value());
  364|  1.20k|			}
  365|  5.35k|		}
  366|  12.8k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  12.8k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  12.8k|			if constexpr (key.view().size() != 0) {
  201|  12.8k|				_builder.escape_and_append_with_quotes<key>();
  202|  12.8k|				_builder.append_colon();
  203|  12.8k|			}
  204|  12.8k|			_builder.start_object();
  205|  12.8k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEED2Ev:
  206|  12.8k|		~scoped_object() {
  207|  12.8k|			_builder.end_object();
  208|  12.8k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|  18.4k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|  18.4k|		auto arr = scoped_array<key>(builder);
  263|  73.8k|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 55.3k, False: 18.4k]
  ------------------
  264|  55.3k|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 36.9k, False: 18.4k]
  ------------------
  265|  36.9k|				builder.append_comma();
  266|  55.3k|			builder.append(values[i]);
  267|  55.3k|		}
  268|  18.4k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  18.4k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  18.4k|			if constexpr (key.view().size() != 0) {
  222|  18.4k|				_builder.escape_and_append_with_quotes<key>();
  223|  18.4k|				_builder.append_colon();
  224|  18.4k|			}
  225|  18.4k|			_builder.start_array();
  226|  18.4k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEED2Ev:
  227|  18.4k|		~scoped_array() {
  228|  18.4k|			_builder.end_array();
  229|  18.4k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEETnDaLb1EEEvRNS1_8fallback7builder14string_builderE:
  278|  11.9k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|  11.9k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|  11.9k|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|  11.9k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc101ELc115ELc104ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  3.61k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  3.61k|			if constexpr (key.view().size() != 0) {
  222|  3.61k|				_builder.escape_and_append_with_quotes<key>();
  223|  3.61k|				_builder.append_colon();
  224|  3.61k|			}
  225|  3.61k|			_builder.start_array();
  226|  3.61k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc101ELc115ELc104ELc101ELc115EEEEED2Ev:
  227|  3.61k|		~scoped_array() {
  228|  3.61k|			_builder.end_array();
  229|  3.61k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  33.6k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  33.6k|			if constexpr (key.view().size() != 0) {
  222|  33.6k|				_builder.escape_and_append_with_quotes<key>();
  223|  33.6k|				_builder.append_colon();
  224|  33.6k|			}
  225|  33.6k|			_builder.start_array();
  226|  33.6k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEED2Ev:
  227|  33.6k|		~scoped_array() {
  228|  33.6k|			_builder.end_array();
  229|  33.6k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  45.8k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  45.8k|			if constexpr (key.view().size() != 0) {
  201|  45.8k|				_builder.escape_and_append_with_quotes<key>();
  202|  45.8k|				_builder.append_colon();
  203|  45.8k|			}
  204|  45.8k|			_builder.start_object();
  205|  45.8k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEED2Ev:
  206|  45.8k|		~scoped_object() {
  207|  45.8k|			_builder.end_object();
  208|  45.8k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  4.83k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  4.83k|			if constexpr (key.view().size() != 0) {
  222|  4.83k|				_builder.escape_and_append_with_quotes<key>();
  223|  4.83k|				_builder.append_colon();
  224|  4.83k|			}
  225|  4.83k|			_builder.start_array();
  226|  4.83k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEED2Ev:
  227|  4.83k|		~scoped_array() {
  228|  4.83k|			_builder.end_array();
  229|  4.83k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  2.46k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  2.46k|			if constexpr (key.view().size() != 0) {
  201|  2.46k|				_builder.escape_and_append_with_quotes<key>();
  202|  2.46k|				_builder.append_colon();
  203|  2.46k|			}
  204|  2.46k|			_builder.start_object();
  205|  2.46k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEED2Ev:
  206|  2.46k|		~scoped_object() {
  207|  2.46k|			_builder.end_object();
  208|  2.46k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  1.03k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  1.03k|			if constexpr (key.view().size() != 0) {
  222|  1.03k|				_builder.escape_and_append_with_quotes<key>();
  223|  1.03k|				_builder.append_colon();
  224|  1.03k|			}
  225|  1.03k|			_builder.start_array();
  226|  1.03k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEED2Ev:
  227|  1.03k|		~scoped_array() {
  228|  1.03k|			_builder.end_array();
  229|  1.03k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm1EEEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  2.26k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|       |			if constexpr (key.view().size() != 0) {
  222|       |				_builder.escape_and_append_with_quotes<key>();
  223|       |				_builder.append_colon();
  224|       |			}
  225|  2.26k|			_builder.start_array();
  226|  2.26k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm1EEEEEED2Ev:
  227|  2.26k|		~scoped_array() {
  228|  2.26k|			_builder.end_array();
  229|  2.26k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  4.82k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  4.82k|			if constexpr (key.view().size() != 0) {
  201|  4.82k|				_builder.escape_and_append_with_quotes<key>();
  202|  4.82k|				_builder.append_colon();
  203|  4.82k|			}
  204|  4.82k|			_builder.start_object();
  205|  4.82k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEED2Ev:
  206|  4.82k|		~scoped_object() {
  207|  4.82k|			_builder.end_object();
  208|  4.82k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEETkNSt3__16ranges5rangeENS6_6vectorIfNS6_9allocatorIfEEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|    227|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|    227|		builder.escape_and_append_with_quotes<key>();
  273|    227|		builder.append_colon();
  274|    227|		builder.append(range);
  275|    227|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  9.95k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  9.95k|			if constexpr (key.view().size() != 0) {
  222|  9.95k|				_builder.escape_and_append_with_quotes<key>();
  223|  9.95k|				_builder.append_colon();
  224|  9.95k|			}
  225|  9.95k|			_builder.start_array();
  226|  9.95k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEED2Ev:
  227|  9.95k|		~scoped_array() {
  228|  9.95k|			_builder.end_array();
  229|  9.95k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEETkNSt3__16ranges5rangeENS6_6vectorImNS6_9allocatorImEEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  21.9k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  21.9k|		builder.escape_and_append_with_quotes<key>();
  273|  21.9k|		builder.append_colon();
  274|  21.9k|		builder.append(range);
  275|  21.9k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|    833|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|    833|			if constexpr (key.view().size() != 0) {
  201|    833|				_builder.escape_and_append_with_quotes<key>();
  202|    833|				_builder.append_colon();
  203|    833|			}
  204|    833|			_builder.start_object();
  205|    833|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEED2Ev:
  206|    833|		~scoped_object() {
  207|    833|			_builder.end_object();
  208|    833|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  40.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  40.9k|			if constexpr (key.view().size() != 0) {
  201|  40.9k|				_builder.escape_and_append_with_quotes<key>();
  202|  40.9k|				_builder.append_colon();
  203|  40.9k|			}
  204|  40.9k|			_builder.start_object();
  205|  40.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEED2Ev:
  206|  40.9k|		~scoped_object() {
  207|  40.9k|			_builder.end_object();
  208|  40.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  1.88k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  1.88k|			if constexpr (key.view().size() != 0) {
  201|  1.88k|				_builder.escape_and_append_with_quotes<key>();
  202|  1.88k|				_builder.append_colon();
  203|  1.88k|			}
  204|  1.88k|			_builder.start_object();
  205|  1.88k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEED2Ev:
  206|  1.88k|		~scoped_object() {
  207|  1.88k|			_builder.end_object();
  208|  1.88k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm16EEEtlA16_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEENS_4math3vecIfLm3EEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  261|      1|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const T& values) {
  262|      1|		auto arr = scoped_array<key>(builder);
  263|      4|		for (std::size_t i = 0; i < values.size(); ++i) {
  ------------------
  |  Branch (263:27): [True: 3, False: 1]
  ------------------
  264|      3|			if (i != 0)
  ------------------
  |  Branch (264:8): [True: 2, False: 1]
  ------------------
  265|      2|				builder.append_comma();
  266|      3|			builder.append(values[i]);
  267|      3|		}
  268|      1|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|      1|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|      1|			if constexpr (key.view().size() != 0) {
  222|      1|				_builder.escape_and_append_with_quotes<key>();
  223|      1|				_builder.append_colon();
  224|      1|			}
  225|      1|			_builder.start_array();
  226|      1|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm16EEEtlA16_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEED2Ev:
  227|      1|		~scoped_array() {
  228|      1|			_builder.end_array();
  229|      1|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  19.3k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  19.3k|			if constexpr (key.view().size() != 0) {
  201|  19.3k|				_builder.escape_and_append_with_quotes<key>();
  202|  19.3k|				_builder.append_colon();
  203|  19.3k|			}
  204|  19.3k|			_builder.start_object();
  205|  19.3k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEED2Ev:
  206|  19.3k|		~scoped_object() {
  207|  19.3k|			_builder.end_object();
  208|  19.3k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  10.2k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  10.2k|			if constexpr (key.view().size() != 0) {
  201|  10.2k|				_builder.escape_and_append_with_quotes<key>();
  202|  10.2k|				_builder.append_colon();
  203|  10.2k|			}
  204|  10.2k|			_builder.start_object();
  205|  10.2k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEED2Ev:
  206|  10.2k|		~scoped_object() {
  207|  10.2k|			_builder.end_object();
  208|  10.2k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEETkNSt3__16ranges5rangeENS6_6vectorImNS6_9allocatorImEEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  6.78k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  6.78k|		builder.escape_and_append_with_quotes<key>();
  273|  6.78k|		builder.append_colon();
  274|  6.78k|		builder.append(range);
  275|  6.78k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  5.89k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  5.89k|			if constexpr (key.view().size() != 0) {
  201|  5.89k|				_builder.escape_and_append_with_quotes<key>();
  202|  5.89k|				_builder.append_colon();
  203|  5.89k|			}
  204|  5.89k|			_builder.start_object();
  205|  5.89k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEED2Ev:
  206|  5.89k|		~scoped_object() {
  207|  5.89k|			_builder.end_object();
  208|  5.89k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  5.26k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  5.26k|			if constexpr (key.view().size() != 0) {
  201|  5.26k|				_builder.escape_and_append_with_quotes<key>();
  202|  5.26k|				_builder.append_colon();
  203|  5.26k|			}
  204|  5.26k|			_builder.start_object();
  205|  5.26k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEED2Ev:
  206|  5.26k|		~scoped_object() {
  207|  5.26k|			_builder.end_object();
  208|  5.26k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEETnDaLb0EEEvRNS1_8fallback7builder14string_builderE:
  278|  5.26k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|  5.26k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|  5.26k|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|  5.26k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  4.42k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  4.42k|			if constexpr (key.view().size() != 0) {
  201|  4.42k|				_builder.escape_and_append_with_quotes<key>();
  202|  4.42k|				_builder.append_colon();
  203|  4.42k|			}
  204|  4.42k|			_builder.start_object();
  205|  4.42k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEED2Ev:
  206|  4.42k|		~scoped_object() {
  207|  4.42k|			_builder.end_object();
  208|  4.42k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEETnDaLb0EEEvRNS1_8fallback7builder14string_builderE:
  278|  4.42k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|  4.42k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|  4.42k|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|  4.42k|	}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|    964|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|    964|			if constexpr (key.view().size() != 0) {
  201|    964|				_builder.escape_and_append_with_quotes<key>();
  202|    964|				_builder.append_colon();
  203|    964|			}
  204|    964|			_builder.start_object();
  205|    964|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEED2Ev:
  206|    964|		~scoped_object() {
  207|    964|			_builder.end_object();
  208|    964|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEETnDaLb0EEEvRNS1_8fallback7builder14string_builderE:
  278|    964|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  279|       |		// This API only got added in 5.0.4
  280|    964|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  281|    964|			builder.template append_key_value<key, value>();
  282|       |		} else {
  283|       |			builder.append_key_value<key>(value);
  284|       |		}
  285|    964|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc99ELc101ELc110ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  6.06k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  6.06k|			if constexpr (key.view().size() != 0) {
  222|  6.06k|				_builder.escape_and_append_with_quotes<key>();
  223|  6.06k|				_builder.append_colon();
  224|  6.06k|			}
  225|  6.06k|			_builder.start_array();
  226|  6.06k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc99ELc101ELc110ELc101ELc115EEEEED2Ev:
  227|  6.06k|		~scoped_array() {
  228|  6.06k|			_builder.end_array();
  229|  6.06k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc107ELc105ELc110ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  2.13k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  2.13k|			if constexpr (key.view().size() != 0) {
  222|  2.13k|				_builder.escape_and_append_with_quotes<key>();
  223|  2.13k|				_builder.append_colon();
  224|  2.13k|			}
  225|  2.13k|			_builder.start_array();
  226|  2.13k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc107ELc105ELc110ELc115EEEEED2Ev:
  227|  2.13k|		~scoped_array() {
  228|  2.13k|			_builder.end_array();
  229|  2.13k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEETkNSt3__16ranges5rangeENS6_6vectorImNS6_9allocatorImEEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  14.3k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  14.3k|		builder.escape_and_append_with_quotes<key>();
  273|  14.3k|		builder.append_colon();
  274|  14.3k|		builder.append(range);
  275|  14.3k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc116ELc117ELc114ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  4.36k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  4.36k|			if constexpr (key.view().size() != 0) {
  222|  4.36k|				_builder.escape_and_append_with_quotes<key>();
  223|  4.36k|				_builder.append_colon();
  224|  4.36k|			}
  225|  4.36k|			_builder.start_array();
  226|  4.36k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc116ELc117ELc114ELc101ELc115EEEEED2Ev:
  227|  4.36k|		~scoped_array() {
  228|  4.36k|			_builder.end_array();
  229|  4.36k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  3.82k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  3.82k|			if constexpr (key.view().size() != 0) {
  201|  3.82k|				_builder.escape_and_append_with_quotes<key>();
  202|  3.82k|				_builder.append_colon();
  203|  3.82k|			}
  204|  3.82k|			_builder.start_object();
  205|  3.82k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEED2Ev:
  206|  3.82k|		~scoped_object() {
  207|  3.82k|			_builder.end_object();
  208|  3.82k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|     15|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|     15|			if constexpr (key.view().size() != 0) {
  201|     15|				_builder.escape_and_append_with_quotes<key>();
  202|     15|				_builder.append_colon();
  203|     15|			}
  204|     15|			_builder.start_object();
  205|     15|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEED2Ev:
  206|     15|		~scoped_object() {
  207|     15|			_builder.end_object();
  208|     15|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|    120|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|    120|			if constexpr (key.view().size() != 0) {
  201|    120|				_builder.escape_and_append_with_quotes<key>();
  202|    120|				_builder.append_colon();
  203|    120|			}
  204|    120|			_builder.start_object();
  205|    120|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEED2Ev:
  206|    120|		~scoped_object() {
  207|    120|			_builder.end_object();
  208|    120|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|     28|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|     28|			if constexpr (key.view().size() != 0) {
  201|     28|				_builder.escape_and_append_with_quotes<key>();
  202|     28|				_builder.append_colon();
  203|     28|			}
  204|     28|			_builder.start_object();
  205|     28|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEED2Ev:
  206|     28|		~scoped_object() {
  207|     28|			_builder.end_object();
  208|     28|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|    942|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|    942|			if constexpr (key.view().size() != 0) {
  201|    942|				_builder.escape_and_append_with_quotes<key>();
  202|    942|				_builder.append_colon();
  203|    942|			}
  204|    942|			_builder.start_object();
  205|    942|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEED2Ev:
  206|    942|		~scoped_object() {
  207|    942|			_builder.end_object();
  208|    942|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|    942|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|    942|			if constexpr (key.view().size() != 0) {
  222|    942|				_builder.escape_and_append_with_quotes<key>();
  223|    942|				_builder.append_colon();
  224|    942|			}
  225|    942|			_builder.start_array();
  226|    942|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEED2Ev:
  227|    942|		~scoped_array() {
  228|    942|			_builder.end_array();
  229|    942|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|    749|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|    749|			if constexpr (key.view().size() != 0) {
  222|    749|				_builder.escape_and_append_with_quotes<key>();
  223|    749|				_builder.append_colon();
  224|    749|			}
  225|    749|			_builder.start_array();
  226|    749|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEED2Ev:
  227|    749|		~scoped_array() {
  228|    749|			_builder.end_array();
  229|    749|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  1.06k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  1.06k|			if constexpr (key.view().size() != 0) {
  222|  1.06k|				_builder.escape_and_append_with_quotes<key>();
  223|  1.06k|				_builder.append_colon();
  224|  1.06k|			}
  225|  1.06k|			_builder.start_array();
  226|  1.06k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEED2Ev:
  227|  1.06k|		~scoped_array() {
  228|  1.06k|			_builder.end_array();
  229|  1.06k|		}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEETkNSt3__16ranges5rangeENS6_6vectorINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENSC_ISE_EEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  4.08k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  4.08k|		builder.escape_and_append_with_quotes<key>();
  273|  4.08k|		builder.append_colon();
  274|  4.08k|		builder.append(range);
  275|  4.08k|	}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEETkNSt3__16ranges5rangeENS6_6vectorINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENSC_ISE_EEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  4.94k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  4.94k|		builder.escape_and_append_with_quotes<key>();
  273|  4.94k|		builder.append_colon();
  274|  4.94k|		builder.append(range);
  275|  4.94k|	}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEETkNSt3__16ranges5rangeENS6_6vectorINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENSC_ISE_EEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  5.41k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  5.41k|		builder.escape_and_append_with_quotes<key>();
  273|  5.41k|		builder.append_colon();
  274|  5.41k|		builder.append(range);
  275|  5.41k|	}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|    100|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|    100|			if constexpr (key.view().size() != 0) {
  222|    100|				_builder.escape_and_append_with_quotes<key>();
  223|    100|				_builder.append_colon();
  224|    100|			}
  225|    100|			_builder.start_array();
  226|    100|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEED2Ev:
  227|    100|		~scoped_array() {
  228|    100|			_builder.end_array();
  229|    100|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEC2ERNS1_8fallback7builder14string_builderE:
  220|  1.42k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  221|  1.42k|			if constexpr (key.view().size() != 0) {
  222|  1.42k|				_builder.escape_and_append_with_quotes<key>();
  223|  1.42k|				_builder.append_colon();
  224|  1.42k|			}
  225|  1.42k|			_builder.start_array();
  226|  1.42k|		}
_ZN8fastgltf12scoped_arrayIXtlN8simdjson13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEED2Ev:
  227|  1.42k|		~scoped_array() {
  228|  1.42k|			_builder.end_array();
  229|  1.42k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEEC2ERNS1_8fallback7builder14string_builderE:
  199|  40.9k|			simdjson::builder::string_builder& builder) noexcept : _builder(builder) {
  200|  40.9k|			if constexpr (key.view().size() != 0) {
  201|  40.9k|				_builder.escape_and_append_with_quotes<key>();
  202|  40.9k|				_builder.append_colon();
  203|  40.9k|			}
  204|  40.9k|			_builder.start_object();
  205|  40.9k|		}
_ZN8fastgltf13scoped_objectIXtlN8simdjson13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEED2Ev:
  206|  40.9k|		~scoped_object() {
  207|  40.9k|			_builder.end_object();
  208|  40.9k|		}
exporter.cpp:_ZN8fastgltfL22append_const_key_valueITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm10EEEtlA10_cLc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEETnS3_XtlNS3_ILm15EEEtlA15_cLc102ELc97ELc115ELc116ELc103ELc108ELc116ELc102ELc32ELc49ELc46ELc48ELc46ELc49EEEEEEvRNS1_8fallback7builder14string_builderE:
  287|  34.6k|	FASTGLTF_FORCEINLINE static void append_const_key_value(simdjson::builder::string_builder& builder) {
  288|       |		// This API only got added in 5.0.4
  289|  34.6k|		if constexpr (requires { builder.template append_key_value<key, value>(); }) {
  290|  34.6k|			builder.template append_key_value<key, value>();
  291|       |		} else {
  292|       |			builder.append_key_value<key>(value);
  293|       |		}
  294|  34.6k|	}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm15EEEtlA15_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc85ELc115ELc101ELc100EEEETkNSt3__16ranges5rangeENS6_6vectorINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENSC_ISE_EEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  14.0k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  14.0k|		builder.escape_and_append_with_quotes<key>();
  273|  14.0k|		builder.append_colon();
  274|  14.0k|		builder.append(range);
  275|  14.0k|	}
exporter.cpp:_ZN8fastgltfL16append_key_rangeITnN8simdjson13constevalutil12fixed_stringEXtlNS3_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEETkNSt3__16ranges5rangeENS6_6vectorINS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEENSC_ISE_EEEEEEvRNS1_8fallback7builder14string_builderERKT0_:
  271|  2.59k|	FASTGLTF_FORCEINLINE static void append_key_range(simdjson::builder::string_builder& builder, const R& range) {
  272|  2.59k|		builder.escape_and_append_with_quotes<key>();
  273|  2.59k|		builder.append_colon();
  274|  2.59k|		builder.append(range);
  275|  2.59k|	}

_ZN8fastgltf14GltfDataBufferC2EPKSt4bytem:
   83|   116k|fg::GltfDataBuffer::GltfDataBuffer(const std::byte *bytes, const std::size_t count) noexcept {
   84|   116k|	assert(bytes != nullptr && "Passing nullptr is not allowed.");
  ------------------
  |  Branch (84:2): [True: 116k, False: 0]
  |  Branch (84:2): [True: 116k, Folded]
  |  Branch (84:2): [True: 116k, False: 0]
  ------------------
   85|   116k|	dataSize = count;
   86|   116k|	allocateAndCopy(bytes);
   87|   116k|}
_ZN8fastgltf14GltfDataBuffer15allocateAndCopyEPKSt4byte:
   95|   116k|void fg::GltfDataBuffer::allocateAndCopy(const std::byte *bytes) noexcept {
   96|   116k|	allocatedSize = dataSize + simdjson::SIMDJSON_PADDING;
   97|   116k|	buffer = decltype(buffer)(new (std::nothrow) std::byte[allocatedSize]);
   98|       |
   99|   116k|	if (buffer != nullptr) {
  ------------------
  |  Branch (99:6): [True: 116k, False: 0]
  ------------------
  100|   116k|		std::memcpy(buffer.get(), bytes, dataSize);
  101|   116k|		std::memset(buffer.get() + dataSize, 0, allocatedSize - dataSize);
  102|   116k|	} else {
  103|      0|		error = Error::FileBufferAllocationFailed;
  104|      0|	}
  105|   116k|}
_ZN8fastgltf14GltfDataBuffer4readEPvm:
  107|   150k|void fg::GltfDataBuffer::read(void *ptr, std::size_t count) {
  108|   150k|	std::memcpy(ptr, buffer.get() + idx, count);
  109|   150k|	idx += count;
  110|   150k|}
_ZN8fastgltf14GltfDataBuffer4readEmm:
  112|   115k|std::span<std::byte> fg::GltfDataBuffer::read(std::size_t count, [[maybe_unused]] std::size_t padding) {
  113|   115k|	std::span sub(buffer.get() + idx, count);
  114|   115k|	idx += count;
  115|   115k|	return sub;
  116|   115k|}
_ZN8fastgltf14GltfDataBuffer5resetEv:
  118|   265k|void fg::GltfDataBuffer::reset() {
  119|   265k|	idx = 0;
  120|   265k|}
_ZN8fastgltf14GltfDataBuffer9bytesReadEv:
  122|    196|std::size_t fg::GltfDataBuffer::bytesRead() {
  123|    196|	return idx;
  124|    196|}
_ZN8fastgltf14GltfDataBuffer9totalSizeEv:
  126|   347k|std::size_t fg::GltfDataBuffer::totalSize() {
  127|   347k|	return dataSize;
  128|   347k|}

_ZNK8fastgltf6Parser13decodeDataUriERKNS_7URIViewE:
  600|  18.3k|fg::Expected<fg::DataSource> fg::Parser::decodeDataUri(const URIView& uri) const noexcept {
  601|  18.3k|	auto path = uri.path();
  602|  18.3k|	const auto mimeEnd = path.find(';');
  603|  18.3k|	const auto mime = path.substr(0, mimeEnd);
  604|       |
  605|  18.3k|	const auto encodingEnd = path.find(',');
  606|  18.3k|	const auto encoding = path.substr(mimeEnd + 1, encodingEnd - mimeEnd - 1);
  607|  18.3k|	if (encoding != "base64") [[unlikely]] {
  ------------------
  |  Branch (607:6): [True: 52, False: 18.3k]
  ------------------
  608|     52|		return Error::InvalidURI;
  609|     52|	}
  610|       |
  611|  18.3k|	const auto encodedData = path.substr(encodingEnd + 1);
  612|  18.3k|	if (encodedData.size() < 4 || encodedData.size() % 4 != 0) [[unlikely]] {
  ------------------
  |  Branch (612:6): [True: 4, False: 18.3k]
  |  Branch (612:32): [True: 18, False: 18.3k]
  ------------------
  613|     22|		return Error::InvalidURI;
  614|     22|	}
  615|       |
  616|  18.3k|	if (config.mapCallback != nullptr) {
  ------------------
  |  Branch (616:6): [True: 0, False: 18.3k]
  ------------------
  617|       |		// If a map callback is specified, we use a pointer to memory specified by it.
  618|      0|		const auto padding = base64::getPadding(encodedData);
  619|      0|		const auto size = base64::getDecodedSize(encodedData.size(), padding);
  620|       |
  621|      0|		auto info = config.mapCallback(size, config.userPointer);
  622|      0|		if (info.mappedMemory != nullptr) {
  ------------------
  |  Branch (622:7): [True: 0, False: 0]
  ------------------
  623|      0|			const auto success = base64::decode_inplace(encodedData, static_cast<std::uint8_t*>(info.mappedMemory), padding);
  624|       |
  625|      0|			if (config.unmapCallback != nullptr) {
  ------------------
  |  Branch (625:8): [True: 0, False: 0]
  ------------------
  626|      0|				config.unmapCallback(&info, config.userPointer);
  627|      0|			}
  628|       |
  629|      0|			if (!success) [[unlikely]] {
  ------------------
  |  Branch (629:8): [True: 0, False: 0]
  ------------------
  630|      0|				return Error::InvalidURI;
  631|      0|			}
  632|       |
  633|      0|			sources::CustomBuffer source {};
  634|      0|			source.id = info.customId;
  635|      0|			source.mimeType = internal::getMimeTypeFromString(mime);
  636|      0|			return { source };
  637|      0|		}
  638|      0|	}
  639|       |
  640|       |	// Decode the base64 data into a traditional vector
  641|       |	// also check if the decoded byte count matches the size. they usually only differ when the input has
  642|       |	// whitespace which we just don't handle atm (simdutf does, tbf) because of static_vector not being resizeable
  643|  18.3k|	const auto padding = base64::getPadding(encodedData);
  644|  18.3k|	static_vector<std::byte> uriData(for_overwrite, base64::getDecodedSize(encodedData.size(), padding));
  645|  18.3k|	if (!base64::decode_inplace(encodedData, reinterpret_cast<std::uint8_t*>(uriData.data()), padding)) [[unlikely]] {
  ------------------
  |  Branch (645:6): [True: 366, False: 17.9k]
  ------------------
  646|    366|		return Error::InvalidURI;
  647|    366|	}
  648|       |
  649|  17.9k|	sources::Array source {
  650|  17.9k|		.bytes = std::move(uriData),
  651|  17.9k|		.mimeType = internal::getMimeTypeFromString(mime),
  652|  17.9k|	};
  653|  17.9k|	return { std::move(source) };
  654|  18.3k|}
_ZN8fastgltf6Parser14fillCategoriesERNS_8CategoryE:
  656|   114k|void fg::Parser::fillCategories(Category& inputCategories) noexcept {
  657|   114k|	if (inputCategories == Category::All)
  ------------------
  |  Branch (657:6): [True: 114k, False: 0]
  ------------------
  658|   114k|		return;
  659|       |
  660|       |	// The Category enum used to already OR values together so that e.g. Scenes would also implicitly
  661|       |	// have the Nodes bit set. This, however, caused some issues within the parse function as it tries
  662|       |	// to bail out when all requested categories have been parsed, as now something that hasn't been
  663|       |	// parsed could still be set. So, this has to exist...
  664|      0|	if (hasBit(inputCategories, Category::Scenes))
  ------------------
  |  Branch (664:6): [True: 0, False: 0]
  ------------------
  665|      0|		inputCategories |= Category::Nodes;
  666|      0|	if (hasBit(inputCategories, Category::Nodes))
  ------------------
  |  Branch (666:6): [True: 0, False: 0]
  ------------------
  667|      0|		inputCategories |= Category::Cameras | Category::Meshes | Category::Skins;
  668|      0|	if (hasBit(inputCategories, Category::Skins))
  ------------------
  |  Branch (668:6): [True: 0, False: 0]
  ------------------
  669|       |		// Skins needs nodes, nodes needs skins. To counter this circular dep we just redefine what we just wrote above.
  670|      0|		inputCategories |= Category::Accessors | (Category::Nodes | Category::Cameras | Category::Meshes | Category::Skins);
  671|      0|	if (hasBit(inputCategories, Category::Meshes))
  ------------------
  |  Branch (671:6): [True: 0, False: 0]
  ------------------
  672|      0|		inputCategories |= Category::Accessors | Category::Materials;
  673|      0|	if (hasBit(inputCategories, Category::Materials))
  ------------------
  |  Branch (673:6): [True: 0, False: 0]
  ------------------
  674|      0|		inputCategories |= Category::Textures;
  675|      0|	if (hasBit(inputCategories, Category::Animations))
  ------------------
  |  Branch (675:6): [True: 0, False: 0]
  ------------------
  676|      0|		inputCategories |= Category::Accessors;
  677|      0|	if (hasBit(inputCategories, Category::Textures))
  ------------------
  |  Branch (677:6): [True: 0, False: 0]
  ------------------
  678|      0|		inputCategories |= Category::Images | Category::Samplers;
  679|      0|	if (hasBit(inputCategories, Category::Images) || hasBit(inputCategories, Category::Accessors))
  ------------------
  |  Branch (679:6): [True: 0, False: 0]
  |  Branch (679:51): [True: 0, False: 0]
  ------------------
  680|      0|		inputCategories |= Category::BufferViews;
  681|      0|	if (hasBit(inputCategories, Category::BufferViews))
  ------------------
  |  Branch (681:6): [True: 0, False: 0]
  ------------------
  682|      0|		inputCategories |= Category::Buffers;
  683|      0|}
_ZNK8fastgltf6Parser19generateMeshIndicesERNS_5AssetE:
  715|  86.7k|fg::Error fg::Parser::generateMeshIndices(fastgltf::Asset& asset) const {
  716|  86.7k|	for (auto& mesh : asset.meshes) {
  ------------------
  |  Branch (716:18): [True: 70.2k, False: 86.7k]
  ------------------
  717|  83.9k|		for (auto& primitive : mesh.primitives) {
  ------------------
  |  Branch (717:24): [True: 83.9k, False: 70.1k]
  ------------------
  718|  83.9k|			if (primitive.indicesAccessor.has_value())
  ------------------
  |  Branch (718:8): [True: 70.9k, False: 13.0k]
  ------------------
  719|  70.9k|				continue;
  720|       |
  721|  13.0k|			auto positionAttribute = primitive.findAttribute("POSITION");
  722|  13.0k|			if (positionAttribute == primitive.attributes.end()) [[unlikely]] {
  ------------------
  |  Branch (722:8): [True: 68, False: 12.9k]
  ------------------
  723|     68|				return Error::InvalidGltf;
  724|     68|			}
  725|  12.9k|			if (positionAttribute->accessorIndex >= asset.accessors.size()) [[unlikely]] {
  ------------------
  |  Branch (725:8): [True: 15, False: 12.9k]
  ------------------
  726|     15|				return Error::InvalidGltf;
  727|     15|			}
  728|  12.9k|			auto& positionAccessor = asset.accessors[positionAttribute->accessorIndex];
  729|  12.9k|			auto positionCount = positionAccessor.count;
  730|       |
  731|  12.9k|			if (const auto error = validateAccessorBounds(asset, positionAccessor);
  732|  12.9k|				error != Error::None) [[unlikely]]
  ------------------
  |  Branch (732:5): [True: 4, False: 12.9k]
  ------------------
  733|      4|				return error;
  734|       |
  735|  12.9k|			auto [generatedIndices, componentType] = writeIndices(positionCount);
  736|       |
  737|  12.9k|			auto bufferIdx = asset.buffers.size();
  738|  12.9k|			auto& buffer = asset.buffers.emplace_back();
  739|  12.9k|			buffer.byteLength = generatedIndices.size_bytes();
  740|  12.9k|			sources::Array indicesArray {
  741|  12.9k|				std::move(generatedIndices),
  742|  12.9k|				MimeType::GltfBuffer,
  743|  12.9k|			};
  744|  12.9k|			buffer.data = std::move(indicesArray);
  745|       |
  746|  12.9k|			auto bufferViewIdx = asset.bufferViews.size();
  747|  12.9k|			auto& bufferView = asset.bufferViews.emplace_back();
  748|  12.9k|			bufferView.byteLength = buffer.byteLength;
  749|  12.9k|			bufferView.bufferIndex = bufferIdx;
  750|  12.9k|			bufferView.byteOffset = 0;
  751|       |
  752|  12.9k|			primitive.indicesAccessor = asset.accessors.size();
  753|  12.9k|			auto& accessor = asset.accessors.emplace_back();
  754|  12.9k|			accessor.byteOffset = 0;
  755|  12.9k|			accessor.count = positionCount;
  756|  12.9k|			accessor.type = AccessorType::Scalar;
  757|  12.9k|			accessor.componentType = componentType;
  758|  12.9k|			accessor.normalized = false;
  759|  12.9k|			accessor.bufferViewIndex = bufferViewIdx;
  760|  12.9k|		}
  761|  70.2k|	}
  762|  86.7k|	return Error::None;
  763|  86.7k|}
_ZN8fastgltf6detail18parseVersionStringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  766|   113k|	Expected<Version> parseVersionString(const std::string_view version) noexcept {
  767|   113k|		Version ret {};
  768|   113k|		static constexpr std::uint32_t max_version_num = 999999999;
  769|       |
  770|       |		// The glTF 2.0 specification allowed versions to be of the form ^[0-9]+\\.[0-9]+$ for both
  771|       |		// version and minVersion. glTF 2.1 restricted it to ^(0|[1-9][0-9]{0,8})\\.(0|[1-9][0-9]{0,8})$
  772|       |		// This function implements the glTF 2.1 version parsing to be more strict.
  773|       |
  774|   113k|		const auto* const end = version.data() + version.size(); // from_chars requires pointers, not iterators
  775|   113k|		auto [dot, majorError] = std::from_chars(version.data(), end, ret.major);
  776|   113k|		if (majorError != std::errc {} || dot == end || *dot != '.') [[unlikely]]
  ------------------
  |  Branch (776:7): [True: 55, False: 113k]
  |  Branch (776:37): [True: 40, False: 113k]
  |  Branch (776:51): [True: 26, False: 113k]
  ------------------
  777|    121|			return Error::InvalidVersion;
  778|       |
  779|   113k|		const auto majorDigits = dot - version.data();
  780|   113k|		if ((majorDigits > 1 && version[0] == '0') || ret.major > max_version_num) [[unlikely]]
  ------------------
  |  Branch (780:8): [True: 62, False: 113k]
  |  Branch (780:27): [True: 1, False: 61]
  |  Branch (780:49): [True: 3, False: 113k]
  ------------------
  781|      4|			return Error::InvalidVersion;
  782|       |
  783|   113k|		auto [last, minorError] = std::from_chars(std::next(dot), end, ret.minor);
  784|   113k|		if (minorError != std::errc {} || last != end) [[unlikely]]
  ------------------
  |  Branch (784:7): [True: 28, False: 113k]
  |  Branch (784:37): [True: 6, False: 113k]
  ------------------
  785|     34|			return Error::InvalidVersion;
  786|       |
  787|   113k|		const auto minorDigits = last - std::next(dot);
  788|   113k|		if ((minorDigits > 1 && *std::next(dot) == '0') || ret.minor > max_version_num) [[unlikely]]
  ------------------
  |  Branch (788:8): [True: 5.01k, False: 108k]
  |  Branch (788:27): [True: 1, False: 5.01k]
  |  Branch (788:54): [True: 6, False: 113k]
  ------------------
  789|      7|			return Error::InvalidVersion;
  790|   113k|		return ret;
  791|   113k|	}
_ZN8fastgltf6Parser5parseERNS_8internal10JsonObjectENS_8CategoryE:
  820|   114k|fg::Expected<fg::Asset> fg::Parser::parse(internal::JsonObject& rootJson, Category categories) {
  821|   114k|	using namespace simdjson;
  822|   114k|	auto& root = rootJson.value;
  823|   114k|	fillCategories(categories);
  824|       |
  825|   114k|	Asset asset {};
  826|       |
  827|       |	// An initial pre-scan for things like the asset version, required extensions, and other
  828|       |	// important information we need to validate the rest of the asset.
  829|   114k|	{
  830|   114k|		std::optional<std::string_view> version, minVersion;
  831|   114k|		const auto readAsset = [&](ondemand::value assetInfo) -> error_code {
  832|   114k|			return assetInfo.get_object().for_each<"version", "minVersion", "copyright", "generator">(
  833|   114k|				version, minVersion, asset.assetInfo.copyright, asset.assetInfo.generator);
  834|   114k|		};
  835|       |
  836|   114k|		if (const auto error = root.for_each<"asset", "extensionsRequired">(
  837|   114k|			readAsset, asset.extensionsRequired); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (837:42): [True: 671, False: 113k]
  ------------------
  838|    671|			return toError(error);
  839|       |
  840|   113k|		if (const auto error = parseAssetVersions(version, minVersion, asset.assetInfo);
  841|   113k|			error != Error::None) [[unlikely]]
  ------------------
  |  Branch (841:4): [True: 294, False: 113k]
  ------------------
  842|    294|			return error;
  843|       |
  844|   113k|		for (const auto& required : asset.extensionsRequired) {
  ------------------
  |  Branch (844:29): [True: 9.88k, False: 113k]
  ------------------
  845|  9.88k|			const auto extension = std::ranges::find(extensionStrings, required,
  846|  9.88k|				&std::pair<std::string_view, Extensions>::first);
  847|  9.88k|			if (extension == extensionStrings.end()) [[unlikely]]
  ------------------
  |  Branch (847:8): [True: 18, False: 9.86k]
  ------------------
  848|     18|				return Error::UnknownRequiredExtension;
  849|       |
  850|       |			// The extension is required, but not enabled by the user.
  851|  9.86k|			if (!hasBit(config.extensions, extension->second)) [[unlikely]]
  ------------------
  |  Branch (851:8): [True: 0, False: 9.86k]
  ------------------
  852|      0|				return Error::MissingExtensions;
  853|  9.86k|		}
  854|   113k|	}
  855|       |
  856|   113k|	if (root.reset().error() != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (856:6): [True: 0, False: 113k]
  ------------------
  857|      0|		return Error::InvalidJson;
  858|       |
  859|   113k|	auto readCategories = Category::None;
  860|   472k|	for (auto object : root) {
  ------------------
  |  Branch (860:19): [True: 472k, False: 86.7k]
  ------------------
  861|   472k|		std::string_view key;
  862|   472k|		if (object.escaped_key().get(key) != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (862:7): [True: 64, False: 472k]
  ------------------
  863|     64|				return Error::InvalidJson;
  864|       |
  865|   472k|		auto hashedKey = crc32c(key);
  866|   472k|		if (hashedKey == force_consteval<crc32c("scene")>) {
  ------------------
  |  Branch (866:7): [True: 21.5k, False: 450k]
  ------------------
  867|  21.5k|			std::uint64_t defaultScene;
  868|  21.5k|			if (object.value().get_uint64().get(defaultScene) != SUCCESS) [[unlikely]] {
  ------------------
  |  Branch (868:8): [True: 106, False: 21.4k]
  ------------------
  869|    106|				return Error::InvalidGltf;
  870|    106|			}
  871|  21.4k|			if (!isValidIndex(defaultScene)) [[unlikely]]
  ------------------
  |  Branch (871:8): [True: 1, False: 21.4k]
  ------------------
  872|      1|				return Error::ValueOutOfRange;
  873|  21.4k|			asset.defaultScene = static_cast<std::size_t>(defaultScene);
  874|  21.4k|			continue;
  875|  21.4k|		}
  876|       |
  877|   450k|		if (hashedKey == force_consteval<crc32c("extensions")>) {
  ------------------
  |  Branch (877:7): [True: 81.4k, False: 369k]
  ------------------
  878|  81.4k|			internal::JsonObject extensionsObject;
  879|  81.4k|			if (object.value().get_object().get(extensionsObject.value) != SUCCESS) [[unlikely]] {
  ------------------
  |  Branch (879:8): [True: 22, False: 81.4k]
  ------------------
  880|     22|				return Error::InvalidGltf;
  881|     22|			}
  882|       |
  883|  81.4k|			if (const auto error = parseExtensions(extensionsObject, asset);
  884|  81.4k|				error != Error::None) [[unlikely]]
  ------------------
  |  Branch (884:5): [True: 4.10k, False: 77.3k]
  ------------------
  885|  4.10k|				return error;
  886|  77.3k|			continue;
  887|  81.4k|		}
  888|       |
  889|   369k|		if (hashedKey == force_consteval<crc32c("asset")> ||
  ------------------
  |  Branch (889:7): [True: 107k, False: 262k]
  ------------------
  890|   262k|			hashedKey == force_consteval<crc32c("extras")>) {
  ------------------
  |  Branch (890:4): [True: 203, False: 261k]
  ------------------
  891|   107k|			continue;
  892|   107k|		}
  893|       |
  894|   261k|		internal::JsonArray array;
  895|   261k|		if (object.value().get_array().get(array.value) != SUCCESS) [[unlikely]] {
  ------------------
  |  Branch (895:7): [True: 160, False: 261k]
  ------------------
  896|    160|			return Error::InvalidGltf;
  897|    160|		}
  898|       |
  899|   261k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  900|   261k|				if (hasBit(readCategories, Category::name))                                       \
  901|   261k|					return Error::InvalidGltf;                                                    \
  902|   261k|				if (hasBit(categories, Category::name))                                           \
  903|   261k|					error = parse##name(array, asset);                                            \
  904|   261k|				readCategories |= Category::name;                                                 \
  905|   261k|				break;
  906|       |
  907|   261k|		auto error = Error::None;
  908|   261k|		switch (hashedKey) {
  909|  19.1k|			KEY_SWITCH_CASE(Accessors, accessors)
  ------------------
  |  |  899|  19.1k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 19.1k, False: 242k]
  |  |  ------------------
  |  |  900|  19.1k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 19.1k]
  |  |  ------------------
  |  |  901|  19.1k|					return Error::InvalidGltf;                                                    \
  |  |  902|  19.1k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 19.1k, False: 0]
  |  |  ------------------
  |  |  903|  19.1k|					error = parse##name(array, asset);                                            \
  |  |  904|  19.1k|				readCategories |= Category::name;                                                 \
  |  |  905|  19.1k|				break;
  ------------------
  910|  2.37k|			KEY_SWITCH_CASE(Animations, animations)
  ------------------
  |  |  899|  2.37k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 2.37k, False: 259k]
  |  |  ------------------
  |  |  900|  2.37k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 2.37k]
  |  |  ------------------
  |  |  901|  2.37k|					return Error::InvalidGltf;                                                    \
  |  |  902|  2.37k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 2.37k, False: 0]
  |  |  ------------------
  |  |  903|  2.37k|					error = parse##name(array, asset);                                            \
  |  |  904|  2.37k|				readCategories |= Category::name;                                                 \
  |  |  905|  2.37k|				break;
  ------------------
  911|  18.3k|			KEY_SWITCH_CASE(Buffers, buffers)
  ------------------
  |  |  899|  18.3k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 18.3k, False: 243k]
  |  |  ------------------
  |  |  900|  18.3k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 2, False: 18.3k]
  |  |  ------------------
  |  |  901|  18.3k|					return Error::InvalidGltf;                                                    \
  |  |  902|  18.3k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 18.3k, False: 0]
  |  |  ------------------
  |  |  903|  18.3k|					error = parse##name(array, asset);                                            \
  |  |  904|  18.3k|				readCategories |= Category::name;                                                 \
  |  |  905|  18.3k|				break;
  ------------------
  912|  12.1k|			KEY_SWITCH_CASE(BufferViews, bufferViews)
  ------------------
  |  |  899|  12.1k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 12.1k, False: 249k]
  |  |  ------------------
  |  |  900|  12.1k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 12.1k]
  |  |  ------------------
  |  |  901|  12.1k|					return Error::InvalidGltf;                                                    \
  |  |  902|  12.1k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 12.1k, False: 0]
  |  |  ------------------
  |  |  903|  12.1k|					error = parse##name(array, asset);                                            \
  |  |  904|  12.1k|				readCategories |= Category::name;                                                 \
  |  |  905|  12.1k|				break;
  ------------------
  913|  2.74k|			KEY_SWITCH_CASE(Cameras, cameras)
  ------------------
  |  |  899|  2.74k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 2.74k, False: 259k]
  |  |  ------------------
  |  |  900|  2.74k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 2.74k]
  |  |  ------------------
  |  |  901|  2.74k|					return Error::InvalidGltf;                                                    \
  |  |  902|  2.74k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 2.74k, False: 0]
  |  |  ------------------
  |  |  903|  2.74k|					error = parse##name(array, asset);                                            \
  |  |  904|  2.74k|				readCategories |= Category::name;                                                 \
  |  |  905|  2.74k|				break;
  ------------------
  914|  18.1k|			KEY_SWITCH_CASE(Images, images)
  ------------------
  |  |  899|  18.1k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 18.1k, False: 243k]
  |  |  ------------------
  |  |  900|  18.1k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 18.1k]
  |  |  ------------------
  |  |  901|  18.1k|					return Error::InvalidGltf;                                                    \
  |  |  902|  18.1k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 18.1k, False: 0]
  |  |  ------------------
  |  |  903|  18.1k|					error = parse##name(array, asset);                                            \
  |  |  904|  18.1k|				readCategories |= Category::name;                                                 \
  |  |  905|  18.1k|				break;
  ------------------
  915|  38.6k|			KEY_SWITCH_CASE(Materials, materials)
  ------------------
  |  |  899|  38.6k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 38.6k, False: 223k]
  |  |  ------------------
  |  |  900|  38.6k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 2, False: 38.6k]
  |  |  ------------------
  |  |  901|  38.6k|					return Error::InvalidGltf;                                                    \
  |  |  902|  38.6k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 38.6k, False: 0]
  |  |  ------------------
  |  |  903|  38.6k|					error = parse##name(array, asset);                                            \
  |  |  904|  38.6k|				readCategories |= Category::name;                                                 \
  |  |  905|  38.6k|				break;
  ------------------
  916|  9.00k|			KEY_SWITCH_CASE(Meshes, meshes)
  ------------------
  |  |  899|  9.00k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 9.00k, False: 252k]
  |  |  ------------------
  |  |  900|  9.00k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 2, False: 9.00k]
  |  |  ------------------
  |  |  901|  9.00k|					return Error::InvalidGltf;                                                    \
  |  |  902|  9.00k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 9.00k, False: 0]
  |  |  ------------------
  |  |  903|  9.00k|					error = parse##name(array, asset);                                            \
  |  |  904|  9.00k|				readCategories |= Category::name;                                                 \
  |  |  905|  9.00k|				break;
  ------------------
  917|  26.1k|			KEY_SWITCH_CASE(Nodes, nodes)
  ------------------
  |  |  899|  26.1k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 26.1k, False: 235k]
  |  |  ------------------
  |  |  900|  26.1k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 26.1k]
  |  |  ------------------
  |  |  901|  26.1k|					return Error::InvalidGltf;                                                    \
  |  |  902|  26.1k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 26.1k, False: 0]
  |  |  ------------------
  |  |  903|  26.1k|					error = parse##name(array, asset);                                            \
  |  |  904|  26.1k|				readCategories |= Category::name;                                                 \
  |  |  905|  26.1k|				break;
  ------------------
  918|  9.19k|			KEY_SWITCH_CASE(Samplers, samplers)
  ------------------
  |  |  899|  9.19k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 9.19k, False: 252k]
  |  |  ------------------
  |  |  900|  9.19k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 9.19k]
  |  |  ------------------
  |  |  901|  9.19k|					return Error::InvalidGltf;                                                    \
  |  |  902|  9.19k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 9.19k, False: 0]
  |  |  ------------------
  |  |  903|  9.19k|					error = parse##name(array, asset);                                            \
  |  |  904|  9.19k|				readCategories |= Category::name;                                                 \
  |  |  905|  9.19k|				break;
  ------------------
  919|  13.4k|			KEY_SWITCH_CASE(Scenes, scenes)
  ------------------
  |  |  899|  13.4k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 13.4k, False: 248k]
  |  |  ------------------
  |  |  900|  13.4k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 13.4k]
  |  |  ------------------
  |  |  901|  13.4k|					return Error::InvalidGltf;                                                    \
  |  |  902|  13.4k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 13.4k, False: 0]
  |  |  ------------------
  |  |  903|  13.4k|					error = parse##name(array, asset);                                            \
  |  |  904|  13.4k|				readCategories |= Category::name;                                                 \
  |  |  905|  13.4k|				break;
  ------------------
  920|  4.87k|			KEY_SWITCH_CASE(Skins, skins)
  ------------------
  |  |  899|  4.87k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 4.87k, False: 256k]
  |  |  ------------------
  |  |  900|  4.87k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 1, False: 4.87k]
  |  |  ------------------
  |  |  901|  4.87k|					return Error::InvalidGltf;                                                    \
  |  |  902|  4.87k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 4.87k, False: 0]
  |  |  ------------------
  |  |  903|  4.87k|					error = parse##name(array, asset);                                            \
  |  |  904|  4.87k|				readCategories |= Category::name;                                                 \
  |  |  905|  4.87k|				break;
  ------------------
  921|  10.0k|			KEY_SWITCH_CASE(Textures, textures)
  ------------------
  |  |  899|  10.0k|#define KEY_SWITCH_CASE(name, id) case force_consteval<crc32c(FASTGLTF_QUOTE(id))>:               \
  |  |  ------------------
  |  |  |  Branch (899:35): [True: 10.0k, False: 251k]
  |  |  ------------------
  |  |  900|  10.0k|				if (hasBit(readCategories, Category::name))                                       \
  |  |  ------------------
  |  |  |  Branch (900:9): [True: 2, False: 10.0k]
  |  |  ------------------
  |  |  901|  10.0k|					return Error::InvalidGltf;                                                    \
  |  |  902|  10.0k|				if (hasBit(categories, Category::name))                                           \
  |  |  ------------------
  |  |  |  Branch (902:9): [True: 10.0k, False: 0]
  |  |  ------------------
  |  |  903|  10.0k|					error = parse##name(array, asset);                                            \
  |  |  904|  10.0k|				readCategories |= Category::name;                                                 \
  |  |  905|  10.0k|				break;
  ------------------
  922|  31.4k|			case force_consteval<crc32c("extensionsUsed")>: {
  ------------------
  |  Branch (922:4): [True: 31.4k, False: 230k]
  ------------------
  923|   349k|				for (auto usedValue : array.value) {
  ------------------
  |  Branch (923:25): [True: 349k, False: 31.4k]
  ------------------
  924|   349k|					auto& used = asset.extensionsUsed.emplace_back();
  925|   349k|					if (usedValue.get_string(used) != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (925:10): [True: 2.04k, False: 347k]
  ------------------
  926|  2.04k|						error = Error::InvalidGltf;
  927|   349k|				}
  928|  31.4k|				break;
  929|  10.0k|			}
  930|  6.55k|			case force_consteval<crc32c("extensionsRequired")>: {
  ------------------
  |  Branch (930:4): [True: 6.55k, False: 255k]
  ------------------
  931|       |				// These are already parsed before this section.
  932|  6.55k|				break;
  933|  10.0k|			}
  934|  39.4k|			default:
  ------------------
  |  Branch (934:4): [True: 39.4k, False: 222k]
  ------------------
  935|  39.4k|				break;
  936|   261k|		}
  937|       |
  938|   261k|		if (error != Error::None) [[unlikely]]
  ------------------
  |  Branch (938:7): [True: 22.3k, False: 239k]
  ------------------
  939|  22.3k|			return error;
  940|       |
  941|   261k|#undef KEY_SWITCH_CASE
  942|   261k|	}
  943|       |
  944|  86.7k|	asset.availableCategories = readCategories;
  945|       |
  946|  86.7k|	if (hasBit(options, Options::GenerateMeshIndices)) {
  ------------------
  |  Branch (946:6): [True: 86.7k, False: 0]
  ------------------
  947|  86.7k|		if (const auto error = generateMeshIndices(asset); error != Error::None) [[unlikely]] {
  ------------------
  |  Branch (947:54): [True: 87, False: 86.7k]
  ------------------
  948|     87|			return error;
  949|     87|		}
  950|  86.7k|	}
  951|       |
  952|  86.7k|	glbBuffer = std::monostate {};
  953|       |
  954|  86.7k|	return asset;
  955|  86.7k|}
_ZN8fastgltf6Parser14parseAccessorsERNS_8internal9JsonArrayERNS_5AssetE:
 1065|  19.1k|fg::Error fg::Parser::parseAccessors(internal::JsonArray& accessorsJson, Asset& asset) {
 1066|  19.1k|	using namespace simdjson;
 1067|  19.1k|	auto& accessors = accessorsJson.value;
 1068|       |
 1069|  19.1k|	if (const auto error = reserveElements(accessors, asset.accessors);
 1070|  19.1k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1070:3): [True: 16, False: 19.1k]
  ------------------
 1071|     16|		return error;
 1072|       |
 1073|   324k|	for (auto accessorValue : accessors) {
  ------------------
  |  Branch (1073:26): [True: 324k, False: 15.2k]
  ------------------
 1074|   324k|		const auto extras = readExtras(config, asset.accessors.size(), Category::Accessors);
 1075|       |
 1076|   324k|		auto& accessor = asset.accessors.emplace_back();
 1077|       |
 1078|   324k|		std::optional<ComponentType> componentType;
 1079|   324k|		std::optional<AccessorType> type;
 1080|   324k|		optional<std::size_t> count;
 1081|   324k|		AccessorBoundsNumbers max, min;
 1082|       |
 1083|   324k|		const auto error = accessorValue.get_object().for_each<
 1084|   324k|			"bufferView", "byteOffset", "componentType", "normalized",
 1085|   324k|			"count", "type", "max", "min",
 1086|   324k|			"sparse", "name", "extras">(
 1087|   324k|			accessor.bufferViewIndex, accessor.byteOffset, componentType, accessor.normalized,
 1088|   324k|			count, type, max, min,
 1089|   324k|			accessor.sparse, accessor.name, extras);
 1090|   324k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1090:7): [True: 2.49k, False: 321k]
  ------------------
 1091|  2.49k|			return toError(error);
 1092|       |
 1093|   321k|		if (!componentType || !count || !type) [[unlikely]]
  ------------------
  |  Branch (1093:7): [True: 1.32k, False: 320k]
  |  Branch (1093:25): [True: 7, False: 320k]
  |  Branch (1093:35): [True: 12, False: 320k]
  ------------------
 1094|  1.34k|			return Error::InvalidGltf;
 1095|       |
 1096|   320k|		accessor.componentType = *componentType;
 1097|   320k|		accessor.count = *count;
 1098|   320k|		accessor.type = *type;
 1099|       |
 1100|   320k|		const auto allowDouble = hasBit(options, Options::AllowDouble) ||
  ------------------
  |  Branch (1100:28): [True: 320k, False: 0]
  ------------------
 1101|      0|			hasBit(config.extensions, Extensions::KHR_accessor_float64);
  ------------------
  |  Branch (1101:4): [True: 0, False: 0]
  ------------------
 1102|   320k|		if (accessor.componentType == ComponentType::Double && !allowDouble) [[unlikely]]
  ------------------
  |  Branch (1102:7): [True: 1.82k, False: 318k]
  |  Branch (1102:58): [True: 0, False: 1.82k]
  ------------------
 1103|      0|			return Error::InvalidGltf;
 1104|       |
 1105|       |		// This property MUST NOT be true for accessors with FLOAT or UNSIGNED_INT component type.
 1106|   320k|		if (accessor.normalized &&
  ------------------
  |  Branch (1106:7): [True: 10.9k, False: 309k]
  ------------------
 1107|  10.9k|			(accessor.componentType == ComponentType::UnsignedInt ||
  ------------------
  |  Branch (1107:5): [True: 1, False: 10.9k]
  ------------------
 1108|  10.9k|				isFloatingPoint(accessor.componentType))) [[unlikely]]
  ------------------
  |  Branch (1108:5): [True: 3, False: 10.9k]
  ------------------
 1109|      4|			return Error::InvalidGltf;
 1110|       |
 1111|   320k|		if (max.present) {
  ------------------
  |  Branch (1111:7): [True: 179k, False: 140k]
  ------------------
 1112|   179k|			if (const auto boundsError = convertBounds(max, accessor, accessor.max);
 1113|   179k|				boundsError != Error::None) [[unlikely]]
  ------------------
  |  Branch (1113:5): [True: 5, False: 179k]
  ------------------
 1114|      5|				return boundsError;
 1115|   179k|		}
 1116|   320k|		if (min.present) {
  ------------------
  |  Branch (1116:7): [True: 179k, False: 141k]
  ------------------
 1117|   179k|			if (const auto boundsError = convertBounds(min, accessor, accessor.min);
 1118|   179k|				boundsError != Error::None) [[unlikely]]
  ------------------
  |  Branch (1118:5): [True: 5, False: 179k]
  ------------------
 1119|      5|				return boundsError;
 1120|   179k|		}
 1121|   320k|	}
 1122|       |
 1123|  15.2k|	return Error::None;
 1124|  19.1k|}
_ZN8fastgltf6Parser15parseAnimationsERNS_8internal9JsonArrayERNS_5AssetE:
 1181|  2.37k|fg::Error fg::Parser::parseAnimations(internal::JsonArray& animationsJson, Asset& asset) {
 1182|  2.37k|	using namespace simdjson;
 1183|  2.37k|	auto& animations = animationsJson.value;
 1184|       |
 1185|  2.37k|	if (const auto error = reserveElements(animations, asset.animations);
 1186|  2.37k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1186:3): [True: 10, False: 2.36k]
  ------------------
 1187|     10|		return error;
 1188|       |
 1189|  49.7k|	for (auto animationValue : animations) {
  ------------------
  |  Branch (1189:27): [True: 49.7k, False: 1.48k]
  ------------------
 1190|  49.7k|		const auto extras = readExtras(config, asset.animations.size(), Category::Animations);
 1191|       |
 1192|  49.7k|		auto& animation = asset.animations.emplace_back();
 1193|       |
 1194|  49.7k|		const auto error = animationValue.get_object().for_each<
 1195|  49.7k|			"channels", "samplers", "name", "extras">(
 1196|  49.7k|			animation.channels, animation.samplers, animation.name, extras);
 1197|  49.7k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1197:7): [True: 695, False: 49.0k]
  ------------------
 1198|    695|			return toError(error);
 1199|       |
 1200|       |		// Both are required and need at least one element.
 1201|  49.0k|		if (animation.channels.empty() || animation.samplers.empty()) [[unlikely]]
  ------------------
  |  Branch (1201:7): [True: 142, False: 48.9k]
  |  Branch (1201:37): [True: 40, False: 48.8k]
  ------------------
 1202|    182|			return Error::InvalidGltf;
 1203|  49.0k|	}
 1204|       |
 1205|  1.48k|	return Error::None;
 1206|  2.36k|}
_ZN8fastgltf6Parser12parseBuffersERNS_8internal9JsonArrayERNS_5AssetE:
 1208|  18.3k|fg::Error fg::Parser::parseBuffers(internal::JsonArray& buffersJson, Asset& asset) {
 1209|  18.3k|	using namespace simdjson;
 1210|  18.3k|	auto& buffers = buffersJson.value;
 1211|       |
 1212|       |	// The spec for EXT_meshopt_compression allows so-called 'fallback buffers' which only exist to
 1213|       |	// act as a valid fallback for compressed buffer views, but actually do not contain any data.
 1214|       |	// In these cases, there is either simply no URI, or a fallback boolean is added to the
 1215|       |	// extensions' extension field.
 1216|       |	// In these cases, fastgltf could just leave the std::monostate in the DataSource.
 1217|       |	// However, to make the actual use of these buffers clear, we'll use an empty fallback type.
 1218|  18.3k|	bool meshoptCompressionRequired = false;
 1219|  18.3k|	for (const auto& extension : asset.extensionsRequired) {
  ------------------
  |  Branch (1219:29): [True: 7.46k, False: 18.3k]
  ------------------
 1220|  7.46k|		if (extension == extensions::EXT_meshopt_compression ||
  ------------------
  |  Branch (1220:7): [True: 1.23k, False: 6.23k]
  ------------------
 1221|  6.23k|			extension == extensions::KHR_meshopt_compression) {
  ------------------
  |  Branch (1221:4): [True: 1.23k, False: 4.99k]
  ------------------
 1222|  2.47k|			meshoptCompressionRequired = true;
 1223|  2.47k|		}
 1224|  7.46k|	}
 1225|       |
 1226|  18.3k|	if (const auto error = reserveElements(buffers, asset.buffers);
 1227|  18.3k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1227:3): [True: 21, False: 18.3k]
  ------------------
 1228|     21|		return error;
 1229|       |
 1230|  76.8k|	for (auto bufferValue : buffers) {
  ------------------
  |  Branch (1230:24): [True: 76.8k, False: 18.0k]
  ------------------
 1231|  76.8k|		const auto extras = readExtras(config, asset.buffers.size(), Category::Buffers);
 1232|       |
 1233|  76.8k|		auto& buffer = asset.buffers.emplace_back();
 1234|       |
 1235|  76.8k|		optional<std::size_t> byteLength;
 1236|  76.8k|		std::optional<std::string_view> uriString;
 1237|       |
 1238|  76.8k|		const auto error = bufferValue.get_object().for_each<
 1239|  76.8k|			"uri", "byteLength", "name", "extras">(
 1240|  76.8k|			uriString, byteLength, buffer.name, extras);
 1241|  76.8k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1241:7): [True: 186, False: 76.6k]
  ------------------
 1242|    186|			return toError(error);
 1243|       |
 1244|  76.6k|		if (!byteLength) [[unlikely]]
  ------------------
  |  Branch (1244:7): [True: 65, False: 76.6k]
  ------------------
 1245|     65|			return Error::InvalidGltf;
 1246|  76.6k|		buffer.byteLength = *byteLength;
 1247|       |
 1248|       |		// When parsing GLB, there's a buffer object that will point to the BUF chunk in the
 1249|       |		// file. Otherwise, data must be specified in the "uri" field.
 1250|  76.6k|		if (uriString) {
  ------------------
  |  Branch (1250:7): [True: 65.8k, False: 10.7k]
  ------------------
 1251|  65.8k|			URIView uriView(*uriString);
 1252|       |
 1253|  65.8k|			if (!uriView.valid()) [[unlikely]] {
  ------------------
  |  Branch (1253:8): [True: 3, False: 65.8k]
  ------------------
 1254|      3|				return Error::InvalidURI;
 1255|      3|			}
 1256|       |
 1257|  65.8k|			if (uriView.isDataUri()) {
  ------------------
  |  Branch (1257:8): [True: 5.02k, False: 60.8k]
  ------------------
 1258|  5.02k|				auto decoded = decodeDataUri(uriView);
 1259|  5.02k|				if (decoded.has_error()) [[unlikely]] {
  ------------------
  |  Branch (1259:9): [True: 5, False: 5.01k]
  ------------------
 1260|      5|					return decoded.error();
 1261|      5|				}
 1262|       |
 1263|  5.01k|				buffer.data = std::move(decoded.get());
 1264|  60.8k|			} else if (uriView.isLocalPath() && hasBit(options, Options::LoadExternalBuffers)) {
  ------------------
  |  Branch (1264:15): [True: 58.7k, False: 2.10k]
  |  Branch (1264:40): [True: 0, False: 58.7k]
  ------------------
 1265|      0|				auto file = loadFileFromUri(uriView);
 1266|      0|				if (file.has_error()) [[unlikely]] {
  ------------------
  |  Branch (1266:9): [True: 0, False: 0]
  ------------------
 1267|      0|					return file.error();
 1268|      0|				}
 1269|       |
 1270|      0|				buffer.data = std::move(file.get());
 1271|  60.8k|			} else {
 1272|  60.8k|				sources::URI filePath;
 1273|  60.8k|				filePath.fileByteOffset = 0;
 1274|  60.8k|				filePath.uri = uriView;
 1275|  60.8k|				buffer.data = std::move(filePath);
 1276|  60.8k|			}
 1277|  65.8k|		} else if (asset.buffers.size() == 1 &&
  ------------------
  |  Branch (1277:14): [True: 853, False: 9.85k]
  ------------------
 1278|    853|			!std::holds_alternative<std::monostate>(glbBuffer)) {
  ------------------
  |  Branch (1278:4): [True: 22, False: 831]
  ------------------
 1279|       |			// The first buffer of a GLB refers to its BIN chunk.
 1280|     22|			buffer.data = std::move(glbBuffer);
 1281|  10.6k|		} else if (meshoptCompressionRequired) {
  ------------------
  |  Branch (1281:14): [True: 10.6k, False: 5]
  ------------------
 1282|       |			// This buffer is not a GLB buffer and has no URI source and is therefore a fallback.
 1283|  10.6k|			buffer.data = sources::Fallback();
 1284|  10.6k|		} else [[unlikely]] {
 1285|       |			// All other buffers have to contain an uri field.
 1286|      5|			return Error::InvalidGltf;
 1287|      5|		}
 1288|       |
 1289|  76.5k|		if (std::holds_alternative<std::monostate>(buffer.data)) [[unlikely]] {
  ------------------
  |  Branch (1289:7): [True: 0, False: 76.5k]
  ------------------
 1290|      0|			return Error::InvalidGltf;
 1291|      0|		}
 1292|  76.5k|	}
 1293|       |
 1294|  18.0k|	return Error::None;
 1295|  18.3k|}
_ZN8fastgltf6Parser16parseBufferViewsERNS_8internal9JsonArrayERNS_5AssetE:
 1327|  12.1k|fg::Error fg::Parser::parseBufferViews(internal::JsonArray& bufferViewsJson, Asset& asset) {
 1328|  12.1k|	using namespace simdjson;
 1329|  12.1k|	auto& bufferViews = bufferViewsJson.value;
 1330|       |
 1331|  12.1k|	const auto readMeshoptCompression = [this](const Extensions extension,
 1332|  12.1k|			std::optional<CompressedBufferView>& out) {
 1333|  12.1k|		return [enabled = hasBit(config.extensions, extension), &out](ondemand::value value) {
 1334|  12.1k|			return enabled ? value.get(out.emplace()) : SUCCESS;
 1335|  12.1k|		};
 1336|  12.1k|	};
 1337|       |
 1338|  12.1k|	if (const auto error = reserveElements(bufferViews, asset.bufferViews);
 1339|  12.1k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1339:3): [True: 9, False: 12.1k]
  ------------------
 1340|      9|		return error;
 1341|       |
 1342|   262k|	for (auto bufferViewValue : bufferViews) {
  ------------------
  |  Branch (1342:28): [True: 262k, False: 11.1k]
  ------------------
 1343|   262k|		const auto extras = readExtras(config, asset.bufferViews.size(), Category::BufferViews);
 1344|       |
 1345|   262k|		auto& view = asset.bufferViews.emplace_back();
 1346|       |
 1347|   262k|		optional<std::size_t> buffer, byteLength;
 1348|   262k|		std::optional<CompressedBufferView> khrCompression, extCompression;
 1349|       |
 1350|   262k|		const auto readExtensions = [&](ondemand::value extensions) -> error_code {
 1351|   262k|			return extensions.get_object().for_each<
 1352|   262k|				"KHR_meshopt_compression", "EXT_meshopt_compression">(
 1353|   262k|				readMeshoptCompression(Extensions::KHR_meshopt_compression, khrCompression),
 1354|   262k|				readMeshoptCompression(Extensions::EXT_meshopt_compression, extCompression));
 1355|   262k|		};
 1356|       |
 1357|   262k|		const auto error = bufferViewValue.get_object().for_each<
 1358|   262k|			"buffer", "byteOffset", "byteLength", "byteStride",
 1359|   262k|			"target", "name", "extensions", "extras">(
 1360|   262k|			buffer, view.byteOffset, byteLength, view.byteStride,
 1361|   262k|			view.target, view.name, readExtensions, extras);
 1362|   262k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1362:7): [True: 791, False: 261k]
  ------------------
 1363|    791|			return toError(error);
 1364|       |
 1365|   261k|		if (!buffer || !byteLength) [[unlikely]]
  ------------------
  |  Branch (1365:7): [True: 133, False: 261k]
  |  Branch (1365:18): [True: 85, False: 261k]
  ------------------
 1366|    218|			return Error::InvalidGltf;
 1367|       |
 1368|   261k|		view.bufferIndex = *buffer;
 1369|   261k|		view.byteLength = *byteLength;
 1370|       |
 1371|       |		// KHR_meshopt_compression takes precedence when both extensions are used.
 1372|   261k|		if (khrCompression) {
  ------------------
  |  Branch (1372:7): [True: 10.4k, False: 251k]
  ------------------
 1373|  10.4k|			view.meshoptCompression = std::move(*khrCompression);
 1374|   251k|		} else if (extCompression) {
  ------------------
  |  Branch (1374:14): [True: 34.6k, False: 216k]
  ------------------
 1375|  34.6k|			view.meshoptCompression = std::move(*extCompression);
 1376|  34.6k|		}
 1377|   261k|	}
 1378|       |
 1379|  11.1k|	return Error::None;
 1380|  12.1k|}
_ZN8fastgltf6Parser12parseCamerasERNS_8internal9JsonArrayERNS_5AssetE:
 1422|  2.74k|fg::Error fg::Parser::parseCameras(internal::JsonArray& camerasJson, Asset& asset) {
 1423|  2.74k|	using namespace simdjson;
 1424|  2.74k|	auto& cameras = camerasJson.value;
 1425|       |
 1426|  2.74k|	if (const auto error = reserveElements(cameras, asset.cameras);
 1427|  2.74k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1427:3): [True: 10, False: 2.73k]
  ------------------
 1428|     10|		return error;
 1429|       |
 1430|  38.4k|	for (auto cameraValue : cameras) {
  ------------------
  |  Branch (1430:24): [True: 38.4k, False: 1.70k]
  ------------------
 1431|  38.4k|		const auto extras = readExtras(config, asset.cameras.size(), Category::Cameras);
 1432|       |
 1433|  38.4k|		auto& camera = asset.cameras.emplace_back();
 1434|       |
 1435|  38.4k|		std::optional<std::string_view> type;
 1436|  38.4k|		std::optional<Camera::Perspective> perspective;
 1437|  38.4k|		std::optional<Camera::Orthographic> orthographic;
 1438|       |
 1439|  38.4k|		const auto error = cameraValue.get_object().for_each<
 1440|  38.4k|			"type", "perspective", "orthographic", "name", "extras">(
 1441|  38.4k|			type, perspective, orthographic, camera.name, extras);
 1442|  38.4k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1442:7): [True: 840, False: 37.5k]
  ------------------
 1443|    840|			return toError(error);
 1444|       |
 1445|       |		// The object with the camera's properties has to match the type.
 1446|  37.5k|		if (type == "perspective" && perspective) {
  ------------------
  |  Branch (1446:7): [True: 14.7k, False: 22.7k]
  |  Branch (1446:32): [True: 14.7k, False: 2]
  ------------------
 1447|  14.7k|			camera.camera = *perspective;
 1448|  22.7k|		} else if (type == "orthographic" && orthographic) {
  ------------------
  |  Branch (1448:14): [True: 22.6k, False: 178]
  |  Branch (1448:40): [True: 22.6k, False: 7]
  ------------------
 1449|  22.6k|			camera.camera = *orthographic;
 1450|  22.6k|		} else [[unlikely]] {
 1451|    185|			return Error::InvalidGltf;
 1452|    185|		}
 1453|  37.5k|	}
 1454|       |
 1455|  1.70k|	return Error::None;
 1456|  2.73k|}
_ZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetE:
 1458|  81.4k|fg::Error fg::Parser::parseExtensions(internal::JsonObject& extensionsObjectJson, Asset& asset) {
 1459|  81.4k|	using namespace simdjson;
 1460|       |
 1461|       |	// Reads an array with one of the parseXYZ functions.
 1462|  81.4k|	const auto readArray = [&](Error (Parser::*parseFunction)(internal::JsonArray&, Asset&)) {
 1463|  81.4k|		return [this, &asset, parseFunction](ondemand::value value) {
 1464|  81.4k|			internal::JsonArray array;
 1465|  81.4k|			if (const auto error = value.get(array.value); error != SUCCESS) [[unlikely]]
 1466|  81.4k|				return error;
 1467|  81.4k|			return toErrorCode((this->*parseFunction)(array, asset));
 1468|  81.4k|		};
 1469|  81.4k|	};
 1470|       |
 1471|  81.4k|	const auto readLights = [&](ondemand::value value) -> error_code {
 1472|  81.4k|		if (!hasBit(config.extensions, Extensions::KHR_lights_punctual))
 1473|  81.4k|			return SUCCESS;
 1474|  81.4k|		return value.get_object().for_each<"lights">(readArray(&Parser::parseLights));
 1475|  81.4k|	};
 1476|       |
 1477|  81.4k|	const auto readVariants = [&](ondemand::value value) -> error_code {
 1478|  81.4k|		if (!hasBit(config.extensions, Extensions::KHR_materials_variants))
 1479|  81.4k|			return SUCCESS;
 1480|       |
 1481|  81.4k|		const auto readVariant = [&](ondemand::value variant) -> error_code {
 1482|  81.4k|			std::optional<std::string> name;
 1483|  81.4k|			if (const auto error = variant.get_object().for_each<"name">(name);
 1484|  81.4k|				error != SUCCESS) [[unlikely]]
 1485|  81.4k|				return error;
 1486|  81.4k|			if (!name) [[unlikely]]
 1487|  81.4k|				return NO_SUCH_FIELD;
 1488|  81.4k|			asset.materialVariants.emplace_back(std::move(*name));
 1489|  81.4k|			return SUCCESS;
 1490|  81.4k|		};
 1491|  81.4k|		const auto readVariantArray = [&](ondemand::value variants) {
 1492|  81.4k|			return parseArray(variants, asset.materialVariants, readVariant);
 1493|  81.4k|		};
 1494|       |
 1495|  81.4k|		if (const auto error = value.get_object().for_each<"variants">(readVariantArray);
 1496|  81.4k|			error != SUCCESS) [[unlikely]]
 1497|  81.4k|			return error;
 1498|  81.4k|		if (asset.materialVariants.empty()) [[unlikely]]
 1499|  81.4k|			return NO_SUCH_FIELD;
 1500|  81.4k|		return SUCCESS;
 1501|  81.4k|	};
 1502|       |
 1503|  81.4k|	const auto readShapes = [&](ondemand::value value) -> error_code {
 1504|  81.4k|		if (!hasBit(config.extensions, Extensions::KHR_implicit_shapes))
 1505|  81.4k|			return SUCCESS;
 1506|       |
 1507|  81.4k|		const auto error = value.get_object().for_each<"shapes">(
 1508|  81.4k|			readArray(&Parser::parseShapes));
 1509|  81.4k|		if (error != SUCCESS) [[unlikely]]
 1510|  81.4k|			return error;
 1511|  81.4k|		if (asset.shapes.empty()) [[unlikely]]
 1512|  81.4k|			return NO_SUCH_FIELD;
 1513|  81.4k|		return SUCCESS;
 1514|  81.4k|	};
 1515|       |
 1516|  81.4k|	const auto readPhysics = [&](ondemand::value value) -> error_code {
 1517|  81.4k|		if (!hasBit(config.extensions, Extensions::KHR_physics_rigid_bodies))
 1518|  81.4k|			return SUCCESS;
 1519|  81.4k|		return value.get_object().for_each<
 1520|  81.4k|			"physicsMaterials",
 1521|  81.4k|			"collisionFilters",
 1522|  81.4k|			"physicsJoints">(
 1523|  81.4k|			readArray(&Parser::parsePhysicsMaterials),
 1524|  81.4k|			readArray(&Parser::parseCollisionFilters),
 1525|  81.4k|			readArray(&Parser::parsePhysicsJoints));
 1526|  81.4k|	};
 1527|       |
 1528|  81.4k|	return toError(extensionsObjectJson.value.for_each<
 1529|  81.4k|		"KHR_lights_punctual", "KHR_materials_variants",
 1530|  81.4k|		"KHR_implicit_shapes", "KHR_physics_rigid_bodies">(
 1531|  81.4k|		readLights, readVariants,
 1532|  81.4k|		readShapes, readPhysics));
 1533|  81.4k|}
_ZN8fastgltf6Parser11parseImagesERNS_8internal9JsonArrayERNS_5AssetE:
 1535|  18.1k|fg::Error fg::Parser::parseImages(internal::JsonArray& imagesJson, Asset& asset) {
 1536|  18.1k|	using namespace simdjson;
 1537|  18.1k|	auto& images = imagesJson.value;
 1538|       |
 1539|  18.1k|	if (const auto error = reserveElements(images, asset.images); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1539:64): [True: 18, False: 18.1k]
  ------------------
 1540|     18|		return error;
 1541|       |
 1542|   132k|	for (auto imageValue : images) {
  ------------------
  |  Branch (1542:23): [True: 132k, False: 17.3k]
  ------------------
 1543|   132k|		const auto extras = readExtras(config, asset.images.size(), Category::Images);
 1544|       |
 1545|   132k|		auto& image = asset.images.emplace_back();
 1546|       |
 1547|   132k|		std::optional<std::string_view> uriString, mimeType;
 1548|   132k|		optional<std::size_t> bufferViewIndex;
 1549|       |
 1550|   132k|		const auto error = imageValue.get_object().for_each<
 1551|   132k|			"uri", "mimeType", "bufferView", "name", "extras">(
 1552|   132k|			uriString, mimeType, bufferViewIndex, image.name, extras);
 1553|   132k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1553:7): [True: 180, False: 132k]
  ------------------
 1554|    180|			return toError(error);
 1555|       |
 1556|   132k|		if (uriString) [[likely]] {
  ------------------
  |  Branch (1556:7): [True: 127k, False: 4.52k]
  ------------------
 1557|   127k|			if (bufferViewIndex) [[unlikely]] {
  ------------------
  |  Branch (1557:8): [True: 50, False: 127k]
  ------------------
 1558|       |				// If uri is declared, bufferView cannot be declared.
 1559|     50|				return Error::InvalidGltf;
 1560|     50|			}
 1561|       |
 1562|   127k|			URIView uriView(*uriString);
 1563|   127k|			if (!uriView.valid()) [[unlikely]] {
  ------------------
  |  Branch (1563:8): [True: 22, False: 127k]
  ------------------
 1564|     22|				return Error::InvalidURI;
 1565|     22|			}
 1566|       |
 1567|   127k|			if (uriView.isDataUri()) {
  ------------------
  |  Branch (1567:8): [True: 13.3k, False: 114k]
  ------------------
 1568|  13.3k|				auto decoded = decodeDataUri(uriView);
 1569|  13.3k|				if (decoded.has_error()) [[unlikely]] {
  ------------------
  |  Branch (1569:9): [True: 435, False: 12.9k]
  ------------------
 1570|    435|					return decoded.error();
 1571|    435|				}
 1572|       |
 1573|  12.9k|				image.data = std::move(decoded.get());
 1574|   114k|			} else if (uriView.isLocalPath() && hasBit(options, Options::LoadExternalImages)) {
  ------------------
  |  Branch (1574:15): [True: 110k, False: 3.52k]
  |  Branch (1574:40): [True: 0, False: 110k]
  ------------------
 1575|      0|				auto file = loadFileFromUri(uriView);
 1576|      0|				if (file.has_error()) [[unlikely]] {
  ------------------
  |  Branch (1576:9): [True: 0, False: 0]
  ------------------
 1577|      0|					return file.error();
 1578|      0|				}
 1579|       |
 1580|      0|				image.data = std::move(file.get());
 1581|   114k|			} else {
 1582|   114k|				sources::URI filePath;
 1583|   114k|				filePath.fileByteOffset = 0;
 1584|   114k|				filePath.uri = uriView;
 1585|   114k|				image.data = std::move(filePath);
 1586|   114k|			}
 1587|       |
 1588|   127k|			if (mimeType) [[likely]] {
  ------------------
  |  Branch (1588:8): [True: 20.2k, False: 106k]
  ------------------
 1589|  20.2k|				std::visit([&]<typename T>(T& arg) {
 1590|       |					// This is kinda cursed
 1591|  20.2k|					if constexpr (is_any_of_v<T, sources::CustomBuffer, sources::BufferView,
 1592|  20.2k|							sources::URI, sources::Array, sources::Vector>) {
 1593|  20.2k|						arg.mimeType = internal::getMimeTypeFromString(*mimeType);
 1594|  20.2k|					}
 1595|  20.2k|				}, image.data);
 1596|  20.2k|			}
 1597|   127k|		} else if (bufferViewIndex) {
  ------------------
  |  Branch (1597:14): [True: 4.44k, False: 86]
  ------------------
 1598|  4.44k|			if (!mimeType) [[unlikely]] {
  ------------------
  |  Branch (1598:8): [True: 27, False: 4.41k]
  ------------------
 1599|       |				// If bufferView is defined, mimeType needs to also be defined.
 1600|     27|				return Error::InvalidGltf;
 1601|     27|			}
 1602|       |
 1603|  4.41k|			image.data = sources::BufferView {
 1604|  4.41k|				.bufferViewIndex = *bufferViewIndex,
 1605|  4.41k|				.mimeType = internal::getMimeTypeFromString(*mimeType),
 1606|  4.41k|			};
 1607|  4.41k|		}
 1608|       |
 1609|   131k|		if (std::holds_alternative<std::monostate>(image.data)) [[unlikely]] {
  ------------------
  |  Branch (1609:7): [True: 86, False: 131k]
  ------------------
 1610|     86|			return Error::InvalidGltf;
 1611|     86|		}
 1612|   131k|	}
 1613|       |
 1614|  17.3k|	return Error::None;
 1615|  18.1k|}
_ZN8fastgltf6Parser11parseLightsERNS_8internal9JsonArrayERNS_5AssetE:
 1617|  3.71k|fg::Error fg::Parser::parseLights(internal::JsonArray& lightsJson, Asset& asset) {
 1618|  3.71k|	using namespace simdjson;
 1619|  3.71k|	auto& lights = lightsJson.value;
 1620|       |
 1621|  3.71k|	if (const auto error = reserveElements(lights, asset.lights); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1621:64): [True: 13, False: 3.69k]
  ------------------
 1622|     13|		return error;
 1623|       |
 1624|  48.5k|	for (auto lightValue : lights) {
  ------------------
  |  Branch (1624:23): [True: 48.5k, False: 3.22k]
  ------------------
 1625|  48.5k|		auto& light = asset.lights.emplace_back();
 1626|  48.5k|		light.color = math::nvec3(1);
 1627|  48.5k|		light.intensity = 1.0f;
 1628|       |
 1629|  48.5k|		std::optional<LightType> type;
 1630|  48.5k|		bool hasSpot = false;
 1631|       |
 1632|  48.5k|		const auto readSpot = [&](ondemand::value spot) -> error_code {
 1633|  48.5k|			hasSpot = true;
 1634|  48.5k|			return spot.get_object().for_each<"innerConeAngle", "outerConeAngle">(
 1635|  48.5k|				light.innerConeAngle, light.outerConeAngle);
 1636|  48.5k|		};
 1637|       |
 1638|  48.5k|		const auto error = lightValue.get_object().for_each<
 1639|  48.5k|			"type", "color", "intensity", "range", "spot", "name">(
 1640|  48.5k|			type, light.color, light.intensity, light.range, readSpot, light.name);
 1641|  48.5k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1641:7): [True: 365, False: 48.1k]
  ------------------
 1642|    365|			return toError(error);
 1643|       |
 1644|  48.1k|		if (!type) [[unlikely]]
  ------------------
  |  Branch (1644:7): [True: 102, False: 48.0k]
  ------------------
 1645|    102|			return Error::InvalidGltf;
 1646|  48.0k|		light.type = *type;
 1647|       |
 1648|       |		// The cone angles only apply to spot lights, which are required to have the spot object.
 1649|  48.0k|		if (light.type == LightType::Spot) {
  ------------------
  |  Branch (1649:7): [True: 13.1k, False: 34.9k]
  ------------------
 1650|  13.1k|			if (!hasSpot) [[unlikely]]
  ------------------
  |  Branch (1650:8): [True: 1, False: 13.1k]
  ------------------
 1651|      1|				return Error::InvalidGltf;
 1652|  13.1k|			if (!light.innerConeAngle)
  ------------------
  |  Branch (1652:8): [True: 6.32k, False: 6.80k]
  ------------------
 1653|  6.32k|				light.innerConeAngle = 0.0f;
 1654|  13.1k|			if (!light.outerConeAngle)
  ------------------
  |  Branch (1654:8): [True: 3.84k, False: 9.28k]
  ------------------
 1655|  3.84k|				light.outerConeAngle = static_cast<num>(std::numbers::pi / 4.0);
 1656|  34.9k|		} else {
 1657|  34.9k|			light.innerConeAngle.reset();
 1658|  34.9k|			light.outerConeAngle.reset();
 1659|  34.9k|		}
 1660|  48.0k|	}
 1661|       |
 1662|  3.22k|	return Error::None;
 1663|  3.69k|}
_ZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialE:
 1666|   775k|		Material& material) {
 1667|   775k|	using namespace simdjson;
 1668|   775k|	const auto extensions = config.extensions;
 1669|   775k|	const auto readTexture = [extensions](auto& out) {
 1670|   775k|		return readTextureInfo(out, extensions);
 1671|   775k|	};
 1672|       |
 1673|   775k|	const auto readAnisotropy = [&](ondemand::value value) -> error_code {
 1674|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_anisotropy))
 1675|   775k|			return SUCCESS;
 1676|       |
 1677|   775k|		auto& anisotropy = material.anisotropy.emplace();
 1678|   775k|		return value.get_object().for_each<
 1679|   775k|			"anisotropyStrength", "anisotropyRotation",
 1680|   775k|			"anisotropyTexture">(
 1681|   775k|			anisotropy.anisotropyStrength, anisotropy.anisotropyRotation,
 1682|   775k|			readTexture(anisotropy.anisotropyTexture));
 1683|   775k|	};
 1684|       |
 1685|   775k|	const auto readClearcoat = [&](ondemand::value value) -> error_code {
 1686|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_clearcoat))
 1687|   775k|			return SUCCESS;
 1688|       |
 1689|   775k|		auto& clearcoat = material.clearcoat.emplace();
 1690|   775k|		return value.get_object().for_each<
 1691|   775k|			"clearcoatFactor", "clearcoatTexture",
 1692|   775k|			"clearcoatRoughnessFactor", "clearcoatRoughnessTexture",
 1693|   775k|			"clearcoatNormalTexture">(
 1694|   775k|			clearcoat.clearcoatFactor, readTexture(clearcoat.clearcoatTexture),
 1695|   775k|			clearcoat.clearcoatRoughnessFactor, readTexture(clearcoat.clearcoatRoughnessTexture),
 1696|   775k|			readTexture(clearcoat.clearcoatNormalTexture));
 1697|   775k|	};
 1698|       |
 1699|   775k|	const auto readDispersion = [&](ondemand::value value) -> error_code {
 1700|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_dispersion))
 1701|   775k|			return SUCCESS;
 1702|       |
 1703|   775k|		return value.get_object().for_each<"dispersion">(material.dispersion);
 1704|   775k|	};
 1705|       |
 1706|   775k|	const auto readEmissiveStrength = [&](ondemand::value value) -> error_code {
 1707|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_emissive_strength))
 1708|   775k|			return SUCCESS;
 1709|       |
 1710|   775k|		return value.get_object().for_each<"emissiveStrength">(material.emissiveStrength);
 1711|   775k|	};
 1712|       |
 1713|   775k|	const auto readIor = [&](ondemand::value value) -> error_code {
 1714|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_ior))
 1715|   775k|			return SUCCESS;
 1716|       |
 1717|   775k|		return value.get_object().for_each<"ior">(material.ior);
 1718|   775k|	};
 1719|       |
 1720|   775k|	const auto readIridescence = [&](ondemand::value value) -> error_code {
 1721|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_iridescence))
 1722|   775k|			return SUCCESS;
 1723|       |
 1724|   775k|		auto& iridescence = material.iridescence.emplace();
 1725|   775k|		return value.get_object().for_each<
 1726|   775k|			"iridescenceFactor", "iridescenceTexture",
 1727|   775k|			"iridescenceIor",
 1728|   775k|			"iridescenceThicknessMinimum", "iridescenceThicknessMaximum",
 1729|   775k|			"iridescenceThicknessTexture">(
 1730|   775k|			iridescence.iridescenceFactor, readTexture(iridescence.iridescenceTexture),
 1731|   775k|			iridescence.iridescenceIor,
 1732|   775k|			iridescence.iridescenceThicknessMinimum, iridescence.iridescenceThicknessMaximum,
 1733|   775k|			readTexture(iridescence.iridescenceThicknessTexture));
 1734|   775k|	};
 1735|       |
 1736|   775k|	const auto readRetroreflection = [&](ondemand::value value) -> error_code {
 1737|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_retroreflection))
 1738|   775k|			return SUCCESS;
 1739|       |
 1740|   775k|		auto& retroreflection = material.retroreflection.emplace();
 1741|   775k|		return value.get_object().for_each<
 1742|   775k|			"retroreflectionFactor", "retroreflectionTexture">(
 1743|   775k|			retroreflection.retroreflectionFactor, readTexture(retroreflection.retroreflectionTexture));
 1744|   775k|	};
 1745|       |
 1746|   775k|	const auto readDiffuseTransmission = [&](ondemand::value value) -> error_code {
 1747|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_diffuse_transmission))
 1748|   775k|			return SUCCESS;
 1749|       |
 1750|   775k|		auto& transmission = material.diffuseTransmission.emplace();
 1751|   775k|		return value.get_object().for_each<
 1752|   775k|			"diffuseTransmissionFactor",
 1753|   775k|			"diffuseTransmissionTexture",
 1754|   775k|			"diffuseTransmissionColorFactor",
 1755|   775k|			"diffuseTransmissionColorTexture">(
 1756|   775k|			transmission.diffuseTransmissionFactor,
 1757|   775k|			readTexture(transmission.diffuseTransmissionTexture),
 1758|   775k|			transmission.diffuseTransmissionColorFactor,
 1759|   775k|			readTexture(transmission.diffuseTransmissionColorTexture));
 1760|   775k|	};
 1761|       |
 1762|   775k|	const auto readSheen = [&](ondemand::value value) -> error_code {
 1763|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_sheen))
 1764|   775k|			return SUCCESS;
 1765|       |
 1766|   775k|		auto& sheen = material.sheen.emplace();
 1767|   775k|		return value.get_object().for_each<
 1768|   775k|			"sheenColorFactor", "sheenColorTexture",
 1769|   775k|			"sheenRoughnessFactor", "sheenRoughnessTexture">(
 1770|   775k|			sheen.sheenColorFactor, readTexture(sheen.sheenColorTexture),
 1771|   775k|			sheen.sheenRoughnessFactor, readTexture(sheen.sheenRoughnessTexture));
 1772|   775k|	};
 1773|       |
 1774|   775k|	const auto readSpecular = [&](ondemand::value value) -> error_code {
 1775|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_specular))
 1776|   775k|			return SUCCESS;
 1777|       |
 1778|   775k|		auto& specular = material.specular.emplace();
 1779|   775k|		return value.get_object().for_each<
 1780|   775k|			"specularFactor", "specularTexture",
 1781|   775k|			"specularColorFactor", "specularColorTexture">(
 1782|   775k|			specular.specularFactor, readTexture(specular.specularTexture),
 1783|   775k|			specular.specularColorFactor, readTexture(specular.specularColorTexture));
 1784|   775k|	};
 1785|       |
 1786|   775k|	const auto readTransmission = [&](ondemand::value value) -> error_code {
 1787|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_transmission))
 1788|   775k|			return SUCCESS;
 1789|       |
 1790|   775k|		auto& transmission = material.transmission.emplace();
 1791|   775k|		return value.get_object().for_each<"transmissionFactor", "transmissionTexture">(
 1792|   775k|			transmission.transmissionFactor, readTexture(transmission.transmissionTexture));
 1793|   775k|	};
 1794|       |
 1795|   775k|	const auto readUnlit = [&](ondemand::value value) -> error_code {
 1796|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_unlit))
 1797|   775k|			return SUCCESS;
 1798|       |
 1799|   775k|		material.unlit = true;
 1800|   775k|		ondemand::object unlit;
 1801|   775k|		return value.get(unlit);
 1802|   775k|	};
 1803|       |
 1804|   775k|	const auto readVolume = [&](ondemand::value value) -> error_code {
 1805|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_volume))
 1806|   775k|			return SUCCESS;
 1807|       |
 1808|   775k|		auto& volume = material.volume.emplace();
 1809|   775k|		return value.get_object().for_each<
 1810|   775k|			"thicknessFactor", "thicknessTexture",
 1811|   775k|			"attenuationDistance", "attenuationColor">(
 1812|   775k|			volume.thicknessFactor, readTexture(volume.thicknessTexture),
 1813|   775k|			volume.attenuationDistance, volume.attenuationColor);
 1814|   775k|	};
 1815|       |
 1816|   775k|	const auto readPackedNormal = [&](ondemand::value value) -> error_code {
 1817|   775k|		if (!hasBit(extensions, Extensions::MSFT_packing_normalRoughnessMetallic))
 1818|   775k|			return SUCCESS;
 1819|       |
 1820|   775k|		return value.get_object().for_each<"normalRoughnessMetallicTexture">(
 1821|   775k|			readTexture(material.packedNormalMetallicRoughnessTexture));
 1822|   775k|	};
 1823|       |
 1824|   775k|	const auto readPackedOcclusion = [&](ondemand::value value) -> error_code {
 1825|   775k|		if (!hasBit(extensions, Extensions::MSFT_packing_occlusionRoughnessMetallic))
 1826|   775k|			return SUCCESS;
 1827|       |
 1828|   775k|		auto& packed = material.packedOcclusionRoughnessMetallicTextures.emplace();
 1829|   775k|		return value.get_object().for_each<
 1830|   775k|			"occlusionRoughnessMetallicTexture",
 1831|   775k|			"roughnessMetallicOcclusionTexture",
 1832|   775k|			"normalTexture">(
 1833|   775k|			readTexture(packed.occlusionRoughnessMetallicTexture),
 1834|   775k|			readTexture(packed.roughnessMetallicOcclusionTexture),
 1835|   775k|			readTexture(packed.normalTexture));
 1836|   775k|	};
 1837|       |
 1838|   775k|	const auto readSpecularGlossiness = [&](ondemand::value value) -> error_code {
 1839|   775k|		if (!hasBit(extensions, Extensions::KHR_materials_pbrSpecularGlossiness))
 1840|   775k|			return SUCCESS;
 1841|       |
 1842|   775k|		auto& specularGlossiness = material.specularGlossiness.emplace();
 1843|   775k|		return value.get_object().for_each<
 1844|   775k|			"diffuseFactor", "diffuseTexture",
 1845|   775k|			"specularFactor", "glossinessFactor",
 1846|   775k|			"specularGlossinessTexture">(
 1847|   775k|			specularGlossiness.diffuseFactor, readTexture(specularGlossiness.diffuseTexture),
 1848|   775k|			specularGlossiness.specularFactor, specularGlossiness.glossinessFactor,
 1849|   775k|			readTexture(specularGlossiness.specularGlossinessTexture));
 1850|   775k|	};
 1851|       |
 1852|   775k|	return toError(objectJson.value.for_each<
 1853|   775k|		"KHR_materials_anisotropy",
 1854|   775k|		"KHR_materials_clearcoat",
 1855|   775k|		"KHR_materials_dispersion",
 1856|   775k|		"KHR_materials_emissive_strength",
 1857|   775k|		"KHR_materials_ior",
 1858|   775k|		"KHR_materials_iridescence",
 1859|   775k|		"KHR_materials_retroreflection",
 1860|   775k|		"KHR_materials_diffuse_transmission",
 1861|   775k|		"KHR_materials_sheen",
 1862|   775k|		"KHR_materials_specular",
 1863|   775k|		"KHR_materials_transmission",
 1864|   775k|		"KHR_materials_unlit",
 1865|   775k|		"KHR_materials_volume",
 1866|   775k|		"MSFT_packing_normalRoughnessMetallic",
 1867|   775k|		"MSFT_packing_occlusionRoughnessMetallic",
 1868|   775k|		"KHR_materials_pbrSpecularGlossiness">(
 1869|   775k|		readAnisotropy,
 1870|   775k|		readClearcoat,
 1871|   775k|		readDispersion,
 1872|   775k|		readEmissiveStrength,
 1873|   775k|		readIor,
 1874|   775k|		readIridescence,
 1875|   775k|		readRetroreflection,
 1876|   775k|		readDiffuseTransmission,
 1877|   775k|		readSheen,
 1878|   775k|		readSpecular,
 1879|   775k|		readTransmission,
 1880|   775k|		readUnlit,
 1881|   775k|		readVolume,
 1882|   775k|		readPackedNormal,
 1883|   775k|		readPackedOcclusion,
 1884|   775k|		readSpecularGlossiness));
 1885|   775k|}
_ZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetE:
 1887|  38.6k|fg::Error fg::Parser::parseMaterials(internal::JsonArray& materialsJson, Asset& asset) {
 1888|  38.6k|	using namespace simdjson;
 1889|  38.6k|	auto& materials = materialsJson.value;
 1890|       |
 1891|  38.6k|	const auto readTexture = [this](auto& out) {
 1892|  38.6k|		return readTextureInfo(out, config.extensions);
 1893|  38.6k|	};
 1894|       |
 1895|  38.6k|	if (const auto error = reserveElements(materials, asset.materials);
 1896|  38.6k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (1896:3): [True: 8, False: 38.5k]
  ------------------
 1897|      8|		return error;
 1898|       |
 1899|  1.04M|	for (auto materialValue : materials) {
  ------------------
  |  Branch (1899:26): [True: 1.04M, False: 31.7k]
  ------------------
 1900|  1.04M|		const auto extras = readExtras(config, asset.materials.size(), Category::Materials);
 1901|       |
 1902|  1.04M|		auto& material = asset.materials.emplace_back();
 1903|  1.04M|		auto& pbr = material.pbrData;
 1904|       |
 1905|  1.04M|		const auto readPbr = [&](ondemand::value value) -> error_code {
 1906|  1.04M|			return value.get_object().for_each<
 1907|  1.04M|				"baseColorFactor", "baseColorTexture", "metallicFactor",
 1908|  1.04M|				"roughnessFactor", "metallicRoughnessTexture">(
 1909|  1.04M|				pbr.baseColorFactor, readTexture(pbr.baseColorTexture), pbr.metallicFactor,
 1910|  1.04M|				pbr.roughnessFactor, readTexture(pbr.metallicRoughnessTexture));
 1911|  1.04M|		};
 1912|       |
 1913|  1.04M|		const auto readExtensions = [&](ondemand::value value) -> error_code {
 1914|  1.04M|			internal::JsonObject extensions;
 1915|  1.04M|			if (const auto error = value.get(extensions.value); error != SUCCESS) [[unlikely]]
 1916|  1.04M|				return error;
 1917|  1.04M|			return toErrorCode(parseMaterialExtensions(extensions, material));
 1918|  1.04M|		};
 1919|       |
 1920|  1.04M|		const auto error = materialValue.get_object().for_each<
 1921|  1.04M|			"name", "pbrMetallicRoughness",
 1922|  1.04M|			"normalTexture", "occlusionTexture",
 1923|  1.04M|			"emissiveTexture", "emissiveFactor",
 1924|  1.04M|			"alphaMode", "alphaCutoff", "doubleSided",
 1925|  1.04M|			"extensions", "extras">(
 1926|  1.04M|			material.name, readPbr,
 1927|  1.04M|			readTexture(material.normalTexture), readTexture(material.occlusionTexture),
 1928|  1.04M|			readTexture(material.emissiveTexture), material.emissiveFactor,
 1929|  1.04M|			material.alphaMode, material.alphaCutoff, material.doubleSided,
 1930|  1.04M|			readExtensions, extras);
 1931|  1.04M|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1931:7): [True: 6.85k, False: 1.03M]
  ------------------
 1932|  6.85k|			return toError(error);
 1933|  1.04M|	}
 1934|       |
 1935|  31.7k|	return Error::None;
 1936|  38.5k|}
_ZN8fastgltf6Parser24parsePrimitiveExtensionsERNS_8internal10JsonObjectERNS_9PrimitiveE:
 1965|  16.3k|		Primitive& primitive) {
 1966|  16.3k|	using namespace simdjson;
 1967|       |
 1968|  16.3k|	const auto readVariants = [&](ondemand::value value) -> error_code {
 1969|  16.3k|		if (!hasBit(config.extensions, Extensions::KHR_materials_variants))
 1970|  16.3k|			return SUCCESS;
 1971|       |
 1972|  16.3k|		const auto readMappings = [&](ondemand::value mappingsValue) -> error_code {
 1973|  16.3k|			ondemand::array mappings;
 1974|  16.3k|			if (const auto error = mappingsValue.get(mappings); error != SUCCESS) [[unlikely]]
 1975|  16.3k|				return error;
 1976|       |
 1977|       |			// The material may come after the variants, so the variants are collected first.
 1978|  16.3k|			optional<std::size_t> material;
 1979|  16.3k|			std::vector<std::size_t> variants;
 1980|  16.3k|			for (auto mapping : mappings) {
 1981|  16.3k|				material.reset();
 1982|  16.3k|				variants.clear();
 1983|       |
 1984|  16.3k|				const auto error = mapping.get_object().for_each<"material", "variants">(
 1985|  16.3k|					material, variants);
 1986|  16.3k|				if (error != SUCCESS) [[unlikely]]
 1987|  16.3k|					return error;
 1988|  16.3k|				if (!material || variants.empty()) [[unlikely]]
 1989|  16.3k|					return NO_SUCH_FIELD;
 1990|       |
 1991|  16.3k|				for (const auto variant : variants) {
 1992|  16.3k|					primitive.mappings.emplace_back(MaterialMapping {
 1993|  16.3k|						.variantIndex = variant,
 1994|  16.3k|						.materialIndex = *material
 1995|  16.3k|					});
 1996|  16.3k|				}
 1997|  16.3k|			}
 1998|  16.3k|			return SUCCESS;
 1999|  16.3k|		};
 2000|       |
 2001|  16.3k|		if (const auto error = value.get_object().for_each<"mappings">(readMappings);
 2002|  16.3k|			error != SUCCESS) [[unlikely]]
 2003|  16.3k|			return error;
 2004|  16.3k|		if (primitive.mappings.empty()) [[unlikely]]
 2005|  16.3k|			return NO_SUCH_FIELD;
 2006|  16.3k|		return SUCCESS;
 2007|  16.3k|	};
 2008|       |
 2009|  16.3k|	const auto readDraco = [&](ondemand::value value) -> error_code {
 2010|  16.3k|		if (!hasBit(config.extensions, Extensions::KHR_draco_mesh_compression))
 2011|  16.3k|			return SUCCESS;
 2012|       |
 2013|  16.3k|		auto& draco = primitive.dracoCompression.emplace();
 2014|  16.3k|		optional<std::size_t> bufferView;
 2015|  16.3k|		const auto error = value.get_object().for_each<"bufferView", "attributes">(
 2016|  16.3k|			bufferView, draco.attributes);
 2017|  16.3k|		if (error != SUCCESS) [[unlikely]]
 2018|  16.3k|			return error;
 2019|  16.3k|		if (!bufferView || draco.attributes.empty()) [[unlikely]]
 2020|  16.3k|			return NO_SUCH_FIELD;
 2021|       |
 2022|  16.3k|		draco.bufferView = *bufferView;
 2023|  16.3k|		return SUCCESS;
 2024|  16.3k|	};
 2025|       |
 2026|  16.3k|	const auto readGaussianSplatting = [&](ondemand::value value) -> error_code {
 2027|  16.3k|		if (!hasBit(config.extensions, Extensions::KHR_gaussian_splatting))
 2028|  16.3k|			return SUCCESS;
 2029|       |
 2030|  16.3k|		auto& gaussianSplatting = primitive.gaussianSplatting.emplace();
 2031|  16.3k|		std::optional<GaussianKernel> kernel;
 2032|  16.3k|		std::optional<ColorSpace> colorSpace;
 2033|  16.3k|		const auto error = value.get_object().for_each
 2034|  16.3k|			<"kernel", "colorSpace", "projection", "sortingMethod">(
 2035|  16.3k|				kernel, colorSpace, gaussianSplatting.projection, gaussianSplatting.sortingMethod
 2036|  16.3k|			);
 2037|  16.3k|		if (error != SUCCESS) [[unlikely]]
 2038|  16.3k|			return error;
 2039|  16.3k|		if (!kernel || !colorSpace) [[unlikely]]
 2040|  16.3k|			return NO_SUCH_FIELD;
 2041|       |
 2042|  16.3k|		gaussianSplatting.kernel = *kernel;
 2043|  16.3k|		gaussianSplatting.colorSpace = *colorSpace;
 2044|  16.3k|		return SUCCESS;
 2045|  16.3k|	};
 2046|       |
 2047|  16.3k|	return toError(objectJson.value.for_each<
 2048|  16.3k|		"KHR_materials_variants", "KHR_draco_mesh_compression", "KHR_gaussian_splatting">(
 2049|  16.3k|		readVariants, readDraco, readGaussianSplatting));
 2050|  16.3k|}
_ZN8fastgltf6Parser15parsePrimitivesERNS_8internal9JsonArrayERNS_4MeshE:
 2052|  72.1k|fg::Error fg::Parser::parsePrimitives(internal::JsonArray& meshesJson, Mesh& mesh) {
 2053|  72.1k|	using namespace simdjson;
 2054|  72.1k|	auto& primitives = meshesJson.value;
 2055|       |
 2056|  72.1k|	if (const auto error = reserveElements(primitives, mesh.primitives); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2056:71): [True: 17, False: 72.0k]
  ------------------
 2057|     17|		return error;
 2058|       |
 2059|  87.7k|	for (auto value : primitives) {
  ------------------
  |  Branch (2059:18): [True: 87.7k, False: 71.3k]
  ------------------
 2060|  87.7k|		auto& primitive = mesh.primitives.emplace_back();
 2061|       |
 2062|  87.7k|		const auto readExtensions = [&](ondemand::value extensionsValue) -> error_code {
 2063|  87.7k|			internal::JsonObject extensions;
 2064|  87.7k|			if (const auto error = extensionsValue.get(extensions.value); error != SUCCESS) [[unlikely]]
 2065|  87.7k|				return error;
 2066|  87.7k|			return toErrorCode(parsePrimitiveExtensions(extensions, primitive));
 2067|  87.7k|		};
 2068|       |
 2069|       |		// The attributes are required, but may be empty.
 2070|  87.7k|		bool hasAttributes = false;
 2071|  87.7k|		const auto readAttributes = [&](ondemand::value attributes) {
 2072|  87.7k|			hasAttributes = true;
 2073|  87.7k|			return attributes.get(primitive.attributes);
 2074|  87.7k|		};
 2075|       |
 2076|  87.7k|		const auto error = value.get_object().for_each<
 2077|  87.7k|			"attributes", "indices", "material",
 2078|  87.7k|			"mode", "targets", "extensions">(
 2079|  87.7k|			readAttributes, primitive.indicesAccessor, primitive.materialIndex,
 2080|  87.7k|			primitive.type, primitive.targets, readExtensions);
 2081|  87.7k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2081:7): [True: 621, False: 87.1k]
  ------------------
 2082|    621|			return toError(error);
 2083|       |
 2084|  87.1k|		if (!hasAttributes) [[unlikely]]
  ------------------
  |  Branch (2084:7): [True: 144, False: 87.0k]
  ------------------
 2085|    144|			return Error::InvalidGltf;
 2086|  87.1k|	}
 2087|       |
 2088|  71.3k|	return Error::None;
 2089|  72.0k|}
_ZN8fastgltf6Parser11parseMeshesERNS_8internal9JsonArrayERNS_5AssetE:
 2091|  9.00k|fg::Error fg::Parser::parseMeshes(internal::JsonArray& meshesJson, Asset& asset) {
 2092|  9.00k|	using namespace simdjson;
 2093|  9.00k|	auto& meshes = meshesJson.value;
 2094|       |
 2095|  9.00k|	if (const auto error = reserveElements(meshes, asset.meshes); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2095:64): [True: 15, False: 8.99k]
  ------------------
 2096|     15|		return error;
 2097|       |
 2098|  72.3k|	for (auto meshValue : meshes) {
  ------------------
  |  Branch (2098:22): [True: 72.3k, False: 7.97k]
  ------------------
 2099|  72.3k|		const auto extras = readExtras(config, asset.meshes.size(), Category::Meshes);
 2100|       |
 2101|  72.3k|		auto& mesh = asset.meshes.emplace_back();
 2102|       |
 2103|  72.3k|		const auto readPrimitives = [&](ondemand::value primitivesValue) {
 2104|  72.3k|			internal::JsonArray primitives;
 2105|  72.3k|			if (const auto error = primitivesValue.get(primitives.value); error != SUCCESS) [[unlikely]]
 2106|  72.3k|				return error;
 2107|  72.3k|			return toErrorCode(parsePrimitives(primitives, mesh));
 2108|  72.3k|		};
 2109|       |
 2110|  72.3k|		const auto error = meshValue.get_object().for_each<
 2111|  72.3k|			"primitives", "weights", "name", "extras">(
 2112|  72.3k|			readPrimitives, mesh.weights, mesh.name, extras);
 2113|  72.3k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2113:7): [True: 934, False: 71.3k]
  ------------------
 2114|    934|			return toError(error);
 2115|       |
 2116|       |		// The primitives are required and need at least one element.
 2117|  71.3k|		if (mesh.primitives.empty()) [[unlikely]]
  ------------------
  |  Branch (2117:7): [True: 85, False: 71.3k]
  ------------------
 2118|     85|			return Error::InvalidGltf;
 2119|  71.3k|	}
 2120|       |
 2121|  7.97k|	return Error::None;
 2122|  8.99k|}
_ZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetE:
 2124|  26.1k|fg::Error fg::Parser::parseNodes(internal::JsonArray& nodesJson, Asset& asset) {
 2125|  26.1k|	using namespace simdjson;
 2126|  26.1k|	auto& nodes = nodesJson.value;
 2127|       |
 2128|  26.1k|	const auto parseNodeExtensions = [&](ondemand::value value, Node& node) -> error_code {
 2129|  26.1k|		const auto readLight = [&](ondemand::value lights) -> error_code {
 2130|  26.1k|			if (!hasBit(config.extensions, Extensions::KHR_lights_punctual))
 2131|  26.1k|				return SUCCESS;
 2132|  26.1k|			if (const auto error = lights.get_object().for_each<"light">(node.lightIndex);
 2133|  26.1k|				error != SUCCESS) [[unlikely]]
 2134|  26.1k|				return error;
 2135|  26.1k|			if (!node.lightIndex) [[unlikely]]
 2136|  26.1k|				return NO_SUCH_FIELD;
 2137|  26.1k|			return SUCCESS;
 2138|  26.1k|		};
 2139|  26.1k|		const auto readInstancing = [&](ondemand::value instancing) -> error_code {
 2140|  26.1k|			if (!hasBit(config.extensions, Extensions::EXT_mesh_gpu_instancing))
 2141|  26.1k|				return SUCCESS;
 2142|  26.1k|			const auto error = instancing.get_object().for_each<"attributes">(
 2143|  26.1k|				node.instancingAttributes);
 2144|  26.1k|			if (error != SUCCESS) [[unlikely]]
 2145|  26.1k|				return error;
 2146|  26.1k|			if (node.instancingAttributes.empty()) [[unlikely]]
 2147|  26.1k|				return NO_SUCH_FIELD;
 2148|  26.1k|			return SUCCESS;
 2149|  26.1k|		};
 2150|  26.1k|		const auto readRigidBodies = [&](ondemand::value rigidBodies) -> error_code {
 2151|  26.1k|			if (!hasBit(config.extensions, Extensions::KHR_physics_rigid_bodies))
 2152|  26.1k|				return SUCCESS;
 2153|  26.1k|			internal::JsonObject object;
 2154|  26.1k|			if (const auto error = rigidBodies.get(object.value); error != SUCCESS) [[unlikely]]
 2155|  26.1k|				return error;
 2156|  26.1k|			return toErrorCode(parsePhysicsRigidBody(object, node));
 2157|  26.1k|		};
 2158|  26.1k|		const auto readVisibility = [&](ondemand::value visibility) -> error_code {
 2159|  26.1k|			if (!hasBit(config.extensions, Extensions::KHR_node_visibility))
 2160|  26.1k|				return SUCCESS;
 2161|  26.1k|			return visibility.get_object().for_each<"visible">(node.visible);
 2162|  26.1k|		};
 2163|  26.1k|		const auto readSelectability = [&](ondemand::value selectability) -> error_code {
 2164|  26.1k|			if (!hasBit(config.extensions, Extensions::KHR_node_selectability))
 2165|  26.1k|				return SUCCESS;
 2166|  26.1k|			return selectability.get_object().for_each<"selectable">(node.selectable);
 2167|  26.1k|		};
 2168|  26.1k|		const auto readHoverability = [&](ondemand::value hoverability) -> error_code {
 2169|  26.1k|			if (!hasBit(config.extensions, Extensions::KHR_node_hoverability))
 2170|  26.1k|				return SUCCESS;
 2171|  26.1k|			return hoverability.get_object().for_each<"hoverable">(node.hoverable);
 2172|  26.1k|		};
 2173|       |
 2174|  26.1k|		return value.get_object().for_each<
 2175|  26.1k|			"KHR_lights_punctual", "EXT_mesh_gpu_instancing", "KHR_physics_rigid_bodies",
 2176|  26.1k|			"KHR_node_visibility", "KHR_node_selectability", "KHR_node_hoverability">(
 2177|  26.1k|			readLight, readInstancing, readRigidBodies,
 2178|  26.1k|			readVisibility, readSelectability, readHoverability);
 2179|  26.1k|	};
 2180|       |
 2181|  26.1k|	if (const auto error = reserveElements(nodes, asset.nodes); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2181:62): [True: 9, False: 26.1k]
  ------------------
 2182|      9|		return error;
 2183|       |
 2184|   391k|	for (auto nodeValue : nodes) {
  ------------------
  |  Branch (2184:22): [True: 391k, False: 21.1k]
  ------------------
 2185|   391k|		const auto extras = readExtras(config, asset.nodes.size(), Category::Nodes);
 2186|       |
 2187|   391k|		auto& node = asset.nodes.emplace_back();
 2188|       |
 2189|   391k|		std::optional<math::nmat4x4> matrix;
 2190|   391k|		TRS trs {};
 2191|       |
 2192|   391k|		const auto readExtensions = [&](ondemand::value extensions) {
 2193|   391k|			return parseNodeExtensions(extensions, node);
 2194|   391k|		};
 2195|       |
 2196|   391k|		const auto error = nodeValue.get_object().for_each<
 2197|   391k|			"camera", "children", "skin", "matrix",
 2198|   391k|			"mesh", "rotation", "scale", "translation",
 2199|   391k|			"weights", "name", "extensions", "extras">(
 2200|   391k|			node.cameraIndex, node.children, node.skinIndex, matrix,
 2201|   391k|			node.meshIndex, trs.rotation, trs.scale, trs.translation,
 2202|   391k|			node.weights, node.name, readExtensions, extras);
 2203|   391k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2203:7): [True: 4.99k, False: 386k]
  ------------------
 2204|  4.99k|			return toError(error);
 2205|       |
 2206|       |		// The TRS properties are ignored when there's a matrix.
 2207|   386k|		if (!matrix) {
  ------------------
  |  Branch (2207:7): [True: 370k, False: 16.2k]
  ------------------
 2208|   370k|			node.transform = trs;
 2209|   370k|		} else if (hasBit(options, Options::DecomposeNodeMatrices)) {
  ------------------
  |  Branch (2209:14): [True: 16.2k, False: 0]
  ------------------
 2210|  16.2k|			TRS decomposed {};
 2211|  16.2k|			math::decomposeTransformMatrix(*matrix, decomposed.scale, decomposed.rotation,
 2212|  16.2k|				decomposed.translation);
 2213|  16.2k|			node.transform = decomposed;
 2214|  16.2k|		} else {
 2215|      0|			node.transform = *matrix;
 2216|      0|		}
 2217|   386k|	}
 2218|       |
 2219|  21.1k|	return Error::None;
 2220|  26.1k|}
_ZN8fastgltf6Parser13parseSamplersERNS_8internal9JsonArrayERNS_5AssetE:
 2222|  9.19k|fg::Error fg::Parser::parseSamplers(internal::JsonArray& samplersJson, Asset& asset) {
 2223|  9.19k|	using namespace simdjson;
 2224|  9.19k|	auto& samplers = samplersJson.value;
 2225|       |
 2226|  9.19k|	if (const auto error = reserveElements(samplers, asset.samplers);
 2227|  9.19k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2227:3): [True: 7, False: 9.18k]
  ------------------
 2228|      7|		return error;
 2229|       |
 2230|  86.5k|	for (auto samplerValue : samplers) {
  ------------------
  |  Branch (2230:25): [True: 86.5k, False: 8.60k]
  ------------------
 2231|  86.5k|		const auto extras = readExtras(config, asset.samplers.size(), Category::Samplers);
 2232|       |
 2233|  86.5k|		auto& sampler = asset.samplers.emplace_back();
 2234|       |
 2235|  86.5k|		const auto error = samplerValue.get_object().for_each<
 2236|  86.5k|			"magFilter", "minFilter", "wrapS", "wrapT",
 2237|  86.5k|			"name", "extras">(
 2238|  86.5k|			sampler.magFilter, sampler.minFilter, sampler.wrapS, sampler.wrapT,
 2239|  86.5k|			sampler.name, extras);
 2240|  86.5k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2240:7): [True: 583, False: 85.9k]
  ------------------
 2241|    583|			return toError(error);
 2242|  86.5k|	}
 2243|       |
 2244|  8.60k|	return Error::None;
 2245|  9.18k|}
_ZN8fastgltf6Parser11parseScenesERNS_8internal9JsonArrayERNS_5AssetE:
 2247|  13.4k|fg::Error fg::Parser::parseScenes(internal::JsonArray& scenesJson, Asset& asset) {
 2248|  13.4k|	using namespace simdjson;
 2249|  13.4k|	auto& scenes = scenesJson.value;
 2250|       |
 2251|  13.4k|	if (const auto error = reserveElements(scenes, asset.scenes); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2251:64): [True: 6, False: 13.4k]
  ------------------
 2252|      6|		return error;
 2253|       |
 2254|  83.8k|	for (auto sceneValue : scenes) {
  ------------------
  |  Branch (2254:23): [True: 83.8k, False: 13.3k]
  ------------------
 2255|  83.8k|		const auto extras = readExtras(config, asset.scenes.size(), Category::Scenes);
 2256|       |
 2257|       |		// The scene object can be completely empty
 2258|  83.8k|		auto& scene = asset.scenes.emplace_back();
 2259|       |
 2260|  83.8k|		const auto error = sceneValue.get_object().for_each<"nodes", "name", "extras">(
 2261|  83.8k|			scene.nodeIndices, scene.name, extras);
 2262|  83.8k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2262:7): [True: 131, False: 83.6k]
  ------------------
 2263|    131|			return toError(error);
 2264|  83.8k|	}
 2265|       |
 2266|  13.3k|	return Error::None;
 2267|  13.4k|}
_ZN8fastgltf6Parser10parseSkinsERNS_8internal9JsonArrayERNS_5AssetE:
 2269|  4.87k|fg::Error fg::Parser::parseSkins(internal::JsonArray& skinsJson, Asset& asset) {
 2270|  4.87k|	using namespace simdjson;
 2271|  4.87k|	auto& skins = skinsJson.value;
 2272|       |
 2273|  4.87k|	if (const auto error = reserveElements(skins, asset.skins); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2273:62): [True: 8, False: 4.86k]
  ------------------
 2274|      8|		return error;
 2275|       |
 2276|  38.8k|	for (auto skinValue : skins) {
  ------------------
  |  Branch (2276:22): [True: 38.8k, False: 4.51k]
  ------------------
 2277|  38.8k|		const auto extras = readExtras(config, asset.skins.size(), Category::Skins);
 2278|       |
 2279|  38.8k|		auto& skin = asset.skins.emplace_back();
 2280|       |
 2281|  38.8k|		const auto error = skinValue.get_object().for_each<
 2282|  38.8k|			"inverseBindMatrices", "skeleton", "joints", "name", "extras">(
 2283|  38.8k|			skin.inverseBindMatrices, skin.skeleton, skin.joints, skin.name, extras);
 2284|  38.8k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2284:7): [True: 260, False: 38.5k]
  ------------------
 2285|    260|			return toError(error);
 2286|       |
 2287|       |		// The joints are required and need at least one element.
 2288|  38.5k|		if (skin.joints.empty()) [[unlikely]]
  ------------------
  |  Branch (2288:7): [True: 86, False: 38.4k]
  ------------------
 2289|     86|			return Error::InvalidGltf;
 2290|  38.5k|	}
 2291|       |
 2292|  4.51k|	return Error::None;
 2293|  4.86k|}
_ZN8fastgltf6Parser13parseTexturesERNS_8internal9JsonArrayERNS_5AssetE:
 2295|  10.0k|fg::Error fg::Parser::parseTextures(internal::JsonArray& texturesJson, Asset& asset) {
 2296|  10.0k|	using namespace simdjson;
 2297|  10.0k|	auto& textures = texturesJson.value;
 2298|       |
 2299|  10.0k|	if (const auto error = reserveElements(textures, asset.textures);
 2300|  10.0k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2300:3): [True: 19, False: 9.99k]
  ------------------
 2301|     19|		return error;
 2302|       |
 2303|  64.2k|	for (auto textureValue : textures) {
  ------------------
  |  Branch (2303:25): [True: 64.2k, False: 9.64k]
  ------------------
 2304|  64.2k|		const auto extras = readExtras(config, asset.textures.size(), Category::Textures);
 2305|       |
 2306|  64.2k|		auto& texture = asset.textures.emplace_back();
 2307|       |
 2308|  64.2k|		const auto readExtensions = [&](ondemand::value extensions) {
 2309|  64.2k|			return parseTextureExtensions(extensions, texture, config.extensions);
 2310|  64.2k|		};
 2311|       |
 2312|       |		// The index of the sampler used by this texture. When undefined, a sampler with
 2313|       |		// repeat wrapping and auto filtering SHOULD be used.
 2314|  64.2k|		const auto error = textureValue.get_object().for_each<
 2315|  64.2k|			"sampler", "source", "name", "extensions", "extras">(
 2316|  64.2k|			texture.samplerIndex, texture.imageIndex, texture.name, readExtensions, extras);
 2317|  64.2k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2317:7): [True: 352, False: 63.8k]
  ------------------
 2318|    352|			return toError(error);
 2319|  64.2k|	}
 2320|       |
 2321|  9.64k|	return Error::None;
 2322|  9.99k|}
_ZN8fastgltf6Parser11parseShapesERNS_8internal9JsonArrayERNS_5AssetE:
 2354|  13.1k|fg::Error fg::Parser::parseShapes(internal::JsonArray& shapesJson, Asset& asset) {
 2355|  13.1k|	using namespace simdjson;
 2356|  13.1k|	auto& shapes = shapesJson.value;
 2357|       |
 2358|  13.1k|	if (const auto error = reserveElements(shapes, asset.shapes); error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2358:64): [True: 12, False: 13.1k]
  ------------------
 2359|     12|		return error;
 2360|       |
 2361|  94.4k|	for (auto shapeValue : shapes) {
  ------------------
  |  Branch (2361:23): [True: 94.4k, False: 11.4k]
  ------------------
 2362|  94.4k|		const auto extras = readExtras(config, asset.shapes.size(), Category::Shapes);
 2363|       |
 2364|  94.4k|		auto& shape = asset.shapes.emplace_back();
 2365|       |
 2366|  94.4k|		std::optional<std::string_view> type;
 2367|  94.4k|		std::optional<SphereShape> sphere;
 2368|  94.4k|		std::optional<BoxShape> box;
 2369|  94.4k|		std::optional<CapsuleShape> capsule;
 2370|  94.4k|		std::optional<CylinderShape> cylinder;
 2371|  94.4k|		std::optional<PlaneShape> plane;
 2372|       |
 2373|  94.4k|		const auto error = shapeValue.get_object().for_each<
 2374|  94.4k|			"type", "sphere", "box", "capsule",
 2375|  94.4k|			"cylinder", "plane", "name", "extras">(
 2376|  94.4k|			type, sphere, box, capsule,
 2377|  94.4k|			cylinder, plane, shape.name, extras);
 2378|  94.4k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2378:7): [True: 1.41k, False: 93.0k]
  ------------------
 2379|  1.41k|			return toError(error);
 2380|       |
 2381|  93.0k|		if (!type) [[unlikely]]
  ------------------
  |  Branch (2381:7): [True: 200, False: 92.8k]
  ------------------
 2382|    200|			return Error::InvalidGltf;
 2383|       |
 2384|       |		// The object with the shape's properties has to match the type.
 2385|  92.8k|		const auto setShape = [&](const auto& properties, const std::string_view name) {
 2386|  92.8k|			if (properties)
 2387|  92.8k|				shape.data = *properties;
 2388|  92.8k|			return !properties || *type == name;
 2389|  92.8k|		};
 2390|  92.8k|		if (!setShape(sphere, "sphere") || !setShape(box, "box") || !setShape(capsule, "capsule") ||
  ------------------
  |  Branch (2390:7): [True: 2, False: 92.8k]
  |  Branch (2390:38): [True: 5, False: 92.8k]
  |  Branch (2390:63): [True: 4, False: 92.8k]
  ------------------
 2391|  92.8k|			!setShape(cylinder, "cylinder") || !setShape(plane, "plane")) [[unlikely]]
  ------------------
  |  Branch (2391:4): [True: 9, False: 92.8k]
  |  Branch (2391:39): [True: 5, False: 92.8k]
  ------------------
 2392|     25|			return Error::InvalidGltf;
 2393|  92.8k|	}
 2394|       |
 2395|  11.4k|	return Error::None;
 2396|  13.1k|}
_ZN8fastgltf6Parser21parsePhysicsMaterialsERNS_8internal9JsonArrayERNS_5AssetE:
 2399|  5.00k|		Asset& asset) {
 2400|  5.00k|	using namespace simdjson;
 2401|  5.00k|	auto& materials = physicsMaterialsJson.value;
 2402|       |
 2403|  5.00k|	if (const auto error = reserveElements(materials, asset.physicsMaterials);
 2404|  5.00k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2404:3): [True: 11, False: 4.99k]
  ------------------
 2405|     11|		return error;
 2406|       |
 2407|   225k|	for (auto materialValue : materials) {
  ------------------
  |  Branch (2407:26): [True: 225k, False: 4.49k]
  ------------------
 2408|   225k|		const auto extras = readExtras(config, asset.physicsMaterials.size(),
 2409|   225k|			Category::PhysicsMaterials);
 2410|       |
 2411|   225k|		auto& material = asset.physicsMaterials.emplace_back();
 2412|       |
 2413|   225k|		const auto error = materialValue.get_object().for_each<
 2414|   225k|			"staticFriction", "dynamicFriction", "restitution",
 2415|   225k|			"frictionCombine", "restitutionCombine", "extras">(
 2416|   225k|			material.staticFriction, material.dynamicFriction, material.restitution,
 2417|   225k|			material.frictionCombine, material.restitutionCombine, extras);
 2418|   225k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2418:7): [True: 498, False: 224k]
  ------------------
 2419|    498|			return toError(error);
 2420|   225k|	}
 2421|       |
 2422|  4.49k|	return Error::None;
 2423|  4.99k|}
_ZN8fastgltf6Parser21parseCollisionFiltersERNS_8internal9JsonArrayERNS_5AssetE:
 2426|  7.92k|		Asset& asset) {
 2427|  7.92k|	using namespace simdjson;
 2428|  7.92k|	auto& filters = collisionFiltersJson.value;
 2429|       |
 2430|  7.92k|	if (const auto error = reserveElements(filters, asset.collisionFilters);
 2431|  7.92k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2431:3): [True: 8, False: 7.91k]
  ------------------
 2432|      8|		return error;
 2433|       |
 2434|  98.5k|	for (auto filterValue : filters) {
  ------------------
  |  Branch (2434:24): [True: 98.5k, False: 7.82k]
  ------------------
 2435|  98.5k|		const auto extras = readExtras(config, asset.collisionFilters.size(),
 2436|  98.5k|			Category::CollisionFilters);
 2437|       |
 2438|  98.5k|		auto& filter = asset.collisionFilters.emplace_back();
 2439|       |
 2440|  98.5k|		std::optional<std::vector<std::string>> collideWithSystems, notCollideWithSystems;
 2441|       |
 2442|  98.5k|		const auto error = filterValue.get_object().for_each<
 2443|  98.5k|			"collisionSystems", "collideWithSystems", "notCollideWithSystems", "extras">(
 2444|  98.5k|			filter.collisionSystems, collideWithSystems, notCollideWithSystems, extras);
 2445|  98.5k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2445:7): [True: 97, False: 98.4k]
  ------------------
 2446|     97|			return toError(error);
 2447|       |
 2448|       |		// A collision filter can't have both.
 2449|  98.4k|		if (collideWithSystems && notCollideWithSystems) [[unlikely]]
  ------------------
  |  Branch (2449:7): [True: 9.93k, False: 88.4k]
  |  Branch (2449:29): [True: 1, False: 9.93k]
  ------------------
 2450|      1|			return Error::InvalidGltf;
 2451|  98.4k|		if (collideWithSystems)
  ------------------
  |  Branch (2451:7): [True: 9.93k, False: 88.4k]
  ------------------
 2452|  9.93k|			filter.collideWithSystems = std::move(*collideWithSystems);
 2453|  98.4k|		if (notCollideWithSystems)
  ------------------
  |  Branch (2453:7): [True: 10.8k, False: 87.5k]
  ------------------
 2454|  10.8k|			filter.notCollideWithSystems = std::move(*notCollideWithSystems);
 2455|  98.4k|	}
 2456|       |
 2457|  7.82k|	return Error::None;
 2458|  7.91k|}
_ZN8fastgltf6Parser18parsePhysicsJointsERNS_8internal9JsonArrayERNS_5AssetE:
 2544|  1.31k|fg::Error fg::Parser::parsePhysicsJoints(internal::JsonArray& physicsJointsJson, Asset& asset) {
 2545|  1.31k|	using namespace simdjson;
 2546|  1.31k|	auto& joints = physicsJointsJson.value;
 2547|       |
 2548|  1.31k|	if (const auto error = reserveElements(joints, asset.physicsJoints);
 2549|  1.31k|		error != Error::None) [[unlikely]]
  ------------------
  |  Branch (2549:3): [True: 11, False: 1.29k]
  ------------------
 2550|     11|		return error;
 2551|       |
 2552|   274k|	for (auto jointValue : joints) {
  ------------------
  |  Branch (2552:23): [True: 274k, False: 805]
  ------------------
 2553|   274k|		const auto extras = readExtras(config, asset.physicsJoints.size(),
 2554|   274k|			Category::PhysicsJoints);
 2555|       |
 2556|   274k|		auto& joint = asset.physicsJoints.emplace_back();
 2557|       |
 2558|   274k|		const auto error = jointValue.get_object().for_each<"limits", "drives", "extras">(
 2559|   274k|			joint.limits, joint.drives, extras);
 2560|   274k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2560:7): [True: 494, False: 273k]
  ------------------
 2561|    494|			return toError(error);
 2562|   274k|	}
 2563|       |
 2564|    805|	return Error::None;
 2565|  1.29k|}
_ZN8fastgltf6Parser21parsePhysicsRigidBodyERNS_8internal10JsonObjectERNS_4NodeE:
 2644|  78.9k|fg::Error fg::Parser::parsePhysicsRigidBody(internal::JsonObject& rigidBodyJson, Node& node) {
 2645|  78.9k|	using namespace simdjson;
 2646|  78.9k|	auto& rigidBody = node.physicsRigidBody.emplace();
 2647|       |
 2648|  78.9k|	return toError(rigidBodyJson.value.for_each<"motion", "collider", "trigger", "joint">(
 2649|  78.9k|		rigidBody.motion, rigidBody.collider, rigidBody.trigger, rigidBody.joint));
 2650|  78.9k|}
_ZN8fastgltf21determineGltfFileTypeERNS_14GltfDataGetterE:
 2655|  75.0k|fg::GltfType fg::determineGltfFileType(GltfDataGetter& data) {
 2656|       |	// We'll try and read a BinaryGltfHeader from the buffer to see if the magic is correct.
 2657|  75.0k|	auto header = internal::readBinaryHeader(data);
 2658|  75.0k|	data.reset();
 2659|  75.0k|	if (header.magic == internal::binaryGltfHeaderMagic) {
  ------------------
  |  Branch (2659:6): [True: 435, False: 74.6k]
  ------------------
 2660|    435|		return GltfType::GLB;
 2661|    435|	}
 2662|       |
 2663|       |	// First, check if any of the first four characters is a '{'.
 2664|  74.6k|	std::array<std::uint8_t, 4> begin {};
 2665|  74.6k|	data.read(begin.data(), begin.size());
 2666|  74.6k|	data.reset();
 2667|  78.1k|	for (const auto& i : begin) {
  ------------------
  |  Branch (2667:21): [True: 78.1k, False: 71]
  ------------------
 2668|  78.1k|		if (static_cast<char>(i) == ' ')
  ------------------
  |  Branch (2668:7): [True: 156, False: 78.0k]
  ------------------
 2669|    156|			continue;
 2670|  78.0k|		if (static_cast<char>(i) == '{')
  ------------------
  |  Branch (2670:7): [True: 74.5k, False: 3.46k]
  ------------------
 2671|  74.5k|			return GltfType::glTF;
 2672|  78.0k|	}
 2673|       |
 2674|     71|	return GltfType::Invalid;
 2675|  74.6k|}
_ZN8fastgltf6ParserC2ENS_10ExtensionsE:
 2677|   116k|fg::Parser::Parser(Extensions extensionsToLoad) noexcept {
 2678|   116k|	jsonParser = std::make_unique<internal::JsonParser>();
 2679|   116k|	config.extensions = extensionsToLoad;
 2680|   116k|}
_ZN8fastgltf6ParserD2Ev:
 2690|   116k|fg::Parser::~Parser() = default;
_ZN8fastgltf6Parser8loadGltfERNS_14GltfDataGetterENSt3__14__fs10filesystem4pathENS_7OptionsENS_8CategoryE:
 2692|  75.0k|fg::Expected<fg::Asset> fg::Parser::loadGltf(GltfDataGetter& data, fs::path _directory, Options _options, Category categories) {
 2693|  75.0k|	auto type = fastgltf::determineGltfFileType(data);
 2694|       |
 2695|  75.0k|	if (type == fastgltf::GltfType::glTF) {
  ------------------
  |  Branch (2695:6): [True: 74.5k, False: 506]
  ------------------
 2696|  74.5k|		return loadGltfJson(data, std::move(_directory), _options, categories);
 2697|  74.5k|	}
 2698|       |
 2699|    506|	if (type == fastgltf::GltfType::GLB) {
  ------------------
  |  Branch (2699:6): [True: 435, False: 71]
  ------------------
 2700|    435|		return loadGltfBinary(data, std::move(_directory), _options, categories);
 2701|    435|	}
 2702|       |
 2703|     71|	return Error::InvalidFileData;
 2704|    506|}
_ZN8fastgltf6Parser12loadGltfJsonERNS_14GltfDataGetterENSt3__14__fs10filesystem4pathENS_7OptionsENS_8CategoryE:
 2706|   115k|fg::Expected<fg::Asset> fg::Parser::loadGltfJson(GltfDataGetter& data, fs::path _directory, Options _options, Category categories) {
 2707|   115k|	using namespace simdjson;
 2708|       |
 2709|   115k|	options = _options;
 2710|   115k|	directory = std::move(_directory);
 2711|   115k|	glbBuffer = std::monostate();
 2712|       |
 2713|   115k|#if !defined(__ANDROID__)
 2714|       |	// If we never have to load the files ourselves, we're fine with the directory being invalid/blank.
 2715|   115k|	if (std::error_code ec; hasBit(_options, Options::LoadExternalBuffers) && (!fs::is_directory(directory, ec) || ec)) {
  ------------------
  |  Branch (2715:26): [True: 0, False: 115k]
  |  Branch (2715:77): [True: 0, False: 0]
  |  Branch (2715:113): [True: 0, False: 0]
  ------------------
 2716|      0|		return Error::InvalidPath;
 2717|      0|	}
 2718|   115k|#endif
 2719|       |
 2720|   115k|	data.reset();
 2721|   115k|	auto jsonSpan = data.read(data.totalSize(), SIMDJSON_PADDING);
 2722|   115k|	padded_string_view view(reinterpret_cast<const std::uint8_t*>(jsonSpan.data()),
 2723|   115k|									  data.totalSize(),
 2724|   115k|									  data.totalSize() + SIMDJSON_PADDING);
 2725|   115k|	ondemand::document document;
 2726|   115k|	internal::JsonObject root;
 2727|   115k|	if (jsonParser->parser.iterate(view).get(document) != SUCCESS ||
  ------------------
  |  Branch (2727:6): [True: 824, False: 114k]
  |  Branch (2727:6): [True: 971, False: 114k]
  ------------------
 2728|   114k|		document.get_object().get(root.value) != SUCCESS) [[unlikely]] {
  ------------------
  |  Branch (2728:3): [True: 147, False: 114k]
  ------------------
 2729|    971|		return Error::InvalidJson;
 2730|    971|	}
 2731|       |
 2732|   114k|	auto asset = parse(root, categories);
 2733|   114k|	if (!asset.has_error() && !document.at_end()) [[unlikely]] {
  ------------------
  |  Branch (2733:6): [True: 86.6k, False: 27.8k]
  |  Branch (2733:28): [True: 276, False: 86.4k]
  ------------------
 2734|       |		// ondemand does not reject trailing content by itself.
 2735|    276|		return Error::InvalidJson;
 2736|    276|	}
 2737|   114k|	return asset;
 2738|   114k|}
_ZN8fastgltf6Parser14loadGltfBinaryERNS_14GltfDataGetterENSt3__14__fs10filesystem4pathENS_7OptionsENS_8CategoryE:
 2740|    435|fg::Expected<fg::Asset> fg::Parser::loadGltfBinary(GltfDataGetter& data, fs::path _directory, Options _options, Category categories) {
 2741|    435|	using namespace simdjson;
 2742|       |
 2743|    435|	options = _options;
 2744|    435|	directory = std::move(_directory);
 2745|    435|	glbBuffer = std::monostate();
 2746|       |
 2747|    435|#if !defined(__ANDROID__)
 2748|       |	// If we never have to load the files ourselves, we're fine with the directory being invalid/blank.
 2749|    435|	if (std::error_code ec; hasBit(options, Options::LoadExternalBuffers) && (!fs::is_directory(directory, ec) || ec)) {
  ------------------
  |  Branch (2749:26): [True: 0, False: 435]
  |  Branch (2749:76): [True: 0, False: 0]
  |  Branch (2749:112): [True: 0, False: 0]
  ------------------
 2750|      0|		return Error::InvalidPath;
 2751|      0|	}
 2752|    435|#endif
 2753|       |
 2754|    435|	data.reset();
 2755|       |
 2756|    435|	auto header = internal::readBinaryHeader(data);
 2757|    435|	if (header.magic != internal::binaryGltfHeaderMagic) {
  ------------------
  |  Branch (2757:6): [True: 0, False: 435]
  ------------------
 2758|      0|		return Error::InvalidGLB;
 2759|      0|	}
 2760|    435|	if (header.version != 2) {
  ------------------
  |  Branch (2760:6): [True: 56, False: 379]
  ------------------
 2761|     56|		return Error::UnsupportedVersion;
 2762|     56|	}
 2763|    379|	if (header.length > data.totalSize()) {
  ------------------
  |  Branch (2763:6): [True: 29, False: 350]
  ------------------
 2764|     29|		return Error::InvalidGLB;
 2765|     29|	}
 2766|       |
 2767|       |	// The glTF 2 spec specifies that in GLB files the order of chunks is predefined. Specifically,
 2768|       |	//  1. JSON chunk
 2769|       |	//  2. BIN chunk (optional)
 2770|    350|	auto jsonChunk = internal::readBinaryChunk(data);
 2771|    350|	if (jsonChunk.chunkType != internal::binaryGltfJsonChunkMagic ||
  ------------------
  |  Branch (2771:6): [True: 61, False: 289]
  ------------------
 2772|    289|		jsonChunk.chunkLength > data.totalSize() - sizeof(internal::BinaryGltfHeader) - sizeof(internal::BinaryGltfChunk)) {
  ------------------
  |  Branch (2772:3): [True: 48, False: 241]
  ------------------
 2773|    109|		return Error::InvalidGLB;
 2774|    109|	}
 2775|       |
 2776|       |	// Create a string view of the JSON chunk in the GLB data buffer. The documentation of parse()
 2777|       |	// says the padding can be initialised to anything, apparently. Therefore, this should work.
 2778|    241|	auto jsonSpan = data.read(jsonChunk.chunkLength, SIMDJSON_PADDING);
 2779|    241|	simdjson::padded_string_view jsonChunkView(reinterpret_cast<const std::uint8_t*>(jsonSpan.data()),
 2780|    241|											   jsonChunk.chunkLength,
 2781|    241|											   jsonChunk.chunkLength + SIMDJSON_PADDING);
 2782|       |
 2783|       |	// ondemand parses lazily, so the JSON chunk has to stay alive until parse() returns. GltfDataGetter
 2784|       |	// guarantees this, as the binary chunk below is read through the non-padded read overload.
 2785|    241|	ondemand::document document;
 2786|    241|	internal::JsonObject root;
 2787|    241|	if (jsonParser->parser.iterate(jsonChunkView).get(document) != SUCCESS ||
  ------------------
  |  Branch (2787:6): [True: 28, False: 213]
  |  Branch (2787:6): [True: 113, False: 128]
  ------------------
 2788|    213|		document.get_object().get(root.value) != SUCCESS) [[unlikely]] {
  ------------------
  |  Branch (2788:3): [True: 85, False: 128]
  ------------------
 2789|    113|		return Error::InvalidJson;
 2790|    113|	}
 2791|       |
 2792|       |	// Is there enough room for another chunk header?
 2793|    128|	if (header.length > (data.bytesRead() + sizeof(internal::BinaryGltfChunk))) {
  ------------------
  |  Branch (2793:6): [True: 115, False: 13]
  ------------------
 2794|    115|		auto binaryChunk = internal::readBinaryChunk(data);
 2795|       |
 2796|    115|		if (binaryChunk.chunkType != internal::binaryGltfDataChunkMagic) {
  ------------------
  |  Branch (2796:7): [True: 46, False: 69]
  ------------------
 2797|     46|			return Error::InvalidGLB;
 2798|     46|		}
 2799|       |
 2800|       |		// TODO: Somehow allow skipping the binary part in the future?
 2801|     69|		if (binaryChunk.chunkLength != 0) {
  ------------------
  |  Branch (2801:7): [True: 68, False: 1]
  ------------------
 2802|     68|			if (binaryChunk.chunkLength > data.totalSize() - data.bytesRead()) {
  ------------------
  |  Branch (2802:8): [True: 45, False: 23]
  ------------------
 2803|     45|				return Error::InvalidGLB;
 2804|     45|			}
 2805|       |
 2806|     23|			if (config.mapCallback != nullptr) {
  ------------------
  |  Branch (2806:8): [True: 0, False: 23]
  ------------------
 2807|      0|				auto info = config.mapCallback(binaryChunk.chunkLength, config.userPointer);
 2808|      0|				if (info.mappedMemory != nullptr) {
  ------------------
  |  Branch (2808:9): [True: 0, False: 0]
  ------------------
 2809|      0|					data.read(info.mappedMemory, binaryChunk.chunkLength);
 2810|      0|					if (config.unmapCallback != nullptr) {
  ------------------
  |  Branch (2810:10): [True: 0, False: 0]
  ------------------
 2811|      0|						config.unmapCallback(&info, config.userPointer);
 2812|      0|					}
 2813|      0|					glbBuffer = sources::CustomBuffer{info.customId, MimeType::None};
 2814|      0|				}
 2815|     23|			} else {
 2816|     23|				static_vector<std::byte> binaryData(for_overwrite, binaryChunk.chunkLength);
 2817|     23|				data.read(binaryData.data(), binaryChunk.chunkLength);
 2818|       |
 2819|     23|				sources::Array vectorData {
 2820|     23|					std::move(binaryData),
 2821|     23|					MimeType::GltfBuffer,
 2822|     23|				};
 2823|     23|				glbBuffer = std::move(vectorData);
 2824|     23|			}
 2825|     23|		}
 2826|     69|	}
 2827|       |
 2828|     37|	auto asset = parse(root, categories);
 2829|     37|	if (!asset.has_error() && !document.at_end()) [[unlikely]] {
  ------------------
  |  Branch (2829:6): [True: 24, False: 13]
  |  Branch (2829:28): [True: 1, False: 23]
  ------------------
 2830|      1|		return Error::InvalidJson;
 2831|      1|	}
 2832|     36|	return asset;
 2833|     37|}
parser.cpp:_ZN8fastgltfL12writeIndicesEm:
  695|  12.9k|		const std::size_t primitiveCount) {
  696|       |
  697|  12.9k|		if (primitiveCount < 255) {
  ------------------
  |  Branch (697:7): [True: 10.3k, False: 2.60k]
  ------------------
  698|  10.3k|			static_vector<std::byte> generatedIndices(for_overwrite, primitiveCount * sizeof(std::uint8_t));
  699|  10.3k|			writeIndices<std::uint8_t>(generatedIndices);
  700|  10.3k|			return std::make_pair(std::move(generatedIndices), ComponentType::UnsignedByte);
  701|  10.3k|		}
  702|       |
  703|  2.60k|		if (primitiveCount < 65535) {
  ------------------
  |  Branch (703:7): [True: 1.75k, False: 850]
  ------------------
  704|  1.75k|			static_vector<std::byte> generatedIndices(for_overwrite, primitiveCount * sizeof(std::uint16_t));
  705|  1.75k|			writeIndices<std::uint16_t>(generatedIndices);
  706|  1.75k|			return std::make_pair(std::move(generatedIndices), ComponentType::UnsignedShort);
  707|  1.75k|		}
  708|       |
  709|    850|		static_vector<std::byte> generatedIndices(for_overwrite, primitiveCount * sizeof(std::uint32_t));
  710|    850|		writeIndices<std::uint32_t>(generatedIndices);
  711|    850|		return std::make_pair(std::move(generatedIndices), ComponentType::UnsignedInt);
  712|  2.60k|	}
parser.cpp:_ZN8fastgltfL12writeIndicesIhEEvRNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEEE:
  687|  10.3k|	static void writeIndices(static_vector<std::byte>& generatedIndices) {
  688|  10.3k|		const std::span indices(reinterpret_cast<T*>(generatedIndices.data()),
  689|  10.3k|			generatedIndices.size() / sizeof(T));
  690|       |
  691|  10.3k|		std::iota(indices.begin(), indices.end(), T(0));
  692|  10.3k|	}
parser.cpp:_ZN8fastgltfL12writeIndicesItEEvRNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEEE:
  687|  1.75k|	static void writeIndices(static_vector<std::byte>& generatedIndices) {
  688|  1.75k|		const std::span indices(reinterpret_cast<T*>(generatedIndices.data()),
  689|  1.75k|			generatedIndices.size() / sizeof(T));
  690|       |
  691|  1.75k|		std::iota(indices.begin(), indices.end(), T(0));
  692|  1.75k|	}
parser.cpp:_ZN8fastgltfL12writeIndicesIjEEvRNS_13static_vectorISt4byteNSt3__19allocatorIS2_EEEE:
  687|    850|	static void writeIndices(static_vector<std::byte>& generatedIndices) {
  688|    850|		const std::span indices(reinterpret_cast<T*>(generatedIndices.data()),
  689|    850|			generatedIndices.size() / sizeof(T));
  690|       |
  691|    850|		std::iota(indices.begin(), indices.end(), T(0));
  692|    850|	}
_ZN8fastgltf7toErrorEN8simdjson10error_codeE:
  170|   975k|	[[nodiscard]] constexpr Error toError(const simdjson::error_code error) noexcept {
  171|   975k|		switch (error) {
  172|   943k|			case simdjson::SUCCESS:
  ------------------
  |  Branch (172:4): [True: 943k, False: 32.0k]
  ------------------
  173|   943k|				return Error::None;
  174|  6.24k|			case simdjson::INCORRECT_TYPE:
  ------------------
  |  Branch (174:4): [True: 6.24k, False: 968k]
  ------------------
  175|  7.52k|			case simdjson::NO_SUCH_FIELD:
  ------------------
  |  Branch (175:4): [True: 1.28k, False: 973k]
  ------------------
  176|  7.56k|			case simdjson::BIGINT_ERROR:
  ------------------
  |  Branch (176:4): [True: 40, False: 975k]
  ------------------
  177|  7.56k|				return Error::InvalidGltf;
  178|     75|			case simdjson::NUMBER_OUT_OF_RANGE:
  ------------------
  |  Branch (178:4): [True: 75, False: 975k]
  ------------------
  179|     75|				return Error::ValueOutOfRange;
  180|  24.4k|			default:
  ------------------
  |  Branch (180:4): [True: 24.4k, False: 950k]
  ------------------
  181|  24.4k|				return Error::InvalidJson;
  182|   975k|		}
  183|   975k|	}
parser.cpp:_ZN8fastgltfL18parseAssetVersionsENSt3__18optionalINS0_17basic_string_viewIcNS0_11char_traitsIcEEEEEES6_RNS_9AssetInfoE:
  797|   113k|			std::optional<std::string_view> minVersionString, AssetInfo& info) {
  798|   113k|		if (!versionString) [[unlikely]]
  ------------------
  |  Branch (798:7): [True: 64, False: 113k]
  ------------------
  799|     64|			return Error::MissingField;
  800|       |
  801|   113k|		auto version = detail::parseVersionString(*versionString);
  802|   113k|		if (version.has_error())
  ------------------
  |  Branch (802:7): [True: 161, False: 113k]
  ------------------
  803|    161|			return version.error();
  804|   113k|		if (version->major != 2) [[unlikely]]
  ------------------
  |  Branch (804:7): [True: 43, False: 113k]
  ------------------
  805|     43|			return Error::UnsupportedVersion;
  806|   113k|		info.version = *version;
  807|       |
  808|   113k|		if (minVersionString) {
  ------------------
  |  Branch (808:7): [True: 71, False: 113k]
  ------------------
  809|     71|			auto minVersion = detail::parseVersionString(*minVersionString);
  810|     71|			if (minVersion.has_error())
  ------------------
  |  Branch (810:8): [True: 5, False: 66]
  ------------------
  811|      5|				return minVersion.error();
  812|     66|			if (*minVersion > Version { 2, 0 }) [[unlikely]]
  ------------------
  |  Branch (812:8): [True: 21, False: 45]
  ------------------
  813|     21|				return Error::UnsupportedVersion;
  814|     45|			info.minVersion = *minVersion;
  815|     45|		}
  816|   113k|		return Error::None;
  817|   113k|	}
_ZN8fastgltf12isValidIndexEm:
   95|  21.4k|	[[nodiscard]] FASTGLTF_FORCEINLINE bool isValidIndex(std::uint64_t idx) noexcept {
   96|  21.4k|		return isValidOptionalValue<std::size_t>(idx);
   97|  21.4k|	}
_ZN8fastgltf20isValidOptionalValueImQaa15has_flag_traitsIT_Eoosr3stdE13is_integral_vIS1_Esr3stdE9is_enum_vIS1_EEEbm:
   85|  21.4k|	[[nodiscard]] FASTGLTF_FORCEINLINE bool isValidOptionalValue(std::uint64_t value) noexcept {
   86|  21.4k|		const auto narrowed = static_cast<T>(value);
   87|  21.4k|		return static_cast<std::uint64_t>(narrowed) == value &&
  ------------------
  |  Branch (87:10): [True: 21.4k, False: 0]
  ------------------
   88|  21.4k|			!optional_flag_value<T>::is_empty(narrowed);
  ------------------
  |  Branch (88:4): [True: 21.4k, False: 1]
  ------------------
   89|  21.4k|	}
_ZN8fastgltf10readExtrasERKNS_20ParserInternalConfigEmNS_8CategoryE:
  500|  3.35M|			const std::size_t objectIndex, const Category category) {
  501|  3.35M|		return [&config, objectIndex, category](simdjson::ondemand::value value) {
  502|  3.35M|			if (config.extrasCallback == nullptr)
  503|  3.35M|				return simdjson::SUCCESS;
  504|       |
  505|  3.35M|			std::string_view extras;
  506|  3.35M|			if (const auto error = value.raw_json().get(extras); error != simdjson::SUCCESS) [[unlikely]]
  507|  3.35M|				return error;
  508|  3.35M|			config.extrasCallback(extras, objectIndex, category, config.userPointer);
  509|  3.35M|			return simdjson::SUCCESS;
  510|  3.35M|		};
  511|  3.35M|	}
_ZN8fastgltf13convertBoundsERKNS_21AccessorBoundsNumbersERKNS_8AccessorERNS_14basic_optionalINS_19AccessorBoundsArrayENS_15flagged_storageIS7_EEEE:
  974|   359k|			const Accessor& accessor, optional<AccessorBoundsArray>& out) {
  975|   359k|		const auto count = getNumComponents(accessor.type);
  976|   359k|		if (count == 0 || bounds.size != count) [[unlikely]]
  ------------------
  |  Branch (976:7): [True: 0, False: 359k]
  |  Branch (976:21): [True: 8, False: 359k]
  ------------------
  977|      8|			return Error::InvalidGltf;
  978|       |
  979|   359k|		if (isFloatingPoint(accessor.componentType)) {
  ------------------
  |  Branch (979:7): [True: 290k, False: 68.9k]
  ------------------
  980|   290k|			out = AccessorBoundsArray(count, AccessorBoundsArray::BoundsType::float64);
  981|   290k|			auto* data = out->data<double>();
  982|  1.06M|			for (std::size_t i = 0; i < count; ++i)
  ------------------
  |  Branch (982:28): [True: 772k, False: 290k]
  ------------------
  983|   772k|				data[i] = bounds.asDouble[i];
  984|   290k|			return Error::None;
  985|   290k|		}
  986|       |
  987|  68.9k|		out = AccessorBoundsArray(count, AccessorBoundsArray::BoundsType::int64);
  988|  68.9k|		auto* data = out->data<std::int64_t>();
  989|   239k|		for (std::size_t i = 0; i < count; ++i) {
  ------------------
  |  Branch (989:27): [True: 170k, False: 68.9k]
  ------------------
  990|   170k|			if (bounds.isIntMask & (1u << i)) {
  ------------------
  |  Branch (990:8): [True: 129k, False: 41.7k]
  ------------------
  991|   129k|				data[i] = bounds.asInt[i];
  992|   129k|				continue;
  993|   129k|			}
  994|       |
  995|       |			// Reject any values outside of the 2^63 range of std::int64_t.
  996|       |			// glTF doesn't care about integers larger than 32 bits anyway.
  997|  41.7k|			const auto value = bounds.asDouble[i];
  998|  41.7k|			if (!(value >= -0x1p63 && value < 0x1p63)) [[unlikely]]
  ------------------
  |  Branch (998:10): [True: 41.7k, False: 1]
  |  Branch (998:30): [True: 41.7k, False: 1]
  ------------------
  999|      2|				return Error::InvalidGltf;
 1000|  41.7k|			data[i] = static_cast<std::int64_t>(value);
 1001|  41.7k|		}
 1002|  68.9k|		return Error::None;
 1003|  68.9k|	}
parser.cpp:_ZZN8fastgltf6Parser11parseImagesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINS_7sources3URIEEEDaRT_:
 1589|  17.9k|				std::visit([&]<typename T>(T& arg) {
 1590|       |					// This is kinda cursed
 1591|       |					if constexpr (is_any_of_v<T, sources::CustomBuffer, sources::BufferView,
 1592|  17.9k|							sources::URI, sources::Array, sources::Vector>) {
 1593|  17.9k|						arg.mimeType = internal::getMimeTypeFromString(*mimeType);
 1594|  17.9k|					}
 1595|  17.9k|				}, image.data);
parser.cpp:_ZZN8fastgltf6Parser11parseImagesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINS_7sources5ArrayEEEDaRT_:
 1589|  2.37k|				std::visit([&]<typename T>(T& arg) {
 1590|       |					// This is kinda cursed
 1591|       |					if constexpr (is_any_of_v<T, sources::CustomBuffer, sources::BufferView,
 1592|  2.37k|							sources::URI, sources::Array, sources::Vector>) {
 1593|  2.37k|						arg.mimeType = internal::getMimeTypeFromString(*mimeType);
 1594|  2.37k|					}
 1595|  2.37k|				}, image.data);
parser.cpp:_ZZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINS_14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS9_EEEEEEDaRT_:
 1891|  1.04M|	const auto readTexture = [this](auto& out) {
 1892|  1.04M|		return readTextureInfo(out, config.extensions);
 1893|  1.04M|	};
_ZN8fastgltf15readTextureInfoINS_14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS2_EEEEEEDaRT_NS_10ExtensionsE:
  563|  1.14M|	[[nodiscard]] auto readTextureInfo(T& out, const Extensions extensions) {
  564|  1.14M|		return [&out, extensions](simdjson::ondemand::value value) {
  565|  1.14M|			return parseTextureInfo(value, out.emplace(), extensions);
  566|  1.14M|		};
  567|  1.14M|	}
parser.cpp:_ZZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINS_14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS9_NSt3__19allocatorIS9_EEEEEEEEDaRT_:
 1891|  1.04M|	const auto readTexture = [this](auto& out) {
 1892|  1.04M|		return readTextureInfo(out, config.extensions);
 1893|  1.04M|	};
_ZN8fastgltf15readTextureInfoINS_14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS2_NSt3__19allocatorIS2_EEEEEEEEDaRT_NS_10ExtensionsE:
  563|  1.04M|	[[nodiscard]] auto readTextureInfo(T& out, const Extensions extensions) {
  564|  1.04M|		return [&out, extensions](simdjson::ondemand::value value) {
  565|  1.04M|			return parseTextureInfo(value, out.emplace(), extensions);
  566|  1.04M|		};
  567|  1.04M|	}
parser.cpp:_ZZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINS_14basic_optionalINS_11TextureInfoENS_13boxed_storageIS9_NSt3__19allocatorIS9_EEEEEEEEDaRT_:
 1891|  1.04M|	const auto readTexture = [this](auto& out) {
 1892|  1.04M|		return readTextureInfo(out, config.extensions);
 1893|  1.04M|	};
_ZN8fastgltf15readTextureInfoINS_14basic_optionalINS_11TextureInfoENS_13boxed_storageIS2_NSt3__19allocatorIS2_EEEEEEEEDaRT_NS_10ExtensionsE:
  563|  1.04M|	[[nodiscard]] auto readTextureInfo(T& out, const Extensions extensions) {
  564|  1.04M|		return [&out, extensions](simdjson::ondemand::value value) {
  565|  1.04M|			return parseTextureInfo(value, out.emplace(), extensions);
  566|  1.04M|		};
  567|  1.04M|	}
parser.cpp:_ZZN8fastgltf6Parser11parseShapesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINSt3__18optionalINS_11SphereShapeEEEEEDaRKT_NS8_17basic_string_viewIcNS8_11char_traitsIcEEEE:
 2385|  92.8k|		const auto setShape = [&](const auto& properties, const std::string_view name) {
 2386|  92.8k|			if (properties)
  ------------------
  |  Branch (2386:8): [True: 21.2k, False: 71.5k]
  ------------------
 2387|  21.2k|				shape.data = *properties;
 2388|  92.8k|			return !properties || *type == name;
  ------------------
  |  Branch (2388:11): [True: 71.5k, False: 21.2k]
  |  Branch (2388:26): [True: 21.2k, False: 2]
  ------------------
 2389|  92.8k|		};
parser.cpp:_ZZN8fastgltf6Parser11parseShapesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINSt3__18optionalINS_8BoxShapeEEEEEDaRKT_NS8_17basic_string_viewIcNS8_11char_traitsIcEEEE:
 2385|  92.8k|		const auto setShape = [&](const auto& properties, const std::string_view name) {
 2386|  92.8k|			if (properties)
  ------------------
  |  Branch (2386:8): [True: 30, False: 92.7k]
  ------------------
 2387|     30|				shape.data = *properties;
 2388|  92.8k|			return !properties || *type == name;
  ------------------
  |  Branch (2388:11): [True: 92.7k, False: 30]
  |  Branch (2388:26): [True: 25, False: 5]
  ------------------
 2389|  92.8k|		};
parser.cpp:_ZZN8fastgltf6Parser11parseShapesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINSt3__18optionalINS_12CapsuleShapeEEEEEDaRKT_NS8_17basic_string_viewIcNS8_11char_traitsIcEEEE:
 2385|  92.8k|		const auto setShape = [&](const auto& properties, const std::string_view name) {
 2386|  92.8k|			if (properties)
  ------------------
  |  Branch (2386:8): [True: 15.2k, False: 77.5k]
  ------------------
 2387|  15.2k|				shape.data = *properties;
 2388|  92.8k|			return !properties || *type == name;
  ------------------
  |  Branch (2388:11): [True: 77.5k, False: 15.2k]
  |  Branch (2388:26): [True: 15.2k, False: 4]
  ------------------
 2389|  92.8k|		};
parser.cpp:_ZZN8fastgltf6Parser11parseShapesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINSt3__18optionalINS_13CylinderShapeEEEEEDaRKT_NS8_17basic_string_viewIcNS8_11char_traitsIcEEEE:
 2385|  92.8k|		const auto setShape = [&](const auto& properties, const std::string_view name) {
 2386|  92.8k|			if (properties)
  ------------------
  |  Branch (2386:8): [True: 8.03k, False: 84.7k]
  ------------------
 2387|  8.03k|				shape.data = *properties;
 2388|  92.8k|			return !properties || *type == name;
  ------------------
  |  Branch (2388:11): [True: 84.7k, False: 8.03k]
  |  Branch (2388:26): [True: 8.02k, False: 9]
  ------------------
 2389|  92.8k|		};
parser.cpp:_ZZN8fastgltf6Parser11parseShapesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINSt3__18optionalINS_10PlaneShapeEEEEEDaRKT_NS8_17basic_string_viewIcNS8_11char_traitsIcEEEE:
 2385|  92.8k|		const auto setShape = [&](const auto& properties, const std::string_view name) {
 2386|  92.8k|			if (properties)
  ------------------
  |  Branch (2386:8): [True: 25.6k, False: 67.1k]
  ------------------
 2387|  25.6k|				shape.data = *properties;
 2388|  92.8k|			return !properties || *type == name;
  ------------------
  |  Branch (2388:11): [True: 67.1k, False: 25.6k]
  |  Branch (2388:26): [True: 25.6k, False: 5]
  ------------------
 2389|  92.8k|		};
_ZN8fastgltf8internal16readBinaryHeaderERNS_14GltfDataGetterE:
   61|  75.4k|		[[nodiscard]] inline auto readBinaryHeader(GltfDataGetter& getter) noexcept {
   62|  75.4k|			std::array<std::byte, sizeof(BinaryGltfHeader)> bytes {};
   63|  75.4k|			getter.read(bytes.data(), bytes.size());
   64|       |
   65|  75.4k|			BinaryGltfHeader header {};
   66|  75.4k|			readUint32LE(header.magic, &bytes[offsetof(BinaryGltfHeader, magic)]);
   67|  75.4k|			readUint32LE(header.version, &bytes[offsetof(BinaryGltfHeader, version)]);
   68|       |			readUint32LE(header.length, &bytes[offsetof(BinaryGltfHeader, length)]);
   69|  75.4k|			return header;
   70|  75.4k|		}
_ZN8fastgltf8internal15readBinaryChunkERNS_14GltfDataGetterE:
   72|    465|		[[nodiscard]] inline auto readBinaryChunk(GltfDataGetter& getter) noexcept {
   73|    465|			std::array<std::byte, sizeof(BinaryGltfChunk)> bytes {};
   74|    465|			getter.read(bytes.data(), bytes.size());
   75|       |
   76|    465|			BinaryGltfChunk chunk {};
   77|    465|			readUint32LE(chunk.chunkLength, &bytes[offsetof(BinaryGltfChunk, chunkLength)]);
   78|       |			readUint32LE(chunk.chunkType, &bytes[offsetof(BinaryGltfChunk, chunkType)]);
   79|    465|			return chunk;
   80|    465|		}
parser.cpp:_ZZN8fastgltf6Parser5parseERNS_8internal10JsonObjectENS_8CategoryEENK3$_0clEN8simdjson8fallback8ondemand5valueE:
  831|   114k|		const auto readAsset = [&](ondemand::value assetInfo) -> error_code {
  832|   114k|			return assetInfo.get_object().for_each<"version", "minVersion", "copyright", "generator">(
  833|   114k|				version, minVersion, asset.assetInfo.copyright, asset.assetInfo.generator);
  834|   114k|		};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_8AccessorENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  19.1k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  19.1k|		std::size_t count;
  163|  19.1k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 16, False: 19.1k]
  ------------------
  164|     16|			return Error::InvalidJson;
  165|  19.1k|		vec.reserve(count);
  166|  19.1k|		return Error::None;
  167|  19.1k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEmEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf14basic_optionalIT0_NS8_15flagged_storageISA_EEEE:
  425|  3.20M|			fastgltf::flagged_optional<U>& out) noexcept {
  426|  3.20M|		U value;
  427|  3.20M|		if (const auto error = val.get(value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (427:42): [True: 153, False: 3.20M]
  ------------------
  428|    153|			return error;
  429|  3.20M|		if (fastgltf::optional_flag_value<U>::is_empty(value)) [[unlikely]]
  ------------------
  |  Branch (429:7): [True: 5, False: 3.20M]
  ------------------
  430|      5|			return NUMBER_OUT_OF_RANGE;
  431|  3.20M|		out = std::move(value);
  432|  3.20M|		return SUCCESS;
  433|  3.20M|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf13ComponentTypeE:
  275|   350k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::ComponentType& out) noexcept {
  276|   350k|		using namespace fastgltf;
  277|       |
  278|   350k|		std::underlying_type_t<fastgltf::ComponentType> value;
  279|   350k|		if (const auto error = val.get(value); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (279:42): [True: 145, False: 350k]
  ------------------
  280|    145|			return error;
  281|       |
  282|   350k|		out = fastgltf::internal::getComponentType(value);
  283|   350k|		if (out == ComponentType::Invalid) [[unlikely]] {
  ------------------
  |  Branch (283:7): [True: 20, False: 350k]
  ------------------
  284|     20|			return simdjson::INCORRECT_TYPE;
  285|     20|		}
  286|   350k|		return simdjson::SUCCESS;
  287|   350k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf12AccessorTypeE:
  266|   320k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::AccessorType& out) noexcept {
  267|   320k|		using enum fastgltf::AccessorType;
  268|   320k|		return fastgltf::readStringEnum<
  269|   320k|			"SCALAR", "VEC2", "VEC3", "VEC4", "MAT2", "MAT3", "MAT4">(
  270|   320k|			val, out,
  271|   320k|			{ Scalar, Vec2, Vec3, Vec4, Mat2, Mat3, Mat4 });
  272|   320k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm7EEEtlA7_cLc83ELc67ELc65ELc76ELc65ELc82EEEEXtlNS3_ILm5EEEtlA5_cLc86ELc69ELc67ELc50EEEEXtlS6_tlS7_Lc86ELc69ELc67ELc51EEEEXtlS6_tlS7_Lc86ELc69ELc67ELc52EEEEXtlS6_tlS7_Lc77ELc65ELc84ELc50EEEEXtlS6_tlS7_Lc77ELc65ELc84ELc51EEEEXtlS6_tlS7_Lc77ELc65ELc84ELc52EEEEENS1_8fallback8ondemand5valueENS_12AccessorTypeEEENS1_10error_codeERT0_RT1_RAsZT__KSF_:
  250|   320k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|   320k|		simdjson::ondemand::raw_json_string string;
  252|   320k|		if (const auto error = value.get_raw_json_string().get(string);
  253|   320k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 24, False: 320k]
  ------------------
  254|     24|			return error;
  255|       |
  256|   320k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|   320k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 32, False: 320k]
  ------------------
  258|     32|			return simdjson::INCORRECT_TYPE;
  259|   320k|		out = values[index];
  260|   320k|		return simdjson::SUCCESS;
  261|   320k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf21AccessorBoundsNumbersE:
 1009|   362k|			fastgltf::AccessorBoundsNumbers& out) noexcept {
 1010|   362k|		ondemand::array array;
 1011|   362k|		if (const auto error = val.get_array().get(array); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1011:54): [True: 5, False: 362k]
  ------------------
 1012|      5|			return error;
 1013|       |
 1014|   362k|		out.present = true;
 1015|   950k|		for (auto element : array) {
  ------------------
  |  Branch (1015:21): [True: 950k, False: 360k]
  ------------------
 1016|       |			// No accessor type has more than 16 components.
 1017|   950k|			if (out.size == out.asDouble.size()) [[unlikely]]
  ------------------
  |  Branch (1017:8): [True: 38, False: 950k]
  ------------------
 1018|     38|				return INCORRECT_TYPE;
 1019|   950k|			ondemand::number number;
 1020|   950k|			if (const auto error = element.get_number().get(number);
 1021|   950k|				error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1021:5): [True: 1.44k, False: 949k]
  ------------------
 1022|  1.44k|				return error;
 1023|   949k|			const auto i = out.size++;
 1024|   949k|			out.asDouble[i] = number.as_double();
 1025|   949k|			if (number.is_int64()) {
  ------------------
  |  Branch (1025:8): [True: 256k, False: 692k]
  ------------------
 1026|   256k|				out.asInt[i] = number.get_int64();
 1027|   256k|				out.isIntMask |= 1u << i;
 1028|   256k|			}
 1029|   949k|		}
 1030|   360k|		return SUCCESS;
 1031|   362k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEN8fastgltf14SparseAccessorEEENS_10error_codeENS_15deserialize_tagERT_RNS4_14basic_optionalIT0_NS4_13boxed_storageISB_NSt3__19allocatorISB_EEEEEE:
  437|  30.3k|		fastgltf::boxed_optional<U>& out) {
  438|  30.3k|		return val.get(out.emplace());
  439|  30.3k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf14SparseAccessorE:
 1034|  30.3k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::SparseAccessor& out) {
 1035|  30.3k|		using namespace fastgltf;
 1036|       |
 1037|  30.3k|		fastgltf::optional<std::size_t> count, indicesBufferView, valuesBufferView;
 1038|  30.3k|		std::optional<ComponentType> indexComponentType;
 1039|       |
 1040|  30.3k|		const auto readIndices = [&](ondemand::value indices) -> error_code {
 1041|  30.3k|			return indices.get_object().for_each<"bufferView", "byteOffset", "componentType">(
 1042|  30.3k|				indicesBufferView, out.indicesByteOffset, indexComponentType);
 1043|  30.3k|		};
 1044|  30.3k|		const auto readValues = [&](ondemand::value values) -> error_code {
 1045|  30.3k|			return values.get_object().for_each<"bufferView", "byteOffset">(
 1046|  30.3k|				valuesBufferView, out.valuesByteOffset);
 1047|  30.3k|		};
 1048|       |
 1049|  30.3k|		const auto error = val.get_object().template for_each<"count", "indices", "values">(
 1050|  30.3k|			count, readIndices, readValues);
 1051|  30.3k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1051:7): [True: 360, False: 30.0k]
  ------------------
 1052|    360|			return error;
 1053|       |
 1054|  30.0k|		if (!count || !indicesBufferView || !valuesBufferView || !indexComponentType) [[unlikely]]
  ------------------
  |  Branch (1054:7): [True: 30, False: 29.9k]
  |  Branch (1054:17): [True: 42, False: 29.9k]
  |  Branch (1054:39): [True: 9, False: 29.9k]
  |  Branch (1054:60): [True: 15, False: 29.9k]
  ------------------
 1055|     96|			return NO_SUCH_FIELD;
 1056|       |
 1057|  29.9k|		out.count = *count;
 1058|  29.9k|		out.indicesBufferView = *indicesBufferView;
 1059|  29.9k|		out.valuesBufferView = *valuesBufferView;
 1060|  29.9k|		out.indexComponentType = *indexComponentType;
 1061|  29.9k|		return SUCCESS;
 1062|  30.0k|	}
parser.cpp:_ZZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf14SparseAccessorEENKUlS3_E_clES3_:
 1040|  30.1k|		const auto readIndices = [&](ondemand::value indices) -> error_code {
 1041|  30.1k|			return indices.get_object().for_each<"bufferView", "byteOffset", "componentType">(
 1042|  30.1k|				indicesBufferView, out.indicesByteOffset, indexComponentType);
 1043|  30.1k|		};
parser.cpp:_ZZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf14SparseAccessorEENKUlS3_E0_clES3_:
 1044|  30.0k|		const auto readValues = [&](ondemand::value values) -> error_code {
 1045|  30.0k|			return values.get_object().for_each<"bufferView", "byteOffset">(
 1046|  30.0k|				valuesBufferView, out.valuesByteOffset);
 1047|  30.0k|		};
_ZZN8fastgltf10readExtrasERKNS_20ParserInternalConfigEmNS_8CategoryEENKUlN8simdjson8fallback8ondemand5valueEE_clES7_:
  501|  25.6k|		return [&config, objectIndex, category](simdjson::ondemand::value value) {
  502|  25.6k|			if (config.extrasCallback == nullptr)
  ------------------
  |  Branch (502:8): [True: 25.6k, False: 0]
  ------------------
  503|  25.6k|				return simdjson::SUCCESS;
  504|       |
  505|      0|			std::string_view extras;
  506|      0|			if (const auto error = value.raw_json().get(extras); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (506:57): [True: 0, False: 0]
  ------------------
  507|      0|				return error;
  508|      0|			config.extrasCallback(extras, objectIndex, category, config.userPointer);
  509|      0|			return simdjson::SUCCESS;
  510|      0|		};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_9AnimationENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  2.37k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  2.37k|		std::size_t count;
  163|  2.37k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 10, False: 2.36k]
  ------------------
  164|     10|			return Error::InvalidJson;
  165|  2.36k|		vec.reserve(count);
  166|  2.36k|		return Error::None;
  167|  2.37k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf16AnimationChannelE:
 1128|  69.7k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::AnimationChannel& out) {
 1129|  69.7k|		using namespace fastgltf;
 1130|       |
 1131|  69.7k|		fastgltf::optional<std::size_t> sampler;
 1132|       |		// path may be any string: extensions such as KHR_animation_pointer define their own
 1133|       |		// values ("pointer"). Unknown values must not make the whole asset invalid.
 1134|  69.7k|		std::optional<std::string_view> path;
 1135|       |
 1136|       |		// When node isn't defined, the channel SHOULD be ignored. That's left to the user.
 1137|  69.7k|		const auto readTarget = [&](ondemand::value target) -> error_code {
 1138|  69.7k|			return target.get_object().for_each<"node", "path">(out.nodeIndex, path);
 1139|  69.7k|		};
 1140|       |
 1141|  69.7k|		const auto error = val.get_object().template for_each<"sampler", "target">(
 1142|  69.7k|			sampler, readTarget);
 1143|  69.7k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1143:7): [True: 166, False: 69.6k]
  ------------------
 1144|    166|			return error;
 1145|       |
 1146|  69.6k|		if (!sampler || !path) [[unlikely]]
  ------------------
  |  Branch (1146:7): [True: 85, False: 69.5k]
  |  Branch (1146:19): [True: 16, False: 69.5k]
  ------------------
 1147|    101|			return NO_SUCH_FIELD;
 1148|       |
 1149|  69.5k|		out.samplerIndex = *sampler;
 1150|  69.5k|		if (*path == "translation") {
  ------------------
  |  Branch (1150:7): [True: 12.4k, False: 57.1k]
  ------------------
 1151|  12.4k|			out.path = AnimationPath::Translation;
 1152|  57.1k|		} else if (*path == "rotation") {
  ------------------
  |  Branch (1152:14): [True: 31.9k, False: 25.1k]
  ------------------
 1153|  31.9k|			out.path = AnimationPath::Rotation;
 1154|  31.9k|		} else if (*path == "scale") {
  ------------------
  |  Branch (1154:14): [True: 12.7k, False: 12.4k]
  ------------------
 1155|  12.7k|			out.path = AnimationPath::Scale;
 1156|  12.7k|		} else if (*path == "weights") {
  ------------------
  |  Branch (1156:14): [True: 507, False: 11.9k]
  ------------------
 1157|    507|			out.path = AnimationPath::Weights;
 1158|    507|		}
 1159|  69.5k|		return SUCCESS;
 1160|  69.6k|	}
parser.cpp:_ZZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf16AnimationChannelEENKUlS3_E_clES3_:
 1137|  69.6k|		const auto readTarget = [&](ondemand::value target) -> error_code {
 1138|  69.6k|			return target.get_object().for_each<"node", "path">(out.nodeIndex, path);
 1139|  69.6k|		};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf16AnimationSamplerE:
 1163|  73.9k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::AnimationSampler& out) {
 1164|  73.9k|		fastgltf::optional<std::size_t> input, output;
 1165|       |
 1166|  73.9k|		const auto error = val.get_object().template for_each<
 1167|  73.9k|			"input", "interpolation", "output">(
 1168|  73.9k|			input, out.interpolation, output);
 1169|  73.9k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1169:7): [True: 139, False: 73.8k]
  ------------------
 1170|    139|			return error;
 1171|       |
 1172|  73.8k|		if (!input || !output) [[unlikely]]
  ------------------
  |  Branch (1172:7): [True: 39, False: 73.7k]
  |  Branch (1172:17): [True: 10, False: 73.7k]
  ------------------
 1173|     49|			return NO_SUCH_FIELD;
 1174|       |
 1175|  73.7k|		out.inputAccessor = *input;
 1176|  73.7k|		out.outputAccessor = *output;
 1177|  73.7k|		return SUCCESS;
 1178|  73.8k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf22AnimationInterpolationE:
  376|  43.2k|			fastgltf::AnimationInterpolation& out) noexcept {
  377|  43.2k|		using enum fastgltf::AnimationInterpolation;
  378|  43.2k|		return fastgltf::readStringEnum<
  379|  43.2k|			"LINEAR", "STEP", "CUBICSPLINE">(
  380|  43.2k|			val, out,
  381|  43.2k|			{ Linear, Step, CubicSpline });
  382|  43.2k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm7EEEtlA7_cLc76ELc73ELc78ELc69ELc65ELc82EEEEXtlNS3_ILm5EEEtlA5_cLc83ELc84ELc69ELc80EEEEXtlNS3_ILm12EEEtlA12_cLc67ELc85ELc66ELc73ELc67ELc83ELc80ELc76ELc73ELc78ELc69EEEEENS1_8fallback8ondemand5valueENS_22AnimationInterpolationEEENS1_10error_codeERT0_RT1_RAsZT__KSH_:
  250|  43.2k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|  43.2k|		simdjson::ondemand::raw_json_string string;
  252|  43.2k|		if (const auto error = value.get_raw_json_string().get(string);
  253|  43.2k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 1, False: 43.2k]
  ------------------
  254|      1|			return error;
  255|       |
  256|  43.2k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|  43.2k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 12, False: 43.2k]
  ------------------
  258|     12|			return simdjson::INCORRECT_TYPE;
  259|  43.2k|		out = values[index];
  260|  43.2k|		return simdjson::SUCCESS;
  261|  43.2k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_6BufferENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  18.3k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  18.3k|		std::size_t count;
  163|  18.3k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 21, False: 18.3k]
  ------------------
  164|     21|			return Error::InvalidJson;
  165|  18.3k|		vec.reserve(count);
  166|  18.3k|		return Error::None;
  167|  18.3k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_10BufferViewENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  12.1k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  12.1k|		std::size_t count;
  163|  12.1k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 9, False: 12.1k]
  ------------------
  164|      9|			return Error::InvalidJson;
  165|  12.1k|		vec.reserve(count);
  166|  12.1k|		return Error::None;
  167|  12.1k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEN8fastgltf12BufferTargetEEENS_10error_codeENS_15deserialize_tagERT_RNS4_14basic_optionalIT0_NS4_15flagged_storageISB_EEEE:
  425|   138k|			fastgltf::flagged_optional<U>& out) noexcept {
  426|   138k|		U value;
  427|   138k|		if (const auto error = val.get(value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (427:42): [True: 155, False: 138k]
  ------------------
  428|    155|			return error;
  429|   138k|		if (fastgltf::optional_flag_value<U>::is_empty(value)) [[unlikely]]
  ------------------
  |  Branch (429:7): [True: 0, False: 138k]
  ------------------
  430|      0|			return NUMBER_OUT_OF_RANGE;
  431|   138k|		out = std::move(value);
  432|   138k|		return SUCCESS;
  433|   138k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf12BufferTargetE:
  304|   138k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::BufferTarget& out) noexcept {
  305|   138k|		using namespace fastgltf;
  306|       |
  307|   138k|		std::uint64_t value;
  308|   138k|		if (const auto error = val.get_uint64().get(value); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (308:55): [True: 43, False: 138k]
  ------------------
  309|     43|			return error;
  310|       |
  311|   138k|		if (!toEnum(value, out)) [[unlikely]] {
  ------------------
  |  Branch (311:7): [True: 112, False: 138k]
  ------------------
  312|    112|			return simdjson::INCORRECT_TYPE;
  313|    112|		}
  314|   138k|		return simdjson::SUCCESS;
  315|   138k|	}
_ZN8fastgltf6toEnumINS_12BufferTargetEQsr3stdE9is_enum_vIT_EEEbmRS2_:
  144|   138k|	[[nodiscard]] FASTGLTF_FORCEINLINE bool toEnum(const std::uint64_t in, T& out) noexcept {
  145|   138k|		out = static_cast<T>(in);
  146|   138k|		return static_cast<std::uint64_t>(out) == in && isValidEnum(out);
  ------------------
  |  Branch (146:10): [True: 138k, False: 94]
  |  Branch (146:51): [True: 138k, False: 18]
  ------------------
  147|   138k|	}
_ZN8fastgltf11isValidEnumENS_12BufferTargetE:
  112|   138k|	[[nodiscard]] inline bool isValidEnum(BufferTarget value) noexcept {
  113|   138k|		switch (value) {
  ------------------
  |  Branch (113:11): [True: 138k, False: 18]
  ------------------
  114|  93.8k|			case BufferTarget::ArrayBuffer:
  ------------------
  |  Branch (114:4): [True: 93.8k, False: 44.8k]
  ------------------
  115|   138k|			case BufferTarget::ElementArrayBuffer:
  ------------------
  |  Branch (115:4): [True: 44.8k, False: 93.8k]
  ------------------
  116|   138k|				return true;
  117|   138k|		}
  118|     18|		return false;
  119|   138k|	}
parser.cpp:_ZZN8fastgltf6Parser16parseBufferViewsERNS_8internal9JsonArrayERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 1350|  51.2k|		const auto readExtensions = [&](ondemand::value extensions) -> error_code {
 1351|  51.2k|			return extensions.get_object().for_each<
 1352|  51.2k|				"KHR_meshopt_compression", "EXT_meshopt_compression">(
 1353|  51.2k|				readMeshoptCompression(Extensions::KHR_meshopt_compression, khrCompression),
 1354|  51.2k|				readMeshoptCompression(Extensions::EXT_meshopt_compression, extCompression));
 1355|  51.2k|		};
parser.cpp:_ZZZN8fastgltf6Parser16parseBufferViewsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clENS_10ExtensionsERNSt3__18optionalINS_20CompressedBufferViewEEEENKUlN8simdjson8fallback8ondemand5valueEE_clESG_:
 1333|  45.7k|		return [enabled = hasBit(config.extensions, extension), &out](ondemand::value value) {
 1334|  45.7k|			return enabled ? value.get(out.emplace()) : SUCCESS;
  ------------------
  |  Branch (1334:11): [True: 45.7k, False: 0]
  ------------------
 1335|  45.7k|		};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf20CompressedBufferViewE:
 1299|  45.7k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::CompressedBufferView& out) {
 1300|  45.7k|		using namespace fastgltf;
 1301|       |
 1302|  45.7k|		fastgltf::optional<std::size_t> buffer, byteLength, byteStride, count;
 1303|  45.7k|		std::optional<MeshoptCompressionMode> mode;
 1304|       |
 1305|  45.7k|		out.byteOffset = 0;
 1306|  45.7k|		out.filter = MeshoptCompressionFilter::None;
 1307|       |
 1308|  45.7k|		const auto error = val.get_object().template for_each<
 1309|  45.7k|			"buffer", "byteOffset", "byteLength", "byteStride",
 1310|  45.7k|			"count", "mode", "filter">(
 1311|  45.7k|			buffer, out.byteOffset, byteLength, byteStride,
 1312|  45.7k|			count, mode, out.filter);
 1313|  45.7k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1313:7): [True: 240, False: 45.4k]
  ------------------
 1314|    240|			return error;
 1315|  45.4k|		if (!buffer || !byteLength || !byteStride || !count || !mode) [[unlikely]]
  ------------------
  |  Branch (1315:7): [True: 50, False: 45.4k]
  |  Branch (1315:18): [True: 16, False: 45.4k]
  |  Branch (1315:33): [True: 3, False: 45.4k]
  |  Branch (1315:48): [True: 1, False: 45.4k]
  |  Branch (1315:58): [True: 2, False: 45.4k]
  ------------------
 1316|     72|			return NO_SUCH_FIELD;
 1317|       |
 1318|  45.4k|		out.bufferIndex = *buffer;
 1319|  45.4k|		out.byteLength = *byteLength;
 1320|  45.4k|		out.byteStride = *byteStride;
 1321|  45.4k|		out.count = *count;
 1322|  45.4k|		out.mode = *mode;
 1323|  45.4k|		return SUCCESS;
 1324|  45.4k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf22MeshoptCompressionModeE:
  319|  45.4k|			fastgltf::MeshoptCompressionMode& out) noexcept {
  320|  45.4k|		using enum fastgltf::MeshoptCompressionMode;
  321|  45.4k|		return fastgltf::readStringEnum<
  322|  45.4k|			"ATTRIBUTES", "TRIANGLES", "INDICES">(
  323|  45.4k|			val, out,
  324|  45.4k|			{ Attributes, Triangles, Indices });
  325|  45.4k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm11EEEtlA11_cLc65ELc84ELc84ELc82ELc73ELc66ELc85ELc84ELc69ELc83EEEEXtlNS3_ILm10EEEtlA10_cLc84ELc82ELc73ELc65ELc78ELc71ELc76ELc69ELc83EEEEXtlNS3_ILm8EEEtlA8_cLc73ELc78ELc68ELc73ELc67ELc69ELc83EEEEENS1_8fallback8ondemand5valueENS_22MeshoptCompressionModeEEENS1_10error_codeERT0_RT1_RAsZT__KSH_:
  250|  45.4k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|  45.4k|		simdjson::ondemand::raw_json_string string;
  252|  45.4k|		if (const auto error = value.get_raw_json_string().get(string);
  253|  45.4k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 1, False: 45.4k]
  ------------------
  254|      1|			return error;
  255|       |
  256|  45.4k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|  45.4k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 9, False: 45.4k]
  ------------------
  258|      9|			return simdjson::INCORRECT_TYPE;
  259|  45.4k|		out = values[index];
  260|  45.4k|		return simdjson::SUCCESS;
  261|  45.4k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf24MeshoptCompressionFilterE:
  329|  9.65k|			fastgltf::MeshoptCompressionFilter& out) noexcept {
  330|  9.65k|		using enum fastgltf::MeshoptCompressionFilter;
  331|  9.65k|		return fastgltf::readStringEnum<
  332|  9.65k|			"NONE", "OCTAHEDRAL", "QUATERNION", "EXPONENTIAL", "COLOR">(
  333|  9.65k|			val, out,
  334|  9.65k|			{ None, Octahedral, Quaternion, Exponential, Color });
  335|  9.65k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm5EEEtlA5_cLc78ELc79ELc78ELc69EEEEXtlNS3_ILm11EEEtlA11_cLc79ELc67ELc84ELc65ELc72ELc69ELc68ELc82ELc65ELc76EEEEXtlS6_tlS7_Lc81ELc85ELc65ELc84ELc69ELc82ELc78ELc73ELc79ELc78EEEEXtlNS3_ILm12EEEtlA12_cLc69ELc88ELc80ELc79ELc78ELc69ELc78ELc84ELc73ELc65ELc76EEEEXtlNS3_ILm6EEEtlA6_cLc67ELc79ELc76ELc79ELc82EEEEENS1_8fallback8ondemand5valueENS_24MeshoptCompressionFilterEEENS1_10error_codeERT0_RT1_RAsZT__KSJ_:
  250|  9.65k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|  9.65k|		simdjson::ondemand::raw_json_string string;
  252|  9.65k|		if (const auto error = value.get_raw_json_string().get(string);
  253|  9.65k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 1, False: 9.65k]
  ------------------
  254|      1|			return error;
  255|       |
  256|  9.65k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|  9.65k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 11, False: 9.64k]
  ------------------
  258|     11|			return simdjson::INCORRECT_TYPE;
  259|  9.64k|		out = values[index];
  260|  9.64k|		return simdjson::SUCCESS;
  261|  9.65k|	}
parser.cpp:_ZZN8fastgltf6Parser16parseBufferViewsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clENS_10ExtensionsERNSt3__18optionalINS_20CompressedBufferViewEEE:
 1332|   102k|			std::optional<CompressedBufferView>& out) {
 1333|   102k|		return [enabled = hasBit(config.extensions, extension), &out](ondemand::value value) {
 1334|   102k|			return enabled ? value.get(out.emplace()) : SUCCESS;
 1335|   102k|		};
 1336|   102k|	};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_6CameraENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  2.74k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  2.74k|		std::size_t count;
  163|  2.74k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 10, False: 2.73k]
  ------------------
  164|     10|			return Error::InvalidJson;
  165|  2.73k|		vec.reserve(count);
  166|  2.73k|		return Error::None;
  167|  2.74k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf6Camera11PerspectiveE:
 1384|  17.9k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Camera::Perspective& out) {
 1385|  17.9k|		fastgltf::optional<fastgltf::num> yfov, znear;
 1386|       |
 1387|  17.9k|		const auto error = val.get_object().template for_each<
 1388|  17.9k|			"aspectRatio", "yfov", "zfar", "znear">(
 1389|  17.9k|			out.aspectRatio, yfov, out.zfar, znear);
 1390|  17.9k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1390:7): [True: 347, False: 17.5k]
  ------------------
 1391|    347|			return error;
 1392|       |
 1393|  17.5k|		if (!yfov || !znear) [[unlikely]]
  ------------------
  |  Branch (1393:7): [True: 47, False: 17.5k]
  |  Branch (1393:16): [True: 84, False: 17.4k]
  ------------------
 1394|    131|			return NO_SUCH_FIELD;
 1395|       |
 1396|  17.4k|		out.yfov = *yfov;
 1397|  17.4k|		out.znear = *znear;
 1398|  17.4k|		return SUCCESS;
 1399|  17.5k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEfEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf14basic_optionalIT0_NS8_15flagged_storageISA_EEEE:
  425|   174k|			fastgltf::flagged_optional<U>& out) noexcept {
  426|   174k|		U value;
  427|   174k|		if (const auto error = val.get(value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (427:42): [True: 116, False: 173k]
  ------------------
  428|    116|			return error;
  429|   173k|		if (fastgltf::optional_flag_value<U>::is_empty(value)) [[unlikely]]
  ------------------
  |  Branch (429:7): [True: 0, False: 173k]
  ------------------
  430|      0|			return NUMBER_OUT_OF_RANGE;
  431|   173k|		out = std::move(value);
  432|   173k|		return SUCCESS;
  433|   173k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf6Camera12OrthographicE:
 1402|  23.0k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Camera::Orthographic& out) {
 1403|  23.0k|		fastgltf::optional<fastgltf::num> xmag, ymag, zfar, znear;
 1404|       |
 1405|  23.0k|		const auto error = val.get_object().template for_each<
 1406|  23.0k|			"xmag", "ymag", "zfar", "znear">(
 1407|  23.0k|			xmag, ymag, zfar, znear);
 1408|  23.0k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1408:7): [True: 136, False: 22.9k]
  ------------------
 1409|    136|			return error;
 1410|       |
 1411|  22.9k|		if (!xmag || !ymag || !zfar || !znear) [[unlikely]]
  ------------------
  |  Branch (1411:7): [True: 20, False: 22.9k]
  |  Branch (1411:16): [True: 12, False: 22.9k]
  |  Branch (1411:25): [True: 9, False: 22.9k]
  |  Branch (1411:34): [True: 13, False: 22.8k]
  ------------------
 1412|     54|			return NO_SUCH_FIELD;
 1413|       |
 1414|  22.8k|		out.xmag = *xmag;
 1415|  22.8k|		out.ymag = *ymag;
 1416|  22.8k|		out.zfar = *zfar;
 1417|  22.8k|		out.znear = *znear;
 1418|  22.8k|		return SUCCESS;
 1419|  22.9k|	}
parser.cpp:_ZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_4clEN8simdjson8fallback8ondemand5valueE:
 1471|  4.83k|	const auto readLights = [&](ondemand::value value) -> error_code {
 1472|  4.83k|		if (!hasBit(config.extensions, Extensions::KHR_lights_punctual))
  ------------------
  |  Branch (1472:7): [True: 0, False: 4.83k]
  ------------------
 1473|      0|			return SUCCESS;
 1474|  4.83k|		return value.get_object().for_each<"lights">(readArray(&Parser::parseLights));
 1475|  4.83k|	};
parser.cpp:_ZZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_0clEMS0_FNS_5ErrorERNS1_9JsonArrayES5_EENKUlN8simdjson8fallback8ondemand5valueEE_clESF_:
 1463|  31.0k|		return [this, &asset, parseFunction](ondemand::value value) {
 1464|  31.0k|			internal::JsonArray array;
 1465|  31.0k|			if (const auto error = value.get(array.value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1465:51): [True: 11, False: 31.0k]
  ------------------
 1466|     11|				return error;
 1467|  31.0k|			return toErrorCode((this->*parseFunction)(array, asset));
 1468|  31.0k|		};
_ZN8fastgltf11toErrorCodeENS_5ErrorE:
  189|   973k|	[[nodiscard]] constexpr simdjson::error_code toErrorCode(const Error error) noexcept {
  190|   973k|		switch (error) {
  191|   964k|			case Error::None:
  ------------------
  |  Branch (191:4): [True: 964k, False: 8.56k]
  ------------------
  192|   964k|				return simdjson::SUCCESS;
  193|  1.47k|			case Error::InvalidGltf:
  ------------------
  |  Branch (193:4): [True: 1.47k, False: 972k]
  ------------------
  194|  1.47k|				return simdjson::INCORRECT_TYPE;
  195|      5|			case Error::ValueOutOfRange:
  ------------------
  |  Branch (195:4): [True: 5, False: 973k]
  ------------------
  196|      5|				return simdjson::NUMBER_OUT_OF_RANGE;
  197|  7.08k|			default:
  ------------------
  |  Branch (197:4): [True: 7.08k, False: 966k]
  ------------------
  198|  7.08k|				return simdjson::UNEXPECTED_ERROR;
  199|   973k|		}
  200|   973k|	}
parser.cpp:_ZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_0clEMS0_FNS_5ErrorERNS1_9JsonArrayES5_E:
 1462|  64.7k|	const auto readArray = [&](Error (Parser::*parseFunction)(internal::JsonArray&, Asset&)) {
 1463|  64.7k|		return [this, &asset, parseFunction](ondemand::value value) {
 1464|  64.7k|			internal::JsonArray array;
 1465|  64.7k|			if (const auto error = value.get(array.value); error != SUCCESS) [[unlikely]]
 1466|  64.7k|				return error;
 1467|  64.7k|			return toErrorCode((this->*parseFunction)(array, asset));
 1468|  64.7k|		};
 1469|  64.7k|	};
parser.cpp:_ZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 1477|  4.51k|	const auto readVariants = [&](ondemand::value value) -> error_code {
 1478|  4.51k|		if (!hasBit(config.extensions, Extensions::KHR_materials_variants))
  ------------------
  |  Branch (1478:7): [True: 0, False: 4.51k]
  ------------------
 1479|      0|			return SUCCESS;
 1480|       |
 1481|  4.51k|		const auto readVariant = [&](ondemand::value variant) -> error_code {
 1482|  4.51k|			std::optional<std::string> name;
 1483|  4.51k|			if (const auto error = variant.get_object().for_each<"name">(name);
 1484|  4.51k|				error != SUCCESS) [[unlikely]]
 1485|  4.51k|				return error;
 1486|  4.51k|			if (!name) [[unlikely]]
 1487|  4.51k|				return NO_SUCH_FIELD;
 1488|  4.51k|			asset.materialVariants.emplace_back(std::move(*name));
 1489|  4.51k|			return SUCCESS;
 1490|  4.51k|		};
 1491|  4.51k|		const auto readVariantArray = [&](ondemand::value variants) {
 1492|  4.51k|			return parseArray(variants, asset.materialVariants, readVariant);
 1493|  4.51k|		};
 1494|       |
 1495|  4.51k|		if (const auto error = value.get_object().for_each<"variants">(readVariantArray);
 1496|  4.51k|			error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1496:4): [True: 143, False: 4.37k]
  ------------------
 1497|    143|			return error;
 1498|  4.37k|		if (asset.materialVariants.empty()) [[unlikely]]
  ------------------
  |  Branch (1498:7): [True: 22, False: 4.35k]
  ------------------
 1499|     22|			return NO_SUCH_FIELD;
 1500|  4.35k|		return SUCCESS;
 1501|  4.37k|	};
parser.cpp:_ZZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueEENKUlSA_E0_clESA_:
 1491|  3.96k|		const auto readVariantArray = [&](ondemand::value variants) {
 1492|  3.96k|			return parseArray(variants, asset.materialVariants, readVariant);
 1493|  3.96k|		};
parser.cpp:_ZN8fastgltf10parseArrayINSt3__16vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS6_IS8_EEEERKZZNS_6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueEEUlSL_E_EENSI_10error_codeESL_RT_OT0_:
  205|  3.96k|			F&& func) {
  206|  3.96k|		simdjson::ondemand::array array;
  207|  3.96k|		if (const auto error = value.get_array().get(array); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (207:56): [True: 1, False: 3.96k]
  ------------------
  208|      1|			return error;
  209|       |
  210|  3.96k|		std::size_t count;
  211|  3.96k|		if (const auto error = array.count_elements().get(count); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (211:61): [True: 20, False: 3.94k]
  ------------------
  212|     20|			return error;
  213|  3.94k|		vec.reserve(count);
  214|       |
  215|  21.0k|		for (auto element : array) {
  ------------------
  |  Branch (215:21): [True: 21.0k, False: 3.85k]
  ------------------
  216|  21.0k|			simdjson::ondemand::value elementValue;
  217|  21.0k|			if (const auto error = element.get(elementValue); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (217:54): [True: 4, False: 21.0k]
  ------------------
  218|      4|				return error;
  219|  21.0k|			if (const auto error = func(elementValue); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (219:47): [True: 81, False: 20.9k]
  ------------------
  220|     81|				return error;
  221|  21.0k|		}
  222|  3.85k|		return simdjson::SUCCESS;
  223|  3.94k|	}
parser.cpp:_ZZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueEENKUlSA_E_clESA_:
 1481|  21.0k|		const auto readVariant = [&](ondemand::value variant) -> error_code {
 1482|  21.0k|			std::optional<std::string> name;
 1483|  21.0k|			if (const auto error = variant.get_object().for_each<"name">(name);
 1484|  21.0k|				error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1484:5): [True: 57, False: 20.9k]
  ------------------
 1485|     57|				return error;
 1486|  20.9k|			if (!name) [[unlikely]]
  ------------------
  |  Branch (1486:8): [True: 24, False: 20.9k]
  ------------------
 1487|     24|				return NO_SUCH_FIELD;
 1488|  20.9k|			asset.materialVariants.emplace_back(std::move(*name));
 1489|  20.9k|			return SUCCESS;
 1490|  20.9k|		};
parser.cpp:_ZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_3clEN8simdjson8fallback8ondemand5valueE:
 1503|  13.6k|	const auto readShapes = [&](ondemand::value value) -> error_code {
 1504|  13.6k|		if (!hasBit(config.extensions, Extensions::KHR_implicit_shapes))
  ------------------
  |  Branch (1504:7): [True: 0, False: 13.6k]
  ------------------
 1505|      0|			return SUCCESS;
 1506|       |
 1507|  13.6k|		const auto error = value.get_object().for_each<"shapes">(
 1508|  13.6k|			readArray(&Parser::parseShapes));
 1509|  13.6k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1509:7): [True: 1.69k, False: 11.9k]
  ------------------
 1510|  1.69k|			return error;
 1511|  11.9k|		if (asset.shapes.empty()) [[unlikely]]
  ------------------
  |  Branch (1511:7): [True: 18, False: 11.9k]
  ------------------
 1512|     18|			return NO_SUCH_FIELD;
 1513|  11.9k|		return SUCCESS;
 1514|  11.9k|	};
parser.cpp:_ZZN8fastgltf6Parser15parseExtensionsERNS_8internal10JsonObjectERNS_5AssetEENK3$_2clEN8simdjson8fallback8ondemand5valueE:
 1516|  15.4k|	const auto readPhysics = [&](ondemand::value value) -> error_code {
 1517|  15.4k|		if (!hasBit(config.extensions, Extensions::KHR_physics_rigid_bodies))
  ------------------
  |  Branch (1517:7): [True: 0, False: 15.4k]
  ------------------
 1518|      0|			return SUCCESS;
 1519|  15.4k|		return value.get_object().for_each<
 1520|  15.4k|			"physicsMaterials",
 1521|  15.4k|			"collisionFilters",
 1522|  15.4k|			"physicsJoints">(
 1523|  15.4k|			readArray(&Parser::parsePhysicsMaterials),
 1524|  15.4k|			readArray(&Parser::parseCollisionFilters),
 1525|  15.4k|			readArray(&Parser::parsePhysicsJoints));
 1526|  15.4k|	};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_5ImageENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  18.1k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  18.1k|		std::size_t count;
  163|  18.1k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 18, False: 18.1k]
  ------------------
  164|     18|			return Error::InvalidJson;
  165|  18.1k|		vec.reserve(count);
  166|  18.1k|		return Error::None;
  167|  18.1k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_5LightENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  3.71k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  3.71k|		std::size_t count;
  163|  3.71k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 13, False: 3.69k]
  ------------------
  164|     13|			return Error::InvalidJson;
  165|  3.69k|		vec.reserve(count);
  166|  3.69k|		return Error::None;
  167|  3.71k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf9LightTypeE:
  385|  48.1k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::LightType& out) noexcept {
  386|  48.1k|		using enum fastgltf::LightType;
  387|  48.1k|		return fastgltf::readStringEnum<
  388|  48.1k|			"directional", "spot", "point">(
  389|  48.1k|			val, out,
  390|  48.1k|			{ Directional, Spot, Point });
  391|  48.1k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm12EEEtlA12_cLc100ELc105ELc114ELc101ELc99ELc116ELc105ELc111ELc110ELc97ELc108EEEEXtlNS3_ILm5EEEtlA5_cLc115ELc112ELc111ELc116EEEEXtlNS3_ILm6EEEtlA6_cLc112ELc111ELc105ELc110ELc116EEEEENS1_8fallback8ondemand5valueENS_9LightTypeEEENS1_10error_codeERT0_RT1_RAsZT__KSH_:
  250|  48.1k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|  48.1k|		simdjson::ondemand::raw_json_string string;
  252|  48.1k|		if (const auto error = value.get_raw_json_string().get(string);
  253|  48.1k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 14, False: 48.1k]
  ------------------
  254|     14|			return error;
  255|       |
  256|  48.1k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|  48.1k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 36, False: 48.0k]
  ------------------
  258|     36|			return simdjson::INCORRECT_TYPE;
  259|  48.0k|		out = values[index];
  260|  48.0k|		return simdjson::SUCCESS;
  261|  48.1k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueELm3EEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf4math3vecIfXT0_EEE:
  443|   244k|			fastgltf::math::vec<fastgltf::num, N>& out) noexcept {
  444|   244k|		return fastgltf::parseNumArray(val, out);
  445|   244k|	}
_ZN8fastgltf13parseNumArrayIN8simdjson8fallback8ondemand5valueENS_4math3vecIfLm3EEEEENS1_10error_codeERT_RT0_:
  226|   244k|	[[nodiscard]] simdjson::error_code parseNumArray(Value& value, T& out) noexcept {
  227|   244k|		simdjson::ondemand::array array;
  228|   244k|		if (const auto error = value.get_array().get(array); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (228:56): [True: 15, False: 244k]
  ------------------
  229|     15|			return error;
  230|       |
  231|   244k|		std::size_t i = 0;
  232|   730k|		for (auto element : array) {
  ------------------
  |  Branch (232:21): [True: 730k, False: 243k]
  ------------------
  233|   730k|			if (i == out.size()) [[unlikely]]
  ------------------
  |  Branch (233:8): [True: 37, False: 730k]
  ------------------
  234|     37|				return simdjson::INCORRECT_TYPE;
  235|   730k|			if (const auto error = element.get(out[i++]); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (235:50): [True: 425, False: 730k]
  ------------------
  236|    425|				return error;
  237|   730k|		}
  238|   243k|		return i == out.size() ? simdjson::SUCCESS : simdjson::INCORRECT_TYPE;
  ------------------
  |  Branch (238:10): [True: 243k, False: 663]
  ------------------
  239|   244k|	}
parser.cpp:_ZZN8fastgltf6Parser11parseLightsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueE:
 1632|  14.7k|		const auto readSpot = [&](ondemand::value spot) -> error_code {
 1633|  14.7k|			hasSpot = true;
 1634|  14.7k|			return spot.get_object().for_each<"innerConeAngle", "outerConeAngle">(
 1635|  14.7k|				light.innerConeAngle, light.outerConeAngle);
 1636|  14.7k|		};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_16clEN8simdjson8fallback8ondemand5valueE:
 1673|  96.6k|	const auto readAnisotropy = [&](ondemand::value value) -> error_code {
 1674|  96.6k|		if (!hasBit(extensions, Extensions::KHR_materials_anisotropy))
  ------------------
  |  Branch (1674:7): [True: 0, False: 96.6k]
  ------------------
 1675|      0|			return SUCCESS;
 1676|       |
 1677|  96.6k|		auto& anisotropy = material.anisotropy.emplace();
 1678|  96.6k|		return value.get_object().for_each<
 1679|  96.6k|			"anisotropyStrength", "anisotropyRotation",
 1680|  96.6k|			"anisotropyTexture">(
 1681|  96.6k|			anisotropy.anisotropyStrength, anisotropy.anisotropyRotation,
 1682|  96.6k|			readTexture(anisotropy.anisotropyTexture));
 1683|  96.6k|	};
_ZZN8fastgltf15readTextureInfoINS_14basic_optionalINS_11TextureInfoENS_15flagged_storageIS2_EEEEEEDaRT_NS_10ExtensionsEENKUlN8simdjson8fallback8ondemand5valueEE_clESC_:
  564|   415k|		return [&out, extensions](simdjson::ondemand::value value) {
  565|   415k|			return parseTextureInfo(value, out.emplace(), extensions);
  566|   415k|		};
_ZN8fastgltf16parseTextureInfoINS_11TextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsE:
  527|   441k|			const Extensions extensions) {
  528|   441k|		using namespace simdjson;
  529|       |
  530|   441k|		const auto readScale = [&]([[maybe_unused]] ondemand::value scale) -> error_code {
  531|   441k|			if constexpr (std::is_same_v<Info, NormalTextureInfo>)
  532|   441k|				return scale.get(info.scale);
  533|   441k|			else
  534|   441k|				return SUCCESS;
  535|   441k|		};
  536|   441k|		const auto readStrength = [&]([[maybe_unused]] ondemand::value strength) -> error_code {
  537|   441k|			if constexpr (std::is_same_v<Info, OcclusionTextureInfo>)
  538|   441k|				return strength.get(info.strength);
  539|   441k|			else
  540|   441k|				return SUCCESS;
  541|   441k|		};
  542|   441k|		const auto readExtensions = [&](ondemand::value infoExtensions) -> error_code {
  543|   441k|			if (!hasBit(extensions, Extensions::KHR_texture_transform))
  544|   441k|				return SUCCESS;
  545|   441k|			return infoExtensions.get_object().for_each<"KHR_texture_transform">(info.transform);
  546|   441k|		};
  547|       |
  548|   441k|		optional<std::size_t> index;
  549|   441k|		const auto error = value.get_object().for_each<
  550|   441k|			"index", "texCoord", "scale", "strength", "extensions">(
  551|   441k|			index, info.texCoordIndex, readScale, readStrength, readExtensions);
  552|   441k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (552:7): [True: 291, False: 441k]
  ------------------
  553|    291|			return error;
  554|   441k|		if (!index) [[unlikely]]
  ------------------
  |  Branch (554:7): [True: 83, False: 441k]
  ------------------
  555|     83|			return NO_SUCH_FIELD;
  556|       |
  557|   441k|		info.textureIndex = *index;
  558|   441k|		return SUCCESS;
  559|   441k|	}
_ZZN8fastgltf16parseTextureInfoINS_11TextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E_clES6_:
  530|    319|		const auto readScale = [&]([[maybe_unused]] ondemand::value scale) -> error_code {
  531|       |			if constexpr (std::is_same_v<Info, NormalTextureInfo>)
  532|       |				return scale.get(info.scale);
  533|       |			else
  534|    319|				return SUCCESS;
  535|    319|		};
_ZZN8fastgltf16parseTextureInfoINS_11TextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E0_clES6_:
  536|    141|		const auto readStrength = [&]([[maybe_unused]] ondemand::value strength) -> error_code {
  537|       |			if constexpr (std::is_same_v<Info, OcclusionTextureInfo>)
  538|       |				return strength.get(info.strength);
  539|       |			else
  540|    141|				return SUCCESS;
  541|    141|		};
_ZZN8fastgltf16parseTextureInfoINS_11TextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E1_clES6_:
  542|   157k|		const auto readExtensions = [&](ondemand::value infoExtensions) -> error_code {
  543|   157k|			if (!hasBit(extensions, Extensions::KHR_texture_transform))
  ------------------
  |  Branch (543:8): [True: 0, False: 157k]
  ------------------
  544|      0|				return SUCCESS;
  545|   157k|			return infoExtensions.get_object().for_each<"KHR_texture_transform">(info.transform);
  546|   157k|		};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEN8fastgltf16TextureTransformEEENS_10error_codeENS_15deserialize_tagERT_RNS4_14basic_optionalIT0_NS4_13boxed_storageISB_NSt3__19allocatorISB_EEEEEE:
  437|   203k|		fastgltf::boxed_optional<U>& out) {
  438|   203k|		return val.get(out.emplace());
  439|   203k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf16TextureTransformE:
  517|   203k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::TextureTransform& out) {
  518|   203k|		out.rotation = 0;
  519|   203k|		return val.get_object().template for_each<"texCoord", "rotation", "offset", "scale">(
  520|   203k|			out.texCoordIndex, out.rotation, out.uvOffset, out.uvScale);
  521|   203k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueELm2EEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf4math3vecIfXT0_EEE:
  443|   179k|			fastgltf::math::vec<fastgltf::num, N>& out) noexcept {
  444|   179k|		return fastgltf::parseNumArray(val, out);
  445|   179k|	}
_ZN8fastgltf13parseNumArrayIN8simdjson8fallback8ondemand5valueENS_4math3vecIfLm2EEEEENS1_10error_codeERT_RT0_:
  226|   179k|	[[nodiscard]] simdjson::error_code parseNumArray(Value& value, T& out) noexcept {
  227|   179k|		simdjson::ondemand::array array;
  228|   179k|		if (const auto error = value.get_array().get(array); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (228:56): [True: 2, False: 179k]
  ------------------
  229|      2|			return error;
  230|       |
  231|   179k|		std::size_t i = 0;
  232|   358k|		for (auto element : array) {
  ------------------
  |  Branch (232:21): [True: 358k, False: 179k]
  ------------------
  233|   358k|			if (i == out.size()) [[unlikely]]
  ------------------
  |  Branch (233:8): [True: 42, False: 358k]
  ------------------
  234|     42|				return simdjson::INCORRECT_TYPE;
  235|   358k|			if (const auto error = element.get(out[i++]); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (235:50): [True: 162, False: 358k]
  ------------------
  236|    162|				return error;
  237|   358k|		}
  238|   179k|		return i == out.size() ? simdjson::SUCCESS : simdjson::INCORRECT_TYPE;
  ------------------
  |  Branch (238:10): [True: 179k, False: 24]
  ------------------
  239|   179k|	}
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_0clINS_14basic_optionalINS_11TextureInfoENS_15flagged_storageIS9_EEEEEEDaRT_:
 1669|   889k|	const auto readTexture = [extensions](auto& out) {
 1670|   889k|		return readTextureInfo(out, extensions);
 1671|   889k|	};
_ZN8fastgltf15readTextureInfoINS_14basic_optionalINS_11TextureInfoENS_15flagged_storageIS2_EEEEEEDaRT_NS_10ExtensionsE:
  563|  2.33M|	[[nodiscard]] auto readTextureInfo(T& out, const Extensions extensions) {
  564|  2.33M|		return [&out, extensions](simdjson::ondemand::value value) {
  565|  2.33M|			return parseTextureInfo(value, out.emplace(), extensions);
  566|  2.33M|		};
  567|  2.33M|	}
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_15clEN8simdjson8fallback8ondemand5valueE:
 1685|   109k|	const auto readClearcoat = [&](ondemand::value value) -> error_code {
 1686|   109k|		if (!hasBit(extensions, Extensions::KHR_materials_clearcoat))
  ------------------
  |  Branch (1686:7): [True: 0, False: 109k]
  ------------------
 1687|      0|			return SUCCESS;
 1688|       |
 1689|   109k|		auto& clearcoat = material.clearcoat.emplace();
 1690|   109k|		return value.get_object().for_each<
 1691|   109k|			"clearcoatFactor", "clearcoatTexture",
 1692|   109k|			"clearcoatRoughnessFactor", "clearcoatRoughnessTexture",
 1693|   109k|			"clearcoatNormalTexture">(
 1694|   109k|			clearcoat.clearcoatFactor, readTexture(clearcoat.clearcoatTexture),
 1695|   109k|			clearcoat.clearcoatRoughnessFactor, readTexture(clearcoat.clearcoatRoughnessTexture),
 1696|   109k|			readTexture(clearcoat.clearcoatNormalTexture));
 1697|   109k|	};
_ZZN8fastgltf15readTextureInfoINS_14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS2_EEEEEEDaRT_NS_10ExtensionsEENKUlN8simdjson8fallback8ondemand5valueEE_clESC_:
  564|   117k|		return [&out, extensions](simdjson::ondemand::value value) {
  565|   117k|			return parseTextureInfo(value, out.emplace(), extensions);
  566|   117k|		};
_ZN8fastgltf16parseTextureInfoINS_17NormalTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsE:
  527|   117k|			const Extensions extensions) {
  528|   117k|		using namespace simdjson;
  529|       |
  530|   117k|		const auto readScale = [&]([[maybe_unused]] ondemand::value scale) -> error_code {
  531|   117k|			if constexpr (std::is_same_v<Info, NormalTextureInfo>)
  532|   117k|				return scale.get(info.scale);
  533|   117k|			else
  534|   117k|				return SUCCESS;
  535|   117k|		};
  536|   117k|		const auto readStrength = [&]([[maybe_unused]] ondemand::value strength) -> error_code {
  537|   117k|			if constexpr (std::is_same_v<Info, OcclusionTextureInfo>)
  538|   117k|				return strength.get(info.strength);
  539|   117k|			else
  540|   117k|				return SUCCESS;
  541|   117k|		};
  542|   117k|		const auto readExtensions = [&](ondemand::value infoExtensions) -> error_code {
  543|   117k|			if (!hasBit(extensions, Extensions::KHR_texture_transform))
  544|   117k|				return SUCCESS;
  545|   117k|			return infoExtensions.get_object().for_each<"KHR_texture_transform">(info.transform);
  546|   117k|		};
  547|       |
  548|   117k|		optional<std::size_t> index;
  549|   117k|		const auto error = value.get_object().for_each<
  550|   117k|			"index", "texCoord", "scale", "strength", "extensions">(
  551|   117k|			index, info.texCoordIndex, readScale, readStrength, readExtensions);
  552|   117k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (552:7): [True: 553, False: 117k]
  ------------------
  553|    553|			return error;
  554|   117k|		if (!index) [[unlikely]]
  ------------------
  |  Branch (554:7): [True: 99, False: 117k]
  ------------------
  555|     99|			return NO_SUCH_FIELD;
  556|       |
  557|   117k|		info.textureIndex = *index;
  558|   117k|		return SUCCESS;
  559|   117k|	}
_ZZN8fastgltf16parseTextureInfoINS_17NormalTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E_clES6_:
  530|  73.1k|		const auto readScale = [&]([[maybe_unused]] ondemand::value scale) -> error_code {
  531|       |			if constexpr (std::is_same_v<Info, NormalTextureInfo>)
  532|  73.1k|				return scale.get(info.scale);
  533|       |			else
  534|       |				return SUCCESS;
  535|  73.1k|		};
_ZZN8fastgltf16parseTextureInfoINS_17NormalTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E0_clES6_:
  536|    939|		const auto readStrength = [&]([[maybe_unused]] ondemand::value strength) -> error_code {
  537|       |			if constexpr (std::is_same_v<Info, OcclusionTextureInfo>)
  538|       |				return strength.get(info.strength);
  539|       |			else
  540|    939|				return SUCCESS;
  541|    939|		};
_ZZN8fastgltf16parseTextureInfoINS_17NormalTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E1_clES6_:
  542|  34.1k|		const auto readExtensions = [&](ondemand::value infoExtensions) -> error_code {
  543|  34.1k|			if (!hasBit(extensions, Extensions::KHR_texture_transform))
  ------------------
  |  Branch (543:8): [True: 0, False: 34.1k]
  ------------------
  544|      0|				return SUCCESS;
  545|  34.1k|			return infoExtensions.get_object().for_each<"KHR_texture_transform">(info.transform);
  546|  34.1k|		};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_0clINS_14basic_optionalINS_17NormalTextureInfoENS_15flagged_storageIS9_EEEEEEDaRT_:
 1669|   109k|	const auto readTexture = [extensions](auto& out) {
 1670|   109k|		return readTextureInfo(out, extensions);
 1671|   109k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_14clEN8simdjson8fallback8ondemand5valueE:
 1699|  15.8k|	const auto readDispersion = [&](ondemand::value value) -> error_code {
 1700|  15.8k|		if (!hasBit(extensions, Extensions::KHR_materials_dispersion))
  ------------------
  |  Branch (1700:7): [True: 0, False: 15.8k]
  ------------------
 1701|      0|			return SUCCESS;
 1702|       |
 1703|  15.8k|		return value.get_object().for_each<"dispersion">(material.dispersion);
 1704|  15.8k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_13clEN8simdjson8fallback8ondemand5valueE:
 1706|  5.87k|	const auto readEmissiveStrength = [&](ondemand::value value) -> error_code {
 1707|  5.87k|		if (!hasBit(extensions, Extensions::KHR_materials_emissive_strength))
  ------------------
  |  Branch (1707:7): [True: 0, False: 5.87k]
  ------------------
 1708|      0|			return SUCCESS;
 1709|       |
 1710|  5.87k|		return value.get_object().for_each<"emissiveStrength">(material.emissiveStrength);
 1711|  5.87k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_12clEN8simdjson8fallback8ondemand5valueE:
 1713|  37.1k|	const auto readIor = [&](ondemand::value value) -> error_code {
 1714|  37.1k|		if (!hasBit(extensions, Extensions::KHR_materials_ior))
  ------------------
  |  Branch (1714:7): [True: 0, False: 37.1k]
  ------------------
 1715|      0|			return SUCCESS;
 1716|       |
 1717|  37.1k|		return value.get_object().for_each<"ior">(material.ior);
 1718|  37.1k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_11clEN8simdjson8fallback8ondemand5valueE:
 1720|   104k|	const auto readIridescence = [&](ondemand::value value) -> error_code {
 1721|   104k|		if (!hasBit(extensions, Extensions::KHR_materials_iridescence))
  ------------------
  |  Branch (1721:7): [True: 0, False: 104k]
  ------------------
 1722|      0|			return SUCCESS;
 1723|       |
 1724|   104k|		auto& iridescence = material.iridescence.emplace();
 1725|   104k|		return value.get_object().for_each<
 1726|   104k|			"iridescenceFactor", "iridescenceTexture",
 1727|   104k|			"iridescenceIor",
 1728|   104k|			"iridescenceThicknessMinimum", "iridescenceThicknessMaximum",
 1729|   104k|			"iridescenceThicknessTexture">(
 1730|   104k|			iridescence.iridescenceFactor, readTexture(iridescence.iridescenceTexture),
 1731|   104k|			iridescence.iridescenceIor,
 1732|   104k|			iridescence.iridescenceThicknessMinimum, iridescence.iridescenceThicknessMaximum,
 1733|   104k|			readTexture(iridescence.iridescenceThicknessTexture));
 1734|   104k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK4$_10clEN8simdjson8fallback8ondemand5valueE:
 1736|  4.99k|	const auto readRetroreflection = [&](ondemand::value value) -> error_code {
 1737|  4.99k|		if (!hasBit(extensions, Extensions::KHR_materials_retroreflection))
  ------------------
  |  Branch (1737:7): [True: 0, False: 4.99k]
  ------------------
 1738|      0|			return SUCCESS;
 1739|       |
 1740|  4.99k|		auto& retroreflection = material.retroreflection.emplace();
 1741|  4.99k|		return value.get_object().for_each<
 1742|  4.99k|			"retroreflectionFactor", "retroreflectionTexture">(
 1743|  4.99k|			retroreflection.retroreflectionFactor, readTexture(retroreflection.retroreflectionTexture));
 1744|  4.99k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_9clEN8simdjson8fallback8ondemand5valueE:
 1746|  54.0k|	const auto readDiffuseTransmission = [&](ondemand::value value) -> error_code {
 1747|  54.0k|		if (!hasBit(extensions, Extensions::KHR_materials_diffuse_transmission))
  ------------------
  |  Branch (1747:7): [True: 0, False: 54.0k]
  ------------------
 1748|      0|			return SUCCESS;
 1749|       |
 1750|  54.0k|		auto& transmission = material.diffuseTransmission.emplace();
 1751|  54.0k|		return value.get_object().for_each<
 1752|  54.0k|			"diffuseTransmissionFactor",
 1753|  54.0k|			"diffuseTransmissionTexture",
 1754|  54.0k|			"diffuseTransmissionColorFactor",
 1755|  54.0k|			"diffuseTransmissionColorTexture">(
 1756|  54.0k|			transmission.diffuseTransmissionFactor,
 1757|  54.0k|			readTexture(transmission.diffuseTransmissionTexture),
 1758|  54.0k|			transmission.diffuseTransmissionColorFactor,
 1759|  54.0k|			readTexture(transmission.diffuseTransmissionColorTexture));
 1760|  54.0k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_8clEN8simdjson8fallback8ondemand5valueE:
 1762|  48.6k|	const auto readSheen = [&](ondemand::value value) -> error_code {
 1763|  48.6k|		if (!hasBit(extensions, Extensions::KHR_materials_sheen))
  ------------------
  |  Branch (1763:7): [True: 0, False: 48.6k]
  ------------------
 1764|      0|			return SUCCESS;
 1765|       |
 1766|  48.6k|		auto& sheen = material.sheen.emplace();
 1767|  48.6k|		return value.get_object().for_each<
 1768|  48.6k|			"sheenColorFactor", "sheenColorTexture",
 1769|  48.6k|			"sheenRoughnessFactor", "sheenRoughnessTexture">(
 1770|  48.6k|			sheen.sheenColorFactor, readTexture(sheen.sheenColorTexture),
 1771|  48.6k|			sheen.sheenRoughnessFactor, readTexture(sheen.sheenRoughnessTexture));
 1772|  48.6k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_7clEN8simdjson8fallback8ondemand5valueE:
 1774|  23.1k|	const auto readSpecular = [&](ondemand::value value) -> error_code {
 1775|  23.1k|		if (!hasBit(extensions, Extensions::KHR_materials_specular))
  ------------------
  |  Branch (1775:7): [True: 0, False: 23.1k]
  ------------------
 1776|      0|			return SUCCESS;
 1777|       |
 1778|  23.1k|		auto& specular = material.specular.emplace();
 1779|  23.1k|		return value.get_object().for_each<
 1780|  23.1k|			"specularFactor", "specularTexture",
 1781|  23.1k|			"specularColorFactor", "specularColorTexture">(
 1782|  23.1k|			specular.specularFactor, readTexture(specular.specularTexture),
 1783|  23.1k|			specular.specularColorFactor, readTexture(specular.specularColorTexture));
 1784|  23.1k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_6clEN8simdjson8fallback8ondemand5valueE:
 1786|  38.6k|	const auto readTransmission = [&](ondemand::value value) -> error_code {
 1787|  38.6k|		if (!hasBit(extensions, Extensions::KHR_materials_transmission))
  ------------------
  |  Branch (1787:7): [True: 0, False: 38.6k]
  ------------------
 1788|      0|			return SUCCESS;
 1789|       |
 1790|  38.6k|		auto& transmission = material.transmission.emplace();
 1791|  38.6k|		return value.get_object().for_each<"transmissionFactor", "transmissionTexture">(
 1792|  38.6k|			transmission.transmissionFactor, readTexture(transmission.transmissionTexture));
 1793|  38.6k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_5clEN8simdjson8fallback8ondemand5valueE:
 1795|  3.57k|	const auto readUnlit = [&](ondemand::value value) -> error_code {
 1796|  3.57k|		if (!hasBit(extensions, Extensions::KHR_materials_unlit))
  ------------------
  |  Branch (1796:7): [True: 0, False: 3.57k]
  ------------------
 1797|      0|			return SUCCESS;
 1798|       |
 1799|  3.57k|		material.unlit = true;
 1800|  3.57k|		ondemand::object unlit;
 1801|  3.57k|		return value.get(unlit);
 1802|  3.57k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_4clEN8simdjson8fallback8ondemand5valueE:
 1804|  48.6k|	const auto readVolume = [&](ondemand::value value) -> error_code {
 1805|  48.6k|		if (!hasBit(extensions, Extensions::KHR_materials_volume))
  ------------------
  |  Branch (1805:7): [True: 0, False: 48.6k]
  ------------------
 1806|      0|			return SUCCESS;
 1807|       |
 1808|  48.6k|		auto& volume = material.volume.emplace();
 1809|  48.6k|		return value.get_object().for_each<
 1810|  48.6k|			"thicknessFactor", "thicknessTexture",
 1811|  48.6k|			"attenuationDistance", "attenuationColor">(
 1812|  48.6k|			volume.thicknessFactor, readTexture(volume.thicknessTexture),
 1813|  48.6k|			volume.attenuationDistance, volume.attenuationColor);
 1814|  48.6k|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_3clEN8simdjson8fallback8ondemand5valueE:
 1816|     33|	const auto readPackedNormal = [&](ondemand::value value) -> error_code {
 1817|     33|		if (!hasBit(extensions, Extensions::MSFT_packing_normalRoughnessMetallic))
  ------------------
  |  Branch (1817:7): [True: 0, False: 33]
  ------------------
 1818|      0|			return SUCCESS;
 1819|       |
 1820|     33|		return value.get_object().for_each<"normalRoughnessMetallicTexture">(
 1821|     33|			readTexture(material.packedNormalMetallicRoughnessTexture));
 1822|     33|	};
_ZZN8fastgltf15readTextureInfoINS_14basic_optionalINS_11TextureInfoENS_13boxed_storageIS2_NSt3__19allocatorIS2_EEEEEEEEDaRT_NS_10ExtensionsEENKUlN8simdjson8fallback8ondemand5valueEE_clESF_:
  564|  26.2k|		return [&out, extensions](simdjson::ondemand::value value) {
  565|  26.2k|			return parseTextureInfo(value, out.emplace(), extensions);
  566|  26.2k|		};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_0clINS_14basic_optionalINS_11TextureInfoENS_13boxed_storageIS9_NSt3__19allocatorIS9_EEEEEEEEDaRT_:
 1669|     33|	const auto readTexture = [extensions](auto& out) {
 1670|     33|		return readTextureInfo(out, extensions);
 1671|     33|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_2clEN8simdjson8fallback8ondemand5valueE:
 1824|      1|	const auto readPackedOcclusion = [&](ondemand::value value) -> error_code {
 1825|      1|		if (!hasBit(extensions, Extensions::MSFT_packing_occlusionRoughnessMetallic))
  ------------------
  |  Branch (1825:7): [True: 0, False: 1]
  ------------------
 1826|      0|			return SUCCESS;
 1827|       |
 1828|      1|		auto& packed = material.packedOcclusionRoughnessMetallicTextures.emplace();
 1829|      1|		return value.get_object().for_each<
 1830|      1|			"occlusionRoughnessMetallicTexture",
 1831|      1|			"roughnessMetallicOcclusionTexture",
 1832|      1|			"normalTexture">(
 1833|      1|			readTexture(packed.occlusionRoughnessMetallicTexture),
 1834|      1|			readTexture(packed.roughnessMetallicOcclusionTexture),
 1835|      1|			readTexture(packed.normalTexture));
 1836|      1|	};
parser.cpp:_ZZN8fastgltf6Parser23parseMaterialExtensionsERNS_8internal10JsonObjectERNS_8MaterialEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 1838|  10.9k|	const auto readSpecularGlossiness = [&](ondemand::value value) -> error_code {
 1839|  10.9k|		if (!hasBit(extensions, Extensions::KHR_materials_pbrSpecularGlossiness))
  ------------------
  |  Branch (1839:7): [True: 0, False: 10.9k]
  ------------------
 1840|      0|			return SUCCESS;
 1841|       |
 1842|  10.9k|		auto& specularGlossiness = material.specularGlossiness.emplace();
 1843|  10.9k|		return value.get_object().for_each<
 1844|  10.9k|			"diffuseFactor", "diffuseTexture",
 1845|  10.9k|			"specularFactor", "glossinessFactor",
 1846|  10.9k|			"specularGlossinessTexture">(
 1847|  10.9k|			specularGlossiness.diffuseFactor, readTexture(specularGlossiness.diffuseTexture),
 1848|  10.9k|			specularGlossiness.specularFactor, specularGlossiness.glossinessFactor,
 1849|  10.9k|			readTexture(specularGlossiness.specularGlossinessTexture));
 1850|  10.9k|	};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueELm4EEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf4math3vecIfXT0_EEE:
  443|   169k|			fastgltf::math::vec<fastgltf::num, N>& out) noexcept {
  444|   169k|		return fastgltf::parseNumArray(val, out);
  445|   169k|	}
_ZN8fastgltf13parseNumArrayIN8simdjson8fallback8ondemand5valueENS_4math3vecIfLm4EEEEENS1_10error_codeERT_RT0_:
  226|   169k|	[[nodiscard]] simdjson::error_code parseNumArray(Value& value, T& out) noexcept {
  227|   169k|		simdjson::ondemand::array array;
  228|   169k|		if (const auto error = value.get_array().get(array); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (228:56): [True: 7, False: 169k]
  ------------------
  229|      7|			return error;
  230|       |
  231|   169k|		std::size_t i = 0;
  232|   676k|		for (auto element : array) {
  ------------------
  |  Branch (232:21): [True: 676k, False: 169k]
  ------------------
  233|   676k|			if (i == out.size()) [[unlikely]]
  ------------------
  |  Branch (233:8): [True: 16, False: 676k]
  ------------------
  234|     16|				return simdjson::INCORRECT_TYPE;
  235|   676k|			if (const auto error = element.get(out[i++]); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (235:50): [True: 232, False: 676k]
  ------------------
  236|    232|				return error;
  237|   676k|		}
  238|   169k|		return i == out.size() ? simdjson::SUCCESS : simdjson::INCORRECT_TYPE;
  ------------------
  |  Branch (238:10): [True: 169k, False: 86]
  ------------------
  239|   169k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_8MaterialENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  38.6k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  38.6k|		std::size_t count;
  163|  38.6k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 8, False: 38.5k]
  ------------------
  164|      8|			return Error::InvalidJson;
  165|  38.5k|		vec.reserve(count);
  166|  38.5k|		return Error::None;
  167|  38.6k|	}
parser.cpp:_ZZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetEENK3$_2clEN8simdjson8fallback8ondemand5valueE:
 1905|   724k|		const auto readPbr = [&](ondemand::value value) -> error_code {
 1906|   724k|			return value.get_object().for_each<
 1907|   724k|				"baseColorFactor", "baseColorTexture", "metallicFactor",
 1908|   724k|				"roughnessFactor", "metallicRoughnessTexture">(
 1909|   724k|				pbr.baseColorFactor, readTexture(pbr.baseColorTexture), pbr.metallicFactor,
 1910|   724k|				pbr.roughnessFactor, readTexture(pbr.metallicRoughnessTexture));
 1911|   724k|		};
parser.cpp:_ZZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clINS_14basic_optionalINS_11TextureInfoENS_15flagged_storageIS9_EEEEEEDaRT_:
 1891|  1.44M|	const auto readTexture = [this](auto& out) {
 1892|  1.44M|		return readTextureInfo(out, config.extensions);
 1893|  1.44M|	};
_ZZN8fastgltf15readTextureInfoINS_14basic_optionalINS_20OcclusionTextureInfoENS_13boxed_storageIS2_NSt3__19allocatorIS2_EEEEEEEEDaRT_NS_10ExtensionsEENKUlN8simdjson8fallback8ondemand5valueEE_clESF_:
  564|   116k|		return [&out, extensions](simdjson::ondemand::value value) {
  565|   116k|			return parseTextureInfo(value, out.emplace(), extensions);
  566|   116k|		};
_ZN8fastgltf16parseTextureInfoINS_20OcclusionTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsE:
  527|   116k|			const Extensions extensions) {
  528|   116k|		using namespace simdjson;
  529|       |
  530|   116k|		const auto readScale = [&]([[maybe_unused]] ondemand::value scale) -> error_code {
  531|   116k|			if constexpr (std::is_same_v<Info, NormalTextureInfo>)
  532|   116k|				return scale.get(info.scale);
  533|   116k|			else
  534|   116k|				return SUCCESS;
  535|   116k|		};
  536|   116k|		const auto readStrength = [&]([[maybe_unused]] ondemand::value strength) -> error_code {
  537|   116k|			if constexpr (std::is_same_v<Info, OcclusionTextureInfo>)
  538|   116k|				return strength.get(info.strength);
  539|   116k|			else
  540|   116k|				return SUCCESS;
  541|   116k|		};
  542|   116k|		const auto readExtensions = [&](ondemand::value infoExtensions) -> error_code {
  543|   116k|			if (!hasBit(extensions, Extensions::KHR_texture_transform))
  544|   116k|				return SUCCESS;
  545|   116k|			return infoExtensions.get_object().for_each<"KHR_texture_transform">(info.transform);
  546|   116k|		};
  547|       |
  548|   116k|		optional<std::size_t> index;
  549|   116k|		const auto error = value.get_object().for_each<
  550|   116k|			"index", "texCoord", "scale", "strength", "extensions">(
  551|   116k|			index, info.texCoordIndex, readScale, readStrength, readExtensions);
  552|   116k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (552:7): [True: 848, False: 115k]
  ------------------
  553|    848|			return error;
  554|   115k|		if (!index) [[unlikely]]
  ------------------
  |  Branch (554:7): [True: 170, False: 115k]
  ------------------
  555|    170|			return NO_SUCH_FIELD;
  556|       |
  557|   115k|		info.textureIndex = *index;
  558|   115k|		return SUCCESS;
  559|   115k|	}
_ZZN8fastgltf16parseTextureInfoINS_20OcclusionTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E_clES6_:
  530|    350|		const auto readScale = [&]([[maybe_unused]] ondemand::value scale) -> error_code {
  531|       |			if constexpr (std::is_same_v<Info, NormalTextureInfo>)
  532|       |				return scale.get(info.scale);
  533|       |			else
  534|    350|				return SUCCESS;
  535|    350|		};
_ZZN8fastgltf16parseTextureInfoINS_20OcclusionTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E0_clES6_:
  536|  65.4k|		const auto readStrength = [&]([[maybe_unused]] ondemand::value strength) -> error_code {
  537|       |			if constexpr (std::is_same_v<Info, OcclusionTextureInfo>)
  538|  65.4k|				return strength.get(info.strength);
  539|       |			else
  540|       |				return SUCCESS;
  541|  65.4k|		};
_ZZN8fastgltf16parseTextureInfoINS_20OcclusionTextureInfoEEEN8simdjson10error_codeENS2_8fallback8ondemand5valueERT_NS_10ExtensionsEENKUlS6_E1_clES6_:
  542|  32.1k|		const auto readExtensions = [&](ondemand::value infoExtensions) -> error_code {
  543|  32.1k|			if (!hasBit(extensions, Extensions::KHR_texture_transform))
  ------------------
  |  Branch (543:8): [True: 0, False: 32.1k]
  ------------------
  544|      0|				return SUCCESS;
  545|  32.1k|			return infoExtensions.get_object().for_each<"KHR_texture_transform">(info.transform);
  546|  32.1k|		};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf9AlphaModeE:
  366|  45.2k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::AlphaMode& out) noexcept {
  367|  45.2k|		using enum fastgltf::AlphaMode;
  368|  45.2k|		return fastgltf::readStringEnum<
  369|  45.2k|			"OPAQUE", "MASK", "BLEND">(
  370|  45.2k|			val, out,
  371|  45.2k|			{ Opaque, Mask, Blend });
  372|  45.2k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm7EEEtlA7_cLc79ELc80ELc65ELc81ELc85ELc69EEEEXtlNS3_ILm5EEEtlA5_cLc77ELc65ELc83ELc75EEEEXtlNS3_ILm6EEEtlA6_cLc66ELc76ELc69ELc78ELc68EEEEENS1_8fallback8ondemand5valueENS_9AlphaModeEEENS1_10error_codeERT0_RT1_RAsZT__KSH_:
  250|  45.2k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|  45.2k|		simdjson::ondemand::raw_json_string string;
  252|  45.2k|		if (const auto error = value.get_raw_json_string().get(string);
  253|  45.2k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 3, False: 45.2k]
  ------------------
  254|      3|			return error;
  255|       |
  256|  45.2k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|  45.2k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 13, False: 45.2k]
  ------------------
  258|     13|			return simdjson::INCORRECT_TYPE;
  259|  45.2k|		out = values[index];
  260|  45.2k|		return simdjson::SUCCESS;
  261|  45.2k|	}
parser.cpp:_ZZN8fastgltf6Parser14parseMaterialsERNS_8internal9JsonArrayERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 1913|   775k|		const auto readExtensions = [&](ondemand::value value) -> error_code {
 1914|   775k|			internal::JsonObject extensions;
 1915|   775k|			if (const auto error = value.get(extensions.value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1915:56): [True: 11, False: 775k]
  ------------------
 1916|     11|				return error;
 1917|   775k|			return toErrorCode(parseMaterialExtensions(extensions, material));
 1918|   775k|		};
parser.cpp:_ZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS_8internal10JsonObjectERNS_9PrimitiveEENK3$_0clEN8simdjson8fallback8ondemand5valueE:
 1968|  2.41k|	const auto readVariants = [&](ondemand::value value) -> error_code {
 1969|  2.41k|		if (!hasBit(config.extensions, Extensions::KHR_materials_variants))
  ------------------
  |  Branch (1969:7): [True: 0, False: 2.41k]
  ------------------
 1970|      0|			return SUCCESS;
 1971|       |
 1972|  2.41k|		const auto readMappings = [&](ondemand::value mappingsValue) -> error_code {
 1973|  2.41k|			ondemand::array mappings;
 1974|  2.41k|			if (const auto error = mappingsValue.get(mappings); error != SUCCESS) [[unlikely]]
 1975|  2.41k|				return error;
 1976|       |
 1977|       |			// The material may come after the variants, so the variants are collected first.
 1978|  2.41k|			optional<std::size_t> material;
 1979|  2.41k|			std::vector<std::size_t> variants;
 1980|  2.41k|			for (auto mapping : mappings) {
 1981|  2.41k|				material.reset();
 1982|  2.41k|				variants.clear();
 1983|       |
 1984|  2.41k|				const auto error = mapping.get_object().for_each<"material", "variants">(
 1985|  2.41k|					material, variants);
 1986|  2.41k|				if (error != SUCCESS) [[unlikely]]
 1987|  2.41k|					return error;
 1988|  2.41k|				if (!material || variants.empty()) [[unlikely]]
 1989|  2.41k|					return NO_SUCH_FIELD;
 1990|       |
 1991|  2.41k|				for (const auto variant : variants) {
 1992|  2.41k|					primitive.mappings.emplace_back(MaterialMapping {
 1993|  2.41k|						.variantIndex = variant,
 1994|  2.41k|						.materialIndex = *material
 1995|  2.41k|					});
 1996|  2.41k|				}
 1997|  2.41k|			}
 1998|  2.41k|			return SUCCESS;
 1999|  2.41k|		};
 2000|       |
 2001|  2.41k|		if (const auto error = value.get_object().for_each<"mappings">(readMappings);
 2002|  2.41k|			error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2002:4): [True: 147, False: 2.26k]
  ------------------
 2003|    147|			return error;
 2004|  2.26k|		if (primitive.mappings.empty()) [[unlikely]]
  ------------------
  |  Branch (2004:7): [True: 12, False: 2.25k]
  ------------------
 2005|     12|			return NO_SUCH_FIELD;
 2006|  2.25k|		return SUCCESS;
 2007|  2.26k|	};
parser.cpp:_ZZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS_8internal10JsonObjectERNS_9PrimitiveEENK3$_0clEN8simdjson8fallback8ondemand5valueEENKUlSA_E_clESA_:
 1972|  2.37k|		const auto readMappings = [&](ondemand::value mappingsValue) -> error_code {
 1973|  2.37k|			ondemand::array mappings;
 1974|  2.37k|			if (const auto error = mappingsValue.get(mappings); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1974:56): [True: 1, False: 2.37k]
  ------------------
 1975|      1|				return error;
 1976|       |
 1977|       |			// The material may come after the variants, so the variants are collected first.
 1978|  2.37k|			optional<std::size_t> material;
 1979|  2.37k|			std::vector<std::size_t> variants;
 1980|  5.28k|			for (auto mapping : mappings) {
  ------------------
  |  Branch (1980:22): [True: 5.28k, False: 2.25k]
  ------------------
 1981|  5.28k|				material.reset();
 1982|  5.28k|				variants.clear();
 1983|       |
 1984|  5.28k|				const auto error = mapping.get_object().for_each<"material", "variants">(
 1985|  5.28k|					material, variants);
 1986|  5.28k|				if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (1986:9): [True: 90, False: 5.19k]
  ------------------
 1987|     90|					return error;
 1988|  5.19k|				if (!material || variants.empty()) [[unlikely]]
  ------------------
  |  Branch (1988:9): [True: 12, False: 5.18k]
  |  Branch (1988:22): [True: 12, False: 5.16k]
  ------------------
 1989|     24|					return NO_SUCH_FIELD;
 1990|       |
 1991|  5.57k|				for (const auto variant : variants) {
  ------------------
  |  Branch (1991:29): [True: 5.57k, False: 5.16k]
  ------------------
 1992|  5.57k|					primitive.mappings.emplace_back(MaterialMapping {
 1993|  5.57k|						.variantIndex = variant,
 1994|  5.57k|						.materialIndex = *material
 1995|  5.57k|					});
 1996|  5.57k|				}
 1997|  5.16k|			}
 1998|  2.25k|			return SUCCESS;
 1999|  2.37k|		};
parser.cpp:_ZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS_8internal10JsonObjectERNS_9PrimitiveEENK3$_2clEN8simdjson8fallback8ondemand5valueE:
 2009|  10.4k|	const auto readDraco = [&](ondemand::value value) -> error_code {
 2010|  10.4k|		if (!hasBit(config.extensions, Extensions::KHR_draco_mesh_compression))
  ------------------
  |  Branch (2010:7): [True: 0, False: 10.4k]
  ------------------
 2011|      0|			return SUCCESS;
 2012|       |
 2013|  10.4k|		auto& draco = primitive.dracoCompression.emplace();
 2014|  10.4k|		optional<std::size_t> bufferView;
 2015|  10.4k|		const auto error = value.get_object().for_each<"bufferView", "attributes">(
 2016|  10.4k|			bufferView, draco.attributes);
 2017|  10.4k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2017:7): [True: 60, False: 10.4k]
  ------------------
 2018|     60|			return error;
 2019|  10.4k|		if (!bufferView || draco.attributes.empty()) [[unlikely]]
  ------------------
  |  Branch (2019:7): [True: 24, False: 10.3k]
  |  Branch (2019:22): [True: 4, False: 10.3k]
  ------------------
 2020|     28|			return NO_SUCH_FIELD;
 2021|       |
 2022|  10.3k|		draco.bufferView = *bufferView;
 2023|  10.3k|		return SUCCESS;
 2024|  10.4k|	};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSt3__16vectorIN8fastgltf9AttributeENS8_9allocatorISB_EEEE:
  470|   113k|	static error_code tag_invoke(deserialize_tag, T& val, std::vector<fastgltf::Attribute>& out) {
  471|   113k|		ondemand::object object;
  472|   113k|		if (const auto error = val.get_object().get(object); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (472:56): [True: 20, False: 113k]
  ------------------
  473|     20|			return error;
  474|       |
  475|   113k|		std::size_t count;
  476|   113k|		if (const auto error = object.count_fields().get(count); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (476:60): [True: 20, False: 113k]
  ------------------
  477|     20|			return error;
  478|   113k|		out.reserve(count);
  479|       |
  480|       |		// We iterate through the JSON object and write each key/pair value into the
  481|       |		// attribute map. The keys are only validated in the validate() method.
  482|   316k|		for (auto attribute : object) {
  ------------------
  |  Branch (482:23): [True: 316k, False: 113k]
  ------------------
  483|   316k|			auto& [name, accessorIndex] = out.emplace_back();
  484|   316k|			if (const auto error = attribute.unescaped_key(name); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (484:58): [True: 1, False: 316k]
  ------------------
  485|      1|				return error;
  486|       |
  487|   316k|			fastgltf::optional<std::size_t> index;
  488|   316k|			if (const auto error = attribute.value().get(index); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (488:57): [True: 11, False: 316k]
  ------------------
  489|     11|				return error;
  490|   316k|			accessorIndex = *index;
  491|   316k|		}
  492|   113k|		return SUCCESS;
  493|   113k|	}
parser.cpp:_ZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS_8internal10JsonObjectERNS_9PrimitiveEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 2026|     19|	const auto readGaussianSplatting = [&](ondemand::value value) -> error_code {
 2027|     19|		if (!hasBit(config.extensions, Extensions::KHR_gaussian_splatting))
  ------------------
  |  Branch (2027:7): [True: 0, False: 19]
  ------------------
 2028|      0|			return SUCCESS;
 2029|       |
 2030|     19|		auto& gaussianSplatting = primitive.gaussianSplatting.emplace();
 2031|     19|		std::optional<GaussianKernel> kernel;
 2032|     19|		std::optional<ColorSpace> colorSpace;
 2033|     19|		const auto error = value.get_object().for_each
 2034|     19|			<"kernel", "colorSpace", "projection", "sortingMethod">(
 2035|     19|				kernel, colorSpace, gaussianSplatting.projection, gaussianSplatting.sortingMethod
 2036|     19|			);
 2037|     19|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2037:7): [True: 10, False: 9]
  ------------------
 2038|     10|			return error;
 2039|      9|		if (!kernel || !colorSpace) [[unlikely]]
  ------------------
  |  Branch (2039:7): [True: 9, False: 0]
  |  Branch (2039:18): [True: 0, False: 0]
  ------------------
 2040|      9|			return NO_SUCH_FIELD;
 2041|       |
 2042|      0|		gaussianSplatting.kernel = *kernel;
 2043|      0|		gaussianSplatting.colorSpace = *colorSpace;
 2044|      0|		return SUCCESS;
 2045|      9|	};
_ZN8fastgltf15reserveElementsINS_12small_vectorINS_9PrimitiveELm1ENSt3__19allocatorIS2_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  72.1k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  72.1k|		std::size_t count;
  163|  72.1k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 17, False: 72.0k]
  ------------------
  164|     17|			return Error::InvalidJson;
  165|  72.0k|		vec.reserve(count);
  166|  72.0k|		return Error::None;
  167|  72.1k|	}
parser.cpp:_ZZN8fastgltf6Parser15parsePrimitivesERNS_8internal9JsonArrayERNS_4MeshEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 2071|  87.1k|		const auto readAttributes = [&](ondemand::value attributes) {
 2072|  87.1k|			hasAttributes = true;
 2073|  87.1k|			return attributes.get(primitive.attributes);
 2074|  87.1k|		};
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf13PrimitiveTypeE:
  290|  37.4k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::PrimitiveType& out) noexcept {
  291|  37.4k|		using namespace fastgltf;
  292|       |
  293|  37.4k|		std::uint64_t value;
  294|  37.4k|		if (const auto error = val.get_uint64().get(value); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (294:55): [True: 15, False: 37.4k]
  ------------------
  295|     15|			return error;
  296|       |
  297|  37.4k|		if (!toEnum(value, out)) [[unlikely]] {
  ------------------
  |  Branch (297:7): [True: 39, False: 37.3k]
  ------------------
  298|     39|			return simdjson::INCORRECT_TYPE;
  299|     39|		}
  300|  37.3k|		return simdjson::SUCCESS;
  301|  37.4k|	}
_ZN8fastgltf6toEnumINS_13PrimitiveTypeEQsr3stdE9is_enum_vIT_EEEbmRS2_:
  144|  37.4k|	[[nodiscard]] FASTGLTF_FORCEINLINE bool toEnum(const std::uint64_t in, T& out) noexcept {
  145|  37.4k|		out = static_cast<T>(in);
  146|  37.4k|		return static_cast<std::uint64_t>(out) == in && isValidEnum(out);
  ------------------
  |  Branch (146:10): [True: 37.3k, False: 38]
  |  Branch (146:51): [True: 37.3k, False: 1]
  ------------------
  147|  37.4k|	}
_ZN8fastgltf11isValidEnumENS_13PrimitiveTypeE:
   99|  37.3k|	[[nodiscard]] inline bool isValidEnum(PrimitiveType value) noexcept {
  100|  37.3k|		switch (value) {
  ------------------
  |  Branch (100:11): [True: 37.3k, False: 1]
  ------------------
  101|  1.69k|			case PrimitiveType::Points:
  ------------------
  |  Branch (101:4): [True: 1.69k, False: 35.6k]
  ------------------
  102|  9.69k|			case PrimitiveType::Lines:
  ------------------
  |  Branch (102:4): [True: 7.99k, False: 29.3k]
  ------------------
  103|  10.5k|			case PrimitiveType::LineLoop:
  ------------------
  |  Branch (103:4): [True: 891, False: 36.4k]
  ------------------
  104|  13.5k|			case PrimitiveType::LineStrip:
  ------------------
  |  Branch (104:4): [True: 2.99k, False: 34.3k]
  ------------------
  105|  33.4k|			case PrimitiveType::Triangles:
  ------------------
  |  Branch (105:4): [True: 19.8k, False: 17.5k]
  ------------------
  106|  37.2k|			case PrimitiveType::TriangleStrip:
  ------------------
  |  Branch (106:4): [True: 3.83k, False: 33.5k]
  ------------------
  107|  37.3k|			case PrimitiveType::TriangleFan:
  ------------------
  |  Branch (107:4): [True: 126, False: 37.2k]
  ------------------
  108|  37.3k|				return true;
  109|  37.3k|		}
  110|      1|		return false;
  111|  37.3k|	}
parser.cpp:_ZZN8fastgltf6Parser15parsePrimitivesERNS_8internal9JsonArrayERNS_4MeshEENK3$_0clEN8simdjson8fallback8ondemand5valueE:
 2062|  16.3k|		const auto readExtensions = [&](ondemand::value extensionsValue) -> error_code {
 2063|  16.3k|			internal::JsonObject extensions;
 2064|  16.3k|			if (const auto error = extensionsValue.get(extensions.value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2064:66): [True: 5, False: 16.3k]
  ------------------
 2065|      5|				return error;
 2066|  16.3k|			return toErrorCode(parsePrimitiveExtensions(extensions, primitive));
 2067|  16.3k|		};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_4MeshENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  9.00k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  9.00k|		std::size_t count;
  163|  9.00k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 15, False: 8.99k]
  ------------------
  164|     15|			return Error::InvalidJson;
  165|  8.99k|		vec.reserve(count);
  166|  8.99k|		return Error::None;
  167|  9.00k|	}
parser.cpp:_ZZN8fastgltf6Parser11parseMeshesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueE:
 2103|  72.1k|		const auto readPrimitives = [&](ondemand::value primitivesValue) {
 2104|  72.1k|			internal::JsonArray primitives;
 2105|  72.1k|			if (const auto error = primitivesValue.get(primitives.value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2105:66): [True: 5, False: 72.1k]
  ------------------
 2106|      5|				return error;
 2107|  72.1k|			return toErrorCode(parsePrimitives(primitives, mesh));
 2108|  72.1k|		};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_4NodeENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  26.1k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  26.1k|		std::size_t count;
  163|  26.1k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 9, False: 26.1k]
  ------------------
  164|      9|			return Error::InvalidJson;
  165|  26.1k|		vec.reserve(count);
  166|  26.1k|		return Error::None;
  167|  26.1k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf4math3matIfLm4ELm4EEE:
  453|  17.1k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::math::nmat4x4& out) noexcept {
  454|  17.1k|		ondemand::array array;
  455|  17.1k|		if (const auto error = val.get_array().get(array); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (455:54): [True: 20, False: 17.1k]
  ------------------
  456|     20|			return error;
  457|       |
  458|  17.1k|		std::size_t i = 0;
  459|   263k|		for (auto element : array) {
  ------------------
  |  Branch (459:21): [True: 263k, False: 16.7k]
  ------------------
  460|   263k|			if (i == 16) [[unlikely]]
  ------------------
  |  Branch (460:8): [True: 23, False: 263k]
  ------------------
  461|     23|				return INCORRECT_TYPE;
  462|   263k|			if (const auto error = element.get(out.col(i / 4)[i % 4]); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (462:63): [True: 405, False: 263k]
  ------------------
  463|    405|				return error;
  464|   263k|			++i;
  465|   263k|		}
  466|  16.7k|		return i == 16 ? SUCCESS : INCORRECT_TYPE;
  ------------------
  |  Branch (466:10): [True: 16.2k, False: 449]
  ------------------
  467|  17.1k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf4math4quatIfEE:
  448|  17.9k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::math::nquat& out) noexcept {
  449|  17.9k|		return fastgltf::parseNumArray(val, out);
  450|  17.9k|	}
_ZN8fastgltf13parseNumArrayIN8simdjson8fallback8ondemand5valueENS_4math4quatIfEEEENS1_10error_codeERT_RT0_:
  226|  17.9k|	[[nodiscard]] simdjson::error_code parseNumArray(Value& value, T& out) noexcept {
  227|  17.9k|		simdjson::ondemand::array array;
  228|  17.9k|		if (const auto error = value.get_array().get(array); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (228:56): [True: 8, False: 17.9k]
  ------------------
  229|      8|			return error;
  230|       |
  231|  17.9k|		std::size_t i = 0;
  232|  69.6k|		for (auto element : array) {
  ------------------
  |  Branch (232:21): [True: 69.6k, False: 17.6k]
  ------------------
  233|  69.6k|			if (i == out.size()) [[unlikely]]
  ------------------
  |  Branch (233:8): [True: 42, False: 69.5k]
  ------------------
  234|     42|				return simdjson::INCORRECT_TYPE;
  235|  69.5k|			if (const auto error = element.get(out[i++]); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (235:50): [True: 291, False: 69.3k]
  ------------------
  236|    291|				return error;
  237|  69.5k|		}
  238|  17.6k|		return i == out.size() ? simdjson::SUCCESS : simdjson::INCORRECT_TYPE;
  ------------------
  |  Branch (238:10): [True: 17.0k, False: 573]
  ------------------
  239|  17.9k|	}
parser.cpp:_ZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_1clEN8simdjson8fallback8ondemand5valueE:
 2192|   128k|		const auto readExtensions = [&](ondemand::value extensions) {
 2193|   128k|			return parseNodeExtensions(extensions, node);
 2194|   128k|		};
parser.cpp:_ZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeE:
 2128|   128k|	const auto parseNodeExtensions = [&](ondemand::value value, Node& node) -> error_code {
 2129|   128k|		const auto readLight = [&](ondemand::value lights) -> error_code {
 2130|   128k|			if (!hasBit(config.extensions, Extensions::KHR_lights_punctual))
 2131|   128k|				return SUCCESS;
 2132|   128k|			if (const auto error = lights.get_object().for_each<"light">(node.lightIndex);
 2133|   128k|				error != SUCCESS) [[unlikely]]
 2134|   128k|				return error;
 2135|   128k|			if (!node.lightIndex) [[unlikely]]
 2136|   128k|				return NO_SUCH_FIELD;
 2137|   128k|			return SUCCESS;
 2138|   128k|		};
 2139|   128k|		const auto readInstancing = [&](ondemand::value instancing) -> error_code {
 2140|   128k|			if (!hasBit(config.extensions, Extensions::EXT_mesh_gpu_instancing))
 2141|   128k|				return SUCCESS;
 2142|   128k|			const auto error = instancing.get_object().for_each<"attributes">(
 2143|   128k|				node.instancingAttributes);
 2144|   128k|			if (error != SUCCESS) [[unlikely]]
 2145|   128k|				return error;
 2146|   128k|			if (node.instancingAttributes.empty()) [[unlikely]]
 2147|   128k|				return NO_SUCH_FIELD;
 2148|   128k|			return SUCCESS;
 2149|   128k|		};
 2150|   128k|		const auto readRigidBodies = [&](ondemand::value rigidBodies) -> error_code {
 2151|   128k|			if (!hasBit(config.extensions, Extensions::KHR_physics_rigid_bodies))
 2152|   128k|				return SUCCESS;
 2153|   128k|			internal::JsonObject object;
 2154|   128k|			if (const auto error = rigidBodies.get(object.value); error != SUCCESS) [[unlikely]]
 2155|   128k|				return error;
 2156|   128k|			return toErrorCode(parsePhysicsRigidBody(object, node));
 2157|   128k|		};
 2158|   128k|		const auto readVisibility = [&](ondemand::value visibility) -> error_code {
 2159|   128k|			if (!hasBit(config.extensions, Extensions::KHR_node_visibility))
 2160|   128k|				return SUCCESS;
 2161|   128k|			return visibility.get_object().for_each<"visible">(node.visible);
 2162|   128k|		};
 2163|   128k|		const auto readSelectability = [&](ondemand::value selectability) -> error_code {
 2164|   128k|			if (!hasBit(config.extensions, Extensions::KHR_node_selectability))
 2165|   128k|				return SUCCESS;
 2166|   128k|			return selectability.get_object().for_each<"selectable">(node.selectable);
 2167|   128k|		};
 2168|   128k|		const auto readHoverability = [&](ondemand::value hoverability) -> error_code {
 2169|   128k|			if (!hasBit(config.extensions, Extensions::KHR_node_hoverability))
 2170|   128k|				return SUCCESS;
 2171|   128k|			return hoverability.get_object().for_each<"hoverable">(node.hoverable);
 2172|   128k|		};
 2173|       |
 2174|   128k|		return value.get_object().for_each<
 2175|   128k|			"KHR_lights_punctual", "EXT_mesh_gpu_instancing", "KHR_physics_rigid_bodies",
 2176|   128k|			"KHR_node_visibility", "KHR_node_selectability", "KHR_node_hoverability">(
 2177|   128k|			readLight, readInstancing, readRigidBodies,
 2178|   128k|			readVisibility, readSelectability, readHoverability);
 2179|   128k|	};
parser.cpp:_ZZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeEENKUlSA_E_clESA_:
 2129|  26.1k|		const auto readLight = [&](ondemand::value lights) -> error_code {
 2130|  26.1k|			if (!hasBit(config.extensions, Extensions::KHR_lights_punctual))
  ------------------
  |  Branch (2130:8): [True: 0, False: 26.1k]
  ------------------
 2131|      0|				return SUCCESS;
 2132|  26.1k|			if (const auto error = lights.get_object().for_each<"light">(node.lightIndex);
 2133|  26.1k|				error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2133:5): [True: 34, False: 26.1k]
  ------------------
 2134|     34|				return error;
 2135|  26.1k|			if (!node.lightIndex) [[unlikely]]
  ------------------
  |  Branch (2135:8): [True: 19, False: 26.1k]
  ------------------
 2136|     19|				return NO_SUCH_FIELD;
 2137|  26.1k|			return SUCCESS;
 2138|  26.1k|		};
parser.cpp:_ZZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeEENKUlSA_E0_clESA_:
 2139|  1.74k|		const auto readInstancing = [&](ondemand::value instancing) -> error_code {
 2140|  1.74k|			if (!hasBit(config.extensions, Extensions::EXT_mesh_gpu_instancing))
  ------------------
  |  Branch (2140:8): [True: 0, False: 1.74k]
  ------------------
 2141|      0|				return SUCCESS;
 2142|  1.74k|			const auto error = instancing.get_object().for_each<"attributes">(
 2143|  1.74k|				node.instancingAttributes);
 2144|  1.74k|			if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2144:8): [True: 36, False: 1.71k]
  ------------------
 2145|     36|				return error;
 2146|  1.71k|			if (node.instancingAttributes.empty()) [[unlikely]]
  ------------------
  |  Branch (2146:8): [True: 28, False: 1.68k]
  ------------------
 2147|     28|				return NO_SUCH_FIELD;
 2148|  1.68k|			return SUCCESS;
 2149|  1.71k|		};
parser.cpp:_ZZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeEENKUlSA_E1_clESA_:
 2150|  78.9k|		const auto readRigidBodies = [&](ondemand::value rigidBodies) -> error_code {
 2151|  78.9k|			if (!hasBit(config.extensions, Extensions::KHR_physics_rigid_bodies))
  ------------------
  |  Branch (2151:8): [True: 0, False: 78.9k]
  ------------------
 2152|      0|				return SUCCESS;
 2153|  78.9k|			internal::JsonObject object;
 2154|  78.9k|			if (const auto error = rigidBodies.get(object.value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2154:58): [True: 4, False: 78.9k]
  ------------------
 2155|      4|				return error;
 2156|  78.9k|			return toErrorCode(parsePhysicsRigidBody(object, node));
 2157|  78.9k|		};
parser.cpp:_ZZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeEENKUlSA_E2_clESA_:
 2158|  11.6k|		const auto readVisibility = [&](ondemand::value visibility) -> error_code {
 2159|  11.6k|			if (!hasBit(config.extensions, Extensions::KHR_node_visibility))
  ------------------
  |  Branch (2159:8): [True: 0, False: 11.6k]
  ------------------
 2160|      0|				return SUCCESS;
 2161|  11.6k|			return visibility.get_object().for_each<"visible">(node.visible);
 2162|  11.6k|		};
parser.cpp:_ZZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeEENKUlSA_E3_clESA_:
 2163|  10.0k|		const auto readSelectability = [&](ondemand::value selectability) -> error_code {
 2164|  10.0k|			if (!hasBit(config.extensions, Extensions::KHR_node_selectability))
  ------------------
  |  Branch (2164:8): [True: 0, False: 10.0k]
  ------------------
 2165|      0|				return SUCCESS;
 2166|  10.0k|			return selectability.get_object().for_each<"selectable">(node.selectable);
 2167|  10.0k|		};
parser.cpp:_ZZZN8fastgltf6Parser10parseNodesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueERNS_4NodeEENKUlSA_E4_clESA_:
 2168|  3.25k|		const auto readHoverability = [&](ondemand::value hoverability) -> error_code {
 2169|  3.25k|			if (!hasBit(config.extensions, Extensions::KHR_node_hoverability))
  ------------------
  |  Branch (2169:8): [True: 0, False: 3.25k]
  ------------------
 2170|      0|				return SUCCESS;
 2171|  3.25k|			return hoverability.get_object().for_each<"hoverable">(node.hoverable);
 2172|  3.25k|		};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_7SamplerENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  9.19k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  9.19k|		std::size_t count;
  163|  9.19k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 7, False: 9.18k]
  ------------------
  164|      7|			return Error::InvalidJson;
  165|  9.18k|		vec.reserve(count);
  166|  9.18k|		return Error::None;
  167|  9.19k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEN8fastgltf6FilterEEENS_10error_codeENS_15deserialize_tagERT_RNS4_14basic_optionalIT0_NS4_15flagged_storageISB_EEEE:
  425|  32.1k|			fastgltf::flagged_optional<U>& out) noexcept {
  426|  32.1k|		U value;
  427|  32.1k|		if (const auto error = val.get(value); error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (427:42): [True: 231, False: 31.9k]
  ------------------
  428|    231|			return error;
  429|  31.9k|		if (fastgltf::optional_flag_value<U>::is_empty(value)) [[unlikely]]
  ------------------
  |  Branch (429:7): [True: 0, False: 31.9k]
  ------------------
  430|      0|			return NUMBER_OUT_OF_RANGE;
  431|  31.9k|		out = std::move(value);
  432|  31.9k|		return SUCCESS;
  433|  31.9k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf6FilterE:
  338|  32.1k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Filter& out) noexcept {
  339|  32.1k|		using namespace fastgltf;
  340|       |
  341|  32.1k|		std::uint64_t value;
  342|  32.1k|		if (const auto error = val.get_uint64().get(value); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (342:55): [True: 82, False: 32.0k]
  ------------------
  343|     82|			return error;
  344|       |
  345|  32.0k|		if (!toEnum(value, out)) [[unlikely]] {
  ------------------
  |  Branch (345:7): [True: 149, False: 31.9k]
  ------------------
  346|    149|			return simdjson::INCORRECT_TYPE;
  347|    149|		}
  348|  31.9k|		return simdjson::SUCCESS;
  349|  32.0k|	}
_ZN8fastgltf6toEnumINS_6FilterEQsr3stdE9is_enum_vIT_EEEbmRS2_:
  144|  32.0k|	[[nodiscard]] FASTGLTF_FORCEINLINE bool toEnum(const std::uint64_t in, T& out) noexcept {
  145|  32.0k|		out = static_cast<T>(in);
  146|  32.0k|		return static_cast<std::uint64_t>(out) == in && isValidEnum(out);
  ------------------
  |  Branch (146:10): [True: 31.9k, False: 107]
  |  Branch (146:51): [True: 31.9k, False: 42]
  ------------------
  147|  32.0k|	}
_ZN8fastgltf11isValidEnumENS_6FilterE:
  120|  31.9k|	[[nodiscard]] inline bool isValidEnum(Filter value) noexcept {
  121|  31.9k|		switch (value) {
  ------------------
  |  Branch (121:11): [True: 31.9k, False: 42]
  ------------------
  122|  2.95k|			case Filter::Nearest:
  ------------------
  |  Branch (122:4): [True: 2.95k, False: 29.0k]
  ------------------
  123|  20.7k|			case Filter::Linear:
  ------------------
  |  Branch (123:4): [True: 17.7k, False: 14.1k]
  ------------------
  124|  21.0k|			case Filter::NearestMipMapNearest:
  ------------------
  |  Branch (124:4): [True: 294, False: 31.6k]
  ------------------
  125|  26.2k|			case Filter::LinearMipMapNearest:
  ------------------
  |  Branch (125:4): [True: 5.15k, False: 26.7k]
  ------------------
  126|  28.0k|			case Filter::NearestMipMapLinear:
  ------------------
  |  Branch (126:4): [True: 1.80k, False: 30.1k]
  ------------------
  127|  31.9k|			case Filter::LinearMipMapLinear:
  ------------------
  |  Branch (127:4): [True: 3.90k, False: 28.0k]
  ------------------
  128|  31.9k|				return true;
  129|  31.9k|		}
  130|     42|		return false;
  131|  31.9k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf4WrapE:
  352|  28.4k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Wrap& out) noexcept {
  353|  28.4k|		using namespace fastgltf;
  354|       |
  355|  28.4k|		std::uint64_t value;
  356|  28.4k|		if (const auto error = val.get_uint64().get(value); error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (356:55): [True: 75, False: 28.3k]
  ------------------
  357|     75|			return error;
  358|       |
  359|  28.3k|		if (!toEnum(value, out)) [[unlikely]] {
  ------------------
  |  Branch (359:7): [True: 104, False: 28.2k]
  ------------------
  360|    104|			return simdjson::INCORRECT_TYPE;
  361|    104|		}
  362|  28.2k|		return simdjson::SUCCESS;
  363|  28.3k|	}
_ZN8fastgltf6toEnumINS_4WrapEQsr3stdE9is_enum_vIT_EEEbmRS2_:
  144|  28.3k|	[[nodiscard]] FASTGLTF_FORCEINLINE bool toEnum(const std::uint64_t in, T& out) noexcept {
  145|  28.3k|		out = static_cast<T>(in);
  146|  28.3k|		return static_cast<std::uint64_t>(out) == in && isValidEnum(out);
  ------------------
  |  Branch (146:10): [True: 28.2k, False: 53]
  |  Branch (146:51): [True: 28.2k, False: 51]
  ------------------
  147|  28.3k|	}
_ZN8fastgltf11isValidEnumENS_4WrapE:
  132|  28.2k|	[[nodiscard]] inline bool isValidEnum(Wrap value) noexcept {
  133|  28.2k|		switch (value) {
  ------------------
  |  Branch (133:11): [True: 28.2k, False: 51]
  ------------------
  134|  7.65k|			case Wrap::ClampToEdge:
  ------------------
  |  Branch (134:4): [True: 7.65k, False: 20.6k]
  ------------------
  135|  12.9k|			case Wrap::MirroredRepeat:
  ------------------
  |  Branch (135:4): [True: 5.27k, False: 22.9k]
  ------------------
  136|  28.2k|			case Wrap::Repeat:
  ------------------
  |  Branch (136:4): [True: 15.2k, False: 12.9k]
  ------------------
  137|  28.2k|				return true;
  138|  28.2k|		}
  139|     51|		return false;
  140|  28.2k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_5SceneENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  13.4k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  13.4k|		std::size_t count;
  163|  13.4k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 6, False: 13.4k]
  ------------------
  164|      6|			return Error::InvalidJson;
  165|  13.4k|		vec.reserve(count);
  166|  13.4k|		return Error::None;
  167|  13.4k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_4SkinENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  4.87k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  4.87k|		std::size_t count;
  163|  4.87k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 8, False: 4.86k]
  ------------------
  164|      8|			return Error::InvalidJson;
  165|  4.86k|		vec.reserve(count);
  166|  4.86k|		return Error::None;
  167|  4.87k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_7TextureENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  10.0k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  10.0k|		std::size_t count;
  163|  10.0k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 19, False: 9.99k]
  ------------------
  164|     19|			return Error::InvalidJson;
  165|  9.99k|		vec.reserve(count);
  166|  9.99k|		return Error::None;
  167|  10.0k|	}
parser.cpp:_ZZN8fastgltf6Parser13parseTexturesERNS_8internal9JsonArrayERNS_5AssetEENK3$_0clEN8simdjson8fallback8ondemand5valueE:
 2308|  10.8k|		const auto readExtensions = [&](ondemand::value extensions) {
 2309|  10.8k|			return parseTextureExtensions(extensions, texture, config.extensions);
 2310|  10.8k|		};
_ZN8fastgltf22parseTextureExtensionsEN8simdjson8fallback8ondemand5valueERNS_7TextureENS_10ExtensionsE:
  570|  10.8k|			simdjson::ondemand::value value, Texture& texture, const Extensions extensions) {
  571|  10.8k|		using namespace simdjson;
  572|       |
  573|       |		// Each of these extensions only defines the index of the image to use instead, as "source".
  574|  10.8k|		const auto readSource = [extensions](const Extensions extension,
  575|  10.8k|				optional<std::size_t>& out) {
  576|  10.8k|			return [enabled = hasBit(extensions, extension), &out](
  577|  10.8k|					ondemand::value value) -> error_code {
  578|  10.8k|				if (!enabled)
  579|  10.8k|					return SUCCESS;
  580|  10.8k|				if (const auto error = value.get_object().for_each<"source">(out);
  581|  10.8k|					error != SUCCESS) [[unlikely]]
  582|  10.8k|					return error;
  583|  10.8k|				return out ? SUCCESS : NO_SUCH_FIELD;
  584|  10.8k|			};
  585|  10.8k|		};
  586|       |
  587|  10.8k|		return value.get_object().for_each<
  588|  10.8k|			"KHR_texture_basisu",
  589|  10.8k|			"MSFT_texture_dds",
  590|  10.8k|			"EXT_texture_webp",
  591|  10.8k|			"EXT_texture_avif">(
  592|  10.8k|			readSource(Extensions::KHR_texture_basisu, texture.basisuImageIndex),
  593|  10.8k|			readSource(Extensions::MSFT_texture_dds, texture.ddsImageIndex),
  594|  10.8k|			readSource(Extensions::EXT_texture_webp, texture.webpImageIndex),
  595|  10.8k|			readSource(Extensions::EXT_texture_avif, texture.avifImageIndex));
  596|  10.8k|	}
_ZZZN8fastgltf22parseTextureExtensionsEN8simdjson8fallback8ondemand5valueERNS_7TextureENS_10ExtensionsEENKUlS6_RNS_14basic_optionalImNS_15flagged_storageImEEEEE_clES6_SB_ENKUlS3_E_clES3_:
  577|  10.1k|					ondemand::value value) -> error_code {
  578|  10.1k|				if (!enabled)
  ------------------
  |  Branch (578:9): [True: 0, False: 10.1k]
  ------------------
  579|      0|					return SUCCESS;
  580|  10.1k|				if (const auto error = value.get_object().for_each<"source">(out);
  581|  10.1k|					error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (581:6): [True: 38, False: 10.1k]
  ------------------
  582|     38|					return error;
  583|  10.1k|				return out ? SUCCESS : NO_SUCH_FIELD;
  ------------------
  |  Branch (583:12): [True: 10.1k, False: 17]
  ------------------
  584|  10.1k|			};
_ZZN8fastgltf22parseTextureExtensionsEN8simdjson8fallback8ondemand5valueERNS_7TextureENS_10ExtensionsEENKUlS6_RNS_14basic_optionalImNS_15flagged_storageImEEEEE_clES6_SB_:
  575|  43.2k|				optional<std::size_t>& out) {
  576|  43.2k|			return [enabled = hasBit(extensions, extension), &out](
  577|  43.2k|					ondemand::value value) -> error_code {
  578|  43.2k|				if (!enabled)
  579|  43.2k|					return SUCCESS;
  580|  43.2k|				if (const auto error = value.get_object().for_each<"source">(out);
  581|  43.2k|					error != SUCCESS) [[unlikely]]
  582|  43.2k|					return error;
  583|  43.2k|				return out ? SUCCESS : NO_SUCH_FIELD;
  584|  43.2k|			};
  585|  43.2k|		};
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_5ShapeENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  13.1k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  13.1k|		std::size_t count;
  163|  13.1k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 12, False: 13.1k]
  ------------------
  164|     12|			return Error::InvalidJson;
  165|  13.1k|		vec.reserve(count);
  166|  13.1k|		return Error::None;
  167|  13.1k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf11SphereShapeE:
 2326|  21.3k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::SphereShape& out) {
 2327|  21.3k|		return val.get_object().template for_each<"radius">(out.radius);
 2328|  21.3k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf8BoxShapeE:
 2331|     80|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::BoxShape& out) {
 2332|     80|		return val.get_object().template for_each<"size">(out.size);
 2333|     80|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf12CapsuleShapeE:
 2336|  15.6k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::CapsuleShape& out) {
 2337|  15.6k|		return val.get_object().template for_each<"height", "radiusBottom", "radiusTop">(
 2338|  15.6k|			out.height, out.radiusBottom, out.radiusTop);
 2339|  15.6k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf13CylinderShapeE:
 2342|  8.20k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::CylinderShape& out) {
 2343|  8.20k|		return val.get_object().template for_each<"height", "radiusBottom", "radiusTop">(
 2344|  8.20k|			out.height, out.radiusBottom, out.radiusTop);
 2345|  8.20k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf10PlaneShapeE:
 2348|  26.3k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::PlaneShape& out) {
 2349|  26.3k|		return val.get_object().template for_each<"sizeX", "sizeZ", "doubleSided">(
 2350|  26.3k|			out.sizeX, out.sizeZ, out.doubleSided);
 2351|  26.3k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_15PhysicsMaterialENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  5.00k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  5.00k|		std::size_t count;
  163|  5.00k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 11, False: 4.99k]
  ------------------
  164|     11|			return Error::InvalidJson;
  165|  4.99k|		vec.reserve(count);
  166|  4.99k|		return Error::None;
  167|  5.00k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf11CombineModeE:
  394|   217k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::CombineMode& out) noexcept {
  395|   217k|		using enum fastgltf::CombineMode;
  396|   217k|		return fastgltf::readStringEnum<
  397|   217k|			"average", "minimum", "maximum", "multiply">(
  398|   217k|			val, out,
  399|   217k|			{ Average, Minimum, Maximum, Multiply });
  400|   217k|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm8EEEtlA8_cLc97ELc118ELc101ELc114ELc97ELc103ELc101EEEEXtlS4_tlS5_Lc109ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlS4_tlS5_Lc109ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlNS3_ILm9EEEtlA9_cLc109ELc117ELc108ELc116ELc105ELc112ELc108ELc121EEEEENS1_8fallback8ondemand5valueENS_11CombineModeEEENS1_10error_codeERT0_RT1_RAsZT__KSF_:
  250|   217k|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|   217k|		simdjson::ondemand::raw_json_string string;
  252|   217k|		if (const auto error = value.get_raw_json_string().get(string);
  253|   217k|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 2, False: 217k]
  ------------------
  254|      2|			return error;
  255|       |
  256|   217k|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|   217k|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 9, False: 217k]
  ------------------
  258|      9|			return simdjson::INCORRECT_TYPE;
  259|   217k|		out = values[index];
  260|   217k|		return simdjson::SUCCESS;
  261|   217k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_15CollisionFilterENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  7.92k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  7.92k|		std::size_t count;
  163|  7.92k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 8, False: 7.91k]
  ------------------
  164|      8|			return Error::InvalidJson;
  165|  7.91k|		vec.reserve(count);
  166|  7.91k|		return Error::None;
  167|  7.92k|	}
_ZN8fastgltf15reserveElementsINSt3__16vectorINS_12PhysicsJointENS1_9allocatorIS3_EEEEQrQT_m_XcldtfL0p_7reservefL0p0_EEEENS_5ErrorERN8simdjson8fallback8ondemand5arrayERS7_:
  161|  1.31k|	[[nodiscard]] FASTGLTF_FORCEINLINE Error reserveElements(simdjson::ondemand::array& array, Vec& vec) {
  162|  1.31k|		std::size_t count;
  163|  1.31k|		if (array.count_elements().get(count) != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (163:7): [True: 11, False: 1.29k]
  ------------------
  164|     11|			return Error::InvalidJson;
  165|  1.29k|		vec.reserve(count);
  166|  1.29k|		return Error::None;
  167|  1.31k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf10JointLimitE:
 2482|    162|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::JointLimit& out) {
 2483|    162|		const auto readLinearAxes = [&](ondemand::value axes) {
 2484|    162|			return fastgltf::parseAxes(axes, out.linearAxes);
 2485|    162|		};
 2486|    162|		const auto readAngularAxes = [&](ondemand::value axes) {
 2487|    162|			return fastgltf::parseAxes(axes, out.angularAxes);
 2488|    162|		};
 2489|       |
 2490|    162|		const auto error = val.get_object().template for_each<
 2491|    162|			"min", "max", "stiffness", "damping",
 2492|    162|			"linearAxes", "angularAxes">(
 2493|    162|			out.min, out.max, out.stiffness, out.damping,
 2494|    162|			readLinearAxes, readAngularAxes);
 2495|    162|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2495:7): [True: 135, False: 27]
  ------------------
 2496|    135|			return error;
 2497|       |
 2498|       |		// A limit has to have exactly one of these. parseAxes doesn't allow empty arrays.
 2499|     27|		if (out.linearAxes.empty() == out.angularAxes.empty()) [[unlikely]]
  ------------------
  |  Branch (2499:7): [True: 27, False: 0]
  ------------------
 2500|     27|			return INCORRECT_TYPE;
 2501|      0|		return SUCCESS;
 2502|     27|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf10JointDriveE:
 2505|    199|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::JointDrive& out) {
 2506|    199|		using namespace fastgltf;
 2507|       |
 2508|    199|		std::optional<DriveType> type;
 2509|    199|		std::optional<DriveMode> mode;
 2510|    199|		std::optional<std::uint8_t> axis;
 2511|    199|		fastgltf::optional<fastgltf::num> positionTarget, stiffness, velocityTarget, damping;
 2512|       |
 2513|    199|		const auto error = val.get_object().template for_each<
 2514|    199|			"type", "mode", "axis", "maxForce",
 2515|    199|			"positionTarget", "stiffness", "velocityTarget", "damping">(
 2516|    199|			type, mode, axis, out.maxForce,
 2517|    199|			positionTarget, stiffness, velocityTarget, damping);
 2518|    199|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2518:7): [True: 147, False: 52]
  ------------------
 2519|    147|			return error;
 2520|       |
 2521|     52|		if (!type || !mode || !axis) [[unlikely]]
  ------------------
  |  Branch (2521:7): [True: 52, False: 0]
  |  Branch (2521:16): [True: 0, False: 0]
  |  Branch (2521:25): [True: 0, False: 0]
  ------------------
 2522|     52|			return NO_SUCH_FIELD;
 2523|       |
 2524|       |		// positionTarget requires stiffness, and velocityTarget requires damping.
 2525|      0|		if (*axis > 2 || positionTarget.has_value() != stiffness.has_value() ||
  ------------------
  |  Branch (2525:7): [True: 0, False: 0]
  |  Branch (2525:20): [True: 0, False: 0]
  ------------------
 2526|      0|			velocityTarget.has_value() != damping.has_value()) [[unlikely]]
  ------------------
  |  Branch (2526:4): [True: 0, False: 0]
  ------------------
 2527|      0|			return INCORRECT_TYPE;
 2528|       |
 2529|      0|		out.type = *type;
 2530|      0|		out.mode = *mode;
 2531|      0|		out.axis = *axis;
 2532|      0|		if (positionTarget) {
  ------------------
  |  Branch (2532:7): [True: 0, False: 0]
  ------------------
 2533|      0|			out.positionTarget = *positionTarget;
 2534|      0|			out.stiffness = *stiffness;
 2535|      0|		}
 2536|      0|		if (velocityTarget) {
  ------------------
  |  Branch (2536:7): [True: 0, False: 0]
  ------------------
 2537|      0|			out.velocityTarget = *velocityTarget;
 2538|      0|			out.damping = *damping;
 2539|      0|		}
 2540|      0|		return SUCCESS;
 2541|      0|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf9DriveTypeE:
  403|      9|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::DriveType& out) noexcept {
  404|      9|		using enum fastgltf::DriveType;
  405|      9|		return fastgltf::readStringEnum<"linear", "angular">(val, out, { Linear, Angular });
  406|      9|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm7EEEtlA7_cLc108ELc105ELc110ELc101ELc97ELc114EEEEXtlNS3_ILm8EEEtlA8_cLc97ELc110ELc103ELc117ELc108ELc97ELc114EEEEENS1_8fallback8ondemand5valueENS_9DriveTypeEEENS1_10error_codeERT0_RT1_RAsZT__KSF_:
  250|      9|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|      9|		simdjson::ondemand::raw_json_string string;
  252|      9|		if (const auto error = value.get_raw_json_string().get(string);
  253|      9|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 3, False: 6]
  ------------------
  254|      3|			return error;
  255|       |
  256|      6|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|      6|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 6, False: 0]
  ------------------
  258|      6|			return simdjson::INCORRECT_TYPE;
  259|      0|		out = values[index];
  260|      0|		return simdjson::SUCCESS;
  261|      6|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf9DriveModeE:
  409|      8|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::DriveMode& out) noexcept {
  410|      8|		using enum fastgltf::DriveMode;
  411|      8|		return fastgltf::readStringEnum<"force", "acceleration">(val, out, { Force, Acceleration });
  412|      8|	}
_ZN8fastgltf14readStringEnumITpTnN8simdjson13constevalutil12fixed_stringEJXtlNS3_ILm6EEEtlA6_cLc102ELc111ELc114ELc99ELc101EEEEXtlNS3_ILm13EEEtlA13_cLc97ELc99ELc99ELc101ELc108ELc101ELc114ELc97ELc116ELc105ELc111ELc110EEEEENS1_8fallback8ondemand5valueENS_9DriveModeEEENS1_10error_codeERT0_RT1_RAsZT__KSF_:
  250|      8|			const Enum (&values)[sizeof...(Keys)]) noexcept {
  251|      8|		simdjson::ondemand::raw_json_string string;
  252|      8|		if (const auto error = value.get_raw_json_string().get(string);
  253|      8|			error != simdjson::SUCCESS) [[unlikely]]
  ------------------
  |  Branch (253:4): [True: 3, False: 5]
  ------------------
  254|      3|			return error;
  255|       |
  256|      5|		const auto index = simdjson::ondemand::key_selector<Keys...>::match_raw(string);
  257|      5|		if (index == sizeof...(Keys)) [[unlikely]]
  ------------------
  |  Branch (257:7): [True: 5, False: 0]
  ------------------
  258|      5|			return simdjson::INCORRECT_TYPE;
  259|      0|		out = values[index];
  260|      0|		return simdjson::SUCCESS;
  261|      5|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf6MotionE:
 2575|  3.88k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Motion& out) {
 2576|  3.88k|		return val.get_object().template for_each<
 2577|  3.88k|			"isKinematic", "mass", "centerOfMass", "inertiaDiagonal",
 2578|  3.88k|			"inertiaOrientation", "linearVelocity", "angularVelocity", "gravityFactor">(
 2579|  3.88k|			out.isKinematic, out.mass, out.centerOfMass, out.inertialDiagonal,
 2580|  3.88k|			out.inertialOrientation, out.linearVelocity, out.angularVelocity, out.gravityFactor);
 2581|  3.88k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf8ColliderE:
 2584|  39.0k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Collider& out) {
 2585|  39.0k|		std::optional<fastgltf::Geometry> geometry;
 2586|       |
 2587|  39.0k|		const auto error = val.get_object().template for_each<
 2588|  39.0k|			"geometry", "physicsMaterial", "collisionFilter">(
 2589|  39.0k|			geometry, out.physicsMaterial, out.collisionFilter);
 2590|  39.0k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2590:7): [True: 130, False: 38.8k]
  ------------------
 2591|    130|			return error;
 2592|       |
 2593|  38.8k|		if (!geometry) [[unlikely]]
  ------------------
  |  Branch (2593:7): [True: 37, False: 38.8k]
  ------------------
 2594|     37|			return NO_SUCH_FIELD;
 2595|       |
 2596|  38.8k|		out.geometry = *geometry;
 2597|  38.8k|		return SUCCESS;
 2598|  38.8k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf8GeometryE:
 2569|  51.8k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Geometry& out) {
 2570|  51.8k|		return val.get_object().template for_each<"shape", "mesh", "convexHull">(
 2571|  51.8k|			out.shape, out.mesh, out.convexHull);
 2572|  51.8k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSt3__17variantIJN8fastgltf15GeometryTriggerENSA_11NodeTriggerEEEE:
 2619|  20.6k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Trigger& out) {
 2620|  20.6k|		std::optional<fastgltf::Geometry> geometry;
 2621|  20.6k|		std::optional<std::vector<std::size_t>> nodes;
 2622|  20.6k|		fastgltf::optional<std::size_t> collisionFilter;
 2623|       |
 2624|  20.6k|		const auto error = val.get_object().template for_each<
 2625|  20.6k|			"geometry", "nodes", "collisionFilter">(
 2626|  20.6k|			geometry, nodes, collisionFilter);
 2627|  20.6k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2627:7): [True: 137, False: 20.5k]
  ------------------
 2628|    137|			return error;
 2629|       |
 2630|  20.5k|		if (nodes) {
  ------------------
  |  Branch (2630:7): [True: 7.78k, False: 12.7k]
  ------------------
 2631|  7.78k|			out.emplace<fastgltf::NodeTrigger>().nodes = std::move(*nodes);
 2632|  12.7k|		} else if (geometry) {
  ------------------
  |  Branch (2632:14): [True: 12.7k, False: 55]
  ------------------
 2633|       |			// Only triggers with geometry have a collision filter, otherwise the nodes' are used.
 2634|  12.7k|			auto& trigger = out.emplace<fastgltf::GeometryTrigger>();
 2635|  12.7k|			trigger.geometry = *geometry;
 2636|  12.7k|			trigger.collisionFilter = collisionFilter;
 2637|  12.7k|		} else [[unlikely]] {
 2638|     55|			return NO_SUCH_FIELD;
 2639|     55|		}
 2640|  20.5k|		return SUCCESS;
 2641|  20.5k|	}
parser.cpp:_ZN8simdjsonL10tag_invokeINS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT_RN8fastgltf5JointE:
 2601|  11.9k|	static error_code tag_invoke(deserialize_tag, T& val, fastgltf::Joint& out) {
 2602|  11.9k|		fastgltf::optional<std::size_t> connectedNode, joint;
 2603|       |
 2604|  11.9k|		const auto error = val.get_object().template for_each<
 2605|  11.9k|			"connectedNode", "joint", "enableCollision">(
 2606|  11.9k|			connectedNode, joint, out.enableCollision);
 2607|  11.9k|		if (error != SUCCESS) [[unlikely]]
  ------------------
  |  Branch (2607:7): [True: 52, False: 11.8k]
  ------------------
 2608|     52|			return error;
 2609|       |
 2610|  11.8k|		if (!connectedNode || !joint) [[unlikely]]
  ------------------
  |  Branch (2610:7): [True: 71, False: 11.8k]
  |  Branch (2610:25): [True: 10, False: 11.8k]
  ------------------
 2611|     81|			return NO_SUCH_FIELD;
 2612|       |
 2613|  11.8k|		out.connectedNode = *connectedNode;
 2614|  11.8k|		out.joint = *joint;
 2615|  11.8k|		return SUCCESS;
 2616|  11.8k|	}

_ZN8fastgltf8internal8parseURIENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
   44|   193k|	URIComponents parseURI(const std::string_view str) noexcept {
   45|   193k|		URIComponents c;
   46|   193k|		if (str.empty()) {
  ------------------
  |  Branch (46:7): [True: 6, False: 193k]
  ------------------
   47|      6|			c._valid = false;
   48|      6|			return c;
   49|      6|		}
   50|       |
   51|   193k|		std::size_t idx = 0;
   52|       |
   53|       |		// Check the URI scheme defined as ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
   54|   193k|		if (isAlpha(str[0])) {
  ------------------
  |  Branch (54:7): [True: 153k, False: 39.9k]
  ------------------
   55|   153k|			std::size_t i = 1;
   56|  1.73M|			while (i < str.size() && isSchemeChar(str[i])) {
  ------------------
  |  Branch (56:11): [True: 1.68M, False: 54.2k]
  |  Branch (56:29): [True: 1.58M, False: 99.3k]
  ------------------
   57|  1.58M|				++i;
   58|  1.58M|			}
   59|   153k|			if (i < str.size() && str[i] == ':') {
  ------------------
  |  Branch (59:8): [True: 99.3k, False: 54.2k]
  |  Branch (59:26): [True: 24.2k, False: 75.1k]
  ------------------
   60|  24.2k|				c._scheme = { .pos = 0, .len = i };
   61|  24.2k|				idx = i + 1;
   62|  24.2k|			}
   63|   153k|		}
   64|       |
   65|   193k|		if (startsWith(str.substr(idx), "//")) {
  ------------------
  |  Branch (65:7): [True: 8.99k, False: 184k]
  ------------------
   66|       |			// URI has an authority part.
   67|  8.99k|			idx += 2;
   68|  8.99k|			auto authEnd = str.find_first_of("/?#", idx);
   69|  8.99k|			if (authEnd == std::string_view::npos)
  ------------------
  |  Branch (69:8): [True: 4.31k, False: 4.68k]
  ------------------
   70|  4.31k|				authEnd = str.size();
   71|  8.99k|			const auto authority = str.substr(idx, authEnd - idx);
   72|       |
   73|  8.99k|			if (const auto at = authority.rfind('@');
   74|  8.99k|				at != std::string_view::npos) {
  ------------------
  |  Branch (74:5): [True: 1.09k, False: 7.90k]
  ------------------
   75|  1.09k|				c._userinfo = { .pos = idx, .len = at };
   76|  1.09k|				idx += at + 1;
   77|  1.09k|			}
   78|       |
   79|  8.99k|			auto hostEnd = authEnd;
   80|  8.99k|			if (idx < authEnd && str[idx] == '[') {
  ------------------
  |  Branch (80:8): [True: 5.93k, False: 3.05k]
  |  Branch (80:25): [True: 1.83k, False: 4.10k]
  ------------------
   81|  1.83k|				const auto bracket = str.find_first_of(']', idx);
   82|  1.83k|				if (bracket == std::string_view::npos || bracket >= authEnd) {
  ------------------
  |  Branch (82:9): [True: 4, False: 1.83k]
  |  Branch (82:46): [True: 9, False: 1.82k]
  ------------------
   83|     13|					c._valid = false;
   84|     13|					return c;
   85|     13|				}
   86|  1.82k|				hostEnd = bracket + 1;
   87|  1.82k|				if (hostEnd != authEnd && str[hostEnd] != ':') {
  ------------------
  |  Branch (87:9): [True: 742, False: 1.08k]
  |  Branch (87:31): [True: 6, False: 736]
  ------------------
   88|      6|					c._valid = false;
   89|      6|					return c;
   90|      6|				}
   91|  7.15k|			} else if (const auto colon = str.find_first_of(':', idx); colon < authEnd) {
  ------------------
  |  Branch (91:63): [True: 935, False: 6.22k]
  ------------------
   92|    935|				hostEnd = colon;
   93|    935|			}
   94|       |
   95|  8.97k|			c._host = { .pos = idx, .len = hostEnd - idx };
   96|  8.97k|			if (hostEnd < authEnd)
  ------------------
  |  Branch (96:8): [True: 1.67k, False: 7.30k]
  ------------------
   97|  1.67k|				c._port = { .pos = hostEnd + 1, .len = authEnd - hostEnd - 1 };
   98|       |
   99|  8.97k|			idx = authEnd;
  100|  8.97k|		}
  101|       |
  102|   193k|		if (get(str, c._scheme) == "data") {
  ------------------
  |  Branch (102:7): [True: 18.3k, False: 175k]
  ------------------
  103|       |			// The data scheme is just followed by a mime and then bytes.
  104|       |			// Also, let's avoid all the find and substr on very large data strings
  105|       |			// which can be multiple MB.
  106|  18.3k|			c._path = { .pos = idx, .len = str.size() - idx };
  107|   175k|		} else if (idx == str.size()) {
  ------------------
  |  Branch (107:14): [True: 4.77k, False: 170k]
  ------------------
  108|  4.77k|			c._path = { .pos = idx, .len = 0 };
  109|   170k|		} else {
  110|       |			// Parse the path.
  111|   170k|			auto questionIdx = str.find('?', idx);
  112|   170k|			auto hashIdx = str.find('#', idx);
  113|       |			// The fragment runs to the end of the URI, so a '?' after the '#' belongs to the fragment.
  114|   170k|			if (hashIdx != std::string_view::npos && questionIdx > hashIdx)
  ------------------
  |  Branch (114:8): [True: 4.92k, False: 165k]
  |  Branch (114:45): [True: 4.02k, False: 896]
  ------------------
  115|  4.02k|				questionIdx = std::string_view::npos;
  116|   170k|			if (questionIdx != std::string_view::npos) {
  ------------------
  |  Branch (116:8): [True: 4.02k, False: 166k]
  ------------------
  117|  4.02k|				c._path = { .pos = idx, .len = questionIdx - idx };
  118|       |
  119|  4.02k|				if (hashIdx == std::string_view::npos) {
  ------------------
  |  Branch (119:9): [True: 3.12k, False: 896]
  ------------------
  120|  3.12k|					++questionIdx;
  121|  3.12k|					c._query = { .pos = questionIdx, .len = str.size() - questionIdx };
  122|  3.12k|				} else {
  123|    896|					++questionIdx;
  124|    896|					c._query = { .pos = questionIdx, .len = hashIdx - questionIdx };
  125|    896|					++hashIdx;
  126|    896|					c._fragment = { .pos = hashIdx, .len = str.size() - hashIdx };
  127|    896|				}
  128|   166k|			} else if (hashIdx != std::string_view::npos) {
  ------------------
  |  Branch (128:15): [True: 4.02k, False: 162k]
  ------------------
  129|  4.02k|				c._path = { .pos = idx, .len = hashIdx - idx };
  130|  4.02k|				++hashIdx;
  131|  4.02k|				c._fragment = { .pos = hashIdx, .len = str.size() - hashIdx };
  132|   162k|			} else {
  133|   162k|				c._path = { .pos = idx, .len = str.size() - idx };
  134|   162k|			}
  135|   170k|		}
  136|       |
  137|   193k|		c._valid = true;
  138|   193k|		return c;
  139|   193k|	}
_ZN8fastgltf14encodePercentsENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  160|  27.6k|std::string fg::encodePercents(const std::string_view x) {
  161|  27.6k|	std::string ret;
  162|  27.6k|	ret.reserve(x.size());
  163|  27.6k|	constexpr std::string_view hex = "0123456789ABCDEF";
  164|  45.8M|	for (const unsigned char c : x) {
  ------------------
  |  Branch (164:29): [True: 45.8M, False: 27.6k]
  ------------------
  165|  45.8M|		const bool unreserved = (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') ||
  ------------------
  |  Branch (165:28): [True: 19.9M, False: 25.9M]
  |  Branch (165:40): [True: 5.08M, False: 14.8M]
  |  Branch (165:54): [True: 7.35M, False: 33.4M]
  |  Branch (165:66): [True: 4.67M, False: 2.67M]
  ------------------
  166|  36.1M|			(c >= '0' && c <= '9') || c == '-' || c == '.' || c == '_' || c == '~' || c == '/' ||
  ------------------
  |  Branch (166:5): [True: 32.6M, False: 3.49M]
  |  Branch (166:17): [True: 22.1M, False: 10.4M]
  |  Branch (166:30): [True: 38.3k, False: 13.9M]
  |  Branch (166:42): [True: 161k, False: 13.7M]
  |  Branch (166:54): [True: 17.2k, False: 13.7M]
  |  Branch (166:66): [True: 39.8k, False: 13.6M]
  |  Branch (166:78): [True: 284k, False: 13.4M]
  ------------------
  167|  13.4M|			c >= 0x80;
  ------------------
  |  Branch (167:4): [True: 62.2k, False: 13.3M]
  ------------------
  168|  45.8M|		if (unreserved) {
  ------------------
  |  Branch (168:7): [True: 32.5M, False: 13.3M]
  ------------------
  169|  32.5M|			ret.push_back(static_cast<char>(c));
  170|  32.5M|		} else {
  171|  13.3M|			ret.push_back('%');
  172|  13.3M|			ret.push_back(hex[c >> 4]);
  173|  13.3M|			ret.push_back(hex[c & 0xF]);
  174|  13.3M|		}
  175|  45.8M|	}
  176|  27.6k|	return ret;
  177|  27.6k|}
_ZN8fastgltf7URIViewC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
  179|   193k|fg::URIView::URIView(const std::string_view uri) noexcept : _view(uri), _components(internal::parseURI(_view)) {}
_ZN8fastgltf3URIaSERKNS_7URIViewE:
  209|   175k|fg::URI& fg::URI::operator=(const URIView& other) {
  210|   175k|	_uri = other._view;
  211|   175k|	_components = other._components;
  212|   175k|	return *this;
  213|   175k|}
uri.cpp:_ZN8fastgltf8internalL7isAlphaEc:
   37|  1.87M|	[[nodiscard]] static constexpr bool isAlpha(const char c) noexcept {
   38|  1.87M|		return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
  ------------------
  |  Branch (38:11): [True: 1.25M, False: 616k]
  |  Branch (38:23): [True: 1.25M, False: 4.58k]
  |  Branch (38:37): [True: 372k, False: 248k]
  |  Branch (38:49): [True: 316k, False: 56.1k]
  ------------------
   39|  1.87M|	}
uri.cpp:_ZN8fastgltf8internalL12isSchemeCharEc:
   40|  1.68M|	[[nodiscard]] static constexpr bool isSchemeChar(const char c) noexcept {
   41|  1.68M|		return isAlpha(c) || (c >= '0' && c <= '9') || c == '+' || c == '-' || c == '.';
  ------------------
  |  Branch (41:10): [True: 1.41M, False: 264k]
  |  Branch (41:25): [True: 178k, False: 86.0k]
  |  Branch (41:37): [True: 95.5k, False: 82.7k]
  |  Branch (41:50): [True: 4.56k, False: 164k]
  |  Branch (41:62): [True: 2.61k, False: 161k]
  |  Branch (41:74): [True: 62.2k, False: 99.3k]
  ------------------
   42|  1.68M|	}

_ZN8fastgltf8validateERKNS_5AssetE:
   32|  45.4k|fg::Error fg::validate(const Asset& asset) {
   33|  45.4k|	auto isExtensionRequired = [&used = asset.extensionsRequired](const std::string_view extension) {
   34|  45.4k|		return std::ranges::any_of(used, [&](auto& arg) {
   35|  45.4k|			return arg == extension;
   36|  45.4k|		});
   37|  45.4k|	};
   38|  45.4k|	auto isExtensionUsed = [&used = asset.extensionsUsed](const std::string_view extension) {
   39|  45.4k|		return std::ranges::any_of(used, [&](auto& arg) {
   40|  45.4k|			return arg == extension;
   41|  45.4k|		});
   42|  45.4k|	};
   43|       |
   44|       |	// From the spec: extensionsRequired is a subset of extensionsUsed. All values in extensionsRequired MUST also exist in extensionsUsed.
   45|  45.4k|	if (asset.extensionsRequired.size() > asset.extensionsUsed.size()) {
  ------------------
  |  Branch (45:6): [True: 17, False: 45.4k]
  ------------------
   46|     17|		return Error::InvalidGltf;
   47|     17|	}
   48|  45.4k|	for (const auto& required : asset.extensionsRequired) {
  ------------------
  |  Branch (48:28): [True: 4.60k, False: 45.3k]
  ------------------
   49|  4.60k|		bool found = false;
   50|   174k|		for (const auto& used : asset.extensionsUsed) {
  ------------------
  |  Branch (50:25): [True: 174k, False: 4.60k]
  ------------------
   51|   174k|			if (required == used)
  ------------------
  |  Branch (51:8): [True: 15.0k, False: 159k]
  ------------------
   52|  15.0k|				found = true;
   53|   174k|		}
   54|  4.60k|		if (!found)
  ------------------
  |  Branch (54:7): [True: 52, False: 4.54k]
  ------------------
   55|     52|			return Error::InvalidGltf;
   56|  4.60k|	}
   57|       |
   58|  45.3k|	if (asset.assetInfo.version.major != 2)
  ------------------
  |  Branch (58:6): [True: 0, False: 45.3k]
  ------------------
   59|      0|		return Error::UnsupportedVersion;
   60|  45.3k|	if (asset.assetInfo.minVersion) {
  ------------------
  |  Branch (60:6): [True: 22, False: 45.3k]
  ------------------
   61|     22|		auto& minVersion = *asset.assetInfo.minVersion;
   62|     22|		if (minVersion > Version { 2, 0 })
  ------------------
  |  Branch (62:7): [True: 0, False: 22]
  ------------------
   63|      0|			return Error::UnsupportedVersion;
   64|     22|		if (minVersion > asset.assetInfo.version)
  ------------------
  |  Branch (64:7): [True: 0, False: 22]
  ------------------
   65|      0|			return Error::InvalidVersion;
   66|     22|	}
   67|       |
   68|  45.3k|	const auto allowHalfFloat = asset.assetInfo.version >= Version { 2, 1 } ||
  ------------------
  |  Branch (68:30): [True: 9.38k, False: 35.9k]
  ------------------
   69|  35.9k|		isExtensionRequired(extensions::KHR_accessor_float16);
  ------------------
  |  Branch (69:3): [True: 0, False: 35.9k]
  ------------------
   70|       |
   71|   166k|	for (const auto& accessor : asset.accessors) {
  ------------------
  |  Branch (71:28): [True: 166k, False: 45.1k]
  ------------------
   72|   166k|		if (accessor.type == AccessorType::Invalid)
  ------------------
  |  Branch (72:7): [True: 0, False: 166k]
  ------------------
   73|      0|			return Error::InvalidGltf;
   74|   166k|		if (accessor.componentType == ComponentType::Invalid)
  ------------------
  |  Branch (74:7): [True: 0, False: 166k]
  ------------------
   75|      0|			return Error::InvalidGltf;
   76|   166k|		if (accessor.componentType == ComponentType::HalfFloat && !allowHalfFloat)
  ------------------
  |  Branch (76:7): [True: 423, False: 166k]
  |  Branch (76:61): [True: 1, False: 422]
  ------------------
   77|      1|			return Error::InvalidGltf;
   78|       |
   79|   166k|		if (const auto error = validateAccessorBounds(asset, accessor);
   80|   166k|			error != Error::None) [[unlikely]]
  ------------------
  |  Branch (80:4): [True: 225, False: 166k]
  ------------------
   81|    225|			return error;
   82|       |
   83|   166k|		if (accessor.byteOffset != 0) {
  ------------------
  |  Branch (83:7): [True: 35.8k, False: 130k]
  ------------------
   84|       |			// The offset of an accessor into a bufferView (i.e., accessor.byteOffset)
   85|       |			// and the offset of an accessor into a buffer (i.e., accessor.byteOffset + bufferView.byteOffset)
   86|       |			// MUST be a multiple of the size of the accessor’s component type.
   87|  35.8k|			auto componentByteSize = getComponentByteSize(accessor.componentType);
   88|  35.8k|			if (accessor.byteOffset % componentByteSize != 0)
  ------------------
  |  Branch (88:8): [True: 3, False: 35.8k]
  ------------------
   89|      3|				return Error::InvalidGltf;
   90|       |
   91|  35.8k|			if (accessor.bufferViewIndex.has_value()) {
  ------------------
  |  Branch (91:8): [True: 29.0k, False: 6.74k]
  ------------------
   92|  29.0k|				const auto& bufferView = asset.bufferViews[accessor.bufferViewIndex.value()];
   93|  29.0k|				if ((accessor.byteOffset + bufferView.byteOffset) % componentByteSize != 0)
  ------------------
  |  Branch (93:9): [True: 1, False: 29.0k]
  ------------------
   94|      1|					return Error::InvalidGltf;
   95|       |
   96|       |				// When byteStride is defined, it MUST be a multiple of the size of the accessor’s component type.
   97|  29.0k|				if (bufferView.byteStride.has_value() && bufferView.byteStride.value() % componentByteSize != 0)
  ------------------
  |  Branch (97:9): [True: 10.6k, False: 18.3k]
  |  Branch (97:46): [True: 1, False: 10.6k]
  ------------------
   98|      1|					return Error::InvalidGltf;
   99|  29.0k|			}
  100|  35.8k|		}
  101|       |
  102|   166k|		if (accessor.max.has_value()) {
  ------------------
  |  Branch (102:7): [True: 88.6k, False: 77.5k]
  ------------------
  103|  88.6k|			if (isFloatingPoint(accessor.componentType) && !accessor.max->isType<double>())
  ------------------
  |  Branch (103:8): [True: 72.6k, False: 16.0k]
  |  Branch (103:51): [True: 0, False: 72.6k]
  ------------------
  104|      0|				return Error::InvalidGltf;
  105|       |
  106|  88.6k|			if (accessor.max->size() != getNumComponents(accessor.type))
  ------------------
  |  Branch (106:8): [True: 0, False: 88.6k]
  ------------------
  107|      0|				return Error::InvalidGltf;
  108|  88.6k|		}
  109|       |
  110|   166k|		if (accessor.min.has_value()) {
  ------------------
  |  Branch (110:7): [True: 88.4k, False: 77.8k]
  ------------------
  111|  88.4k|			if (isFloatingPoint(accessor.componentType) && !accessor.min->isType<double>())
  ------------------
  |  Branch (111:8): [True: 71.7k, False: 16.6k]
  |  Branch (111:51): [True: 0, False: 71.7k]
  ------------------
  112|      0|				return Error::InvalidGltf;
  113|       |
  114|  88.4k|			if (accessor.min->size() != getNumComponents(accessor.type))
  ------------------
  |  Branch (114:8): [True: 0, False: 88.4k]
  ------------------
  115|      0|				return Error::InvalidGltf;
  116|  88.4k|		}
  117|       |
  118|   166k|		if (accessor.sparse) {
  ------------------
  |  Branch (118:7): [True: 14.7k, False: 151k]
  ------------------
  119|  14.7k|			if (accessor.sparse->indicesBufferView >= asset.bufferViews.size())
  ------------------
  |  Branch (119:8): [True: 11, False: 14.7k]
  ------------------
  120|     11|				return Error::InvalidGltf;
  121|       |
  122|  14.7k|			const auto& indicesView = asset.bufferViews[accessor.sparse->indicesBufferView];
  123|  14.7k|			if (indicesView.byteStride || indicesView.target)
  ------------------
  |  Branch (123:8): [True: 1, False: 14.7k]
  |  Branch (123:34): [True: 1, False: 14.7k]
  ------------------
  124|      2|				return Error::InvalidGltf;
  125|       |
  126|  14.7k|			if (accessor.sparse->valuesBufferView >= asset.bufferViews.size())
  ------------------
  |  Branch (126:8): [True: 2, False: 14.7k]
  ------------------
  127|      2|				return Error::InvalidGltf;
  128|       |
  129|  14.7k|			const auto& valueView = asset.bufferViews[accessor.sparse->valuesBufferView];
  130|  14.7k|			if (valueView.byteStride || valueView.target)
  ------------------
  |  Branch (130:8): [True: 1, False: 14.7k]
  |  Branch (130:32): [True: 1, False: 14.7k]
  ------------------
  131|      2|				return Error::InvalidGltf;
  132|  14.7k|		}
  133|   166k|	}
  134|       |
  135|  45.1k|	for (const auto& animation : asset.animations) {
  ------------------
  |  Branch (135:29): [True: 23.3k, False: 44.9k]
  ------------------
  136|  23.3k|		if (animation.channels.empty())
  ------------------
  |  Branch (136:7): [True: 0, False: 23.3k]
  ------------------
  137|      0|			return Error::InvalidGltf;
  138|  33.4k|		for (const auto& channel1 : animation.channels) {
  ------------------
  |  Branch (138:29): [True: 33.4k, False: 23.3k]
  ------------------
  139|  33.4k|			if (!channel1.nodeIndex.has_value())
  ------------------
  |  Branch (139:8): [True: 1.79k, False: 31.6k]
  ------------------
  140|  1.79k|				continue;
  141|  5.27M|			for (const auto& channel2 : animation.channels) {
  ------------------
  |  Branch (141:30): [True: 5.27M, False: 31.6k]
  ------------------
  142|  5.27M|				if (&channel1 == &channel2)
  ------------------
  |  Branch (142:9): [True: 31.6k, False: 5.24M]
  ------------------
  143|  31.6k|					continue;
  144|  5.24M|				if (channel1.nodeIndex == channel2.nodeIndex && channel1.path == channel2.path)
  ------------------
  |  Branch (144:9): [True: 2.31k, False: 5.24M]
  |  Branch (144:53): [True: 7, False: 2.30k]
  ------------------
  145|      7|					return Error::InvalidGltf;
  146|  5.24M|			}
  147|  31.6k|		}
  148|       |
  149|  23.3k|		if (animation.samplers.empty())
  ------------------
  |  Branch (149:7): [True: 0, False: 23.3k]
  ------------------
  150|      0|			return Error::InvalidGltf;
  151|  31.7k|		for (const auto& channel : animation.channels) {
  ------------------
  |  Branch (151:28): [True: 31.7k, False: 23.2k]
  ------------------
  152|  31.7k|			if (channel.samplerIndex >= animation.samplers.size())
  ------------------
  |  Branch (152:8): [True: 68, False: 31.7k]
  ------------------
  153|     68|				return Error::InvalidGltf;
  154|       |
  155|  31.7k|			const auto& sampler = animation.samplers[channel.samplerIndex];
  156|       |
  157|  31.7k|			if (sampler.inputAccessor >= asset.accessors.size())
  ------------------
  |  Branch (157:8): [True: 56, False: 31.6k]
  ------------------
  158|     56|				return Error::InvalidGltf;
  159|       |
  160|  31.6k|			const auto& inputAccessor = asset.accessors[sampler.inputAccessor];
  161|       |			// The accessor MUST be of scalar type with floating-point components
  162|  31.6k|			if (inputAccessor.type != AccessorType::Scalar)
  ------------------
  |  Branch (162:8): [True: 8, False: 31.6k]
  ------------------
  163|      8|				return Error::InvalidGltf;
  164|  31.6k|			if (!isFloatingPoint(inputAccessor.componentType))
  ------------------
  |  Branch (164:8): [True: 2, False: 31.6k]
  ------------------
  165|      2|				return Error::InvalidGltf;
  166|  31.6k|			if (inputAccessor.bufferViewIndex) {
  ------------------
  |  Branch (166:8): [True: 25.0k, False: 6.60k]
  ------------------
  167|  25.0k|				if (*inputAccessor.bufferViewIndex >= asset.bufferViews.size())
  ------------------
  |  Branch (167:9): [True: 0, False: 25.0k]
  ------------------
  168|      0|					return Error::InvalidGltf;
  169|  25.0k|				if (asset.bufferViews[*inputAccessor.bufferViewIndex].meshoptCompression)
  ------------------
  |  Branch (169:9): [True: 167, False: 24.8k]
  ------------------
  170|    167|					continue;
  171|  25.0k|			}
  172|       |
  173|  31.4k|			if (inputAccessor.count == 0)
  ------------------
  |  Branch (173:8): [True: 0, False: 31.4k]
  ------------------
  174|      0|				continue;
  175|       |
  176|  31.4k|			if (channel.path == AnimationPath::Weights)
  ------------------
  |  Branch (176:8): [True: 149, False: 31.3k]
  ------------------
  177|    149|				continue; // TODO: For weights, the input count needs to be multiplied by the morph target count.
  178|       |
  179|  31.3k|			if (sampler.outputAccessor >= asset.accessors.size())
  ------------------
  |  Branch (179:8): [True: 5, False: 31.3k]
  ------------------
  180|      5|				return Error::InvalidGltf;
  181|       |
  182|  31.3k|			const auto& outputAccessor = asset.accessors[sampler.outputAccessor];
  183|  31.3k|			if (outputAccessor.bufferViewIndex && asset.bufferViews[*outputAccessor.bufferViewIndex].meshoptCompression)
  ------------------
  |  Branch (183:8): [True: 26.3k, False: 5.00k]
  |  Branch (183:42): [True: 40, False: 26.2k]
  ------------------
  184|     40|				continue;
  185|       |
  186|  31.2k|			switch (sampler.interpolation) {
  ------------------
  |  Branch (186:12): [True: 31.2k, False: 0]
  ------------------
  187|  17.0k|				case AnimationInterpolation::Linear:
  ------------------
  |  Branch (187:5): [True: 17.0k, False: 14.2k]
  ------------------
  188|  24.8k|				case AnimationInterpolation::Step:
  ------------------
  |  Branch (188:5): [True: 7.80k, False: 23.4k]
  ------------------
  189|  24.8k|					if (inputAccessor.count != outputAccessor.count)
  ------------------
  |  Branch (189:10): [True: 2, False: 24.8k]
  ------------------
  190|      2|						return Error::InvalidGltf;
  191|  24.8k|					break;
  192|  24.8k|				case AnimationInterpolation::CubicSpline:
  ------------------
  |  Branch (192:5): [True: 6.44k, False: 24.8k]
  ------------------
  193|  6.44k|					if (inputAccessor.count < 2)
  ------------------
  |  Branch (193:10): [True: 1, False: 6.44k]
  ------------------
  194|      1|						return Error::InvalidGltf;
  195|  6.44k|					if (inputAccessor.count * 3 != outputAccessor.count)
  ------------------
  |  Branch (195:10): [True: 4, False: 6.44k]
  ------------------
  196|      4|						return Error::InvalidGltf;
  197|  6.44k|					break;
  198|  31.2k|			}
  199|  31.2k|		}
  200|  23.3k|	}
  201|       |
  202|  44.9k|	for (const auto& buffer : asset.buffers) {
  ------------------
  |  Branch (202:26): [True: 44.7k, False: 44.9k]
  ------------------
  203|  44.7k|		if (buffer.byteLength < 1)
  ------------------
  |  Branch (203:7): [True: 3, False: 44.7k]
  ------------------
  204|      3|			return Error::InvalidGltf;
  205|  44.7k|	}
  206|       |
  207|   137k|	for (const auto& bufferView : asset.bufferViews) {
  ------------------
  |  Branch (207:30): [True: 137k, False: 44.6k]
  ------------------
  208|   137k|		if (bufferView.byteLength < 1)
  ------------------
  |  Branch (208:7): [True: 2, False: 137k]
  ------------------
  209|      2|			return Error::InvalidGltf;
  210|   137k|		if (bufferView.byteStride.has_value() && (*bufferView.byteStride < 4U || *bufferView.byteStride > 252U || *bufferView.byteStride % 4 != 0))
  ------------------
  |  Branch (210:7): [True: 15.5k, False: 122k]
  |  Branch (210:45): [True: 1, False: 15.5k]
  |  Branch (210:76): [True: 56, False: 15.4k]
  |  Branch (210:109): [True: 4, False: 15.4k]
  ------------------
  211|     61|			return Error::InvalidGltf;
  212|   137k|		if (bufferView.bufferIndex >= asset.buffers.size())
  ------------------
  |  Branch (212:7): [True: 149, False: 137k]
  ------------------
  213|    149|			return Error::InvalidGltf;
  214|       |
  215|   137k|		if (const auto& buffer = asset.buffers[bufferView.bufferIndex];
  216|   137k|			bufferView.byteOffset + bufferView.byteLength > buffer.byteLength)
  ------------------
  |  Branch (216:4): [True: 25, False: 137k]
  ------------------
  217|     25|			return Error::InvalidGltf;
  218|       |
  219|   137k|		if (bufferView.meshoptCompression.has_value() &&
  ------------------
  |  Branch (219:7): [True: 22.1k, False: 115k]
  ------------------
  220|  22.1k|			!(isExtensionUsed(extensions::EXT_meshopt_compression) || isExtensionUsed(extensions::KHR_meshopt_compression)))
  ------------------
  |  Branch (220:6): [True: 13.1k, False: 9.01k]
  |  Branch (220:62): [True: 9.01k, False: 3]
  ------------------
  221|      3|			return Error::InvalidGltf;
  222|       |
  223|   137k|		if (bufferView.meshoptCompression) {
  ------------------
  |  Branch (223:7): [True: 22.1k, False: 115k]
  ------------------
  224|  22.1k|			const auto& compression = bufferView.meshoptCompression;
  225|  22.1k|			switch (compression->mode) {
  ------------------
  |  Branch (225:12): [True: 22.1k, False: 0]
  ------------------
  226|  15.3k|				case MeshoptCompressionMode::Attributes:
  ------------------
  |  Branch (226:5): [True: 15.3k, False: 6.84k]
  ------------------
  227|  15.3k|					if (compression->byteStride % 4 != 0 || compression->byteStride > 256)
  ------------------
  |  Branch (227:10): [True: 1, False: 15.3k]
  |  Branch (227:46): [True: 3, False: 15.3k]
  ------------------
  228|      4|						return Error::InvalidGltf;
  229|  15.3k|					break;
  230|  15.3k|				case MeshoptCompressionMode::Triangles:
  ------------------
  |  Branch (230:5): [True: 6.47k, False: 15.6k]
  ------------------
  231|  6.47k|					if (compression->count % 3 != 0)
  ------------------
  |  Branch (231:10): [True: 2, False: 6.46k]
  ------------------
  232|      2|						return Error::InvalidGltf;
  233|  6.46k|					[[fallthrough]];
  234|  6.84k|				case MeshoptCompressionMode::Indices:
  ------------------
  |  Branch (234:5): [True: 378, False: 21.7k]
  ------------------
  235|  6.84k|					if (compression->byteStride != 2 && compression->byteStride != 4)
  ------------------
  |  Branch (235:10): [True: 1.97k, False: 4.87k]
  |  Branch (235:42): [True: 49, False: 1.92k]
  ------------------
  236|     49|						return Error::InvalidGltf;
  237|  6.79k|					break;
  238|  22.1k|			}
  239|  22.1k|		}
  240|   137k|	}
  241|       |
  242|  44.6k|	for (const auto& camera : asset.cameras) {
  ------------------
  |  Branch (242:26): [True: 17.4k, False: 44.6k]
  ------------------
  243|  17.4k|		if (const auto* pOrthographic = std::get_if<Camera::Orthographic>(&camera.camera)) {
  ------------------
  |  Branch (243:19): [True: 10.1k, False: 7.25k]
  ------------------
  244|  10.1k|			if (pOrthographic->zfar == 0)
  ------------------
  |  Branch (244:8): [True: 1, False: 10.1k]
  ------------------
  245|      1|				return Error::InvalidGltf;
  246|  10.1k|		} else if (const auto* pPerspective = std::get_if<Camera::Perspective>(&camera.camera)) {
  ------------------
  |  Branch (246:26): [True: 7.25k, False: 0]
  ------------------
  247|  7.25k|			if (pPerspective->aspectRatio.has_value() && pPerspective->aspectRatio == .0f)
  ------------------
  |  Branch (247:8): [True: 1.53k, False: 5.72k]
  |  Branch (247:8): [True: 1, False: 7.25k]
  |  Branch (247:49): [True: 1, False: 1.53k]
  ------------------
  248|      1|				return Error::InvalidGltf;
  249|  7.25k|			if (pPerspective->yfov == 0)
  ------------------
  |  Branch (249:8): [True: 6, False: 7.25k]
  ------------------
  250|      6|				return Error::InvalidGltf;
  251|  7.25k|			if (pPerspective->zfar.has_value() && pPerspective->zfar == .0f)
  ------------------
  |  Branch (251:8): [True: 3.06k, False: 4.18k]
  |  Branch (251:8): [True: 1, False: 7.25k]
  |  Branch (251:42): [True: 1, False: 3.06k]
  ------------------
  252|      1|				return Error::InvalidGltf;
  253|  7.25k|			if (pPerspective->znear == 0.0F)
  ------------------
  |  Branch (253:8): [True: 15, False: 7.23k]
  ------------------
  254|     15|				return Error::InvalidGltf;
  255|  7.25k|		}
  256|  17.4k|	}
  257|       |
  258|  64.2k|	for (const auto& image : asset.images) {
  ------------------
  |  Branch (258:25): [True: 64.2k, False: 44.4k]
  ------------------
  259|  64.2k|		if (const auto* view = std::get_if<sources::BufferView>(&image.data); view != nullptr) {
  ------------------
  |  Branch (259:73): [True: 2.24k, False: 62.0k]
  ------------------
  260|  2.24k|			if (view->bufferViewIndex >= asset.bufferViews.size()) {
  ------------------
  |  Branch (260:8): [True: 242, False: 2.00k]
  ------------------
  261|    242|				return Error::InvalidGltf;
  262|    242|			}
  263|  2.24k|		}
  264|  64.2k|	}
  265|       |
  266|  44.4k|	for (const auto& light : asset.lights) {
  ------------------
  |  Branch (266:25): [True: 22.1k, False: 44.3k]
  ------------------
  267|  22.1k|		if (light.type == LightType::Directional && light.range.has_value())
  ------------------
  |  Branch (267:7): [True: 430, False: 21.7k]
  |  Branch (267:47): [True: 1, False: 429]
  ------------------
  268|      1|			return Error::InvalidGltf;
  269|  22.1k|		if (light.range.has_value() && light.range.value() <= 0)
  ------------------
  |  Branch (269:7): [True: 8.89k, False: 13.2k]
  |  Branch (269:34): [True: 2, False: 8.89k]
  ------------------
  270|      2|			return Error::InvalidGltf;
  271|       |
  272|  22.1k|		if (light.type != LightType::Spot) {
  ------------------
  |  Branch (272:7): [True: 16.4k, False: 5.71k]
  ------------------
  273|  16.4k|			if (light.innerConeAngle.has_value() || light.outerConeAngle.has_value()) {
  ------------------
  |  Branch (273:8): [True: 0, False: 16.4k]
  |  Branch (273:44): [True: 0, False: 16.4k]
  ------------------
  274|      0|				return Error::InvalidGltf;
  275|      0|			}
  276|  16.4k|		} else {
  277|  5.71k|			if (!light.innerConeAngle.has_value() || !light.outerConeAngle.has_value())
  ------------------
  |  Branch (277:8): [True: 0, False: 5.71k]
  |  Branch (277:45): [True: 0, False: 5.71k]
  ------------------
  278|      0|				return Error::InvalidGltf;
  279|  5.71k|			if (light.innerConeAngle.value() < 0)
  ------------------
  |  Branch (279:8): [True: 1, False: 5.71k]
  ------------------
  280|      1|				return Error::InvalidGltf;
  281|  5.71k|			if (light.innerConeAngle.value() > light.outerConeAngle.value())
  ------------------
  |  Branch (281:8): [True: 7, False: 5.70k]
  ------------------
  282|      7|				return Error::InvalidGltf;
  283|  5.70k|			if (light.outerConeAngle.value() > std::numbers::pi / 2)
  ------------------
  |  Branch (283:8): [True: 6, False: 5.69k]
  ------------------
  284|      6|				return Error::InvalidGltf;
  285|  5.70k|		}
  286|  22.1k|	}
  287|       |
  288|   490k|	for (const auto& material : asset.materials) {
  ------------------
  |  Branch (288:28): [True: 490k, False: 43.2k]
  ------------------
  289|   490k|		auto isInvalidTexture = [&textures = asset.textures](const std::size_t textureIndex) {
  290|   490k|			return textureIndex >= textures.size();
  291|   490k|		};
  292|   490k|		if (material.normalTexture.has_value() && isInvalidTexture(material.normalTexture->textureIndex))
  ------------------
  |  Branch (292:7): [True: 42.3k, False: 448k]
  |  Branch (292:45): [True: 120, False: 42.2k]
  ------------------
  293|    120|			return Error::InvalidGltf;
  294|   490k|		if (material.emissiveTexture.has_value() && isInvalidTexture(material.emissiveTexture->textureIndex))
  ------------------
  |  Branch (294:7): [True: 13.0k, False: 477k]
  |  Branch (294:47): [True: 68, False: 12.9k]
  ------------------
  295|     68|			return Error::InvalidGltf;
  296|   490k|		if (material.occlusionTexture.has_value() && isInvalidTexture(material.occlusionTexture->textureIndex))
  ------------------
  |  Branch (296:7): [True: 54.5k, False: 435k]
  |  Branch (296:48): [True: 151, False: 54.4k]
  ------------------
  297|    151|			return Error::InvalidGltf;
  298|   490k|		if (material.pbrData.baseColorTexture.has_value() &&
  ------------------
  |  Branch (298:7): [True: 43.5k, False: 446k]
  ------------------
  299|  43.5k|			isInvalidTexture(material.pbrData.baseColorTexture->textureIndex))
  ------------------
  |  Branch (299:4): [True: 94, False: 43.4k]
  ------------------
  300|     94|			return Error::InvalidGltf;
  301|   489k|		if (material.pbrData.metallicRoughnessTexture.has_value() &&
  ------------------
  |  Branch (301:7): [True: 27.7k, False: 462k]
  ------------------
  302|  27.7k|			isInvalidTexture(material.pbrData.metallicRoughnessTexture->textureIndex))
  ------------------
  |  Branch (302:4): [True: 59, False: 27.7k]
  ------------------
  303|     59|			return Error::InvalidGltf;
  304|       |
  305|       |		// Validate that for every additional material field from an extension the correct extension is marked as used by the asset.
  306|   489k|		if (material.anisotropy && !isExtensionUsed(extensions::KHR_materials_anisotropy))
  ------------------
  |  Branch (306:7): [True: 46.1k, False: 443k]
  |  Branch (306:30): [True: 36, False: 46.1k]
  ------------------
  307|     36|			return Error::InvalidGltf;
  308|   489k|		if (material.clearcoat && !isExtensionUsed(extensions::KHR_materials_clearcoat))
  ------------------
  |  Branch (308:7): [True: 53.0k, False: 436k]
  |  Branch (308:29): [True: 75, False: 52.9k]
  ------------------
  309|     75|			return Error::InvalidGltf;
  310|   489k|		if (material.iridescence && !isExtensionUsed(extensions::KHR_materials_iridescence))
  ------------------
  |  Branch (310:7): [True: 50.6k, False: 439k]
  |  Branch (310:31): [True: 73, False: 50.5k]
  ------------------
  311|     73|			return Error::InvalidGltf;
  312|   489k|		if (material.sheen && !isExtensionUsed(extensions::KHR_materials_sheen))
  ------------------
  |  Branch (312:7): [True: 23.0k, False: 466k]
  |  Branch (312:25): [True: 76, False: 23.0k]
  ------------------
  313|     76|			return Error::InvalidGltf;
  314|   489k|		if (material.specular && !isExtensionUsed(extensions::KHR_materials_specular))
  ------------------
  |  Branch (314:7): [True: 10.9k, False: 478k]
  |  Branch (314:28): [True: 111, False: 10.8k]
  ------------------
  315|    111|			return Error::InvalidGltf;
  316|   489k|		if (material.specularGlossiness && !isExtensionUsed(extensions::KHR_materials_pbrSpecularGlossiness))
  ------------------
  |  Branch (316:7): [True: 4.50k, False: 485k]
  |  Branch (316:38): [True: 27, False: 4.47k]
  ------------------
  317|     27|			return Error::InvalidGltf;
  318|   489k|		if (material.transmission && !isExtensionUsed(extensions::KHR_materials_transmission))
  ------------------
  |  Branch (318:7): [True: 17.5k, False: 471k]
  |  Branch (318:32): [True: 68, False: 17.5k]
  ------------------
  319|     68|			return Error::InvalidGltf;
  320|   489k|		if (material.volume && !isExtensionUsed(extensions::KHR_materials_volume))
  ------------------
  |  Branch (320:7): [True: 22.7k, False: 466k]
  |  Branch (320:26): [True: 63, False: 22.7k]
  ------------------
  321|     63|			return Error::InvalidGltf;
  322|   489k|		if (material.emissiveStrength != 1.0f && !isExtensionUsed(extensions::KHR_materials_emissive_strength))
  ------------------
  |  Branch (322:7): [True: 1.88k, False: 487k]
  |  Branch (322:44): [True: 1, False: 1.87k]
  ------------------
  323|      1|			return Error::InvalidGltf;
  324|   489k|		if (material.ior != 1.5f && !isExtensionUsed(extensions::KHR_materials_ior))
  ------------------
  |  Branch (324:7): [True: 15.2k, False: 474k]
  |  Branch (324:31): [True: 23, False: 15.2k]
  ------------------
  325|     23|			return Error::InvalidGltf;
  326|   489k|		if (material.packedNormalMetallicRoughnessTexture && !isExtensionUsed(extensions::MSFT_packing_normalRoughnessMetallic))
  ------------------
  |  Branch (326:7): [True: 0, False: 489k]
  |  Branch (326:56): [True: 0, False: 0]
  ------------------
  327|      0|			return Error::InvalidGltf;
  328|   489k|		if (material.packedOcclusionRoughnessMetallicTextures && !isExtensionUsed(extensions::MSFT_packing_occlusionRoughnessMetallic))
  ------------------
  |  Branch (328:7): [True: 0, False: 489k]
  |  Branch (328:60): [True: 0, False: 0]
  ------------------
  329|      0|			return Error::InvalidGltf;
  330|   489k|		if (material.diffuseTransmission && !isExtensionUsed(extensions::KHR_materials_diffuse_transmission))
  ------------------
  |  Branch (330:7): [True: 26.1k, False: 463k]
  |  Branch (330:39): [True: 53, False: 26.1k]
  ------------------
  331|     53|			return Error::InvalidGltf;
  332|   489k|	}
  333|       |
  334|  43.2k|	for (const auto& mesh : asset.meshes) {
  ------------------
  |  Branch (334:24): [True: 35.1k, False: 42.8k]
  ------------------
  335|  35.1k|		if (mesh.primitives.empty())
  ------------------
  |  Branch (335:7): [True: 0, False: 35.1k]
  ------------------
  336|      0|			return Error::InvalidGltf;
  337|       |
  338|  41.7k|		for (const auto& primitive : mesh.primitives) {
  ------------------
  |  Branch (338:30): [True: 41.7k, False: 34.7k]
  ------------------
  339|  41.7k|			if (primitive.materialIndex.has_value() && *primitive.materialIndex >= asset.materials.size())
  ------------------
  |  Branch (339:8): [True: 27.3k, False: 14.3k]
  |  Branch (339:47): [True: 83, False: 27.2k]
  ------------------
  340|     83|				return Error::InvalidGltf;
  341|       |
  342|  41.6k|			if (!primitive.mappings.empty()) {
  ------------------
  |  Branch (342:8): [True: 1.08k, False: 40.5k]
  ------------------
  343|  1.08k|				if (!isExtensionUsed(fastgltf::extensions::KHR_materials_variants))
  ------------------
  |  Branch (343:9): [True: 1, False: 1.08k]
  ------------------
  344|      1|					return Error::InvalidGltf;
  345|       |
  346|  2.38k|				for (const auto& [variant, material] : primitive.mappings) {
  ------------------
  |  Branch (346:42): [True: 2.38k, False: 1.07k]
  ------------------
  347|  2.38k|					if (variant >= asset.materialVariants.size())
  ------------------
  |  Branch (347:10): [True: 5, False: 2.37k]
  ------------------
  348|      5|						return Error::InvalidGltf;
  349|  2.37k|					if (material >= asset.materials.size())
  ------------------
  |  Branch (349:10): [True: 5, False: 2.37k]
  ------------------
  350|      5|						return Error::InvalidGltf;
  351|  2.37k|				}
  352|  1.08k|			}
  353|       |
  354|  41.6k|			if (primitive.gaussianSplatting.has_value()) {
  ------------------
  |  Branch (354:8): [True: 0, False: 41.6k]
  ------------------
  355|      0|				if (primitive.type != PrimitiveType::Points)
  ------------------
  |  Branch (355:9): [True: 0, False: 0]
  ------------------
  356|      0|					return Error::InvalidGltf;
  357|       |
  358|      0|				if (primitive.findAttribute("POSITION") == primitive.attributes.end())
  ------------------
  |  Branch (358:9): [True: 0, False: 0]
  ------------------
  359|      0|					return Error::InvalidGltf;
  360|      0|				if (primitive.findAttribute("KHR_gaussian_splatting:ROTATION") == primitive.attributes.end())
  ------------------
  |  Branch (360:9): [True: 0, False: 0]
  ------------------
  361|      0|					return Error::InvalidGltf;
  362|      0|				if (primitive.findAttribute("KHR_gaussian_splatting:SCALE") == primitive.attributes.end())
  ------------------
  |  Branch (362:9): [True: 0, False: 0]
  ------------------
  363|      0|					return Error::InvalidGltf;
  364|      0|				if (primitive.findAttribute("KHR_gaussian_splatting:OPACITY") == primitive.attributes.end())
  ------------------
  |  Branch (364:9): [True: 0, False: 0]
  ------------------
  365|      0|					return Error::InvalidGltf;
  366|      0|				if (primitive.findAttribute("KHR_gaussian_splatting:SH_DEGREE_0_COEF_0") == primitive.attributes.end())
  ------------------
  |  Branch (366:9): [True: 0, False: 0]
  ------------------
  367|      0|					return Error::InvalidGltf;
  368|      0|			}
  369|       |
  370|  41.6k|			if (primitive.indicesAccessor.has_value()) {
  ------------------
  |  Branch (370:8): [True: 41.6k, False: 0]
  ------------------
  371|  41.6k|				if (*primitive.indicesAccessor >= asset.accessors.size())
  ------------------
  |  Branch (371:9): [True: 82, False: 41.5k]
  ------------------
  372|     82|					return Error::InvalidGltf;
  373|  41.5k|				const auto& accessor = asset.accessors[*primitive.indicesAccessor];
  374|  41.5k|				if (accessor.bufferViewIndex.has_value()) {
  ------------------
  |  Branch (374:9): [True: 31.2k, False: 10.3k]
  ------------------
  375|  31.2k|					const auto& bufferView = asset.bufferViews[*accessor.bufferViewIndex];
  376|       |					// The byteStride property must not be set on anything but vertex attributes.
  377|  31.2k|					if (bufferView.byteStride.has_value())
  ------------------
  |  Branch (377:10): [True: 1, False: 31.2k]
  ------------------
  378|      1|						return Error::InvalidGltf;
  379|  31.2k|				}
  380|  41.5k|			}
  381|       |
  382|   105k|			for (const auto& [name, index] : primitive.attributes) {
  ------------------
  |  Branch (382:35): [True: 105k, False: 41.3k]
  ------------------
  383|   105k|				if (asset.accessors.size() <= index)
  ------------------
  |  Branch (383:9): [True: 10, False: 105k]
  ------------------
  384|     10|					return Error::InvalidGltf;
  385|       |
  386|       |				// The spec provides a list of attributes that it accepts and mentions that all
  387|       |				// custom attributes have to start with an underscore. We'll enforce this.
  388|       |				// Since the gaussian splatting extension attribute names can be prefixed with
  389|       |				// the extension name and a colon.
  390|   105k|				if (!startsWith(name, "_")) {
  ------------------
  |  Branch (390:9): [True: 97.6k, False: 8.21k]
  ------------------
  391|  97.6k|					if (name != "POSITION" && name != "NORMAL" && name != "TANGENT" &&
  ------------------
  |  Branch (391:10): [True: 57.8k, False: 39.7k]
  |  Branch (391:32): [True: 32.3k, False: 25.5k]
  |  Branch (391:52): [True: 29.0k, False: 3.26k]
  ------------------
  392|  29.0k|						!startsWith(name, "TEXCOORD_") && !startsWith(name, "COLOR_") &&
  ------------------
  |  Branch (392:7): [True: 8.30k, False: 20.7k]
  |  Branch (392:41): [True: 6.88k, False: 1.42k]
  ------------------
  393|  6.88k|						!startsWith(name, "JOINTS_") && !startsWith(name, "WEIGHTS_") &&
  ------------------
  |  Branch (393:7): [True: 6.01k, False: 866]
  |  Branch (393:39): [True: 90, False: 5.92k]
  ------------------
  394|     90|						!startsWith(name, "KHR_gaussian_splatting:")) {
  ------------------
  |  Branch (394:7): [True: 90, False: 0]
  ------------------
  395|     90|						return Error::InvalidGltf;
  396|     90|					}
  397|  97.6k|				}
  398|       |
  399|       |				// https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#meshes-overview
  400|   105k|				const auto& accessor = asset.accessors[index];
  401|   105k|				if (name == "POSITION") {
  ------------------
  |  Branch (401:9): [True: 39.7k, False: 65.9k]
  ------------------
  402|       |					// Animation input and vertex position attribute accessors MUST have accessor.min and accessor.max defined.
  403|  39.7k|					if (!accessor.max.has_value() || !accessor.min.has_value())
  ------------------
  |  Branch (403:10): [True: 81, False: 39.7k]
  |  Branch (403:39): [True: 11, False: 39.6k]
  ------------------
  404|     92|						return Error::InvalidGltf;
  405|  39.6k|					if (accessor.type != AccessorType::Vec3)
  ------------------
  |  Branch (405:10): [True: 7, False: 39.6k]
  ------------------
  406|      7|						return Error::InvalidGltf;
  407|  39.6k|					if (!isExtensionUsed(extensions::KHR_mesh_quantization)) {
  ------------------
  |  Branch (407:10): [True: 35.9k, False: 3.68k]
  ------------------
  408|  35.9k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (408:11): [True: 21, False: 35.9k]
  ------------------
  409|     21|							accessor.componentType != ComponentType::HalfFloat)
  ------------------
  |  Branch (409:8): [True: 4, False: 17]
  ------------------
  410|      4|							return Error::InvalidGltf;
  411|  35.9k|					} else {
  412|  3.68k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (412:11): [True: 2.13k, False: 1.54k]
  ------------------
  413|  2.13k|							accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (413:8): [True: 2.13k, False: 0]
  ------------------
  414|  2.13k|							accessor.componentType != ComponentType::Byte &&
  ------------------
  |  Branch (414:8): [True: 1.64k, False: 487]
  ------------------
  415|  1.64k|							accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (415:8): [True: 1.23k, False: 410]
  ------------------
  416|  1.23k|							accessor.componentType != ComponentType::Short &&
  ------------------
  |  Branch (416:8): [True: 628, False: 611]
  ------------------
  417|    628|							accessor.componentType != ComponentType::UnsignedShort)
  ------------------
  |  Branch (417:8): [True: 1, False: 627]
  ------------------
  418|      1|							return Error::InvalidGltf;
  419|  3.68k|					}
  420|  65.9k|				} else if (name == "NORMAL") {
  ------------------
  |  Branch (420:16): [True: 25.5k, False: 40.4k]
  ------------------
  421|  25.5k|					if (accessor.type != AccessorType::Vec3)
  ------------------
  |  Branch (421:10): [True: 6, False: 25.4k]
  ------------------
  422|      6|						return Error::InvalidGltf;
  423|  25.4k|					if (!isExtensionUsed(extensions::KHR_mesh_quantization)) {
  ------------------
  |  Branch (423:10): [True: 22.9k, False: 2.54k]
  ------------------
  424|  22.9k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (424:11): [True: 2, False: 22.9k]
  ------------------
  425|      2|							accessor.componentType != ComponentType::HalfFloat)
  ------------------
  |  Branch (425:8): [True: 1, False: 1]
  ------------------
  426|      1|							return Error::InvalidGltf;
  427|  22.9k|					} else {
  428|  2.54k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (428:11): [True: 2.20k, False: 343]
  ------------------
  429|  2.20k|							accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (429:8): [True: 2.20k, False: 0]
  ------------------
  430|  2.20k|							accessor.componentType != ComponentType::Short &&
  ------------------
  |  Branch (430:8): [True: 1.99k, False: 209]
  ------------------
  431|  1.99k|							accessor.componentType != ComponentType::Byte)
  ------------------
  |  Branch (431:8): [True: 1, False: 1.99k]
  ------------------
  432|      1|							return Error::InvalidGltf;
  433|  2.54k|					}
  434|  40.4k|				} else if (name == "TANGENT") {
  ------------------
  |  Branch (434:16): [True: 3.26k, False: 37.1k]
  ------------------
  435|  3.26k|					if (accessor.type != AccessorType::Vec4)
  ------------------
  |  Branch (435:10): [True: 7, False: 3.26k]
  ------------------
  436|      7|						return Error::InvalidGltf;
  437|  3.26k|					if (!isExtensionUsed(extensions::KHR_mesh_quantization)) {
  ------------------
  |  Branch (437:10): [True: 3.18k, False: 77]
  ------------------
  438|  3.18k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (438:11): [True: 17, False: 3.16k]
  ------------------
  439|     17|							accessor.componentType != ComponentType::HalfFloat)
  ------------------
  |  Branch (439:8): [True: 2, False: 15]
  ------------------
  440|      2|							return Error::InvalidGltf;
  441|  3.18k|					} else {
  442|     77|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (442:11): [True: 56, False: 21]
  ------------------
  443|     56|							accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (443:8): [True: 56, False: 0]
  ------------------
  444|     56|							accessor.componentType != ComponentType::Short &&
  ------------------
  |  Branch (444:8): [True: 45, False: 11]
  ------------------
  445|     45|							accessor.componentType != ComponentType::Byte)
  ------------------
  |  Branch (445:8): [True: 4, False: 41]
  ------------------
  446|      4|							return Error::InvalidGltf;
  447|     77|					}
  448|  37.1k|				} else if (startsWith(name, "TEXCOORD_")) {
  ------------------
  |  Branch (448:16): [True: 20.7k, False: 16.4k]
  ------------------
  449|  20.7k|					if (accessor.type != AccessorType::Vec2)
  ------------------
  |  Branch (449:10): [True: 4, False: 20.7k]
  ------------------
  450|      4|						return Error::InvalidGltf;
  451|  20.7k|					if (!isExtensionUsed(extensions::KHR_mesh_quantization)) {
  ------------------
  |  Branch (451:10): [True: 17.6k, False: 3.08k]
  ------------------
  452|  17.6k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (452:11): [True: 720, False: 16.9k]
  ------------------
  453|    720|							accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (453:8): [True: 719, False: 1]
  ------------------
  454|    719|							accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (454:8): [True: 678, False: 41]
  ------------------
  455|    678|							accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (455:8): [True: 4, False: 674]
  ------------------
  456|      4|							return Error::InvalidGltf;
  457|      4|						}
  458|  17.6k|					} else {
  459|  3.08k|						if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (459:11): [True: 1.94k, False: 1.14k]
  ------------------
  460|  1.94k|							accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (460:8): [True: 1.94k, False: 0]
  ------------------
  461|  1.94k|							accessor.componentType != ComponentType::Byte &&
  ------------------
  |  Branch (461:8): [True: 1.74k, False: 197]
  ------------------
  462|  1.74k|							accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (462:8): [True: 1.23k, False: 512]
  ------------------
  463|  1.23k|							accessor.componentType != ComponentType::Short &&
  ------------------
  |  Branch (463:8): [True: 906, False: 329]
  ------------------
  464|    906|							accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (464:8): [True: 1, False: 905]
  ------------------
  465|      1|							return Error::InvalidGltf;
  466|      1|						}
  467|  3.08k|					}
  468|  20.7k|				} else if (startsWith(name, "COLOR_")) {
  ------------------
  |  Branch (468:16): [True: 1.42k, False: 15.0k]
  ------------------
  469|  1.42k|					if (accessor.type != AccessorType::Vec3 && accessor.type != AccessorType::Vec4)
  ------------------
  |  Branch (469:10): [True: 1.05k, False: 367]
  |  Branch (469:49): [True: 2, False: 1.05k]
  ------------------
  470|      2|						return Error::InvalidGltf;
  471|  1.42k|					if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (471:10): [True: 359, False: 1.06k]
  ------------------
  472|    359|						accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (472:7): [True: 359, False: 0]
  ------------------
  473|    359|						accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (473:7): [True: 232, False: 127]
  ------------------
  474|    232|						accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (474:7): [True: 1, False: 231]
  ------------------
  475|      1|						return Error::InvalidGltf;
  476|      1|					}
  477|  15.0k|				} else if (startsWith(name, "JOINTS_")) {
  ------------------
  |  Branch (477:16): [True: 866, False: 14.1k]
  ------------------
  478|    866|					if (accessor.type != AccessorType::Vec4)
  ------------------
  |  Branch (478:10): [True: 4, False: 862]
  ------------------
  479|      4|						return Error::InvalidGltf;
  480|    862|					if (accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (480:10): [True: 414, False: 448]
  ------------------
  481|    414|						accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (481:7): [True: 3, False: 411]
  ------------------
  482|      3|						return Error::InvalidGltf;
  483|      3|					}
  484|  14.1k|				} else if (startsWith(name, "WEIGHTS_")) {
  ------------------
  |  Branch (484:16): [True: 5.92k, False: 8.21k]
  ------------------
  485|  5.92k|					if (accessor.type != AccessorType::Vec4)
  ------------------
  |  Branch (485:10): [True: 2, False: 5.92k]
  ------------------
  486|      2|						return Error::InvalidGltf;
  487|  5.92k|					if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (487:10): [True: 1.89k, False: 4.03k]
  ------------------
  488|  1.89k|						accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (488:7): [True: 1.89k, False: 3]
  ------------------
  489|  1.89k|						accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (489:7): [True: 1.45k, False: 434]
  ------------------
  490|  1.45k|						accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (490:7): [True: 1, False: 1.45k]
  ------------------
  491|      1|						return Error::InvalidGltf;
  492|      1|					}
  493|  8.21k|				} else if (startsWith(name, "KHR_gaussian_splatting:ROTATION")) {
  ------------------
  |  Branch (493:16): [True: 0, False: 8.21k]
  ------------------
  494|      0|					if (accessor.type != AccessorType::Vec4)
  ------------------
  |  Branch (494:10): [True: 0, False: 0]
  ------------------
  495|      0|						return Error::InvalidGltf;
  496|      0|					if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (496:10): [True: 0, False: 0]
  ------------------
  497|      0|						accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (497:7): [True: 0, False: 0]
  ------------------
  498|      0|						accessor.componentType != ComponentType::Byte &&
  ------------------
  |  Branch (498:7): [True: 0, False: 0]
  ------------------
  499|      0|						accessor.componentType != ComponentType::Short) {
  ------------------
  |  Branch (499:7): [True: 0, False: 0]
  ------------------
  500|      0|						return Error::InvalidGltf;
  501|      0|					}
  502|  8.21k|				} else if (startsWith(name, "KHR_gaussian_splatting:SCALE")) {
  ------------------
  |  Branch (502:16): [True: 0, False: 8.21k]
  ------------------
  503|      0|					if (accessor.type != AccessorType::Vec3)
  ------------------
  |  Branch (503:10): [True: 0, False: 0]
  ------------------
  504|      0|						return Error::InvalidGltf;
  505|      0|					if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (505:10): [True: 0, False: 0]
  ------------------
  506|      0|						accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (506:7): [True: 0, False: 0]
  ------------------
  507|      0|						accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (507:7): [True: 0, False: 0]
  ------------------
  508|      0|						accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (508:7): [True: 0, False: 0]
  ------------------
  509|      0|						return Error::InvalidGltf;
  510|      0|					}
  511|  8.21k|				} else if (startsWith(name, "KHR_gaussian_splatting:OPACITY")) {
  ------------------
  |  Branch (511:16): [True: 0, False: 8.21k]
  ------------------
  512|      0|					if (accessor.type != AccessorType::Scalar)
  ------------------
  |  Branch (512:10): [True: 0, False: 0]
  ------------------
  513|      0|						return Error::InvalidGltf;
  514|      0|					if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (514:10): [True: 0, False: 0]
  ------------------
  515|      0|						accessor.componentType != ComponentType::HalfFloat &&
  ------------------
  |  Branch (515:7): [True: 0, False: 0]
  ------------------
  516|      0|						accessor.componentType != ComponentType::UnsignedByte &&
  ------------------
  |  Branch (516:7): [True: 0, False: 0]
  ------------------
  517|      0|						accessor.componentType != ComponentType::UnsignedShort) {
  ------------------
  |  Branch (517:7): [True: 0, False: 0]
  ------------------
  518|      0|						return Error::InvalidGltf;
  519|      0|					}
  520|  8.21k|				} else if (startsWith(name, "KHR_gaussian_splatting:SH_DEGREE_")) {
  ------------------
  |  Branch (520:16): [True: 0, False: 8.21k]
  ------------------
  521|       |					// This covers all four degress of the spherical harmonics
  522|      0|					if (accessor.type != AccessorType::Vec3)
  ------------------
  |  Branch (522:10): [True: 0, False: 0]
  ------------------
  523|      0|						return Error::InvalidGltf;
  524|      0|					if (accessor.componentType != ComponentType::Float &&
  ------------------
  |  Branch (524:10): [True: 0, False: 0]
  ------------------
  525|      0|						accessor.componentType != ComponentType::HalfFloat) {
  ------------------
  |  Branch (525:7): [True: 0, False: 0]
  ------------------
  526|      0|						return Error::InvalidGltf;
  527|      0|					}
  528|  8.21k|				} else if (startsWith(name, "_")) {
  ------------------
  |  Branch (528:16): [True: 8.21k, False: 0]
  ------------------
  529|       |					// Application-specific attribute semantics MUST start with an underscore, e.g., _TEMPERATURE.
  530|       |					// Application-specific attribute semantics MUST NOT use unsigned int component type.
  531|  8.21k|					if (accessor.componentType == ComponentType::UnsignedInt) {
  ------------------
  |  Branch (531:10): [True: 2, False: 8.20k]
  ------------------
  532|      2|						return Error::InvalidGltf;
  533|      2|					}
  534|  8.21k|				}
  535|   105k|			}
  536|  41.5k|		}
  537|  35.1k|	}
  538|       |
  539|   180k|	for (const auto& node : asset.nodes) {
  ------------------
  |  Branch (539:24): [True: 180k, False: 41.9k]
  ------------------
  540|   180k|		if (node.cameraIndex.has_value() && asset.cameras.size() <= node.cameraIndex.value())
  ------------------
  |  Branch (540:7): [True: 1.94k, False: 178k]
  |  Branch (540:39): [True: 82, False: 1.86k]
  ------------------
  541|     82|			return Error::InvalidGltf;
  542|   180k|		if (node.skinIndex.has_value() && asset.skins.size() <= node.skinIndex.value())
  ------------------
  |  Branch (542:7): [True: 823, False: 179k]
  |  Branch (542:37): [True: 83, False: 740]
  ------------------
  543|     83|			return Error::InvalidGltf;
  544|   179k|		if (node.meshIndex.has_value() && asset.meshes.size() <= node.meshIndex.value())
  ------------------
  |  Branch (544:7): [True: 16.9k, False: 163k]
  |  Branch (544:37): [True: 111, False: 16.8k]
  ------------------
  545|    111|			return Error::InvalidGltf;
  546|       |
  547|   179k|		constexpr auto isnotfinite = [](auto x) { return !std::isfinite(x); };
  548|   179k|		if (const auto* pTRS = std::get_if<TRS>(&node.transform)) {
  ------------------
  |  Branch (548:19): [True: 179k, False: 0]
  ------------------
  549|   179k|			if (pTRS->rotation.x() > 1.0 || pTRS->rotation.x() < -1.0)
  ------------------
  |  Branch (549:8): [True: 31, False: 179k]
  |  Branch (549:36): [True: 1, False: 179k]
  ------------------
  550|     32|				return Error::InvalidGltf;
  551|   179k|			if (pTRS->rotation.y() > 1.0 || pTRS->rotation.y() < -1.0)
  ------------------
  |  Branch (551:8): [True: 9, False: 179k]
  |  Branch (551:36): [True: 1, False: 179k]
  ------------------
  552|     10|				return Error::InvalidGltf;
  553|   179k|			if (pTRS->rotation.z() > 1.0 || pTRS->rotation.z() < -1.0)
  ------------------
  |  Branch (553:8): [True: 1, False: 179k]
  |  Branch (553:36): [True: 1, False: 179k]
  ------------------
  554|      2|				return Error::InvalidGltf;
  555|   179k|			if (pTRS->rotation.w() > 1.0 || pTRS->rotation.w() < -1.0)
  ------------------
  |  Branch (555:8): [True: 1, False: 179k]
  |  Branch (555:36): [True: 1, False: 179k]
  ------------------
  556|      2|				return Error::InvalidGltf;
  557|       |
  558|   179k|			if (math::any(math::transform(pTRS->translation, isnotfinite)))
  ------------------
  |  Branch (558:8): [True: 0, False: 179k]
  ------------------
  559|      0|				return Error::InvalidGltf;
  560|   179k|			if (math::any(math::transform(pTRS->scale, isnotfinite)))
  ------------------
  |  Branch (560:8): [True: 8, False: 179k]
  ------------------
  561|      8|				return Error::InvalidGltf;
  562|   179k|			if (math::any(math::transform(pTRS->rotation, isnotfinite)))
  ------------------
  |  Branch (562:8): [True: 0, False: 179k]
  ------------------
  563|      0|				return Error::InvalidGltf;
  564|   179k|		} else if (const auto* pMatrix = std::get_if<fastgltf::math::nmat4x4>(&node.transform)) {
  ------------------
  |  Branch (564:26): [True: 0, False: 0]
  ------------------
  565|      0|			for (std::size_t i = 0; i < pMatrix->columns(); ++i) {
  ------------------
  |  Branch (565:28): [True: 0, False: 0]
  ------------------
  566|      0|				if (math::any(math::transform(pMatrix->col(i), isnotfinite)))
  ------------------
  |  Branch (566:9): [True: 0, False: 0]
  ------------------
  567|      0|					return Error::InvalidGltf;
  568|      0|			}
  569|      0|		}
  570|       |
  571|   179k|		if ((node.skinIndex.has_value() || !node.weights.empty()) && !node.meshIndex.has_value()) {
  ------------------
  |  Branch (571:8): [True: 737, False: 179k]
  |  Branch (571:38): [True: 586, False: 178k]
  |  Branch (571:64): [True: 555, False: 768]
  ------------------
  572|    555|			return Error::InvalidGltf;
  573|    555|		}
  574|       |
  575|   179k|		if (node.skinIndex.has_value()) {
  ------------------
  |  Branch (575:7): [True: 734, False: 178k]
  ------------------
  576|       |			// "When the node contains skin, all mesh.primitives MUST contain JOINTS_0 and WEIGHTS_0 attributes."
  577|    734|			const auto& mesh = asset.meshes[node.meshIndex.value()];
  578|    991|			for (const auto& primitive : mesh.primitives) {
  ------------------
  |  Branch (578:31): [True: 991, False: 718]
  ------------------
  579|    991|				const auto joints0 = primitive.findAttribute("JOINTS_0");
  580|    991|				const auto weights0 = primitive.findAttribute("WEIGHTS_0");
  581|    991|				if (joints0 == primitive.attributes.end() || weights0 == primitive.attributes.end())
  ------------------
  |  Branch (581:9): [True: 11, False: 980]
  |  Branch (581:9): [True: 16, False: 975]
  |  Branch (581:50): [True: 5, False: 975]
  ------------------
  582|     16|					return Error::InvalidGltf;
  583|    991|			}
  584|    734|		}
  585|       |
  586|   179k|		if (!node.visible && !isExtensionUsed(extensions::KHR_node_visibility)) {
  ------------------
  |  Branch (586:7): [True: 5.26k, False: 173k]
  |  Branch (586:24): [True: 2, False: 5.26k]
  ------------------
  587|      2|			return Error::InvalidGltf;
  588|      2|		}
  589|   179k|		if (!node.selectable && !isExtensionUsed(extensions::KHR_node_selectability)) {
  ------------------
  |  Branch (589:7): [True: 4.42k, False: 174k]
  |  Branch (589:27): [True: 5, False: 4.42k]
  ------------------
  590|      5|			return Error::InvalidGltf;
  591|      5|		}
  592|   179k|		if (!node.hoverable && !isExtensionUsed(extensions::KHR_node_hoverability)) {
  ------------------
  |  Branch (592:7): [True: 966, False: 178k]
  |  Branch (592:26): [True: 2, False: 964]
  ------------------
  593|      2|			return Error::InvalidGltf;
  594|      2|		}
  595|   179k|	}
  596|       |
  597|  42.4k|	for (const auto& sampler : asset.samplers) {
  ------------------
  |  Branch (597:27): [True: 42.4k, False: 41.9k]
  ------------------
  598|  42.4k|		if (sampler.magFilter.has_value() && (sampler.magFilter != Filter::Nearest && sampler.magFilter != Filter::Linear)) {
  ------------------
  |  Branch (598:7): [True: 6.80k, False: 35.5k]
  |  Branch (598:7): [True: 2, False: 42.4k]
  |  Branch (598:41): [True: 5.40k, False: 1.40k]
  |  Branch (598:81): [True: 2, False: 5.40k]
  ------------------
  599|      2|			return Error::InvalidGltf;
  600|      2|		}
  601|  42.4k|	}
  602|       |
  603|  41.9k|	for (const auto& scene : asset.scenes) {
  ------------------
  |  Branch (603:25): [True: 39.6k, False: 41.8k]
  ------------------
  604|  39.6k|		for (const auto& node : scene.nodeIndices) {
  ------------------
  |  Branch (604:25): [True: 26.2k, False: 39.5k]
  ------------------
  605|  26.2k|			if (node >= asset.nodes.size())
  ------------------
  |  Branch (605:8): [True: 117, False: 26.1k]
  ------------------
  606|    117|				return Error::InvalidGltf;
  607|  26.2k|		}
  608|  39.6k|	}
  609|       |
  610|  41.8k|	for (const auto& skin : asset.skins) {
  ------------------
  |  Branch (610:24): [True: 14.5k, False: 41.6k]
  ------------------
  611|  14.5k|		if (skin.joints.empty())
  ------------------
  |  Branch (611:7): [True: 0, False: 14.5k]
  ------------------
  612|      0|			return Error::InvalidGltf;
  613|  14.5k|		if (skin.skeleton.has_value() && skin.skeleton.value() >= asset.nodes.size())
  ------------------
  |  Branch (613:7): [True: 189, False: 14.3k]
  |  Branch (613:36): [True: 100, False: 89]
  ------------------
  614|    100|			return Error::InvalidGltf;
  615|  14.4k|		if (skin.inverseBindMatrices.has_value() && skin.inverseBindMatrices.value() >= asset.accessors.size())
  ------------------
  |  Branch (615:7): [True: 734, False: 13.6k]
  |  Branch (615:47): [True: 66, False: 668]
  ------------------
  616|     66|			return Error::InvalidGltf;
  617|  14.4k|	}
  618|       |
  619|  41.6k|	auto isUsingImageExtension =
  620|  41.6k|		isExtensionUsed(extensions::KHR_texture_basisu) ||
  ------------------
  |  Branch (620:3): [True: 548, False: 41.1k]
  ------------------
  621|  41.1k|		isExtensionUsed(extensions::MSFT_texture_dds) ||
  ------------------
  |  Branch (621:3): [True: 18, False: 41.1k]
  ------------------
  622|  41.1k|		isExtensionUsed(extensions::EXT_texture_webp) ||
  ------------------
  |  Branch (622:3): [True: 251, False: 40.8k]
  ------------------
  623|  40.8k|		isExtensionUsed(extensions::EXT_texture_avif);
  ------------------
  |  Branch (623:3): [True: 2, False: 40.8k]
  ------------------
  624|  41.6k|	for (const auto& texture : asset.textures) {
  ------------------
  |  Branch (624:27): [True: 30.1k, False: 40.9k]
  ------------------
  625|  30.1k|		if (texture.samplerIndex.has_value() && texture.samplerIndex.value() >= asset.samplers.size())
  ------------------
  |  Branch (625:7): [True: 18.7k, False: 11.3k]
  |  Branch (625:43): [True: 141, False: 18.5k]
  ------------------
  626|    141|			return Error::InvalidGltf;
  627|       |		// imageIndex needs to be defined, unless one of the texture extensions were enabled and define another image index.
  628|  29.9k|		if (isUsingImageExtension) {
  ------------------
  |  Branch (628:7): [True: 5.52k, False: 24.4k]
  ------------------
  629|  5.52k|			auto hasExtensionImage =
  630|  5.52k|				texture.basisuImageIndex.has_value() ||
  ------------------
  |  Branch (630:5): [True: 3.97k, False: 1.54k]
  ------------------
  631|  1.54k|				texture.ddsImageIndex.has_value() ||
  ------------------
  |  Branch (631:5): [True: 96, False: 1.44k]
  ------------------
  632|  1.44k|				texture.webpImageIndex.has_value() ||
  ------------------
  |  Branch (632:5): [True: 206, False: 1.24k]
  ------------------
  633|  1.24k|				texture.avifImageIndex.has_value();
  ------------------
  |  Branch (633:5): [True: 66, False: 1.17k]
  ------------------
  634|  5.52k|			if (!texture.imageIndex.has_value() && !hasExtensionImage) {
  ------------------
  |  Branch (634:8): [True: 4.35k, False: 1.16k]
  |  Branch (634:43): [True: 9, False: 4.34k]
  ------------------
  635|      9|				return Error::InvalidGltf;
  636|      9|			}
  637|  24.4k|		} else if (!texture.imageIndex.has_value()) {
  ------------------
  |  Branch (637:14): [True: 125, False: 24.3k]
  ------------------
  638|    125|			return Error::InvalidGltf;
  639|    125|		}
  640|  29.8k|		if (texture.imageIndex.has_value() && texture.imageIndex.value() >= asset.images.size())
  ------------------
  |  Branch (640:7): [True: 25.5k, False: 4.34k]
  |  Branch (640:41): [True: 126, False: 25.3k]
  ------------------
  641|    126|			return Error::InvalidGltf;
  642|  29.7k|		if (texture.basisuImageIndex.has_value() && texture.basisuImageIndex.value() >= asset.images.size())
  ------------------
  |  Branch (642:7): [True: 3.97k, False: 25.7k]
  |  Branch (642:47): [True: 72, False: 3.90k]
  ------------------
  643|     72|			return Error::InvalidGltf;
  644|  29.6k|		if (texture.ddsImageIndex.has_value() && texture.ddsImageIndex.value() >= asset.images.size())
  ------------------
  |  Branch (644:7): [True: 96, False: 29.5k]
  |  Branch (644:44): [True: 81, False: 15]
  ------------------
  645|     81|			return Error::InvalidGltf;
  646|  29.5k|		if (texture.webpImageIndex.has_value() && texture.webpImageIndex.value() >= asset.images.size())
  ------------------
  |  Branch (646:7): [True: 206, False: 29.3k]
  |  Branch (646:45): [True: 86, False: 120]
  ------------------
  647|     86|			return Error::InvalidGltf;
  648|  29.4k|		if (texture.avifImageIndex.has_value() && texture.avifImageIndex.value() >= asset.images.size())
  ------------------
  |  Branch (648:7): [True: 66, False: 29.4k]
  |  Branch (648:45): [True: 36, False: 30]
  ------------------
  649|     36|			return Error::InvalidGltf;
  650|  29.4k|	}
  651|       |
  652|  40.9k|	if (isExtensionUsed(extensions::GODOT_single_root)) {
  ------------------
  |  Branch (652:6): [True: 13, False: 40.9k]
  ------------------
  653|       |		// The document "scenes" array MUST have exactly one scene.
  654|     13|		if (asset.scenes.size() != 1) {
  ------------------
  |  Branch (654:7): [True: 2, False: 11]
  ------------------
  655|      2|			return Error::InvalidGltf;
  656|      2|		}
  657|       |		// The document "scene" index MUST be set to 0, the index of the only scene in the "scenes" array.
  658|     11|		if (asset.defaultScene != 0U) {
  ------------------
  |  Branch (658:7): [True: 4, False: 7]
  ------------------
  659|      4|			return Error::InvalidGltf;
  660|      4|		}
  661|       |		// The scene MUST have exactly one node, the single root node.
  662|      7|		if (asset.scenes[0].nodeIndices.size() != 1) {
  ------------------
  |  Branch (662:7): [True: 1, False: 6]
  ------------------
  663|      1|			return Error::InvalidGltf;
  664|      1|		}
  665|       |		// The scene's node index MUST be set to 0, the index of the first node in the "nodes" array.
  666|      6|		if (asset.scenes[0].nodeIndices[0] != 0) {
  ------------------
  |  Branch (666:7): [True: 1, False: 5]
  ------------------
  667|      1|			return Error::InvalidGltf;
  668|      1|		}
  669|      5|		if (asset.nodes.empty()) {
  ------------------
  |  Branch (669:7): [True: 0, False: 5]
  ------------------
  670|      0|			return Error::InvalidGltf;
  671|      0|		}
  672|      5|		auto &transform = asset.nodes[0].transform;
  673|      5|		TRS trs;
  674|       |		// The "translation", "rotation", "scale", and "matrix" properties of the single root node MUST either be not defined or have default values.
  675|      5|		if (!std::holds_alternative<TRS>(transform)){
  ------------------
  |  Branch (675:7): [True: 0, False: 5]
  ------------------
  676|      0|			math::decomposeTransformMatrix(std::get<math::nmat4x4>(transform), trs.scale, trs.rotation, trs.translation);
  677|      5|		} else {
  678|      5|			trs = std::get<TRS>(transform);
  679|      5|		}
  680|      5|		auto defaultTRS = TRS{};
  681|      5|		if (trs.rotation != defaultTRS.rotation) {
  ------------------
  |  Branch (681:7): [True: 2, False: 3]
  ------------------
  682|      2|			return Error::InvalidGltf;
  683|      2|		}
  684|      3|		if (trs.scale != defaultTRS.scale) {
  ------------------
  |  Branch (684:7): [True: 1, False: 2]
  ------------------
  685|      1|			return Error::InvalidGltf;
  686|      1|		}
  687|      2|		if (trs.translation != defaultTRS.translation) {
  ------------------
  |  Branch (687:7): [True: 1, False: 1]
  ------------------
  688|      1|			return Error::InvalidGltf;
  689|      1|		}
  690|      2|	}
  691|       |
  692|  40.9k|	return Error::None;
  693|  40.9k|}
_ZN8fastgltf22validateAccessorBoundsERKNS_5AssetERKNS_8AccessorE:
  706|   179k|fg::Error fg::validateAccessorBounds(const Asset& asset, const Accessor& accessor) {
  707|   179k|	if (accessor.count < 1) [[unlikely]]
  ------------------
  |  Branch (707:6): [True: 14, False: 179k]
  ------------------
  708|     14|		return Error::InvalidGltf;
  709|       |
  710|   179k|	const auto elementSize = getElementByteSize(accessor.type, accessor.componentType);
  711|   179k|	if (elementSize == 0) [[unlikely]]
  ------------------
  |  Branch (711:6): [True: 0, False: 179k]
  ------------------
  712|      0|		return Error::InvalidGltf;
  713|       |
  714|   179k|	if (accessor.bufferViewIndex.has_value()) {
  ------------------
  |  Branch (714:6): [True: 124k, False: 54.3k]
  ------------------
  715|   124k|		if (*accessor.bufferViewIndex >= asset.bufferViews.size()) [[unlikely]]
  ------------------
  |  Branch (715:7): [True: 74, False: 124k]
  ------------------
  716|     74|			return Error::InvalidGltf;
  717|       |
  718|   124k|		const auto& bufferView = asset.bufferViews[*accessor.bufferViewIndex];
  719|       |
  720|   124k|		if (bufferView.byteLength < 1) [[unlikely]]
  ------------------
  |  Branch (720:7): [True: 1, False: 124k]
  ------------------
  721|      1|			return Error::InvalidGltf;
  722|       |
  723|   124k|		if (bufferView.byteStride.has_value() &&
  ------------------
  |  Branch (723:7): [True: 16.3k, False: 108k]
  ------------------
  724|  16.3k|				(*bufferView.byteStride < 4U ||
  ------------------
  |  Branch (724:6): [True: 1, False: 16.3k]
  ------------------
  725|  16.3k|					*bufferView.byteStride > 252U ||
  ------------------
  |  Branch (725:6): [True: 37, False: 16.3k]
  ------------------
  726|  16.3k|					*bufferView.byteStride % 4 != 0)) [[unlikely]]
  ------------------
  |  Branch (726:6): [True: 3, False: 16.3k]
  ------------------
  727|     41|			return Error::InvalidGltf;
  728|       |
  729|   124k|		const auto stride = bufferView.byteStride.value_or(elementSize);
  730|   124k|		if (accessor.byteOffset > bufferView.byteLength ||
  ------------------
  |  Branch (730:7): [True: 1, False: 124k]
  ------------------
  731|   124k|			(bufferView.byteLength - accessor.byteOffset) < elementSize) [[unlikely]]
  ------------------
  |  Branch (731:4): [True: 2, False: 124k]
  ------------------
  732|      3|			return Error::InvalidGltf;
  733|       |
  734|   124k|		if (accessor.count - 1 >
  ------------------
  |  Branch (734:7): [True: 24, False: 124k]
  ------------------
  735|   124k|			(bufferView.byteLength - accessor.byteOffset - elementSize) / stride) [[unlikely]]
  736|     24|			return Error::InvalidGltf;
  737|       |
  738|   124k|		if (bufferView.bufferIndex >= asset.buffers.size()) [[unlikely]]
  ------------------
  |  Branch (738:7): [True: 32, False: 124k]
  ------------------
  739|     32|			return Error::InvalidGltf;
  740|       |
  741|   124k|		const auto bufferSize = getBufferSize(asset.buffers[bufferView.bufferIndex]);
  742|   124k|		if (bufferView.byteOffset > bufferSize ||
  ------------------
  |  Branch (742:7): [True: 4, False: 124k]
  ------------------
  743|   124k|			bufferView.byteLength > bufferSize - bufferView.byteOffset) [[unlikely]]
  ------------------
  |  Branch (743:4): [True: 36, False: 124k]
  ------------------
  744|     40|			return Error::InvalidGltf;
  745|   124k|	}
  746|       |
  747|   179k|	return Error::None;
  748|   179k|}
validate.cpp:_ZZN8fastgltf8validateERKNS_5AssetEENK3$_0clENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEE:
   33|  35.9k|	auto isExtensionRequired = [&used = asset.extensionsRequired](const std::string_view extension) {
   34|  35.9k|		return std::ranges::any_of(used, [&](auto& arg) {
   35|  35.9k|			return arg == extension;
   36|  35.9k|		});
   37|  35.9k|	};
validate.cpp:_ZZZN8fastgltf8validateERKNS_5AssetEENK3$_0clENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEENKUlRT_E_clIKNS4_12basic_stringIcS7_NS4_9allocatorIcEEEEEEDaSA_:
   34|  4.42k|		return std::ranges::any_of(used, [&](auto& arg) {
   35|  4.42k|			return arg == extension;
   36|  4.42k|		});
validate.cpp:_ZZN8fastgltf8validateERKNS_5AssetEENK3$_1clENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEE:
   38|   609k|	auto isExtensionUsed = [&used = asset.extensionsUsed](const std::string_view extension) {
   39|   609k|		return std::ranges::any_of(used, [&](auto& arg) {
   40|   609k|			return arg == extension;
   41|   609k|		});
   42|   609k|	};
validate.cpp:_ZZZN8fastgltf8validateERKNS_5AssetEENK3$_1clENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEENKUlRT_E_clIKNS4_12basic_stringIcS7_NS4_9allocatorIcEEEEEEDaSA_:
   39|  1.94M|		return std::ranges::any_of(used, [&](auto& arg) {
   40|  1.94M|			return arg == extension;
   41|  1.94M|		});
validate.cpp:_ZZN8fastgltf8validateERKNS_5AssetEENK3$_3clEm:
  289|   181k|		auto isInvalidTexture = [&textures = asset.textures](const std::size_t textureIndex) {
  290|   181k|			return textureIndex >= textures.size();
  291|   181k|		};
validate.cpp:_ZZN8fastgltf8validateERKNS_5AssetEENK3$_2clIfEEDaT_:
  547|  1.79M|		constexpr auto isnotfinite = [](auto x) { return !std::isfinite(x); };
validate.cpp:_ZN12_GLOBAL__N_113getBufferSizeERKN8fastgltf6BufferE:
  696|   124k|	std::size_t getBufferSize(const fg::Buffer& buffer) {
  697|   124k|		return std::visit(fg::visitor {
  698|   124k|			[&](const auto&) { return buffer.byteLength; },
  699|   124k|			[](const fg::sources::Array& array) { return array.bytes.size_bytes(); },
  700|   124k|			[](const fg::sources::Vector& vec) { return vec.bytes.size(); },
  701|   124k|			[](const fg::sources::ByteView& bv) { return bv.bytes.size(); },
  702|   124k|		}, buffer.data);
  703|   124k|	}
validate.cpp:_ZZN12_GLOBAL__N_113getBufferSizeERKN8fastgltf6BufferEENK3$_0clINS0_7sources3URIEEEDaRKT_:
  698|  89.5k|			[&](const auto&) { return buffer.byteLength; },
validate.cpp:_ZZN12_GLOBAL__N_113getBufferSizeERKN8fastgltf6BufferEENK3$_1clERKNS0_7sources5ArrayE:
  699|  27.2k|			[](const fg::sources::Array& array) { return array.bytes.size_bytes(); },
validate.cpp:_ZZN12_GLOBAL__N_113getBufferSizeERKN8fastgltf6BufferEENK3$_0clINS0_7sources8FallbackEEEDaRKT_:
  698|  7.94k|			[&](const auto&) { return buffer.byteLength; },

LLVMFuzzerTestOneInput:
    7|  75.0k|extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, const std::size_t size) {
    8|  75.0k|	auto buffer = fastgltf::GltfDataBuffer::FromBytes(
    9|  75.0k|		reinterpret_cast<const std::byte*>(data), size);
   10|  75.0k|	FUZZ_CHECK(buffer.has_value()); // This should not fail unless OOM
  ------------------
  |  |    8|  75.0k|	do { \
  |  |    9|  75.0k|		if (!(cond)) { \
  |  |  ------------------
  |  |  |  Branch (9:7): [True: 0, False: 75.0k]
  |  |  ------------------
  |  |   10|      0|			std::fprintf(stderr, "FUZZ_CHECK failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \
  |  |   11|      0|			std::abort(); \
  |  |   12|      0|		} \
  |  |   13|  75.0k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (13:11): [Folded, False: 75.0k]
  |  |  ------------------
  ------------------
   11|       |
   12|  75.0k|	constexpr auto fuzzable_options =
   13|  75.0k|		fastgltf::Options::AllowDouble |
   14|  75.0k|		fastgltf::Options::DecomposeNodeMatrices |
   15|  75.0k|		fastgltf::Options::GenerateMeshIndices;
   16|  75.0k|	constexpr auto all_extensions = ~fastgltf::Extensions::None;
   17|  75.0k|	auto asset = fastgltf::Parser(all_extensions).loadGltf(buffer.get(), {}, fuzzable_options);
   18|  75.0k|	if (asset.has_error())
  ------------------
  |  Branch (18:6): [True: 29.6k, False: 45.4k]
  ------------------
   19|  29.6k|		return 0;
   20|       |
   21|  45.4k|	auto exported = fastgltf::Exporter().writeGltfJson(asset.get(), fastgltf::ExportOptions::ValidateAsset);
   22|  45.4k|	if (exported.has_error())
  ------------------
  |  Branch (22:6): [True: 4.45k, False: 40.9k]
  ------------------
   23|  4.45k|		return 0;
   24|       |
   25|  40.9k|	auto exported_data = fastgltf::GltfDataBuffer::FromBytes(
   26|  40.9k|		reinterpret_cast<const std::byte*>(exported->output.data()), exported->output.size());
   27|  40.9k|	auto reparsed = fastgltf::Parser(all_extensions).loadGltfJson(exported_data.get(), {}, fuzzable_options);
   28|  40.9k|	FUZZ_CHECK(reparsed.has_value()); // Otherwise the parser, exporter, or validator should've failed.
  ------------------
  |  |    8|  40.9k|	do { \
  |  |    9|  40.9k|		if (!(cond)) { \
  |  |  ------------------
  |  |  |  Branch (9:7): [True: 0, False: 40.9k]
  |  |  ------------------
  |  |   10|      0|			std::fprintf(stderr, "FUZZ_CHECK failed (%s:%d): %s\n", __FILE__, __LINE__, #cond); \
  |  |   11|      0|			std::abort(); \
  |  |   12|      0|		} \
  |  |   13|  40.9k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (13:11): [Folded, False: 40.9k]
  |  |  ------------------
  ------------------
   29|       |
   30|  40.9k|	return 0;
   31|  40.9k|}

_ZN8simdjson12is_streamingENS_11stage1_modeE:
12341|   231k|inline bool is_streaming(stage1_mode mode) {
12342|       |  // performance note: it is probably faster to check that mode is different
12343|       |  // from regular than checking that it is either streaming_partial or streaming_final.
12344|   231k|  return (mode != stage1_mode::regular);
12345|       |  // return (mode == stage1_mode::streaming_partial || mode == stage1_mode::streaming_final);
12346|   231k|}
_ZNK8simdjson8internal25dom_parser_implementation8capacityEv:
12582|   115k|simdjson_pure simdjson_inline size_t dom_parser_implementation::capacity() const noexcept {
12583|   115k|  return _capacity;
12584|   115k|}
_ZNK8simdjson14implementation25required_instruction_setsEv:
12686|      2|  virtual uint32_t required_instruction_sets() const { return _required_instruction_sets; }
_ZN8simdjson14implementationC2ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEES5_j:
12739|      5|    _name(name),
12740|      5|    _description(description),
12741|      5|    _required_instruction_sets(required_instruction_sets)
12742|      5|  {
12743|      5|  }
_ZN8simdjson8internal29available_implementation_listC2Ev:
12773|      1|  simdjson_inline available_implementation_list() {}
_ZN8simdjson8fallback14implementationC2Ev:
13582|      1|  simdjson_inline implementation() : simdjson::implementation(
13583|      1|      "fallback",
13584|      1|      "Generic fallback implementation",
13585|      1|      0
13586|      1|  ) {}
_ZN8simdjson8internal8to_charsEPcPKcd:
 4776|  2.34M|char *to_chars(char *first, const char *last, double value) {
 4777|  2.34M|  static_cast<void>(last); // maybe unused - fix warning
 4778|  2.34M|  bool negative = std::signbit(value);
 4779|  2.34M|  if (negative) {
  ------------------
  |  Branch (4779:7): [True: 140k, False: 2.20M]
  ------------------
 4780|   140k|    value = -value;
 4781|   140k|    *first++ = '-';
 4782|   140k|  }
 4783|       |
 4784|  2.34M|  if (value == 0) // +-0
  ------------------
  |  Branch (4784:7): [True: 456k, False: 1.88M]
  ------------------
 4785|   456k|  {
 4786|   456k|    *first++ = '0';
 4787|       |    // Make it look like a floating-point number (#362, #378)
 4788|   456k|    *first++ = '.';
 4789|   456k|    *first++ = '0';
 4790|   456k|    return first;
 4791|   456k|  }
 4792|       |  // Compute v = buffer * 10^decimal_exponent.
 4793|       |  // The decimal digits are stored in the buffer, which needs to be interpreted
 4794|       |  // as an unsigned decimal integer.
 4795|       |  // len is the length of the buffer, i.e. the number of decimal digits.
 4796|  1.88M|  int len = 0;
 4797|  1.88M|  int decimal_exponent = 0;
 4798|  1.88M|  dtoa_impl::dragonbox(first, len, decimal_exponent, value);
 4799|       |  // Format the buffer like printf("%.*g", prec, value)
 4800|  1.88M|  constexpr int kMinExp = -4;
 4801|  1.88M|  constexpr int kMaxExp = std::numeric_limits<double>::digits10;
 4802|       |
 4803|  1.88M|  return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp,
 4804|  1.88M|                                  kMaxExp);
 4805|  2.34M|}
_ZN8simdjson8internal10from_charsEPKc:
10012|  18.5k|double from_chars(const char *first) noexcept {
10013|  18.5k|  return parse_with_fast_float<double>(first, find_end_of_number(first));
10014|  18.5k|}
_ZN8simdjson8internal16from_chars_floatEPKc:
10020|   134k|float from_chars_float(const char *first) noexcept {
10021|   134k|  return parse_with_fast_float<float>(first, find_end_of_number(first));
10022|   134k|}
_ZNK8simdjson8internal29available_implementation_list21detect_best_supportedEv:
14104|      1|const implementation *available_implementation_list::detect_best_supported() const noexcept {
14105|       |  // They are prelisted in priority order, so we just go down the list
14106|      1|  uint32_t supported_instruction_sets = internal::detect_supported_architectures();
14107|      2|  for (const implementation *impl : internal::get_available_implementation_pointers()) {
  ------------------
  |  Branch (14107:35): [True: 2, False: 0]
  ------------------
14108|      2|    uint32_t required_instruction_sets = impl->required_instruction_sets();
14109|      2|    if ((supported_instruction_sets & required_instruction_sets) == required_instruction_sets) { return impl; }
  ------------------
  |  Branch (14109:9): [True: 1, False: 1]
  ------------------
14110|      2|  }
14111|      0|  return get_unsupported_singleton(); // this should never happen?
14112|      1|}
_ZNK8simdjson8internal49detect_best_supported_implementation_on_first_use8set_bestEv:
14114|      1|const implementation *detect_best_supported_implementation_on_first_use::set_best() const noexcept {
14115|      1|  SIMDJSON_PUSH_DISABLE_WARNINGS
14116|       |  SIMDJSON_DISABLE_DEPRECATED_WARNING // Disable CRT_SECURE warning on MSVC: manually verified this is safe
14117|      1|  char *force_implementation_name = getenv("SIMDJSON_FORCE_IMPLEMENTATION");
14118|      1|  SIMDJSON_POP_DISABLE_WARNINGS
14119|       |
14120|      1|  if (force_implementation_name) {
  ------------------
  |  Branch (14120:7): [True: 0, False: 1]
  ------------------
14121|      0|    auto force_implementation = get_available_implementations()[force_implementation_name];
14122|      0|    if (force_implementation) {
  ------------------
  |  Branch (14122:9): [True: 0, False: 0]
  ------------------
14123|      0|      return get_active_implementation() = force_implementation;
14124|      0|    } else {
14125|       |      // Note: abort() and stderr usage within the library is forbidden.
14126|      0|      return get_active_implementation() = get_unsupported_singleton();
14127|      0|    }
14128|      0|  }
14129|      1|  return get_active_implementation() = get_available_implementations().detect_best_supported();
14130|      1|}
_ZN8simdjson29get_available_implementationsEv:
14134|      1|SIMDJSON_DLLIMPORTEXPORT const internal::available_implementation_list& get_available_implementations() {
14135|      1|  static const internal::available_implementation_list available_implementations{};
14136|      1|  return available_implementations;
14137|      1|}
_ZN8simdjson25get_active_implementationEv:
14139|   115k|SIMDJSON_DLLIMPORTEXPORT internal::atomic_ptr<const implementation>& get_active_implementation() {
14140|       |#if SIMDJSON_SINGLE_IMPLEMENTATION
14141|       |  // We immediately select the only implementation we have, skipping the
14142|       |  // detect_best_supported_implementation_on_first_use_singleton.
14143|       |  static internal::atomic_ptr<const implementation> active_implementation{internal::get_single_implementation()};
14144|       |  return active_implementation;
14145|       |#else
14146|   115k|  static const internal::detect_best_supported_implementation_on_first_use detect_best_supported_implementation_on_first_use_singleton;
14147|   115k|  static internal::atomic_ptr<const implementation> active_implementation{&detect_best_supported_implementation_on_first_use_singleton};
14148|   115k|  return active_implementation;
14149|   115k|#endif
14150|   115k|}
_ZNK8simdjson7haswell14implementation32create_dom_parser_implementationEmmRNSt3__110unique_ptrINS_8internal25dom_parser_implementationENS2_14default_deleteIS5_EEEE:
29217|   115k|) const noexcept {
29218|   115k|  dst.reset( new (std::nothrow) dom_parser_implementation() );
29219|   115k|  if (!dst) { return MEMALLOC; }
  ------------------
  |  Branch (29219:7): [True: 0, False: 115k]
  ------------------
29220|   115k|  if (auto err = dst->set_capacity(capacity))
  ------------------
  |  Branch (29220:12): [True: 0, False: 115k]
  ------------------
29221|      0|    return err;
29222|   115k|  if (auto err = dst->set_max_depth(max_depth))
  ------------------
  |  Branch (29222:12): [True: 0, False: 115k]
  ------------------
29223|      0|    return err;
29224|   115k|  return SUCCESS;
29225|   115k|}
_ZN8simdjson7haswell25dom_parser_implementation6stage1EPKhmNS_11stage1_modeE:
29314|   115k|simdjson_warn_unused error_code dom_parser_implementation::stage1(const uint8_t *_buf, size_t _len, stage1_mode streaming) noexcept {
29315|   115k|  this->buf = _buf;
29316|   115k|  this->len = _len;
29317|   115k|  return haswell::stage1::json_structural_indexer::index<128>(_buf, _len, *this, streaming);
29318|   115k|}
_ZNK8simdjson7haswell25dom_parser_implementation12parse_stringEPKhPhb:
29337|  2.63M|simdjson_warn_unused uint8_t *dom_parser_implementation::parse_string(const uint8_t *src, uint8_t *dst, bool replacement_char) const noexcept {
29338|  2.63M|  return haswell::stringparsing::parse_string(src, dst, replacement_char);
29339|  2.63M|}
_ZN8simdjson8internal9dtoa_impl9dragonboxEPcRiS3_d:
 4606|  1.88M|                      double value) {
 4607|  1.88M|  std::uint64_t bits;
 4608|  1.88M|  std::memcpy(&bits, &value, sizeof(bits));
 4609|  1.88M|  const std::uint64_t binary_significand =
 4610|  1.88M|      bits & ((std::uint64_t(1) << significand_bits) - 1);
 4611|  1.88M|  const int binary_exponent =
 4612|  1.88M|      int((bits >> significand_bits) & 0x7ff);
 4613|       |
 4614|  1.88M|  const decimal_fp dec = to_decimal(binary_significand, binary_exponent);
 4615|       |
 4616|       |  // Convert the decimal significand to digits:
 4617|       |  // 1) Proceed 2 digits at a time (s % 100) via a 00..99 lookup table
 4618|       |  //     (see Alexandrescu, "Three Optimization Tips for C++", 2012),
 4619|       |  // 2) Digits come out least-significant first, writing them back-to-front
 4620|       |  //     with p = tmp + sizeof(tmp); to avoid reversal pass
 4621|       |  // 3) Proceed remaining digits after loop to avoid branchs inside it
 4622|       |  // 4) memcpy digits to char* buf (inside function input)
 4623|  1.88M|  static const char digits2[201] =
 4624|  1.88M|      "0001020304050607080910111213141516171819"
 4625|  1.88M|      "2021222324252627282930313233343536373839"
 4626|  1.88M|      "4041424344454647484950515253545556575859"
 4627|  1.88M|      "6061626364656667686970717273747576777879"
 4628|  1.88M|      "8081828384858687888990919293949596979899";
 4629|       |  // Digit area is 24; +16 padding lets us always memcpy 16 (+1) bytes with a
 4630|       |  // compile-time size so the compiler inlines (no libc size-class branches).
 4631|       |  // Callers must provide to_chars_buffer_size (40) bytes for the same reason.
 4632|  1.88M|  constexpr int digit_area = 24;
 4633|  1.88M|  char tmp[digit_area + 16];
 4634|  1.88M|  char *p = tmp + digit_area; // write backward
 4635|  1.88M|  std::uint64_t s = dec.significand;
 4636|  9.19M|  while (s >= 100) {
  ------------------
  |  Branch (4636:10): [True: 7.30M, False: 1.88M]
  ------------------
 4637|  7.30M|    const std::uint32_t idx = static_cast<std::uint32_t>(s % 100) * 2;
 4638|  7.30M|    s /= 100;
 4639|  7.30M|    p -= 2;
 4640|  7.30M|    p[0] = digits2[idx];
 4641|  7.30M|    p[1] = digits2[idx + 1];
 4642|  7.30M|  }
 4643|  1.88M|  if (s >= 10) {
  ------------------
  |  Branch (4643:7): [True: 753k, False: 1.13M]
  ------------------
 4644|   753k|    const std::uint32_t idx = static_cast<std::uint32_t>(s) * 2;
 4645|   753k|    p -= 2;
 4646|   753k|    p[0] = digits2[idx];
 4647|   753k|    p[1] = digits2[idx + 1];
 4648|  1.13M|  } else {
 4649|  1.13M|    *--p = static_cast<char>('0' + s);
 4650|  1.13M|  }
 4651|       |  // Fixed-size copy: double has at most 17 significant digits.
 4652|  1.88M|  std::memcpy(buf, p, 16);
 4653|  1.88M|  buf[16] = p[16];
 4654|  1.88M|  len = static_cast<int>(tmp + digit_area - p);
 4655|  1.88M|  decimal_exponent = dec.exponent;
 4656|  1.88M|}
_ZN8simdjson8internal9dtoa_impl10to_decimalEmi:
 4477|  1.88M|                             int binary_exponent) noexcept {
 4478|  1.88M|  const bool is_even = (binary_significand % 2 == 0);
 4479|  1.88M|  std::uint64_t two_fc = binary_significand * 2;
 4480|       |
 4481|       |  // Is the input a normal number?
 4482|  1.88M|  if (binary_exponent != 0) {
  ------------------
  |  Branch (4482:7): [True: 1.88M, False: 279]
  ------------------
 4483|  1.88M|    binary_exponent += exponent_bias - significand_bits;
 4484|       |
 4485|       |    // Shorter interval case; proceed like Schubfach.
 4486|  1.88M|    if (two_fc == 0) {
  ------------------
  |  Branch (4486:9): [True: 615k, False: 1.27M]
  ------------------
 4487|   615k|      const int minus_k =
 4488|   615k|          floor_log10_pow2_minus_log10_4_over_3(binary_exponent);
 4489|   615k|      const int beta = binary_exponent + floor_log2_pow10(-minus_k);
 4490|   615k|      const uint128 c = cache[-minus_k - cache_min_k];
 4491|       |
 4492|   615k|      std::uint64_t xi =
 4493|   615k|          compute_left_endpoint_for_shorter_interval_case(c, beta);
 4494|   615k|      const std::uint64_t zi =
 4495|   615k|          compute_right_endpoint_for_shorter_interval_case(c, beta);
 4496|       |
 4497|       |      // If the left endpoint is not an integer, increase it. (Both endpoints
 4498|       |      // are always included since the significand is even.)
 4499|   615k|      if (!(binary_exponent >=
  ------------------
  |  Branch (4499:13): [True: 8.95k, False: 606k]
  ------------------
 4500|   615k|                case_shorter_interval_left_endpoint_lower_threshold &&
 4501|  8.95k|            binary_exponent <=
  ------------------
  |  Branch (4501:13): [True: 0, False: 8.95k]
  ------------------
 4502|   615k|                case_shorter_interval_left_endpoint_upper_threshold)) {
 4503|   615k|        ++xi;
 4504|   615k|      }
 4505|       |
 4506|       |      // Try the bigger divisor.
 4507|   615k|      std::uint64_t decimal_significand = divide_by_pow10_1(zi);
 4508|   615k|      if (decimal_significand * 10 >= xi) {
  ------------------
  |  Branch (4508:11): [True: 603k, False: 11.4k]
  ------------------
 4509|   603k|        int decimal_exponent = minus_k + 1;
 4510|   603k|        remove_trailing_zeros(decimal_significand, decimal_exponent);
 4511|   603k|        return {decimal_significand, decimal_exponent};
 4512|   603k|      }
 4513|       |
 4514|       |      // Otherwise, compute the round-up of y.
 4515|  11.4k|      decimal_significand =
 4516|  11.4k|          compute_round_up_for_shorter_interval_case(c, beta);
 4517|       |      // On a tie, choose the even one.
 4518|  11.4k|      if ((decimal_significand % 2 != 0) &&
  ------------------
  |  Branch (4518:11): [True: 4.99k, False: 6.48k]
  ------------------
 4519|  4.99k|          binary_exponent >= shorter_interval_tie_lower_threshold &&
  ------------------
  |  Branch (4519:11): [True: 3.39k, False: 1.60k]
  ------------------
 4520|  3.39k|          binary_exponent <= shorter_interval_tie_upper_threshold) {
  ------------------
  |  Branch (4520:11): [True: 361, False: 3.03k]
  ------------------
 4521|    361|        --decimal_significand;
 4522|  11.1k|      } else if (decimal_significand < xi) {
  ------------------
  |  Branch (4522:18): [True: 361, False: 10.7k]
  ------------------
 4523|    361|        ++decimal_significand;
 4524|    361|      }
 4525|  11.4k|      return {decimal_significand, minus_k};
 4526|   615k|    }
 4527|       |
 4528|       |    // Normal interval case.
 4529|  1.27M|    two_fc |= (std::uint64_t(1) << (significand_bits + 1));
 4530|  1.27M|  } else {
 4531|       |    // Subnormal number: normal interval case.
 4532|    279|    binary_exponent = min_exponent - significand_bits;
 4533|    279|  }
 4534|       |
 4535|       |  // Step 1: Schubfach multiplier calculation.
 4536|  1.27M|  const int minus_k = floor_log10_pow2(binary_exponent) - kappa;
 4537|  1.27M|  const uint128 c = cache[-minus_k - cache_min_k];
 4538|  1.27M|  const int beta = binary_exponent + floor_log2_pow10(-minus_k);
 4539|       |
 4540|  1.27M|  const std::uint64_t deltai = compute_delta(c, beta);
 4541|  1.27M|  const compute_mul_result z_result =
 4542|  1.27M|      compute_mul((two_fc | 1) << beta, c);
 4543|       |
 4544|       |  // Step 2: Try larger divisor; remove trailing zeros if necessary.
 4545|  1.27M|  std::uint64_t decimal_significand = divide_by_pow10_3(z_result.integer_part);
 4546|  1.27M|  std::uint64_t r =
 4547|  1.27M|      z_result.integer_part - std::uint64_t(big_divisor) * decimal_significand;
 4548|       |
 4549|  1.27M|  do {
 4550|  1.27M|    if (r < deltai) {
  ------------------
  |  Branch (4550:9): [True: 619k, False: 653k]
  ------------------
 4551|       |      // Exclude the right endpoint if necessary.
 4552|   619k|      if ((r | std::uint64_t(!z_result.is_integer) | std::uint64_t(is_even)) ==
  ------------------
  |  Branch (4552:11): [True: 307, False: 619k]
  ------------------
 4553|   619k|          0) {
 4554|    307|        --decimal_significand;
 4555|    307|        r = big_divisor;
 4556|    307|        break;
 4557|    307|      }
 4558|   653k|    } else if (r > deltai) {
  ------------------
  |  Branch (4558:16): [True: 651k, False: 1.73k]
  ------------------
 4559|   651k|      break;
 4560|   651k|    } else {
 4561|       |      // r == deltai; compare fractional parts.
 4562|  1.73k|      const compute_mul_parity_result x_result =
 4563|  1.73k|          compute_mul_parity(two_fc - 1, c, beta);
 4564|  1.73k|      if (!(x_result.parity | (x_result.is_integer & is_even))) {
  ------------------
  |  Branch (4564:11): [True: 554, False: 1.17k]
  ------------------
 4565|    554|        break;
 4566|    554|      }
 4567|  1.73k|    }
 4568|       |
 4569|   620k|    int decimal_exponent = minus_k + kappa + 1;
 4570|   620k|    remove_trailing_zeros(decimal_significand, decimal_exponent);
 4571|   620k|    return {decimal_significand, decimal_exponent};
 4572|  1.27M|  } while (false);
  ------------------
  |  Branch (4572:12): [Folded, False: 0]
  ------------------
 4573|       |
 4574|       |  // Step 3: Find the significand with the smaller divisor.
 4575|   652k|  decimal_significand *= 10;
 4576|       |
 4577|   652k|  std::uint64_t dist = r - (deltai / 2) + (small_divisor / 2);
 4578|   652k|  const bool approx_y_parity = ((dist ^ (small_divisor / 2)) & 1) != 0;
 4579|       |
 4580|   652k|  const bool divisible_by_small_divisor =
 4581|   652k|      check_divisibility_and_divide_by_pow10_kappa(dist);
 4582|       |
 4583|   652k|  decimal_significand += dist;
 4584|       |
 4585|   652k|  if (divisible_by_small_divisor) {
  ------------------
  |  Branch (4585:7): [True: 8.41k, False: 643k]
  ------------------
 4586|  8.41k|    const compute_mul_parity_result y_result =
 4587|  8.41k|        compute_mul_parity(two_fc, c, beta);
 4588|  8.41k|    if (y_result.parity != approx_y_parity) {
  ------------------
  |  Branch (4588:9): [True: 1.33k, False: 7.07k]
  ------------------
 4589|  1.33k|      --decimal_significand;
 4590|  7.07k|    } else if ((decimal_significand % 2) != 0 && y_result.is_integer) {
  ------------------
  |  Branch (4590:16): [True: 3.15k, False: 3.92k]
  |  Branch (4590:50): [True: 2.09k, False: 1.06k]
  ------------------
 4591|       |      // On a tie (y is an integer), choose the even one.
 4592|  2.09k|      --decimal_significand;
 4593|  2.09k|    }
 4594|  8.41k|  }
 4595|       |
 4596|   652k|  return {decimal_significand, minus_k + kappa};
 4597|  1.27M|}
_ZN8simdjson8internal9dtoa_impl37floor_log10_pow2_minus_log10_4_over_3Ei:
 3735|   615k|inline int floor_log10_pow2_minus_log10_4_over_3(int e) noexcept {
 3736|   615k|  return (e * 631305 - 261663) >> 21;
 3737|   615k|}
_ZN8simdjson8internal9dtoa_impl16floor_log2_pow10Ei:
 3734|  1.88M|inline int floor_log2_pow10(int e) noexcept { return (e * 1741647) >> 19; }
_ZN8simdjson8internal9dtoa_impl47compute_left_endpoint_for_shorter_interval_caseENS1_7uint128Ei:
 4405|   615k|compute_left_endpoint_for_shorter_interval_case(uint128 c, int beta) noexcept {
 4406|   615k|  return (c.high - (c.high >> (significand_bits + 2))) >>
 4407|   615k|         (total_bits - significand_bits - 1 - beta);
 4408|   615k|}
_ZN8simdjson8internal9dtoa_impl48compute_right_endpoint_for_shorter_interval_caseENS1_7uint128Ei:
 4411|   615k|compute_right_endpoint_for_shorter_interval_case(uint128 c, int beta) noexcept {
 4412|   615k|  return (c.high + (c.high >> (significand_bits + 1))) >>
 4413|   615k|         (total_bits - significand_bits - 1 - beta);
 4414|   615k|}
_ZN8simdjson8internal9dtoa_impl17divide_by_pow10_1Em:
 4423|   615k|inline std::uint64_t divide_by_pow10_1(std::uint64_t n) noexcept {
 4424|   615k|  return umul128_upper64(n, std::uint64_t(1844674407370955162ull));
 4425|   615k|}
_ZN8simdjson8internal9dtoa_impl15umul128_upper64Emm:
 3694|  3.16M|inline std::uint64_t umul128_upper64(std::uint64_t x, std::uint64_t y) noexcept {
 3695|  3.16M|#if defined(__SIZEOF_INT128__)
 3696|  3.16M|  return std::uint64_t((static_cast<__uint128_t>(x)*y)>>64);
 3697|       |#else // using fallback on 32-bit targets and MSVC
 3698|       |  const std::uint32_t a = std::uint32_t(x >> 32);
 3699|       |  const std::uint32_t b = std::uint32_t(x);
 3700|       |  const std::uint32_t c = std::uint32_t(y >> 32);
 3701|       |  const std::uint32_t d = std::uint32_t(y);
 3702|       |
 3703|       |  const std::uint64_t ac = umul64(a, c);
 3704|       |  const std::uint64_t bc = umul64(b, c);
 3705|       |  const std::uint64_t ad = umul64(a, d);
 3706|       |  const std::uint64_t bd = umul64(b, d);
 3707|       |
 3708|       |  const std::uint64_t intermediate =
 3709|       |      (bd >> 32) + std::uint32_t(ad) + std::uint32_t(bc);
 3710|       |
 3711|       |  return ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32);
 3712|       |#endif
 3713|  3.16M|}
_ZN8simdjson8internal9dtoa_impl21remove_trailing_zerosERmRi:
 4443|  1.22M|inline void remove_trailing_zeros(std::uint64_t &significand, int &exponent) noexcept {
 4444|  1.22M|  std::uint64_t r = rotr64(significand * std::uint64_t(28999941890838049ull), 8);
 4445|  1.22M|  bool b = r < std::uint64_t(184467440738ull);
 4446|  1.22M|  int s = b ? 1 : 0;
  ------------------
  |  Branch (4446:11): [True: 897k, False: 327k]
  ------------------
 4447|  1.22M|  significand = b ? r : significand;
  ------------------
  |  Branch (4447:17): [True: 897k, False: 327k]
  ------------------
 4448|       |
 4449|  1.22M|  r = rotr64(significand * std::uint64_t(182622766329724561ull), 4);
 4450|  1.22M|  b = r < std::uint64_t(1844674407370956ull);
 4451|  1.22M|  s = s * 2 + (b ? 1 : 0);
  ------------------
  |  Branch (4451:16): [True: 879k, False: 345k]
  ------------------
 4452|  1.22M|  significand = b ? r : significand;
  ------------------
  |  Branch (4452:17): [True: 879k, False: 345k]
  ------------------
 4453|       |
 4454|  1.22M|  r = rotr64(significand * std::uint64_t(10330176681277348905ull), 2);
 4455|  1.22M|  b = r < std::uint64_t(184467440737095517ull);
 4456|  1.22M|  s = s * 2 + (b ? 1 : 0);
  ------------------
  |  Branch (4456:16): [True: 808k, False: 415k]
  ------------------
 4457|  1.22M|  significand = b ? r : significand;
  ------------------
  |  Branch (4457:17): [True: 808k, False: 415k]
  ------------------
 4458|       |
 4459|  1.22M|  r = rotr64(significand * std::uint64_t(14757395258967641293ull), 1);
 4460|  1.22M|  b = r < std::uint64_t(1844674407370955162ull);
 4461|  1.22M|  s = s * 2 + (b ? 1 : 0);
  ------------------
  |  Branch (4461:16): [True: 768k, False: 456k]
  ------------------
 4462|  1.22M|  significand = b ? r : significand;
  ------------------
  |  Branch (4462:17): [True: 768k, False: 456k]
  ------------------
 4463|       |
 4464|  1.22M|  exponent += s;
 4465|  1.22M|}
_ZN8simdjson8internal9dtoa_impl6rotr64Emj:
 3660|  4.89M|inline std::uint64_t rotr64(std::uint64_t n, unsigned r) noexcept {
 3661|  4.89M|  r &= 63;
 3662|  4.89M|  return (n >> r) | (n << ((64 - r) & 63));
 3663|  4.89M|}
_ZN8simdjson8internal9dtoa_impl42compute_round_up_for_shorter_interval_caseENS1_7uint128Ei:
 4417|  11.4k|compute_round_up_for_shorter_interval_case(uint128 c, int beta) noexcept {
 4418|  11.4k|  return ((c.high >> (total_bits - significand_bits - 2 - beta)) + 1) / 2;
 4419|  11.4k|}
_ZN8simdjson8internal9dtoa_impl16floor_log10_pow2Ei:
 3733|  1.27M|inline int floor_log10_pow2(int e) noexcept { return (e * 315653) >> 20; }
_ZN8simdjson8internal9dtoa_impl13compute_deltaENS1_7uint128Ei:
 4392|  1.27M|inline std::uint64_t compute_delta(uint128 c, int beta) noexcept {
 4393|  1.27M|  return c.high >> (total_bits - 1 - beta);
 4394|  1.27M|}
_ZN8simdjson8internal9dtoa_impl11compute_mulEmNS1_7uint128E:
 4387|  1.27M|inline compute_mul_result compute_mul(std::uint64_t u, uint128 c) noexcept {
 4388|  1.27M|  const uint128 r = umul192_upper128(u, c);
 4389|  1.27M|  return {r.high, r.low == 0};
 4390|  1.27M|}
_ZN8simdjson8internal9dtoa_impl16umul192_upper128EmNS1_7uint128E:
 3716|  1.27M|inline uint128 umul192_upper128(std::uint64_t x, uint128 y) noexcept {
 3717|  1.27M|  uint128 r = umul128(x, y.high);
 3718|  1.27M|  const std::uint64_t add = umul128_upper64(x, y.low);
 3719|  1.27M|  const std::uint64_t sum = r.low + add;
 3720|  1.27M|  r.high += (sum < r.low) ? 1 : 0;
  ------------------
  |  Branch (3720:13): [True: 3.35k, False: 1.26M]
  ------------------
 3721|  1.27M|  r.low = sum;
 3722|  1.27M|  return r;
 3723|  1.27M|}
_ZN8simdjson8internal9dtoa_impl7umul128Emm:
 3670|  1.28M|inline uint128 umul128(std::uint64_t x, std::uint64_t y) noexcept {
 3671|  1.28M|#if defined(__SIZEOF_INT128__)
 3672|  1.28M|  const __uint128_t p = static_cast<__uint128_t>(x)*y;
 3673|  1.28M|  return {std::uint64_t(p>>64), std::uint64_t(p)};
 3674|       |#else // using fallback on 32-bit targets and MSVC
 3675|       |  const std::uint32_t a = std::uint32_t(x >> 32);
 3676|       |  const std::uint32_t b = std::uint32_t(x);
 3677|       |  const std::uint32_t c = std::uint32_t(y >> 32);
 3678|       |  const std::uint32_t d = std::uint32_t(y);
 3679|       |
 3680|       |  const std::uint64_t ac = umul64(a, c);
 3681|       |  const std::uint64_t bc = umul64(b, c);
 3682|       |  const std::uint64_t ad = umul64(a, d);
 3683|       |  const std::uint64_t bd = umul64(b, d);
 3684|       |
 3685|       |  const std::uint64_t intermediate =
 3686|       |      (bd >> 32) + std::uint32_t(ad) + std::uint32_t(bc);
 3687|       |
 3688|       |  return {ac + (intermediate >> 32) + (ad >> 32) + (bc >> 32),
 3689|       |          (intermediate << 32) + std::uint32_t(bd)};
 3690|       |#endif
 3691|  1.28M|}
_ZN8simdjson8internal9dtoa_impl17divide_by_pow10_3Em:
 4428|  1.27M|inline std::uint64_t divide_by_pow10_3(std::uint64_t n) noexcept {
 4429|  1.27M|  return umul128_upper64(n, std::uint64_t(4722366482869645214ull)) >> 8;
 4430|  1.27M|}
_ZN8simdjson8internal9dtoa_impl18compute_mul_parityEmNS1_7uint128Ei:
 4397|  10.1k|                                                    uint128 c, int beta) noexcept {
 4398|       |  // beta is always in [1, 63] here.
 4399|  10.1k|  const uint128 r = umul192_lower128(two_f, c);
 4400|  10.1k|  return {((r.high >> (64 - beta)) & 1) != 0,
 4401|  10.1k|          ((r.high << beta) | (r.low >> (64 - beta))) == 0};
 4402|  10.1k|}
_ZN8simdjson8internal9dtoa_impl16umul192_lower128EmNS1_7uint128E:
 3726|  10.1k|inline uint128 umul192_lower128(std::uint64_t x, uint128 y) noexcept {
 3727|  10.1k|  const std::uint64_t high = x * y.high;
 3728|  10.1k|  const uint128 high_low = umul128(x, y.low);
 3729|  10.1k|  return {high + high_low.high, high_low.low};
 3730|  10.1k|}
_ZN8simdjson8internal9dtoa_impl44check_divisibility_and_divide_by_pow10_kappaERm:
 4433|   652k|inline bool check_divisibility_and_divide_by_pow10_kappa(std::uint64_t &n) noexcept {
 4434|       |  // magic number for division by 100 (kappa == 2).
 4435|   652k|  const std::uint32_t prod = std::uint32_t(n) * std::uint32_t(656);
 4436|   652k|  const bool result = (prod & 0xffffu) < 656u;
 4437|   652k|  n = std::uint64_t(prod >> 16);
 4438|   652k|  return result;
 4439|   652k|}
_ZN8simdjson8internal9dtoa_impl13format_bufferEPciiii:
 4695|  1.88M|                           int min_exp, int max_exp) {
 4696|       |
 4697|  1.88M|  const int k = len;
 4698|  1.88M|  const int n = len + decimal_exponent;
 4699|       |
 4700|       |  // v = buf * 10^(n-k)
 4701|       |  // k is the length of the buffer (number of decimal digits)
 4702|       |  // n is the position of the decimal point relative to the start of the buffer.
 4703|       |
 4704|       |  // All mem* sizes below are compile-time constants so the compiler inlines
 4705|       |  // them as plain loads/stores. That requires over-writing past the logical
 4706|       |  // string length; callers must reserve to_chars_buffer_size (40) bytes.
 4707|       |  // Logical output is still bounded by ~24 characters; only the returned
 4708|       |  // pointer reflects the true length.
 4709|       |
 4710|  1.88M|  if (k <= n && n <= max_exp) {
  ------------------
  |  Branch (4710:7): [True: 835k, False: 1.05M]
  |  Branch (4710:17): [True: 775k, False: 60.0k]
  ------------------
 4711|       |    // digits[000]
 4712|       |    // len <= max_exp + 2
 4713|   775k|    std::memset(buf + k, '0', 16);
 4714|       |    // Make it look like a floating-point number (#362, #378)
 4715|   775k|    buf[n + 0] = '.';
 4716|   775k|    buf[n + 1] = '0';
 4717|   775k|    return buf + (static_cast<size_t>(n)) + 2;
 4718|   775k|  }
 4719|       |
 4720|  1.11M|  if (0 < n && n <= max_exp) {
  ------------------
  |  Branch (4720:7): [True: 224k, False: 888k]
  |  Branch (4720:16): [True: 163k, False: 60.2k]
  ------------------
 4721|       |    // dig.its
 4722|       |    // len <= max_digits10 + 1
 4723|       |    // Shift the fractional digits one place right via a temp (overlap).
 4724|   163k|    char shifted[16];
 4725|   163k|    std::memcpy(shifted, buf + static_cast<size_t>(n), 16);
 4726|   163k|    std::memcpy(buf + (static_cast<size_t>(n) + 1), shifted, 16);
 4727|   163k|    buf[n] = '.';
 4728|   163k|    return buf + (static_cast<size_t>(k) + 1U);
 4729|   163k|  }
 4730|       |
 4731|   948k|  if (min_exp < n && n <= 0) {
  ------------------
  |  Branch (4731:7): [True: 900k, False: 48.1k]
  |  Branch (4731:22): [True: 840k, False: 60.2k]
  ------------------
 4732|       |    // 0.[000]digits
 4733|       |    // With kMinExp = -4, n is in {-3,-2,-1,0}, so pad = -n is 0..3.
 4734|       |    // len <= 2 + (-min_exp - 1) + max_digits10
 4735|   840k|    char digits[17];
 4736|   840k|    std::memcpy(digits, buf, 17);
 4737|   840k|    const size_t pad = static_cast<size_t>(-n); // 0..3
 4738|   840k|    buf[0] = '0';
 4739|   840k|    buf[1] = '.';
 4740|       |    // Fixed upper bound on leading zeros; only the first `pad` matter.
 4741|   840k|    std::memset(buf + 2, '0', 4);
 4742|   840k|    std::memcpy(buf + 2 + pad, digits, 17);
 4743|   840k|    return buf + (2U + pad + static_cast<size_t>(k));
 4744|   840k|  }
 4745|       |
 4746|   108k|  if (k == 1) {
  ------------------
  |  Branch (4746:7): [True: 1.14k, False: 107k]
  ------------------
 4747|       |    // dE+123
 4748|       |    // len <= 1 + 5
 4749|  1.14k|    buf += 1;
 4750|   107k|  } else {
 4751|       |    // d.igitsE+123
 4752|       |    // len <= max_digits10 + 1 + 5
 4753|       |    // k-1 <= 16 for double; fixed-size shift via temp (overlap).
 4754|   107k|    char shifted[16];
 4755|   107k|    std::memcpy(shifted, buf + 1, 16);
 4756|   107k|    std::memcpy(buf + 2, shifted, 16);
 4757|   107k|    buf[1] = '.';
 4758|   107k|    buf += 1 + static_cast<size_t>(k);
 4759|   107k|  }
 4760|       |
 4761|   108k|  *buf++ = 'e';
 4762|   108k|  return append_exponent(buf, n - 1);
 4763|   948k|}
_ZN8simdjson8internal9dtoa_impl15append_exponentEPci:
 4663|   108k|inline char *append_exponent(char *buf, int e) {
 4664|       |
 4665|   108k|  bool isNegative = e < 0;
 4666|   108k|  e = isNegative ? -e : e;
  ------------------
  |  Branch (4666:7): [True: 48.1k, False: 60.2k]
  ------------------
 4667|   108k|  *buf++ = isNegative  ? '-' : '+';
  ------------------
  |  Branch (4667:12): [True: 48.1k, False: 60.2k]
  ------------------
 4668|       |
 4669|   108k|  auto k = static_cast<std::uint32_t>(e);
 4670|   108k|  if (k < 100) {
  ------------------
  |  Branch (4670:7): [True: 107k, False: 469]
  ------------------
 4671|       |    // Always print at least two digits in the exponent.
 4672|       |    // This is for compatibility with printf("%g").
 4673|   107k|    *buf++ = static_cast<char>('0' + k / 10);
 4674|   107k|    k %= 10;
 4675|   107k|    *buf++ = static_cast<char>('0' + k);
 4676|   107k|  } else {
 4677|    469|    *buf++ = static_cast<char>('0' + k / 100);
 4678|    469|    k %= 100;
 4679|    469|    *buf++ = static_cast<char>('0' + k / 10);
 4680|    469|    k %= 10;
 4681|    469|    *buf++ = static_cast<char>('0' + k);
 4682|    469|  }
 4683|       |
 4684|   108k|  return buf;
 4685|   108k|}
simdjson.cpp:_ZN8simdjson8internal12_GLOBAL__N_118find_end_of_numberEPKc:
 9981|   153k|const char *find_end_of_number(const char *first) noexcept {
 9982|   153k|  const char *p = first;
 9983|  10.3M|  while ((*p >= '0' && *p <= '9') || *p == '-' || *p == '+' || *p == '.' ||
  ------------------
  |  Branch (9983:11): [True: 10.0M, False: 288k]
  |  Branch (9983:24): [True: 9.98M, False: 81.5k]
  |  Branch (9983:38): [True: 45.2k, False: 324k]
  |  Branch (9983:51): [True: 1.06k, False: 323k]
  |  Branch (9983:64): [True: 114k, False: 209k]
  ------------------
 9984|  10.2M|         *p == 'e' || *p == 'E') {
  ------------------
  |  Branch (9984:10): [True: 17.5k, False: 191k]
  |  Branch (9984:23): [True: 38.5k, False: 153k]
  ------------------
 9985|  10.2M|    p++;
 9986|  10.2M|  }
 9987|   153k|  return p;
 9988|   153k|}
simdjson.cpp:_ZN8simdjson8internalL30detect_supported_architecturesEv:
13370|      1|static inline uint32_t detect_supported_architectures() {
13371|      1|  uint32_t eax, ebx, ecx, edx;
13372|      1|  uint32_t host_isa = 0x0;
13373|       |
13374|       |  // EBX for EAX=0x1
13375|      1|  eax = 0x1;
13376|      1|  ecx = 0x0;
13377|      1|  cpuid(&eax, &ebx, &ecx, &edx);
13378|       |
13379|      1|  if (ecx & cpuid_sse42_bit) {
  ------------------
  |  Branch (13379:7): [True: 1, False: 0]
  ------------------
13380|      1|    host_isa |= instruction_set::SSE42;
13381|      1|  } else {
13382|      0|    return host_isa; // everything after is redundant
13383|      0|  }
13384|       |
13385|      1|  if (ecx & cpuid_pclmulqdq_bit) {
  ------------------
  |  Branch (13385:7): [True: 1, False: 0]
  ------------------
13386|      1|    host_isa |= instruction_set::PCLMULQDQ;
13387|      1|  }
13388|       |
13389|       |
13390|      1|  if ((ecx & cpuid_osxsave) != cpuid_osxsave) {
  ------------------
  |  Branch (13390:7): [True: 0, False: 1]
  ------------------
13391|      0|    return host_isa;
13392|      0|  }
13393|       |
13394|       |  // xgetbv for checking if the OS saves registers
13395|      1|  uint64_t xcr0 = xgetbv();
13396|       |
13397|      1|  if ((xcr0 & cpuid_avx256_saved) == 0) {
  ------------------
  |  Branch (13397:7): [True: 0, False: 1]
  ------------------
13398|      0|    return host_isa;
13399|      0|  }
13400|       |
13401|       |  // ECX for EAX=0x7
13402|      1|  eax = 0x7;
13403|      1|  ecx = 0x0;
13404|      1|  cpuid(&eax, &ebx, &ecx, &edx);
13405|      1|  if (ebx & cpuid_avx2_bit) {
  ------------------
  |  Branch (13405:7): [True: 1, False: 0]
  ------------------
13406|      1|    host_isa |= instruction_set::AVX2;
13407|      1|  }
13408|      1|  if (ebx & cpuid_bmi1_bit) {
  ------------------
  |  Branch (13408:7): [True: 1, False: 0]
  ------------------
13409|      1|    host_isa |= instruction_set::BMI1;
13410|      1|  }
13411|       |
13412|      1|  if (ebx & cpuid_bmi2_bit) {
  ------------------
  |  Branch (13412:7): [True: 1, False: 0]
  ------------------
13413|      1|    host_isa |= instruction_set::BMI2;
13414|      1|  }
13415|       |
13416|      1|  if (!((xcr0 & cpuid_avx512_saved) == cpuid_avx512_saved)) {
  ------------------
  |  Branch (13416:7): [True: 1, False: 0]
  ------------------
13417|      1|     return host_isa;
13418|      1|  }
13419|       |
13420|      0|  if (ebx & cpuid_avx512f_bit) {
  ------------------
  |  Branch (13420:7): [True: 0, False: 0]
  ------------------
13421|      0|    host_isa |= instruction_set::AVX512F;
13422|      0|  }
13423|       |
13424|      0|  if (ebx & cpuid_avx512dq_bit) {
  ------------------
  |  Branch (13424:7): [True: 0, False: 0]
  ------------------
13425|      0|    host_isa |= instruction_set::AVX512DQ;
13426|      0|  }
13427|       |
13428|      0|  if (ebx & cpuid_avx512ifma_bit) {
  ------------------
  |  Branch (13428:7): [True: 0, False: 0]
  ------------------
13429|      0|    host_isa |= instruction_set::AVX512IFMA;
13430|      0|  }
13431|       |
13432|      0|  if (ebx & cpuid_avx512pf_bit) {
  ------------------
  |  Branch (13432:7): [True: 0, False: 0]
  ------------------
13433|      0|    host_isa |= instruction_set::AVX512PF;
13434|      0|  }
13435|       |
13436|      0|  if (ebx & cpuid_avx512er_bit) {
  ------------------
  |  Branch (13436:7): [True: 0, False: 0]
  ------------------
13437|      0|    host_isa |= instruction_set::AVX512ER;
13438|      0|  }
13439|       |
13440|      0|  if (ebx & cpuid_avx512cd_bit) {
  ------------------
  |  Branch (13440:7): [True: 0, False: 0]
  ------------------
13441|      0|    host_isa |= instruction_set::AVX512CD;
13442|      0|  }
13443|       |
13444|      0|  if (ebx & cpuid_avx512bw_bit) {
  ------------------
  |  Branch (13444:7): [True: 0, False: 0]
  ------------------
13445|      0|    host_isa |= instruction_set::AVX512BW;
13446|      0|  }
13447|       |
13448|      0|  if (ebx & cpuid_avx512vl_bit) {
  ------------------
  |  Branch (13448:7): [True: 0, False: 0]
  ------------------
13449|      0|    host_isa |= instruction_set::AVX512VL;
13450|      0|  }
13451|       |
13452|      0|  if (ecx & cpuid_avx512vbmi2_bit) {
  ------------------
  |  Branch (13452:7): [True: 0, False: 0]
  ------------------
13453|      0|    host_isa |= instruction_set::AVX512VBMI2;
13454|      0|  }
13455|       |
13456|      0|  return host_isa;
13457|      1|}
simdjson.cpp:_ZN8simdjson8internalL5cpuidEPjS1_S1_S1_:
13336|      2|                         uint32_t *edx) {
13337|       |#if defined(_MSC_VER)
13338|       |  int cpu_info[4];
13339|       |  __cpuidex(cpu_info, *eax, *ecx);
13340|       |  *eax = cpu_info[0];
13341|       |  *ebx = cpu_info[1];
13342|       |  *ecx = cpu_info[2];
13343|       |  *edx = cpu_info[3];
13344|       |#elif (defined(HAVE_GCC_GET_CPUID) && defined(USE_GCC_GET_CPUID)) || defined(__FILC__)
13345|       |  uint32_t level = *eax;
13346|       |  __get_cpuid(level, eax, ebx, ecx, edx);
13347|       |#else
13348|      2|  uint32_t a = *eax, b, c = *ecx, d;
13349|      2|  asm volatile("cpuid\n\t" : "+a"(a), "=b"(b), "+c"(c), "=d"(d));
13350|      2|  *eax = a;
13351|      2|  *ebx = b;
13352|      2|  *ecx = c;
13353|      2|  *edx = d;
13354|      2|#endif
13355|      2|}
simdjson.cpp:_ZN8simdjson8internalL6xgetbvEv:
13358|      1|static inline uint64_t xgetbv() {
13359|       |#if defined(_MSC_VER)
13360|       |  return _xgetbv(0);
13361|       |#elif defined(__FILC__)
13362|       |  return zxgetbv();
13363|       |#else
13364|      1|  uint32_t xcr0_lo, xcr0_hi;
13365|      1|  asm volatile("xgetbv\n\t" : "=a" (xcr0_lo), "=d" (xcr0_hi) : "c" (0));
13366|      1|  return xcr0_lo | (uint64_t(xcr0_hi) << 32);
13367|      1|#endif
13368|      1|}
simdjson.cpp:_ZN8simdjson8internalL37get_available_implementation_pointersEv:
14029|      1|static const std::initializer_list<const implementation *>& get_available_implementation_pointers() {
14030|      1|  static const std::initializer_list<const implementation *> available_implementation_pointers {
14031|      1|#if SIMDJSON_IMPLEMENTATION_ICELAKE
14032|      1|    get_icelake_singleton(),
14033|      1|#endif
14034|      1|#if SIMDJSON_IMPLEMENTATION_HASWELL
14035|      1|    get_haswell_singleton(),
14036|      1|#endif
14037|      1|#if SIMDJSON_IMPLEMENTATION_WESTMERE
14038|      1|    get_westmere_singleton(),
14039|      1|#endif
14040|       |#if SIMDJSON_IMPLEMENTATION_ARM64
14041|       |    get_arm64_singleton(),
14042|       |#endif
14043|       |#if SIMDJSON_IMPLEMENTATION_PPC64
14044|       |    get_ppc64_singleton(),
14045|       |#endif
14046|       |#if SIMDJSON_IMPLEMENTATION_LASX
14047|       |    get_lasx_singleton(),
14048|       |#endif
14049|       |#if SIMDJSON_IMPLEMENTATION_LSX
14050|       |    get_lsx_singleton(),
14051|       |#endif
14052|       |#if SIMDJSON_IMPLEMENTATION_RVV_VLS
14053|       |    get_rvv_vls_singleton(),
14054|       |#endif
14055|      1|#if SIMDJSON_IMPLEMENTATION_FALLBACK
14056|      1|    get_fallback_singleton(),
14057|      1|#endif
14058|      1|  }; // available_implementation_pointers
14059|      1|  return available_implementation_pointers;
14060|      1|}
simdjson.cpp:_ZN8simdjson8internalL21get_icelake_singletonEv:
13704|      1|static const icelake::implementation* get_icelake_singleton() {
13705|      1|  static const icelake::implementation icelake_singleton{};
13706|      1|  return &icelake_singleton;
13707|      1|}
_ZN8simdjson7icelake14implementationC2Ev:
13683|      1|  simdjson_inline implementation() : simdjson::implementation(
13684|      1|      "icelake",
13685|      1|      "Intel/AMD AVX512",
13686|      1|      internal::instruction_set::AVX2 | internal::instruction_set::PCLMULQDQ | internal::instruction_set::BMI1 | internal::instruction_set::BMI2 | internal::instruction_set::AVX512F | internal::instruction_set::AVX512DQ | internal::instruction_set::AVX512CD | internal::instruction_set::AVX512BW | internal::instruction_set::AVX512VL | internal::instruction_set::AVX512VBMI2
13687|      1|  ) {}
simdjson.cpp:_ZN8simdjson8internalL21get_haswell_singletonEv:
13654|      1|static const haswell::implementation* get_haswell_singleton() {
13655|      1|  static const haswell::implementation haswell_singleton{};
13656|      1|  return &haswell_singleton;
13657|      1|}
_ZN8simdjson7haswell14implementationC2Ev:
13633|      1|  simdjson_inline implementation() : simdjson::implementation(
13634|      1|      "haswell",
13635|      1|      "Intel/AMD AVX2",
13636|      1|      internal::instruction_set::AVX2 | internal::instruction_set::PCLMULQDQ | internal::instruction_set::BMI1 | internal::instruction_set::BMI2
13637|      1|  ) {}
simdjson.cpp:_ZN8simdjson8internalL22get_westmere_singletonEv:
13804|      1|static const simdjson::westmere::implementation* get_westmere_singleton() {
13805|      1|  static const simdjson::westmere::implementation westmere_singleton{};
13806|      1|  return &westmere_singleton;
13807|      1|}
_ZN8simdjson8westmere14implementationC2Ev:
13787|      1|  simdjson_inline implementation() : simdjson::implementation("westmere", "Intel/AMD SSE4.2", internal::instruction_set::SSE42 | internal::instruction_set::PCLMULQDQ) {}
simdjson.cpp:_ZN8simdjson8internalL22get_fallback_singletonEv:
13603|      1|static const fallback::implementation* get_fallback_singleton() {
13604|      1|  static const fallback::implementation fallback_singleton{};
13605|      1|  return &fallback_singleton;
13606|      1|}
_ZN8simdjson8internal49detect_best_supported_implementation_on_first_useC2Ev:
14022|      1|  simdjson_inline detect_best_supported_implementation_on_first_use() noexcept : implementation("best_supported_detector", "Detects the best supported implementation and sets it", 0) {}
_ZNK8simdjson8internal49detect_best_supported_implementation_on_first_use32create_dom_parser_implementationEmmRNSt3__110unique_ptrINS0_25dom_parser_implementationENS2_14default_deleteIS4_EEEE:
14013|      1|  ) const noexcept final {
14014|      1|    return set_best()->create_dom_parser_implementation(capacity, max_length, dst);
14015|      1|  }
_ZN8simdjson7haswell25dom_parser_implementationC2Ev:
23048|   115k|inline dom_parser_implementation::dom_parser_implementation() noexcept = default;
_ZN8simdjson8internal25dom_parser_implementationC2Ev:
12578|   115k|simdjson_inline dom_parser_implementation::dom_parser_implementation() noexcept = default;
_ZN8simdjson8internal25dom_parser_implementationD2Ev:
12496|   115k|  virtual ~dom_parser_implementation() = default;
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage121generic_validate_utf8INS1_15utf8_validation12utf8_checkerEEEbPKhm:
27248|    253|bool generic_validate_utf8(const uint8_t * input, size_t length) {
27249|    253|    checker c{};
27250|    253|    buf_block_reader<64> reader(input, length);
27251|    820|    while (reader.has_full_block()) {
  ------------------
  |  Branch (27251:12): [True: 567, False: 253]
  ------------------
27252|    567|      simd::simd8x64<uint8_t> in(reader.full_block());
27253|    567|      c.check_next_input(in);
27254|    567|      reader.advance();
27255|    567|    }
27256|    253|    uint8_t block[64]{};
27257|    253|    reader.get_remainder(block);
27258|    253|    simd::simd8x64<uint8_t> in(block);
27259|    253|    c.check_next_input(in);
27260|    253|    reader.advance();
27261|    253|    c.check_eof();
27262|    253|    return c.errors() == error_code::SUCCESS;
27263|    253|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IhEC2Ev:
22452|   348k|    simdjson_inline simd8() : base8_numeric<uint8_t>() {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhEC2Ev:
22319|   348k|    simdjson_inline base8_numeric() : base8<T>() {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5base8IhNS2_5simd8IbEEEC2Ev:
22271|   348k|    simdjson_inline base8() : base<simd8<T>>() {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEC2Ev:
22243|   348k|    simdjson_inline base() : value{__m256i()} {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm64EEC2EPKhm:
25994|    253|simdjson_inline buf_block_reader<STEP_SIZE>::buf_block_reader(const uint8_t *_buf, size_t _len) : buf{_buf}, len{_len}, lenminusstep{len < STEP_SIZE ? 0 : len - STEP_SIZE}, idx{0} {}
  ------------------
  |  Branch (25994:134): [True: 122, False: 131]
  ------------------
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm64EE14has_full_blockEv:
26000|    820|simdjson_inline bool buf_block_reader<STEP_SIZE>::has_full_block() const {
26001|    820|  return idx < lenminusstep;
26002|    820|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm64EE10full_blockEv:
26005|    567|simdjson_inline const uint8_t *buf_block_reader<STEP_SIZE>::full_block() const {
26006|    567|  return &buf[idx];
26007|    567|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhEC2EPKh:
22531|  19.9M|    simdjson_inline simd8x64(const T ptr[64]) : chunks{simd8<T>::load(ptr), simd8<T>::load(ptr+32)} {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhE4loadEPKh:
22303|  55.9M|    static simdjson_inline simd8<T> load(const T values[32]) {
22304|  55.9M|      return _mm256_loadu_si256(reinterpret_cast<const __m256i *>(values));
22305|  55.9M|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IhEC2EDv4_x:
22453|   435M|    simdjson_inline simd8(const __m256i _value) : base8_numeric<uint8_t>(_value) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhEC2EDv4_x:
22320|   435M|    simdjson_inline base8_numeric(const __m256i _value) : base8<T>(_value) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5base8IhNS2_5simd8IbEEEC2EDv4_x:
22272|   435M|    simdjson_inline base8(const __m256i _value) : base<simd8<T>>(_value) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEC2EDv4_x:
22246|   435M|    simdjson_inline base(const __m256i _value) : value(_value) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation12utf8_checker16check_next_inputERKNS1_4simd8simd8x64IhEE:
26491|  19.9M|    simdjson_inline void check_next_input(const simd8x64<uint8_t>& input) {
26492|  19.9M|      if(simdjson_likely(is_ascii(input))) {
  ------------------
  |  |  744|  19.9M|  #define simdjson_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (744:30): [True: 19.7M, False: 159k]
  |  |  ------------------
  ------------------
26493|  19.7M|        this->error |= this->prev_incomplete;
26494|  19.7M|      } else {
26495|       |        // you might think that a for-loop would work, but under Visual Studio, it is not good enough.
26496|   159k|        static_assert((simd8x64<uint8_t>::NUM_CHUNKS == 1)
26497|   159k|                ||(simd8x64<uint8_t>::NUM_CHUNKS == 2)
26498|   159k|                || (simd8x64<uint8_t>::NUM_CHUNKS == 4),
26499|   159k|                "We support one, two or four chunks per 64-byte block.");
26500|   159k|        SIMDJSON_IF_CONSTEXPR (simd8x64<uint8_t>::NUM_CHUNKS == 1) {
  ------------------
  |  |   81|   159k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
26501|       |          this->check_utf8_bytes(input.get<0>(), this->prev_input_block);
26502|   159k|        } else SIMDJSON_IF_CONSTEXPR (simd8x64<uint8_t>::NUM_CHUNKS == 2) {
  ------------------
  |  |   81|   159k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
26503|   159k|          this->check_utf8_bytes(input.get<0>(), this->prev_input_block);
26504|   159k|          this->check_utf8_bytes(input.get<1>(), input.get<0>());
26505|       |        } else SIMDJSON_IF_CONSTEXPR (simd8x64<uint8_t>::NUM_CHUNKS == 4) {
26506|       |          this->check_utf8_bytes(input.get<0>(), this->prev_input_block);
26507|       |          this->check_utf8_bytes(input.get<1>(), input.get<0>());
26508|       |          this->check_utf8_bytes(input.get<2>(), input.get<1>());
26509|       |          this->check_utf8_bytes(input.get<3>(), input.get<2>());
26510|       |        }
26511|   159k|        this->prev_incomplete = is_incomplete(input.get<simd8x64<uint8_t>::NUM_CHUNKS-1>());
26512|   159k|        this->prev_input_block = input.get<simd8x64<uint8_t>::NUM_CHUNKS-1>();
26513|   159k|      }
26514|  19.9M|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_18is_asciiERKNS1_4simd8simd8x64IhEE:
29286|  19.9M|simdjson_inline bool is_ascii(const simd8x64<uint8_t>& input) {
29287|  19.9M|  return input.reduce_or().is_ascii();
29288|  19.9M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhE9reduce_orEv:
22552|  19.9M|    simdjson_inline simd8<T> reduce_or() const {
22553|  19.9M|      return this->chunks[0] | this->chunks[1];
22554|  19.9M|    }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEorES5_:
22253|  80.4M|    simdjson_inline Child operator|(const Child other) const { return _mm256_or_si256(*this, other); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEcvRKDv4_xEv:
22249|   908M|    simdjson_inline operator const __m256i&() const { return this->value; }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE8is_asciiEv:
22504|  19.9M|    simdjson_inline bool is_ascii() const { return _mm256_movemask_epi8(*this) == 0; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEoRES5_:
22257|  20.2M|    simdjson_inline Child& operator|=(const Child other) { auto this_cast = static_cast<Child*>(this); *this_cast = *this_cast | other; return *this_cast; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation12utf8_checker16check_utf8_bytesENS1_4simd5simd8IhEES6_:
26474|   319k|    simdjson_inline void check_utf8_bytes(const simd8<uint8_t> input, const simd8<uint8_t> prev_input) {
26475|       |      // Flip prev1...prev3 so we can easily determine if they are 2+, 3+ or 4+ lead bytes
26476|       |      // (2, 3, 4-byte leads become large positive numbers instead of small negative numbers)
26477|   319k|      simd8<uint8_t> prev1 = input.prev<1>(prev_input);
26478|   319k|      simd8<uint8_t> sc = check_special_cases(input, prev1);
26479|   319k|      this->error |= check_multibyte_lengths(input, prev_input, sc);
26480|   319k|    }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5base8IhNS2_5simd8IbEEE4prevILi1EEENS4_IhEES8_:
22279|   319k|    simdjson_inline simd8<T> prev(const simd8<T> prev_chunk) const {
22280|       |      return _mm256_alignr_epi8(*this, _mm256_permute2x128_si256(prev_chunk, *this, 0x21), 16 - N);
22281|   319k|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation19check_special_casesENS1_4simd5simd8IhEES5_:
26334|   319k|  simdjson_inline simd8<uint8_t> check_special_cases(const simd8<uint8_t> input, const simd8<uint8_t> prev1) {
26335|       |// Bit 0 = Too Short (lead byte/ASCII followed by lead byte/ASCII)
26336|       |// Bit 1 = Too Long (ASCII followed by continuation)
26337|       |// Bit 2 = Overlong 3-byte
26338|       |// Bit 4 = Surrogate
26339|       |// Bit 5 = Overlong 2-byte
26340|       |// Bit 7 = Two Continuations
26341|   319k|    constexpr const uint8_t TOO_SHORT   = 1<<0; // 11______ 0_______
26342|       |                                                // 11______ 11______
26343|   319k|    constexpr const uint8_t TOO_LONG    = 1<<1; // 0_______ 10______
26344|   319k|    constexpr const uint8_t OVERLONG_3  = 1<<2; // 11100000 100_____
26345|   319k|    constexpr const uint8_t SURROGATE   = 1<<4; // 11101101 101_____
26346|   319k|    constexpr const uint8_t OVERLONG_2  = 1<<5; // 1100000_ 10______
26347|   319k|    constexpr const uint8_t TWO_CONTS   = 1<<7; // 10______ 10______
26348|   319k|    constexpr const uint8_t TOO_LARGE   = 1<<3; // 11110100 1001____
26349|       |                                                // 11110100 101_____
26350|       |                                                // 11110101 1001____
26351|       |                                                // 11110101 101_____
26352|       |                                                // 1111011_ 1001____
26353|       |                                                // 1111011_ 101_____
26354|       |                                                // 11111___ 1001____
26355|       |                                                // 11111___ 101_____
26356|   319k|    constexpr const uint8_t TOO_LARGE_1000 = 1<<6;
26357|       |                                                // 11110101 1000____
26358|       |                                                // 1111011_ 1000____
26359|       |                                                // 11111___ 1000____
26360|   319k|    constexpr const uint8_t OVERLONG_4  = 1<<6; // 11110000 1000____
26361|       |
26362|   319k|    const simd8<uint8_t> byte_1_high = prev1.shr<4>().lookup_16<uint8_t>(
26363|       |      // 0_______ ________ <ASCII in byte 1>
26364|   319k|      TOO_LONG, TOO_LONG, TOO_LONG, TOO_LONG,
26365|   319k|      TOO_LONG, TOO_LONG, TOO_LONG, TOO_LONG,
26366|       |      // 10______ ________ <continuation in byte 1>
26367|   319k|      TWO_CONTS, TWO_CONTS, TWO_CONTS, TWO_CONTS,
26368|       |      // 1100____ ________ <two byte lead in byte 1>
26369|   319k|      TOO_SHORT | OVERLONG_2,
26370|       |      // 1101____ ________ <two byte lead in byte 1>
26371|   319k|      TOO_SHORT,
26372|       |      // 1110____ ________ <three byte lead in byte 1>
26373|   319k|      TOO_SHORT | OVERLONG_3 | SURROGATE,
26374|       |      // 1111____ ________ <four+ byte lead in byte 1>
26375|   319k|      TOO_SHORT | TOO_LARGE | TOO_LARGE_1000 | OVERLONG_4
26376|   319k|    );
26377|   319k|    constexpr const uint8_t CARRY = TOO_SHORT | TOO_LONG | TWO_CONTS; // These all have ____ in byte 1 .
26378|   319k|    const simd8<uint8_t> byte_1_low = (prev1 & 0x0F).lookup_16<uint8_t>(
26379|       |      // ____0000 ________
26380|   319k|      CARRY | OVERLONG_3 | OVERLONG_2 | OVERLONG_4,
26381|       |      // ____0001 ________
26382|   319k|      CARRY | OVERLONG_2,
26383|       |      // ____001_ ________
26384|   319k|      CARRY,
26385|   319k|      CARRY,
26386|       |
26387|       |      // ____0100 ________
26388|   319k|      CARRY | TOO_LARGE,
26389|       |      // ____0101 ________
26390|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26391|       |      // ____011_ ________
26392|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26393|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26394|       |
26395|       |      // ____1___ ________
26396|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26397|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26398|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26399|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26400|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26401|       |      // ____1101 ________
26402|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000 | SURROGATE,
26403|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000,
26404|   319k|      CARRY | TOO_LARGE | TOO_LARGE_1000
26405|   319k|    );
26406|   319k|    const simd8<uint8_t> byte_2_high = input.shr<4>().lookup_16<uint8_t>(
26407|       |      // ________ 0_______ <ASCII in byte 2>
26408|   319k|      TOO_SHORT, TOO_SHORT, TOO_SHORT, TOO_SHORT,
26409|   319k|      TOO_SHORT, TOO_SHORT, TOO_SHORT, TOO_SHORT,
26410|       |
26411|       |      // ________ 1000____
26412|   319k|      TOO_LONG | OVERLONG_2 | TWO_CONTS | OVERLONG_3 | TOO_LARGE_1000 | OVERLONG_4,
26413|       |      // ________ 1001____
26414|   319k|      TOO_LONG | OVERLONG_2 | TWO_CONTS | OVERLONG_3 | TOO_LARGE,
26415|       |      // ________ 101_____
26416|   319k|      TOO_LONG | OVERLONG_2 | TWO_CONTS | SURROGATE  | TOO_LARGE,
26417|   319k|      TOO_LONG | OVERLONG_2 | TWO_CONTS | SURROGATE  | TOO_LARGE,
26418|       |
26419|       |      // ________ 11______
26420|   319k|      TOO_SHORT, TOO_SHORT, TOO_SHORT, TOO_SHORT
26421|   319k|    );
26422|   319k|    return (byte_1_high & byte_1_low & byte_2_high);
26423|   319k|  }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE3shrILi4EEES4_v:
22510|   639k|    simdjson_inline simd8<uint8_t> shr() const { return simd8<uint8_t>(_mm256_srli_epi16(*this, N)) & uint8_t(0xFFu >> N); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhE9lookup_16IhEENS2_5simd8IT_EES7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_S7_:
22398|   958k|        L replace12, L replace13, L replace14, L replace15) const {
22399|   958k|      return lookup_16(simd8<L>::repeat_16(
22400|   958k|        replace0,  replace1,  replace2,  replace3,
22401|   958k|        replace4,  replace5,  replace6,  replace7,
22402|   958k|        replace8,  replace9,  replace10, replace11,
22403|   958k|        replace12, replace13, replace14, replace15
22404|   958k|      ));
22405|   958k|    }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhE9lookup_16IhEENS2_5simd8IT_EES8_:
22336|   958k|    simdjson_inline simd8<L> lookup_16(simd8<L> lookup_table) const {
22337|   958k|      return _mm256_shuffle_epi8(lookup_table, *this);
22338|   958k|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEcvRDv4_xEv:
22250|   958k|    simdjson_inline operator __m256i&() { return this->value; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE9repeat_16Ehhhhhhhhhhhhhhhh:
22474|  40.8M|    ) {
22475|  40.8M|      return simd8<uint8_t>(
22476|  40.8M|        v0, v1, v2, v3, v4, v5, v6, v7,
22477|  40.8M|        v8, v9, v10,v11,v12,v13,v14,v15,
22478|  40.8M|        v0, v1, v2, v3, v4, v5, v6, v7,
22479|  40.8M|        v8, v9, v10,v11,v12,v13,v14,v15
22480|  40.8M|      );
22481|  40.8M|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IhEC2Ehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh:
22464|  40.8M|    ) : simd8(_mm256_setr_epi8(
22465|  40.8M|      v0, v1, v2, v3, v4, v5, v6, v7,
22466|  40.8M|      v8, v9, v10,v11,v12,v13,v14,v15,
22467|  40.8M|      v16,v17,v18,v19,v20,v21,v22,v23,
22468|  40.8M|      v24,v25,v26,v27,v28,v29,v30,v31
22469|  40.8M|    )) {}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEanES5_:
22254|  2.21M|    simdjson_inline Child operator&(const Child other) const { return _mm256_and_si256(*this, other); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IhEC2Eh:
22455|  72.4M|    simdjson_inline simd8(uint8_t _value) : simd8(splat(_value)) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhE5splatEh:
22301|   132M|    static simdjson_inline simd8<T> splat(T _value) { return _mm256_set1_epi8(_value); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation23check_multibyte_lengthsENS1_4simd5simd8IhEES5_S5_:
26425|   319k|      const simd8<uint8_t> prev_input, const simd8<uint8_t> sc) {
26426|   319k|    simd8<uint8_t> prev2 = input.prev<2>(prev_input);
26427|   319k|    simd8<uint8_t> prev3 = input.prev<3>(prev_input);
26428|   319k|    simd8<uint8_t> must23 = must_be_2_3_continuation(prev2, prev3);
26429|   319k|    simd8<uint8_t> must23_80 = must23 & uint8_t(0x80);
26430|   319k|    return must23_80 ^ sc;
26431|   319k|  }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5base8IhNS2_5simd8IbEEE4prevILi2EEENS4_IhEES8_:
22279|   319k|    simdjson_inline simd8<T> prev(const simd8<T> prev_chunk) const {
22280|       |      return _mm256_alignr_epi8(*this, _mm256_permute2x128_si256(prev_chunk, *this, 0x21), 16 - N);
22281|   319k|    }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5base8IhNS2_5simd8IbEEE4prevILi3EEENS4_IhEES8_:
22279|   319k|    simdjson_inline simd8<T> prev(const simd8<T> prev_chunk) const {
22280|       |      return _mm256_alignr_epi8(*this, _mm256_permute2x128_si256(prev_chunk, *this, 0x21), 16 - N);
22281|   319k|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_124must_be_2_3_continuationENS1_4simd5simd8IhEES4_:
29290|   319k|simdjson_inline simd8<uint8_t> must_be_2_3_continuation(const simd8<uint8_t> prev2, const simd8<uint8_t> prev3) {
29291|   319k|  simd8<uint8_t> is_third_byte  = prev2.saturating_sub(0xe0u-0x80); // Only 111_____ will be >= 0x80
29292|   319k|  simd8<uint8_t> is_fourth_byte = prev3.saturating_sub(0xf0u-0x80); // Only 1111____ will be >= 0x80
29293|   319k|  return is_third_byte | is_fourth_byte;
29294|   319k|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE14saturating_subES4_:
22485|   798k|    simdjson_inline simd8<uint8_t> saturating_sub(const simd8<uint8_t> other) const { return _mm256_subs_epu8(*this, other); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IhEEEeoES5_:
22255|   908k|    simdjson_inline Child operator^(const Child other) const { return _mm256_xor_si256(*this, other); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhE3getILi0EEENS2_5simd8IhEEv:
22524|   319k|    template<int idx> simd8<uint8_t> get() const { return idx < NUM_CHUNKS ? chunks[idx] : simd8<T>(); }
  ------------------
  |  Branch (22524:59): [True: 319k, Folded]
  ------------------
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhE3getILi1EEENS2_5simd8IhEEv:
22524|   479k|    template<int idx> simd8<uint8_t> get() const { return idx < NUM_CHUNKS ? chunks[idx] : simd8<T>(); }
  ------------------
  |  Branch (22524:59): [True: 479k, Folded]
  ------------------
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation13is_incompleteENS1_4simd5simd8IhEE:
26437|   159k|  simdjson_inline simd8<uint8_t> is_incomplete(const simd8<uint8_t> input) {
26438|       |    // If the previous input's last 3 bytes match this, they're too short (they ended at EOF):
26439|       |    // ... 1111____ 111_____ 11______
26440|   159k|#if SIMDJSON_IMPLEMENTATION_ICELAKE || (SIMDJSON_IMPLEMENTATION_RVV_VLS && __riscv_v_fixed_vlen >= 512)
26441|   159k|    static const uint8_t max_array[64] = {
26442|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26443|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26444|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26445|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26446|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26447|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26448|   159k|      255, 255, 255, 255, 255, 255, 255, 255,
26449|   159k|      255, 255, 255, 255, 255, 0xf0u-1, 0xe0u-1, 0xc0u-1
26450|   159k|    };
26451|       |#else
26452|       |    static const uint8_t max_array[32] = {
26453|       |      255, 255, 255, 255, 255, 255, 255, 255,
26454|       |      255, 255, 255, 255, 255, 255, 255, 255,
26455|       |      255, 255, 255, 255, 255, 255, 255, 255,
26456|       |      255, 255, 255, 255, 255, 0xf0u-1, 0xe0u-1, 0xc0u-1
26457|       |    };
26458|       |#endif
26459|   159k|    const simd8<uint8_t> max_value(&max_array[sizeof(max_array)-sizeof(simd8<uint8_t>)]);
26460|   159k|    return input.gt_bits(max_value);
26461|   159k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IhEC2EPKh:
22457|  15.4M|    simdjson_inline simd8(const uint8_t values[32]) : simd8(load(values)) {}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE7gt_bitsES4_:
22491|   159k|    simdjson_inline simd8<uint8_t> gt_bits(const simd8<uint8_t> other) const { return this->saturating_sub(other); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm64EE7advanceEv:
26050|    820|simdjson_inline void buf_block_reader<STEP_SIZE>::advance() {
26051|    820|  idx += STEP_SIZE;
26052|    820|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm64EE13get_remainderEPh:
26010|    253|simdjson_inline size_t buf_block_reader<STEP_SIZE>::get_remainder(uint8_t *dst) const {
26011|    253|  if(len == idx) { return 0; } // memcpy(dst, null, 0) will trigger an error with some sanitizers
  ------------------
  |  Branch (26011:6): [True: 5, False: 248]
  ------------------
26012|    248|  std::memset(dst, 0x20, STEP_SIZE); // std::memset STEP_SIZE because it's more efficient to write out 8 or 16 bytes at once.
26013|    248|  std::memcpy(dst, buf + idx, len - idx);
26014|    248|  return len - idx;
26015|    253|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation12utf8_checker9check_eofEv:
26485|   115k|    simdjson_inline void check_eof() {
26486|       |      // If the previous block had incomplete UTF-8 characters at the end, an ASCII block can't
26487|       |      // possibly finish them.
26488|   115k|      this->error |= this->prev_incomplete;
26489|   115k|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115utf8_validation12utf8_checker6errorsEv:
26516|   115k|    simdjson_warn_unused simdjson_inline error_code errors() {
26517|   115k|      return this->error.any_bits_set_anywhere() ? error_code::UTF8_ERROR : error_code::SUCCESS;
  ------------------
  |  Branch (26517:14): [True: 712, False: 114k]
  ------------------
26518|   115k|    }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE21any_bits_set_anywhereEv:
22506|   115k|    simdjson_inline bool any_bits_set_anywhere() const { return !bits_not_set_anywhere(); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE21bits_not_set_anywhereEv:
22505|   115k|    simdjson_inline bool bits_not_set_anywhere() const { return _mm256_testz_si256(*this, *this); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_119backslash_and_quote13copy_and_findEPKhPh:
22628|  15.3M|simdjson_inline backslash_and_quote backslash_and_quote::copy_and_find(const uint8_t *src, uint8_t *dst) {
22629|       |  // this can read up to 15 bytes beyond the buffer size, but we require
22630|       |  // SIMDJSON_PADDING of padding
22631|  15.3M|  static_assert(SIMDJSON_PADDING >= (BYTES_PROCESSED - 1), "backslash and quote finder must process fewer than SIMDJSON_PADDING bytes");
22632|  15.3M|  simd8<uint8_t> v(src);
22633|       |  // store to dest unconditionally - we can overwrite the bits we don't like later
22634|  15.3M|  v.store(dst);
22635|  15.3M|  return {
22636|  15.3M|      static_cast<uint32_t>((v == '\\').to_bitmask()),     // bs_bits
22637|  15.3M|      static_cast<uint32_t>((v == '"').to_bitmask()), // quote_bits
22638|  15.3M|  };
22639|  15.3M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd13base8_numericIhE5storeEPh:
22323|  15.8M|    simdjson_inline void store(T dst[32]) const { return _mm256_storeu_si256(reinterpret_cast<__m256i *>(dst), *this); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simdeqENS2_5simd8IhEES4_:
22274|   230M|    friend simdjson_really_inline Mask operator==(const simd8<T> lhs, const simd8<T> rhs) { return _mm256_cmpeq_epi8(lhs, rhs); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5simd8IbEC2EDv4_x:
22290|   230M|    simdjson_inline simd8(const __m256i _value) : base8<bool>(_value) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd5base8IbNS2_5simd8IbEEEC2EDv4_x:
22272|   230M|    simdjson_inline base8(const __m256i _value) : base<simd8<T>>(_value) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IbEEEC2EDv4_x:
22246|   230M|    simdjson_inline base(const __m256i _value) : value(_value) {}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IbE10to_bitmaskEv:
22294|   230M|    simdjson_inline int to_bitmask() const { return _mm256_movemask_epi8(*this); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd4baseINS2_5simd8IbEEEcvRKDv4_xEv:
22249|   230M|    simdjson_inline operator const __m256i&() const { return this->value; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_119backslash_and_quote15has_quote_firstEv:
22619|  15.3M|  simdjson_inline bool has_quote_first() { return ((bs_bits - 1) & quote_bits) != 0; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_119backslash_and_quote11quote_indexEv:
22621|  2.63M|  simdjson_inline int quote_index() { return trailing_zeroes(quote_bits); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_115trailing_zeroesEm:
22082|   127M|simdjson_inline int trailing_zeroes(uint64_t input_num) {
22083|       |#if SIMDJSON_REGULAR_VISUAL_STUDIO
22084|       |  return (int)_tzcnt_u64(input_num);
22085|       |#else // SIMDJSON_REGULAR_VISUAL_STUDIO
22086|       |  ////////
22087|       |  // You might expect the next line to be equivalent to
22088|       |  // return (int)_tzcnt_u64(input_num);
22089|       |  // but the generated code differs and might be less efficient?
22090|       |  ////////
22091|   127M|  return __builtin_ctzll(input_num);
22092|   127M|#endif // SIMDJSON_REGULAR_VISUAL_STUDIO
22093|   127M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_119backslash_and_quote13has_backslashEv:
22620|  12.7M|  simdjson_inline bool has_backslash() { return ((quote_bits - 1) & bs_bits) != 0; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_119backslash_and_quote15backslash_indexEv:
22622|  2.02M|  simdjson_inline int backslash_index() { return trailing_zeroes(bs_bits); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_113stringparsing24handle_unicode_codepointEPPKhPPhb:
28461|  40.9k|                                            uint8_t **dst_ptr, bool allow_replacement) {
28462|       |  // Use the default Unicode Character 'REPLACEMENT CHARACTER' (U+FFFD)
28463|  40.9k|  constexpr uint32_t substitution_code_point = 0xfffd;
28464|       |  // jsoncharutils::hex_to_u32_nocheck fills high 16 bits of the return value with 1s if the
28465|       |  // conversion is not valid; we defer the check for this to inside the
28466|       |  // multilingual plane check.
28467|  40.9k|  uint32_t code_point = jsoncharutils::hex_to_u32_nocheck(*src_ptr + 2);
28468|  40.9k|  *src_ptr += 6;
28469|       |
28470|       |  // If we found a high surrogate, we must
28471|       |  // check for low surrogate for characters
28472|       |  // outside the Basic
28473|       |  // Multilingual Plane.
28474|  40.9k|  if (code_point >= 0xd800 && code_point < 0xdc00) {
  ------------------
  |  Branch (28474:7): [True: 2.57k, False: 38.3k]
  |  Branch (28474:31): [True: 871, False: 1.70k]
  ------------------
28475|    871|    const uint8_t *src_data = *src_ptr;
28476|       |    /* Compiler optimizations convert this to a single 16-bit load and compare on most platforms */
28477|    871|    if (((src_data[0] << 8) | src_data[1]) != ((static_cast<uint8_t> ('\\') << 8) | static_cast<uint8_t> ('u'))) {
  ------------------
  |  Branch (28477:9): [True: 247, False: 624]
  ------------------
28478|    247|      if(!allow_replacement) { return false; }
  ------------------
  |  Branch (28478:10): [True: 247, False: 0]
  ------------------
28479|      0|      code_point = substitution_code_point;
28480|    624|    } else {
28481|    624|      uint32_t code_point_2 = jsoncharutils::hex_to_u32_nocheck(src_data + 2);
28482|       |
28483|       |      // We have already checked that the high surrogate is valid and
28484|       |      // (code_point - 0xd800) < 1024.
28485|       |      //
28486|       |      // Check that code_point_2 is in the range 0xdc00..0xdfff
28487|       |      // and that code_point_2 was parsed from valid hex.
28488|    624|      uint32_t low_bit = code_point_2 - 0xdc00;
28489|    624|      if (low_bit >> 10) {
  ------------------
  |  Branch (28489:11): [True: 337, False: 287]
  ------------------
28490|    337|        if(!allow_replacement) { return false; }
  ------------------
  |  Branch (28490:12): [True: 337, False: 0]
  ------------------
28491|      0|        code_point = substitution_code_point;
28492|    287|      } else {
28493|    287|        code_point =  (((code_point - 0xd800) << 10) | low_bit) + 0x10000;
28494|    287|        *src_ptr += 6;
28495|    287|      }
28496|       |
28497|    624|    }
28498|  40.0k|  } else if (code_point >= 0xdc00 && code_point <= 0xdfff) {
  ------------------
  |  Branch (28498:14): [True: 1.70k, False: 38.3k]
  |  Branch (28498:38): [True: 256, False: 1.45k]
  ------------------
28499|       |      // If we encounter a low surrogate (not preceded by a high surrogate)
28500|       |      // then we have an error.
28501|    256|      if(!allow_replacement) { return false; }
  ------------------
  |  Branch (28501:10): [True: 256, False: 0]
  ------------------
28502|      0|      code_point = substitution_code_point;
28503|      0|  }
28504|  40.1k|  size_t offset = jsoncharutils::codepoint_to_utf8(code_point, *dst_ptr);
28505|  40.1k|  *dst_ptr += offset;
28506|  40.1k|  return offset > 0;
28507|  40.9k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_113jsoncharutils18hex_to_u32_nocheckEPKh:
22744|  41.5k|    const uint8_t *src) { // strictly speaking, static inline is a C-ism
22745|  41.5k|  uint32_t v1 = internal::digit_to_val32[630 + src[0]];
22746|  41.5k|  uint32_t v2 = internal::digit_to_val32[420 + src[1]];
22747|  41.5k|  uint32_t v3 = internal::digit_to_val32[210 + src[2]];
22748|  41.5k|  uint32_t v4 = internal::digit_to_val32[0 + src[3]];
22749|  41.5k|  return v1 | v2 | v3 | v4;
22750|  41.5k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_113jsoncharutils17codepoint_to_utf8EjPh:
22764|  40.1k|simdjson_inline size_t codepoint_to_utf8(uint32_t cp, uint8_t *c) {
22765|  40.1k|  if (cp <= 0x7F) {
  ------------------
  |  Branch (22765:7): [True: 22.1k, False: 17.9k]
  ------------------
22766|  22.1k|    c[0] = uint8_t(cp);
22767|  22.1k|    return 1; // ascii
22768|  22.1k|  }
22769|  17.9k|  if (cp <= 0x7FF) {
  ------------------
  |  Branch (22769:7): [True: 6.75k, False: 11.1k]
  ------------------
22770|  6.75k|    c[0] = uint8_t((cp >> 6) + 192);
22771|  6.75k|    c[1] = uint8_t((cp & 63) + 128);
22772|  6.75k|    return 2; // universal plane
22773|       |    //  Surrogates are treated elsewhere...
22774|       |    //} //else if (0xd800 <= cp && cp <= 0xdfff) {
22775|       |    //  return 0; // surrogates // could put assert here
22776|  11.1k|  } else if (cp <= 0xFFFF) {
  ------------------
  |  Branch (22776:14): [True: 10.5k, False: 577]
  ------------------
22777|  10.5k|    c[0] = uint8_t((cp >> 12) + 224);
22778|  10.5k|    c[1] = uint8_t(((cp >> 6) & 63) + 128);
22779|  10.5k|    c[2] = uint8_t((cp & 63) + 128);
22780|  10.5k|    return 3;
22781|  10.5k|  } else if (cp <= 0x10FFFF) { // if you know you have a valid code point, this
  ------------------
  |  Branch (22781:14): [True: 287, False: 290]
  ------------------
22782|       |                               // is not needed
22783|    287|    c[0] = uint8_t((cp >> 18) + 240);
22784|    287|    c[1] = uint8_t(((cp >> 12) & 63) + 128);
22785|    287|    c[2] = uint8_t(((cp >> 6) & 63) + 128);
22786|    287|    c[3] = uint8_t((cp & 63) + 128);
22787|    287|    return 4;
22788|    287|  }
22789|       |  // will return 0 when the code point was too large.
22790|    290|  return 0; // bad r
22791|  17.9k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_113stringparsing12parse_stringEPKhPhb:
28559|  2.63M|simdjson_warn_unused simdjson_inline uint8_t *parse_string(const uint8_t *src, uint8_t *dst, bool allow_replacement) {
28560|  15.3M|  while (1) {
  ------------------
  |  Branch (28560:10): [True: 15.3M, Folded]
  ------------------
28561|       |    // Copy the next n bytes, and find the backslash and quote in them.
28562|  15.3M|    auto b = backslash_and_quote{};
28563|  15.3M|    auto bs_quote = b.copy_and_find(src, dst);
28564|       |    // If the next thing is the end quote, copy and return
28565|  15.3M|    if (bs_quote.has_quote_first()) {
  ------------------
  |  Branch (28565:9): [True: 2.63M, False: 12.7M]
  ------------------
28566|       |      // we encountered quotes first. Move dst to point to quotes and exit
28567|  2.63M|      return dst + bs_quote.quote_index();
28568|  2.63M|    }
28569|  12.7M|    if (bs_quote.has_backslash()) {
  ------------------
  |  Branch (28569:9): [True: 2.02M, False: 10.6M]
  ------------------
28570|       |      /* find out where the backspace is */
28571|  2.02M|      auto bs_dist = bs_quote.backslash_index();
28572|  2.02M|      uint8_t escape_char = src[bs_dist + 1];
28573|       |      /* we encountered backslash first. Handle backslash */
28574|  2.02M|      if (escape_char == 'u') {
  ------------------
  |  Branch (28574:11): [True: 36.6k, False: 1.98M]
  ------------------
28575|       |        /* move src/dst up to the start; they will be further adjusted
28576|       |           within the unicode codepoint handling code. */
28577|  36.6k|        src += bs_dist;
28578|  36.6k|        dst += bs_dist;
28579|       |        // Decode adjacent Unicode escapes without returning to the
28580|       |        // quote-and-backslash scanner between code points.
28581|  40.9k|        do {
28582|  40.9k|          if (!handle_unicode_codepoint(&src, &dst, allow_replacement)) {
  ------------------
  |  Branch (28582:15): [True: 1.13k, False: 39.8k]
  ------------------
28583|  1.13k|            return nullptr;
28584|  1.13k|          }
28585|  40.9k|        } while (src[0] == '\\' && src[1] == 'u');
  ------------------
  |  Branch (28585:18): [True: 6.75k, False: 33.0k]
  |  Branch (28585:36): [True: 4.28k, False: 2.46k]
  ------------------
28586|  1.98M|      } else {
28587|       |        /* simple 1:1 conversion. Will eat bs_dist+2 characters in input and
28588|       |         * write bs_dist+1 characters to output
28589|       |         * note this may reach beyond the part of the buffer we've actually
28590|       |         * seen. I think this is ok */
28591|  1.98M|        uint8_t escape_result = escape_map[escape_char];
28592|  1.98M|        if (escape_result == 0u) {
  ------------------
  |  Branch (28592:13): [True: 445, False: 1.98M]
  ------------------
28593|    445|          return nullptr; /* bogus escape value is an error */
28594|    445|        }
28595|  1.98M|        dst[bs_dist] = escape_result;
28596|  1.98M|        src += bs_dist + 2;
28597|  1.98M|        dst += bs_dist + 1;
28598|  1.98M|      }
28599|  10.6M|    } else {
28600|       |      /* they are the same. Since they can't co-occur, it means we
28601|       |       * encountered neither. */
28602|  10.6M|      src += backslash_and_quote::BYTES_PROCESSED;
28603|  10.6M|      dst += backslash_and_quote::BYTES_PROCESSED;
28604|  10.6M|    }
28605|  12.7M|  }
28606|  2.63M|}
_ZN8simdjson7haswell25dom_parser_implementation12set_capacityEm:
23053|   115k|inline simdjson_warn_unused error_code dom_parser_implementation::set_capacity(size_t capacity) noexcept {
23054|   115k|  if(capacity > SIMDJSON_MAXSIZE_BYTES || capacity > SIZE_MAX - 63) { return CAPACITY; }
  ------------------
  |  Branch (23054:6): [True: 0, False: 115k]
  |  Branch (23054:43): [True: 0, False: 115k]
  ------------------
23055|       |  // Stage 1 index output
23056|   115k|  size_t rounded_capacity = SIMDJSON_ROUNDUP_N(capacity, 64);
  ------------------
  |  |  689|   115k|#define SIMDJSON_ROUNDUP_N(a, n) (((a) + ((n)-1)) & ~((n)-1))
  ------------------
23057|   115k|  if(rounded_capacity + 9 < rounded_capacity) {
  ------------------
  |  Branch (23057:6): [True: 0, False: 115k]
  ------------------
23058|      0|    return CAPACITY; // overflow, only happen on legacy 32-bit systems with very large capacity
23059|      0|  }
23060|   115k|  size_t max_structures = rounded_capacity + 9;
23061|   115k|  if(max_structures > SIZE_MAX / sizeof(uint32_t)) { return CAPACITY; }
  ------------------
  |  Branch (23061:6): [True: 0, False: 115k]
  ------------------
23062|       |  // Allocate before releasing the current buffer so that, on failure, the
23063|       |  // implementation keeps its previous buffer and capacity. Otherwise a parser
23064|       |  // that still believes it has room skips reallocation and stage 1 rejects
23065|       |  // every document with CAPACITY.
23066|   115k|  std::unique_ptr<uint32_t[]> new_structural_indexes(new (std::nothrow) uint32_t[max_structures]);
23067|   115k|  if (!new_structural_indexes) { return MEMALLOC; }
  ------------------
  |  Branch (23067:7): [True: 0, False: 115k]
  ------------------
23068|   115k|  structural_indexes = std::move(new_structural_indexes);
23069|   115k|  structural_indexes[0] = 0;
23070|   115k|  n_structural_indexes = 0;
23071|       |
23072|   115k|  _capacity = capacity;
23073|   115k|  return SUCCESS;
23074|   115k|}
_ZN8simdjson7haswell25dom_parser_implementation13set_max_depthEm:
23076|   115k|inline simdjson_warn_unused error_code dom_parser_implementation::set_max_depth(size_t max_depth) noexcept {
23077|   115k|  if(max_depth == 0 || max_depth > SIMDJSON_MAX_DEPTH || max_depth > SIZE_MAX / sizeof(open_container)) { return CAPACITY; }
  ------------------
  |  Branch (23077:6): [True: 0, False: 115k]
  |  Branch (23077:24): [True: 0, False: 115k]
  |  Branch (23077:58): [True: 0, False: 115k]
  ------------------
23078|       |  // Stage 2 stacks. Allocate both before touching the parser so that, on
23079|       |  // failure, it keeps its previous stacks and depth: a parser whose depth does
23080|       |  // not match its stacks would crash in stage 2.
23081|   115k|  std::unique_ptr<open_container[]> new_open_containers(new (std::nothrow) open_container[max_depth]);
23082|   115k|  std::unique_ptr<bool[]> new_is_array(new (std::nothrow) bool[max_depth]);
23083|   115k|  if (!new_is_array || !new_open_containers) { return MEMALLOC; }
  ------------------
  |  Branch (23083:7): [True: 0, False: 115k]
  |  Branch (23083:24): [True: 0, False: 115k]
  ------------------
23084|   115k|  open_containers = std::move(new_open_containers);
23085|   115k|  is_array = std::move(new_is_array);
23086|   115k|  _max_depth = max_depth;
23087|   115k|  return SUCCESS;
23088|   115k|}
simdjson.cpp:_ZN8simdjson8internal12_GLOBAL__N_121parse_with_fast_floatIdEET_PKcS5_:
10002|  18.5k|template <typename T> T parse_with_fast_float(const char *first, const char *end) noexcept {
10003|  18.5k|  T value{};
10004|  18.5k|  auto answer =
10005|  18.5k|      simdjson_fast_float::from_chars_advanced(first, end, value, json_options);
10006|  18.5k|  if (answer.ec == std::errc::invalid_argument) { return T(0); }
  ------------------
  |  Branch (10006:7): [True: 0, False: 18.5k]
  ------------------
10007|  18.5k|  return value;
10008|  18.5k|}
_ZN19simdjson_fast_float19from_chars_advancedIdcEENS_19from_chars_result_tIT0_EEPKS2_S5_RT_NS_15parse_options_tIS2_EE:
 9938|  18.5k|                    parse_options_t<UC> options) noexcept {
 9939|  18.5k|  return from_chars_advanced_caller<
 9940|  18.5k|      size_t(is_supported_float_type<T>::value) +
 9941|  18.5k|      2 * size_t(is_supported_integer_type<T>::value)>::call(first, last, value,
 9942|  18.5k|                                                             options);
 9943|  18.5k|}
_ZN19simdjson_fast_float26from_chars_advanced_callerILm1EE4callIdcEENS_19from_chars_result_tIT0_EEPKS4_S7_RT_NS_15parse_options_tIS4_EE:
 9921|  18.5k|       parse_options_t<UC> options) noexcept {
 9922|  18.5k|    return from_chars_float_advanced(first, last, value, options);
 9923|  18.5k|  }
_ZN19simdjson_fast_float25from_chars_float_advancedIdcEENS_19from_chars_result_tIT0_EEPKS2_S5_RT_NS_15parse_options_tIS2_EE:
 9709|  18.5k|                          parse_options_t<UC> options) noexcept {
 9710|       |
 9711|  18.5k|  static_assert(is_supported_float_type<T>::value,
 9712|  18.5k|                "only some floating-point types are supported");
 9713|  18.5k|  static_assert(is_supported_char_type<UC>::value,
 9714|  18.5k|                "only char, wchar_t, char16_t and char32_t are supported");
 9715|       |
 9716|  18.5k|  chars_format const fmt = detail::adjust_for_feature_macros(options.format);
 9717|       |
 9718|  18.5k|  from_chars_result_t<UC> answer;
 9719|  18.5k|  if (uint64_t(fmt & chars_format::skip_white_space)) {
  ------------------
  |  Branch (9719:7): [True: 0, False: 18.5k]
  ------------------
 9720|      0|    while ((first != last) && simdjson_fast_float::is_space(*first)) {
  ------------------
  |  Branch (9720:12): [True: 0, False: 0]
  |  Branch (9720:31): [True: 0, False: 0]
  ------------------
 9721|      0|      first++;
 9722|      0|    }
 9723|      0|  }
 9724|  18.5k|  if (first == last) {
  ------------------
  |  Branch (9724:7): [True: 0, False: 18.5k]
  ------------------
 9725|      0|    answer.ec = std::errc::invalid_argument;
 9726|      0|    answer.ptr = first;
 9727|      0|    return answer;
 9728|      0|  }
 9729|  18.5k|  bool const bjf = uint64_t(fmt & detail::basic_json_fmt) != 0;
 9730|       |
 9731|       |  // Fast path: parse WITHOUT materializing the integer/fraction spans (read
 9732|       |  // only by the rare slow paths). Skipping their stores keeps the fat
 9733|       |  // parsed_number_string_t off the hot path. store_spans is a runtime argument,
 9734|       |  // so this reuses the single parse_number_string instantiation.
 9735|  18.5k|  parsed_number_string_t<UC> pns =
 9736|  18.5k|      bjf ? parse_number_string<true, UC>(first, last, options, false)
  ------------------
  |  Branch (9736:7): [True: 18.5k, False: 0]
  ------------------
 9737|  18.5k|          : parse_number_string<false, UC>(first, last, options, false);
 9738|  18.5k|  if (!pns.valid) {
  ------------------
  |  Branch (9738:7): [True: 0, False: 18.5k]
  ------------------
 9739|      0|    if (uint64_t(fmt & chars_format::no_infnan)) {
  ------------------
  |  Branch (9739:9): [True: 0, False: 0]
  ------------------
 9740|      0|      answer.ec = std::errc::invalid_argument;
 9741|      0|      answer.ptr = first;
 9742|      0|      return answer;
 9743|      0|    } else {
 9744|      0|      return detail::parse_infnan(first, last, value, fmt);
 9745|      0|    }
 9746|      0|  }
 9747|       |
 9748|       |  // Slow path A (rare): > 19 significant digits. The no-span parse left the
 9749|       |  // mantissa un-truncated and skipped the span-based recompute; the cold helper
 9750|       |  // re-parses with spans and runs the full algorithm.
 9751|       |  //
 9752|       |// We have to disable -Wc++20-extensions for the [[unlikely]] attribute
 9753|       |// See comment for @jwakely at
 9754|       |// https://github.com/fastfloat/simdjson_fast_float/pull/387#discussion_r3366943539
 9755|       |// This is unfortunate.
 9756|  18.5k|#ifdef __clang__
 9757|  18.5k|#pragma clang diagnostic push
 9758|  18.5k|#if (!defined(__APPLE_CC__) && __clang_major__ >= 10) || (__clang_major__ >= 13)
 9759|  18.5k|SIMDJSON_DISABLE_GCC_WARNING(-Wc++20-extensions)
 9760|  18.5k|#endif
 9761|  18.5k|#endif
 9762|  18.5k|  if simdjson_fastfloat_unlikely (pns.too_many_digits) {
  ------------------
  |  | 5205|  18.5k|#define simdjson_fastfloat_unlikely(x) (x) [[unlikely]]
  |  |  ------------------
  |  |  |  Branch (5205:41): [True: 15.2k, False: 3.24k]
  |  |  ------------------
  ------------------
 9763|  15.2k|    return parse_number_slow_path<T, UC>(first, last, value, options, bjf);
 9764|  15.2k|  }
 9765|  3.24k|  answer.ec = std::errc(); // be optimistic
 9766|  3.24k|  answer.ptr = pns.lastmatch;
 9767|       |
 9768|  3.24k|  if (clinger_fast_path_impl(pns.mantissa, pns.exponent, pns.negative, value)) {
  ------------------
  |  Branch (9768:7): [True: 12, False: 3.23k]
  ------------------
 9769|     12|    return answer;
 9770|     12|  }
 9771|       |
 9772|  3.23k|  adjusted_mantissa am =
 9773|  3.23k|      compute_float<binary_format<T>>(pns.exponent, pns.mantissa);
 9774|       |  // Slow path B (rare): Eisel-Lemire could not resolve; digit_comp needs the
 9775|       |  // integer/fraction spans. Route to the cold helper (clinger there is a
 9776|       |  // dead-effect since it already failed here; the cold re-parse + digit_comp
 9777|       |  // via from_chars_advanced reproduces this branch).
 9778|  3.23k|  if simdjson_fastfloat_unlikely (am.power2 < 0) {
  ------------------
  |  | 5205|  3.23k|#define simdjson_fastfloat_unlikely(x) (x) [[unlikely]]
  |  |  ------------------
  |  |  |  Branch (5205:41): [True: 0, False: 3.23k]
  |  |  ------------------
  ------------------
 9779|      0|    return parse_number_slow_path<T, UC>(first, last, value, options, bjf);
 9780|      0|  }
 9781|  3.23k|#ifdef __clang__
 9782|  3.23k|#pragma clang diagnostic pop
 9783|  3.23k|#endif
 9784|  3.23k|  to_float(pns.negative, am, value);
 9785|       |  // Test for over/underflow.
 9786|  3.23k|  if ((pns.mantissa != 0 && am.mantissa == 0 && am.power2 == 0) ||
  ------------------
  |  Branch (9786:8): [True: 3.22k, False: 10]
  |  Branch (9786:29): [True: 186, False: 3.03k]
  |  Branch (9786:49): [True: 45, False: 141]
  ------------------
 9787|  3.19k|      am.power2 == binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9787:7): [True: 113, False: 3.07k]
  ------------------
 9788|    158|    answer.ec = std::errc::result_out_of_range;
 9789|    158|  }
 9790|  3.23k|  return answer;
 9791|  3.23k|}
_ZN19simdjson_fast_float6detail25adjust_for_feature_macrosENS_12chars_formatE:
 6442|   435k|constexpr chars_format adjust_for_feature_macros(chars_format fmt) {
 6443|   435k|  return fmt
 6444|       |#ifdef SIMDJSON_FASTFLOAT_ALLOWS_LEADING_PLUS
 6445|       |         | chars_format::allow_leading_plus
 6446|       |#endif
 6447|       |#ifdef SIMDJSON_FASTFLOAT_SKIP_WHITE_SPACE
 6448|       |         | chars_format::skip_white_space
 6449|       |#endif
 6450|   435k|      ;
 6451|   435k|}
_ZN19simdjson_fast_floatanENS_12chars_formatES0_:
 6407|  1.42M|constexpr chars_format operator&(chars_format lhs, chars_format rhs) noexcept {
 6408|  1.42M|  using int_type = std::underlying_type<chars_format>::type;
 6409|  1.42M|  return static_cast<chars_format>(static_cast<int_type>(lhs) &
 6410|  1.42M|                                   static_cast<int_type>(rhs));
 6411|  1.42M|}
_ZN19simdjson_fast_float19parse_number_stringILb1EcEENS_22parsed_number_string_tIT0_EEPKS2_S5_NS_15parse_options_tIS2_EEb:
 6886|   282k|                    bool store_spans = true) noexcept {
 6887|   282k|  chars_format const fmt = detail::adjust_for_feature_macros(options.format);
 6888|   282k|  UC const decimal_point = options.decimal_point;
 6889|       |
 6890|   282k|  parsed_number_string_t<UC> answer;
 6891|   282k|  answer.valid = false;
 6892|   282k|  answer.too_many_digits = false;
 6893|       |  // assume p < pend, so dereference without checks;
 6894|   282k|  answer.negative = (*p == UC('-'));
 6895|       |  // C++17 20.19.3.(7.1) explicitly forbids '+' sign here
 6896|   282k|  if ((*p == UC('-')) || (uint64_t(fmt & chars_format::allow_leading_plus) &&
  ------------------
  |  Branch (6896:7): [True: 22.6k, False: 260k]
  |  Branch (6896:27): [True: 0, False: 260k]
  ------------------
 6897|  22.6k|                          !basic_json_fmt && *p == UC('+'))) {
  ------------------
  |  Branch (6897:27): [Folded, False: 0]
  |  Branch (6897:46): [True: 0, False: 0]
  ------------------
 6898|  22.6k|    ++p;
 6899|  22.6k|    if (p == pend) {
  ------------------
  |  Branch (6899:9): [True: 0, False: 22.6k]
  ------------------
 6900|      0|      return report_parse_error<UC>(
 6901|      0|          p, parse_error::missing_integer_or_dot_after_sign);
 6902|      0|    }
 6903|  22.6k|    SIMDJSON_FASTFLOAT_IF_CONSTEXPR17(basic_json_fmt) {
  ------------------
  |  | 4964|  22.6k|#define SIMDJSON_FASTFLOAT_IF_CONSTEXPR17(x) if constexpr (x)
  ------------------
 6904|  22.6k|      if (!is_integer(*p)) { // a sign must be followed by an integer
  ------------------
  |  Branch (6904:11): [True: 0, False: 22.6k]
  ------------------
 6905|      0|        return report_parse_error<UC>(p,
 6906|      0|                                      parse_error::missing_integer_after_sign);
 6907|      0|      }
 6908|       |    }
 6909|       |    else {
 6910|       |      if (!is_integer(*p) &&
 6911|       |          (*p !=
 6912|       |           decimal_point)) { // a sign must be followed by an integer or the dot
 6913|       |        return report_parse_error<UC>(
 6914|       |            p, parse_error::missing_integer_or_dot_after_sign);
 6915|       |      }
 6916|       |    }
 6917|  22.6k|  }
 6918|   282k|  UC const *const start_digits = p;
 6919|       |
 6920|   282k|  uint64_t i = 0; // an unsigned int avoids signed overflows (which are bad)
 6921|       |
 6922|       |  // Straight-line unroll of the integer-part scan: most integer parts are
 6923|       |  // 1-5 digits, so peeling the first iterations eliminates the loop back-edge
 6924|       |  // for the common case. Semantics are identical to the original `while` loop:
 6925|       |  // i = 10*i + digit, advancing p.
 6926|   282k|  if ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6926:7): [True: 282k, False: 0]
  |  Branch (6926:22): [True: 282k, False: 0]
  ------------------
 6927|   282k|    i = uint64_t(*p - UC('0'));
 6928|   282k|    ++p;
 6929|   282k|    if ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6929:9): [True: 282k, False: 0]
  |  Branch (6929:24): [True: 171k, False: 111k]
  ------------------
 6930|   171k|      i = 10 * i + uint64_t(*p - UC('0'));
 6931|   171k|      ++p;
 6932|   171k|      if ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6932:11): [True: 171k, False: 0]
  |  Branch (6932:26): [True: 161k, False: 9.46k]
  ------------------
 6933|   161k|        i = 10 * i + uint64_t(*p - UC('0'));
 6934|   161k|        ++p;
 6935|   161k|        if ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6935:13): [True: 161k, False: 0]
  |  Branch (6935:28): [True: 140k, False: 21.5k]
  ------------------
 6936|   140k|          i = 10 * i + uint64_t(*p - UC('0'));
 6937|   140k|          ++p;
 6938|   140k|          if ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6938:15): [True: 140k, False: 0]
  |  Branch (6938:30): [True: 127k, False: 12.5k]
  ------------------
 6939|   127k|            i = 10 * i + uint64_t(*p - UC('0'));
 6940|   127k|            ++p;
 6941|  3.01M|            while ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6941:20): [True: 2.97M, False: 38.4k]
  |  Branch (6941:35): [True: 2.88M, False: 89.3k]
  ------------------
 6942|       |              // a multiplication by 10 is cheaper than an arbitrary integer
 6943|       |              // multiplication
 6944|  2.88M|              i = 10 * i +
 6945|  2.88M|                  uint64_t(*p - UC('0')); // might overflow, handled later
 6946|  2.88M|              ++p;
 6947|  2.88M|            }
 6948|   127k|          }
 6949|   140k|        }
 6950|   161k|      }
 6951|   171k|    }
 6952|   282k|  }
 6953|   282k|  UC const *const end_of_integer_part = p;
 6954|   282k|  int64_t digit_count = int64_t(end_of_integer_part - start_digits);
 6955|   282k|  if (store_spans) {
  ------------------
  |  Branch (6955:7): [True: 129k, False: 153k]
  ------------------
 6956|   129k|    answer.integer = span<UC const>(start_digits, size_t(digit_count));
 6957|   129k|  }
 6958|   282k|  SIMDJSON_FASTFLOAT_IF_CONSTEXPR17(basic_json_fmt) {
  ------------------
  |  | 4964|   282k|#define SIMDJSON_FASTFLOAT_IF_CONSTEXPR17(x) if constexpr (x)
  ------------------
 6959|       |    // at least 1 digit in integer part, without leading zeros
 6960|   282k|    if (digit_count == 0) {
  ------------------
  |  Branch (6960:9): [True: 0, False: 282k]
  ------------------
 6961|      0|      return report_parse_error<UC>(p, parse_error::no_digits_in_integer_part);
 6962|      0|    }
 6963|   282k|    if ((start_digits[0] == UC('0') && digit_count > 1)) {
  ------------------
  |  Branch (6963:10): [True: 71.7k, False: 211k]
  |  Branch (6963:40): [True: 0, False: 71.7k]
  ------------------
 6964|      0|      return report_parse_error<UC>(start_digits,
 6965|      0|                                    parse_error::leading_zeros_in_integer_part);
 6966|      0|    }
 6967|   282k|  }
 6968|       |
 6969|   282k|  int64_t exponent = 0;
 6970|   282k|  bool const has_decimal_point = (p != pend) && (*p == decimal_point);
  ------------------
  |  Branch (6970:34): [True: 244k, False: 38.4k]
  |  Branch (6970:49): [True: 215k, False: 28.6k]
  ------------------
 6971|   282k|  if (has_decimal_point) {
  ------------------
  |  Branch (6971:7): [True: 215k, False: 67.0k]
  ------------------
 6972|   215k|    ++p;
 6973|   215k|    UC const *before = p;
 6974|       |    // can occur at most twice without overflowing, but let it occur more, since
 6975|       |    // for integers with many digits, digit parsing is the primary bottleneck.
 6976|   215k|    loop_parse_if_eight_digits(p, pend, i);
 6977|       |
 6978|   520k|    while ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (6978:12): [True: 367k, False: 152k]
  |  Branch (6978:27): [True: 304k, False: 63.1k]
  ------------------
 6979|   304k|      uint8_t digit = uint8_t(*p - UC('0'));
 6980|   304k|      ++p;
 6981|   304k|      i = i * 10 + digit; // in rare cases, this will overflow, but that's ok
 6982|   304k|    }
 6983|   215k|    exponent = before - p;
 6984|   215k|    if (store_spans) {
  ------------------
  |  Branch (6984:9): [True: 102k, False: 113k]
  ------------------
 6985|   102k|      answer.fraction = span<UC const>(before, size_t(p - before));
 6986|   102k|    }
 6987|   215k|    digit_count -= exponent;
 6988|   215k|  }
 6989|   282k|  SIMDJSON_FASTFLOAT_IF_CONSTEXPR17(basic_json_fmt) {
  ------------------
  |  | 4964|   282k|#define SIMDJSON_FASTFLOAT_IF_CONSTEXPR17(x) if constexpr (x)
  ------------------
 6990|       |    // at least 1 digit in fractional part
 6991|   282k|    if (has_decimal_point && exponent == 0) {
  ------------------
  |  Branch (6991:9): [True: 215k, False: 67.0k]
  |  Branch (6991:30): [True: 0, False: 215k]
  ------------------
 6992|      0|      return report_parse_error<UC>(p,
 6993|      0|                                    parse_error::no_digits_in_fractional_part);
 6994|      0|    }
 6995|       |  }
 6996|       |  else if (digit_count == 0) { // we must have encountered at least one integer!
 6997|       |    return report_parse_error<UC>(p, parse_error::no_digits_in_mantissa);
 6998|       |  }
 6999|   282k|  int64_t exp_number = 0; // explicit exponential part
 7000|   282k|  if ((uint64_t(fmt & chars_format::scientific) && (p != pend) &&
  ------------------
  |  Branch (7000:8): [True: 282k, False: 0]
  |  Branch (7000:52): [True: 91.8k, False: 191k]
  ------------------
 7001|  91.8k|       ((UC('e') == *p) || (UC('E') == *p))) ||
  ------------------
  |  Branch (7001:9): [True: 29.7k, False: 62.0k]
  |  Branch (7001:28): [True: 61.9k, False: 146]
  ------------------
 7002|   191k|      (uint64_t(fmt & detail::basic_fortran_fmt) && (p != pend) &&
  ------------------
  |  Branch (7002:8): [True: 0, False: 191k]
  |  Branch (7002:53): [True: 0, False: 0]
  ------------------
 7003|      0|       ((UC('+') == *p) || (UC('-') == *p) || (UC('d') == *p) ||
  ------------------
  |  Branch (7003:9): [True: 0, False: 0]
  |  Branch (7003:28): [True: 0, False: 0]
  |  Branch (7003:47): [True: 0, False: 0]
  ------------------
 7004|  91.6k|        (UC('D') == *p)))) {
  ------------------
  |  Branch (7004:9): [True: 0, False: 0]
  ------------------
 7005|  91.6k|    UC const *location_of_e = p;
 7006|  91.6k|    if ((UC('e') == *p) || (UC('E') == *p) || (UC('d') == *p) ||
  ------------------
  |  Branch (7006:9): [True: 29.7k, False: 61.9k]
  |  Branch (7006:28): [True: 61.9k, False: 0]
  |  Branch (7006:47): [True: 0, False: 0]
  ------------------
 7007|  91.6k|        (UC('D') == *p)) {
  ------------------
  |  Branch (7007:9): [True: 0, False: 0]
  ------------------
 7008|  91.6k|      ++p;
 7009|  91.6k|    }
 7010|  91.6k|    bool neg_exp = false;
 7011|  91.6k|    if ((p != pend) && (UC('-') == *p)) {
  ------------------
  |  Branch (7011:9): [True: 91.6k, False: 0]
  |  Branch (7011:24): [True: 55.0k, False: 36.5k]
  ------------------
 7012|  55.0k|      neg_exp = true;
 7013|  55.0k|      ++p;
 7014|  55.0k|    } else if ((p != pend) &&
  ------------------
  |  Branch (7014:16): [True: 36.5k, False: 0]
  ------------------
 7015|  36.5k|               (UC('+') ==
  ------------------
  |  Branch (7015:16): [True: 1.41k, False: 35.1k]
  ------------------
 7016|  36.5k|                *p)) { // '+' on exponent is allowed by C++17 20.19.3.(7.1)
 7017|  1.41k|      ++p;
 7018|  1.41k|    }
 7019|  91.6k|    if ((p == pend) || !is_integer(*p)) {
  ------------------
  |  Branch (7019:9): [True: 0, False: 91.6k]
  |  Branch (7019:24): [True: 0, False: 91.6k]
  ------------------
 7020|      0|      if (!uint64_t(fmt & chars_format::fixed)) {
  ------------------
  |  Branch (7020:11): [True: 0, False: 0]
  ------------------
 7021|       |        // The exponential part is invalid for scientific notation, so it must
 7022|       |        // be a trailing token for fixed notation. However, fixed notation is
 7023|       |        // disabled, so report a scientific notation error.
 7024|      0|        return report_parse_error<UC>(p, parse_error::missing_exponential_part);
 7025|      0|      }
 7026|       |      // Otherwise, we will be ignoring the 'e'.
 7027|      0|      p = location_of_e;
 7028|  91.6k|    } else {
 7029|  1.34M|      while ((p != pend) && is_integer(*p)) {
  ------------------
  |  Branch (7029:14): [True: 1.25M, False: 91.5k]
  |  Branch (7029:29): [True: 1.25M, False: 168]
  ------------------
 7030|  1.25M|        uint8_t digit = uint8_t(*p - UC('0'));
 7031|  1.25M|        if (exp_number < 0x10000000) {
  ------------------
  |  Branch (7031:13): [True: 794k, False: 455k]
  ------------------
 7032|   794k|          exp_number = 10 * exp_number + digit;
 7033|   794k|        }
 7034|  1.25M|        ++p;
 7035|  1.25M|      }
 7036|  91.6k|      if (neg_exp) {
  ------------------
  |  Branch (7036:11): [True: 55.0k, False: 36.5k]
  ------------------
 7037|  55.0k|        exp_number = -exp_number;
 7038|  55.0k|      }
 7039|  91.6k|      exponent += exp_number;
 7040|  91.6k|    }
 7041|   191k|  } else {
 7042|       |    // If it scientific and not fixed, we have to bail out.
 7043|   191k|    if (uint64_t(fmt & chars_format::scientific) &&
  ------------------
  |  Branch (7043:9): [True: 191k, False: 0]
  ------------------
 7044|   191k|        !uint64_t(fmt & chars_format::fixed)) {
  ------------------
  |  Branch (7044:9): [True: 0, False: 191k]
  ------------------
 7045|      0|      return report_parse_error<UC>(p, parse_error::missing_exponential_part);
 7046|      0|    }
 7047|   191k|  }
 7048|   282k|  answer.lastmatch = p;
 7049|   282k|  answer.valid = true;
 7050|       |
 7051|       |  // If we frequently had to deal with long strings of digits,
 7052|       |  // we could extend our code by using a 128-bit integer instead
 7053|       |  // of a 64-bit integer. However, this is uncommon.
 7054|       |  //
 7055|       |  // We can deal with up to 19 digits.
 7056|   282k|  if (digit_count > 19) { // this is uncommon
  ------------------
  |  Branch (7056:7): [True: 263k, False: 19.6k]
  ------------------
 7057|       |    // It is possible that the integer had an overflow.
 7058|       |    // We have to handle the case where we have 0.0000somenumber.
 7059|       |    // We need to be mindful of the case where we only have zeroes...
 7060|       |    // E.g., 0.000000000...000.
 7061|   263k|    UC const *start = start_digits;
 7062|  2.99M|    while ((start != pend) && (*start == UC('0') || *start == decimal_point)) {
  ------------------
  |  Branch (7062:12): [True: 2.99M, False: 510]
  |  Branch (7062:32): [True: 2.66M, False: 329k]
  |  Branch (7062:53): [True: 66.8k, False: 262k]
  ------------------
 7063|  2.73M|      if (*start == UC('0')) {
  ------------------
  |  Branch (7063:11): [True: 2.66M, False: 66.8k]
  ------------------
 7064|  2.66M|        digit_count--;
 7065|  2.66M|      }
 7066|  2.73M|      start++;
 7067|  2.73M|    }
 7068|       |
 7069|   263k|    if (digit_count > 19) {
  ------------------
  |  Branch (7069:9): [True: 259k, False: 3.59k]
  ------------------
 7070|   259k|      answer.too_many_digits = true;
 7071|       |      // The truncation recompute below reads the integer/fraction spans. When
 7072|       |      // store_spans is false we didn't materialize them, so just flag
 7073|       |      // too_many_digits; the caller re-parses with store_spans=true to obtain
 7074|       |      // the corrected mantissa/exponent before taking the slow path.
 7075|   259k|      if (store_spans) {
  ------------------
  |  Branch (7075:11): [True: 129k, False: 129k]
  ------------------
 7076|       |        // Let us start again, this time, avoiding overflows.
 7077|       |        // We don't need to call if is_integer, since we use the
 7078|       |        // pre-tokenized spans from above.
 7079|   129k|        i = 0;
 7080|   129k|        p = answer.integer.ptr;
 7081|   129k|        UC const *int_end = p + answer.integer.len();
 7082|   129k|        uint64_t const minimal_nineteen_digit_integer{1000000000000000000};
 7083|  1.24M|        while ((i < minimal_nineteen_digit_integer) && (p != int_end)) {
  ------------------
  |  Branch (7083:16): [True: 1.19M, False: 44.0k]
  |  Branch (7083:56): [True: 1.11M, False: 85.8k]
  ------------------
 7084|  1.11M|          i = i * 10 + uint64_t(*p - UC('0'));
 7085|  1.11M|          ++p;
 7086|  1.11M|        }
 7087|   129k|        if (i >= minimal_nineteen_digit_integer) { // We have a big integer
  ------------------
  |  Branch (7087:13): [True: 44.0k, False: 85.8k]
  ------------------
 7088|  44.0k|          exponent = end_of_integer_part - p + exp_number;
 7089|  85.8k|        } else { // We have a value with a fractional component.
 7090|  85.8k|          p = answer.fraction.ptr;
 7091|  85.8k|          UC const *frac_end = p + answer.fraction.len();
 7092|  2.28M|          while ((i < minimal_nineteen_digit_integer) && (p != frac_end)) {
  ------------------
  |  Branch (7092:18): [True: 2.20M, False: 85.8k]
  |  Branch (7092:58): [True: 2.20M, False: 0]
  ------------------
 7093|  2.20M|            i = i * 10 + uint64_t(*p - UC('0'));
 7094|  2.20M|            ++p;
 7095|  2.20M|          }
 7096|  85.8k|          exponent = answer.fraction.ptr - p + exp_number;
 7097|  85.8k|        }
 7098|       |        // We have now corrected both exponent and i, to a truncated value
 7099|   129k|      }
 7100|   259k|    }
 7101|   263k|  }
 7102|   282k|  answer.exponent = exponent;
 7103|   282k|  answer.mantissa = i;
 7104|   282k|  return answer;
 7105|   282k|}
_ZN19simdjson_fast_float4spanIKcEC2Ev:
 5441|   565k|  constexpr span() : ptr(nullptr), length(0) {}
_ZN19simdjson_fast_float10is_integerIcEEbT_:
 6579|  5.74M|simdjson_fastfloat_really_inline constexpr bool is_integer(UC c) noexcept {
 6580|  5.74M|  return static_cast<unsigned>(c - UC('0')) <= 9u;
 6581|  5.74M|}
_ZN19simdjson_fast_float4spanIKcEC2EPS1_m:
 5439|   232k|  constexpr span(T const *_ptr, size_t _length) : ptr(_ptr), length(_length) {}
_ZN19simdjson_fast_float26loop_parse_if_eight_digitsERPKcS1_Rm:
 6805|   215k|                           uint64_t &i) {
 6806|       |  // optimizes better than parse_if_eight_digits_unrolled() for UC = char.
 6807|  1.77M|  while ((std::distance(p, pend) >= 8) &&
  ------------------
  |  Branch (6807:10): [True: 1.59M, False: 173k]
  ------------------
 6808|  1.59M|         is_made_of_eight_digits_fast(read8_to_u64(p))) {
  ------------------
  |  Branch (6808:10): [True: 1.55M, False: 42.4k]
  ------------------
 6809|  1.55M|    i = i * 100000000 +
 6810|  1.55M|        parse_eight_digits_unrolled(read8_to_u64(
 6811|  1.55M|            p)); // in rare cases, this will overflow, but that's ok
 6812|  1.55M|    p += 8;
 6813|  1.55M|  }
 6814|       |  // Consume a remaining 4-7 digit run in a single SWAR step instead of
 6815|       |  // byte-by-byte (reuses the existing 4-digit helpers). The parsed result is
 6816|       |  // identical either way. Historically gated to clang because gcc regressed on
 6817|       |  // short remainders, but that verdict predates the span-elision restructure;
 6818|       |  // with the leaner hot path the 4-digit step now wins on gcc as well.
 6819|   215k|  if ((pend - p) >= 4) {
  ------------------
  |  Branch (6819:7): [True: 141k, False: 74.4k]
  ------------------
 6820|   141k|    uint32_t const val4 = read4_to_u32(p);
 6821|   141k|    if (is_made_of_four_digits_fast(val4)) {
  ------------------
  |  Branch (6821:9): [True: 107k, False: 33.6k]
  ------------------
 6822|   107k|      i = i * 10000 +
 6823|   107k|          parse_four_digits_unrolled(val4); // may overflow, that's ok
 6824|   107k|      p += 4;
 6825|   107k|    }
 6826|   141k|  }
 6827|   215k|}
_ZN19simdjson_fast_float28is_made_of_eight_digits_fastEm:
 6711|  1.59M|is_made_of_eight_digits_fast(uint64_t val) noexcept {
 6712|  1.59M|  return !((((val + 0x4646464646464646) | (val - 0x3030303030303030)) &
 6713|  1.59M|            0x8080808080808080));
 6714|  1.59M|}
_ZN19simdjson_fast_float12read8_to_u64IcEEmPKT_:
 6598|  3.26M|read8_to_u64(UC const *chars) {
 6599|  3.26M|  if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
  ------------------
  |  Branch (6599:7): [Folded, False: 0]
  |  Branch (6599:35): [Folded, False: 0]
  ------------------
 6600|      0|    uint64_t val = 0;
 6601|      0|    for (int i = 0; i < 8; ++i) {
  ------------------
  |  Branch (6601:21): [True: 0, False: 0]
  ------------------
 6602|      0|      val |= uint64_t(uint8_t(*chars)) << (i * 8);
 6603|      0|      ++chars;
 6604|      0|    }
 6605|      0|    return val;
 6606|      0|  }
 6607|  3.26M|  uint64_t val;
 6608|  3.26M|  ::memcpy(&val, chars, sizeof(uint64_t));
 6609|       |#if SIMDJSON_FASTFLOAT_IS_BIG_ENDIAN == 1
 6610|       |  // Need to read as-if the number was in little-endian order.
 6611|       |  val = byteswap(val);
 6612|       |#endif
 6613|  3.26M|  return val;
 6614|  3.26M|}
_ZN19simdjson_fast_float27parse_eight_digits_unrolledEm:
 6689|  1.66M|parse_eight_digits_unrolled(uint64_t val) {
 6690|  1.66M|  uint64_t const mask = 0x000000FF000000FF;
 6691|  1.66M|  uint64_t const mul1 = 0x000F424000000064; // 100 + (1000000ULL << 32)
 6692|  1.66M|  uint64_t const mul2 = 0x0000271000000001; // 1 + (10000ULL << 32)
 6693|  1.66M|  val -= 0x3030303030303030;
 6694|  1.66M|  val = (val * 10) + (val >> 8); // val = (val * 2561) >> 8;
 6695|  1.66M|  val = (((val & mask) * mul1) + (((val >> 16) & mask) * mul2)) >> 32;
 6696|  1.66M|  return uint32_t(val);
 6697|  1.66M|}
_ZN19simdjson_fast_float12read4_to_u32IcEEjPKT_:
 6619|   141k|read4_to_u32(UC const *chars) {
 6620|   141k|  if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
  ------------------
  |  Branch (6620:7): [Folded, False: 0]
  |  Branch (6620:35): [Folded, False: 0]
  ------------------
 6621|      0|    uint32_t val = 0;
 6622|      0|    for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (6622:21): [True: 0, False: 0]
  ------------------
 6623|      0|      val |= uint32_t(uint8_t(*chars)) << (i * 8);
 6624|      0|      ++chars;
 6625|      0|    }
 6626|      0|    return val;
 6627|      0|  }
 6628|   141k|  uint32_t val;
 6629|   141k|  ::memcpy(&val, chars, sizeof(uint32_t));
 6630|       |#if SIMDJSON_FASTFLOAT_IS_BIG_ENDIAN == 1
 6631|       |  val = byteswap_32(val);
 6632|       |#endif
 6633|   141k|  return val;
 6634|   141k|}
_ZN19simdjson_fast_float27is_made_of_four_digits_fastEj:
 6717|   141k|is_made_of_four_digits_fast(uint32_t val) noexcept {
 6718|   141k|  return !((((val + 0x46464646) | (val - 0x30303030)) & 0x80808080));
 6719|   141k|}
_ZN19simdjson_fast_float26parse_four_digits_unrolledEj:
 6722|   107k|parse_four_digits_unrolled(uint32_t val) noexcept {
 6723|   107k|  val -= 0x30303030;
 6724|   107k|  val = (val * 10) + (val >> 8);
 6725|   107k|  return (((val & 0x00FF00FF) * 0x00640001) >> 16) & 0xFFFF;
 6726|   107k|}
_ZNK19simdjson_fast_float4spanIKcE3lenEv:
 5443|   242k|  constexpr size_t len() const noexcept { return length; }
_ZN19simdjson_fast_float22parse_number_slow_pathIdcEENS_19from_chars_result_tIT0_EEPKS2_S5_RT_NS_15parse_options_tIS2_EEb:
 9699|  15.2k|                       parse_options_t<UC> options, bool bjf) noexcept {
 9700|  15.2k|  parsed_number_string_t<UC> pns =
 9701|  15.2k|      bjf ? parse_number_string<true, UC>(first, last, options, true)
  ------------------
  |  Branch (9701:7): [True: 15.2k, False: 0]
  ------------------
 9702|  15.2k|          : parse_number_string<false, UC>(first, last, options, true);
 9703|  15.2k|  return from_chars_advanced(pns, value);
 9704|  15.2k|}
_ZN19simdjson_fast_float19from_chars_advancedIdcEENS_19from_chars_result_tIT0_EERNS_22parsed_number_string_tIS2_EERT_:
 9652|  15.2k|from_chars_advanced(parsed_number_string_t<UC> &pns, T &value) noexcept {
 9653|  15.2k|  static_assert(is_supported_float_type<T>::value,
 9654|  15.2k|                "only some floating-point types are supported");
 9655|  15.2k|  static_assert(is_supported_char_type<UC>::value,
 9656|  15.2k|                "only char, wchar_t, char16_t and char32_t are supported");
 9657|       |
 9658|  15.2k|  from_chars_result_t<UC> answer;
 9659|       |
 9660|  15.2k|  answer.ec = std::errc(); // be optimistic
 9661|  15.2k|  answer.ptr = pns.lastmatch;
 9662|       |
 9663|  15.2k|  if (!pns.too_many_digits &&
  ------------------
  |  Branch (9663:7): [True: 0, False: 15.2k]
  ------------------
 9664|      0|      clinger_fast_path_impl(pns.mantissa, pns.exponent, pns.negative, value))
  ------------------
  |  Branch (9664:7): [True: 0, False: 0]
  ------------------
 9665|      0|    return answer;
 9666|       |
 9667|  15.2k|  adjusted_mantissa am =
 9668|  15.2k|      compute_float<binary_format<T>>(pns.exponent, pns.mantissa);
 9669|  15.2k|  if (pns.too_many_digits && am.power2 >= 0) {
  ------------------
  |  Branch (9669:7): [True: 15.2k, False: 0]
  |  Branch (9669:30): [True: 15.2k, False: 0]
  ------------------
 9670|  15.2k|    if (am != compute_float<binary_format<T>>(pns.exponent, pns.mantissa + 1)) {
  ------------------
  |  Branch (9670:9): [True: 3.18k, False: 12.0k]
  ------------------
 9671|  3.18k|      am = compute_error<binary_format<T>>(pns.exponent, pns.mantissa);
 9672|  3.18k|    }
 9673|  15.2k|  }
 9674|       |  // If we called compute_float<binary_format<T>>(pns.exponent, pns.mantissa)
 9675|       |  // and we have an invalid power (am.power2 < 0), then we need to go the long
 9676|       |  // way around again. This is very uncommon.
 9677|  15.2k|  if (am.power2 < 0) {
  ------------------
  |  Branch (9677:7): [True: 3.18k, False: 12.0k]
  ------------------
 9678|  3.18k|    am = digit_comp<T>(pns, am);
 9679|  3.18k|  }
 9680|  15.2k|  to_float(pns.negative, am, value);
 9681|       |  // Test for over/underflow.
 9682|  15.2k|  if ((pns.mantissa != 0 && am.mantissa == 0 && am.power2 == 0) ||
  ------------------
  |  Branch (9682:8): [True: 15.2k, False: 0]
  |  Branch (9682:29): [True: 434, False: 14.8k]
  |  Branch (9682:49): [True: 115, False: 319]
  ------------------
 9683|  15.1k|      am.power2 == binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9683:7): [True: 66, False: 15.0k]
  ------------------
 9684|    181|    answer.ec = std::errc::result_out_of_range;
 9685|    181|  }
 9686|  15.2k|  return answer;
 9687|  15.2k|}
_ZNK19simdjson_fast_float17adjusted_mantissaneERKS0_:
 5626|   129k|  constexpr bool operator!=(adjusted_mantissa const &o) const {
 5627|   129k|    return mantissa != o.mantissa || power2 != o.power2;
  ------------------
  |  Branch (5627:12): [True: 14.2k, False: 115k]
  |  Branch (5627:38): [True: 0, False: 115k]
  ------------------
 5628|   129k|  }
_ZN19simdjson_fast_float13compute_errorINS_13binary_formatIdEEEENS_17adjusted_mantissaElm:
 8181|  3.18k|compute_error(int64_t q, uint64_t w) noexcept {
 8182|  3.18k|  int lz = leading_zeroes(w);
 8183|  3.18k|  w <<= lz;
 8184|  3.18k|  value128 product =
 8185|  3.18k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 8186|  3.18k|  return compute_error_scaled<binary>(q, product.high, lz);
 8187|  3.18k|}
_ZN19simdjson_fast_float14leading_zeroesEm:
 5491|   264k|leading_zeroes(uint64_t input_num) {
 5492|   264k|  assert(input_num > 0);
  ------------------
  |  Branch (5492:3): [True: 264k, False: 0]
  ------------------
 5493|   264k|  if (cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (5493:7): [Folded, False: 264k]
  ------------------
 5494|      0|    return leading_zeroes_generic(input_num);
 5495|      0|  }
 5496|       |#ifdef SIMDJSON_FASTFLOAT_VISUAL_STUDIO
 5497|       |#if defined(_M_X64) || defined(_M_ARM64)
 5498|       |  unsigned long leading_zero = 0;
 5499|       |  // Search the mask data from most significant bit (MSB)
 5500|       |  // to least significant bit (LSB) for a set bit (1).
 5501|       |  _BitScanReverse64(&leading_zero, input_num);
 5502|       |  return static_cast<int>(63 - leading_zero);
 5503|       |#else
 5504|       |  return leading_zeroes_generic(input_num);
 5505|       |#endif
 5506|       |#else
 5507|   264k|  return __builtin_clzll(input_num);
 5508|   264k|#endif
 5509|   264k|}
_ZN19simdjson_fast_float29compute_product_approximationILi55EEENS_8value128Elm:
 8115|  36.5k|compute_product_approximation(int64_t q, uint64_t w) {
 8116|  36.5k|  int const index = 2 * int(q - powers::smallest_power_of_five);
 8117|       |  // For small values of q, e.g., q in [0,27], the answer is always exact
 8118|       |  // because The line value128 firstproduct = full_multiplication(w,
 8119|       |  // power_of_five_128[index]); gives the exact answer.
 8120|  36.5k|  value128 firstproduct =
 8121|  36.5k|      full_multiplication(w, powers::power_of_five_128[index]);
 8122|  36.5k|  static_assert((bit_precision >= 0) && (bit_precision <= 64),
 8123|  36.5k|                " precision should  be in (0,64]");
 8124|  36.5k|  constexpr uint64_t precision_mask =
 8125|  36.5k|      (bit_precision < 64) ? (uint64_t(0xFFFFFFFFFFFFFFFF) >> bit_precision)
  ------------------
  |  Branch (8125:7): [True: 0, Folded]
  ------------------
 8126|  36.5k|                           : uint64_t(0xFFFFFFFFFFFFFFFF);
 8127|  36.5k|  if ((firstproduct.high & precision_mask) ==
  ------------------
  |  Branch (8127:7): [True: 2.97k, False: 33.5k]
  ------------------
 8128|  36.5k|      precision_mask) { // could further guard with  (lower + w < lower)
 8129|       |    // regarding the second product, we only need secondproduct.high, but our
 8130|       |    // expectation is that the compiler will optimize this extra work away if
 8131|       |    // needed.
 8132|  2.97k|    value128 secondproduct =
 8133|  2.97k|        full_multiplication(w, powers::power_of_five_128[index + 1]);
 8134|  2.97k|    firstproduct.low += secondproduct.high;
 8135|  2.97k|    if (secondproduct.high > firstproduct.low) {
  ------------------
  |  Branch (8135:9): [True: 1.05k, False: 1.91k]
  ------------------
 8136|  1.05k|      firstproduct.high++;
 8137|  1.05k|    }
 8138|  2.97k|  }
 8139|  36.5k|  return firstproduct;
 8140|  36.5k|}
_ZN19simdjson_fast_float19full_multiplicationEmm:
 5592|   293k|full_multiplication(uint64_t a, uint64_t b) {
 5593|   293k|  if (cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (5593:7): [Folded, False: 293k]
  ------------------
 5594|      0|    value128 answer;
 5595|      0|    answer.low = umul128_generic(a, b, &answer.high);
 5596|      0|    return answer;
 5597|      0|  }
 5598|   293k|  value128 answer;
 5599|       |#if defined(_M_ARM64) && !defined(__MINGW32__)
 5600|       |  // ARM64 has native support for 64-bit multiplications, no need to emulate
 5601|       |  // But MinGW on ARM64 doesn't have native support for 64-bit multiplications
 5602|       |  answer.high = __umulh(a, b);
 5603|       |  answer.low = a * b;
 5604|       |#elif defined(SIMDJSON_FASTFLOAT_32BIT) || (defined(_WIN64) && !defined(__clang__) &&   \
 5605|       |                                   !defined(_M_ARM64) && !defined(__GNUC__))
 5606|       |  answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
 5607|       |#elif defined(SIMDJSON_FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
 5608|       |  __uint128_t r = static_cast<__uint128_t>(a) * b;
 5609|   293k|  answer.low = uint64_t(r);
 5610|   293k|  answer.high = uint64_t(r >> 64);
 5611|       |#else
 5612|       |  answer.low = umul128_generic(a, b, &answer.high);
 5613|       |#endif
 5614|   293k|  return answer;
 5615|   293k|}
_ZN19simdjson_fast_float8value128C2Ev:
 5457|   293k|  constexpr value128() : low(0), high(0) {}
_ZN19simdjson_fast_float20compute_error_scaledINS_13binary_formatIdEEEENS_17adjusted_mantissaElmi:
 8167|  3.18k|compute_error_scaled(int64_t q, uint64_t w, int lz) noexcept {
 8168|  3.18k|  int hilz = int(w >> 63) ^ 1;
 8169|  3.18k|  adjusted_mantissa answer;
 8170|  3.18k|  answer.mantissa = w << hilz;
 8171|  3.18k|  int bias = binary::mantissa_explicit_bits() - binary::minimum_exponent();
 8172|  3.18k|  answer.power2 = int32_t(detail::power(int32_t(q)) + bias - hilz - lz - 62 +
 8173|  3.18k|                          invalid_am_bias);
 8174|  3.18k|  return answer;
 8175|  3.18k|}
_ZN19simdjson_fast_float17adjusted_mantissaC2Ev:
 5620|   309k|  adjusted_mantissa() = default;
_ZN19simdjson_fast_float13binary_formatIdE22mantissa_explicit_bitsEv:
 5765|   147k|inline constexpr int binary_format<double>::mantissa_explicit_bits() {
 5766|   147k|  return 52;
 5767|   147k|}
_ZN19simdjson_fast_float13binary_formatIdE16minimum_exponentEv:
 5794|  39.7k|template <> inline constexpr int binary_format<double>::minimum_exponent() {
 5795|  39.7k|  return -1023;
 5796|  39.7k|}
_ZN19simdjson_fast_float6detail5powerEi:
 8158|   261k|constexpr simdjson_fastfloat_really_inline int32_t power(int32_t q) noexcept {
 8159|   261k|  return (((152170 + 65536) * q) >> 16) + 63;
 8160|   261k|}
_ZN19simdjson_fast_float10digit_compIdcEENS_17adjusted_mantissaERNS_22parsed_number_string_tIT0_EES1_:
 9374|  3.18k|digit_comp(parsed_number_string_t<UC> &num, adjusted_mantissa am) noexcept {
 9375|       |  // remove the invalid exponent bias
 9376|  3.18k|  am.power2 -= invalid_am_bias;
 9377|       |
 9378|  3.18k|  int32_t sci_exp =
 9379|  3.18k|      scientific_exponent(num.mantissa, static_cast<int32_t>(num.exponent));
 9380|  3.18k|  size_t max_digits = binary_format<T>::max_digits();
 9381|  3.18k|  size_t digits = 0;
 9382|  3.18k|  bigint bigmant;
 9383|  3.18k|  parse_mantissa(bigmant, num, max_digits, digits);
 9384|       |  // can't underflow, since digits is at most max_digits.
 9385|  3.18k|  int32_t exponent = sci_exp + 1 - int32_t(digits);
 9386|  3.18k|  if (exponent >= 0) {
  ------------------
  |  Branch (9386:7): [True: 560, False: 2.62k]
  ------------------
 9387|    560|    return positive_digit_comp<T>(bigmant, exponent);
 9388|  2.62k|  } else {
 9389|  2.62k|    return negative_digit_comp<T>(bigmant, am, exponent);
 9390|  2.62k|  }
 9391|  3.18k|}
_ZN19simdjson_fast_float19scientific_exponentEmi:
 8982|  14.2k|scientific_exponent(uint64_t mantissa, int32_t exponent) noexcept {
 8983|  71.2k|  while (mantissa >= 10000) {
  ------------------
  |  Branch (8983:10): [True: 56.9k, False: 14.2k]
  ------------------
 8984|  56.9k|    mantissa /= 10000;
 8985|  56.9k|    exponent += 4;
 8986|  56.9k|  }
 8987|  28.4k|  while (mantissa >= 100) {
  ------------------
  |  Branch (8987:10): [True: 14.2k, False: 14.2k]
  ------------------
 8988|  14.2k|    mantissa /= 100;
 8989|  14.2k|    exponent += 2;
 8990|  14.2k|  }
 8991|  14.2k|  while (mantissa >= 10) {
  ------------------
  |  Branch (8991:10): [True: 0, False: 14.2k]
  ------------------
 8992|      0|    mantissa /= 10;
 8993|      0|    exponent += 1;
 8994|      0|  }
 8995|  14.2k|  return exponent;
 8996|  14.2k|}
_ZN19simdjson_fast_float13binary_formatIdE10max_digitsEv:
 6137|  3.18k|template <> inline constexpr size_t binary_format<double>::max_digits() {
 6138|  3.18k|  return 769;
 6139|  3.18k|}
_ZN19simdjson_fast_float6bigintC2Ev:
 8743|  14.2k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bigint() : vec() {}
_ZN19simdjson_fast_float8stackvecILt62EEC2Ev:
 8350|  31.4k|  stackvec() = default;
_ZN19simdjson_fast_float14parse_mantissaIcEEvRNS_6bigintERNS_22parsed_number_string_tIT_EEmRm:
 9199|  14.2k|               size_t max_digits, size_t &digits) noexcept {
 9200|       |  // try to minimize the number of big integer and scalar multiplication.
 9201|       |  // therefore, try to parse 8 digits at a time, and multiply by the largest
 9202|       |  // scalar value (9 or 19 digits) for each step.
 9203|  14.2k|  size_t counter = 0;
 9204|  14.2k|  digits = 0;
 9205|  14.2k|  limb value = 0;
 9206|  14.2k|#ifdef SIMDJSON_FASTFLOAT_64BIT_LIMB
 9207|  14.2k|  size_t step = 19;
 9208|       |#else
 9209|       |  size_t step = 9;
 9210|       |#endif
 9211|       |
 9212|       |  // process all integer digits.
 9213|  14.2k|  UC const *p = num.integer.ptr;
 9214|  14.2k|  UC const *pend = p + num.integer.len();
 9215|  14.2k|  skip_zeros(p, pend);
 9216|       |  // process all digits, in increments of step per loop
 9217|  41.6k|  while (p != pend) {
  ------------------
  |  Branch (9217:10): [True: 29.9k, False: 11.6k]
  ------------------
 9218|  74.8k|    while ((std::distance(p, pend) >= 8) && (step - counter >= 8) &&
  ------------------
  |  Branch (9218:12): [True: 62.9k, False: 11.9k]
  |  Branch (9218:45): [True: 44.8k, False: 18.0k]
  ------------------
 9219|  44.8k|           (max_digits - digits >= 8)) {
  ------------------
  |  Branch (9219:12): [True: 44.8k, False: 0]
  ------------------
 9220|  44.8k|      parse_eight_digits(p, value, counter, digits);
 9221|  44.8k|    }
 9222|  96.5k|    while (counter < step && p != pend && digits < max_digits) {
  ------------------
  |  Branch (9222:12): [True: 77.8k, False: 18.7k]
  |  Branch (9222:30): [True: 66.6k, False: 11.2k]
  |  Branch (9222:43): [True: 66.6k, False: 0]
  ------------------
 9223|  66.6k|      parse_one_digit(p, value, counter, digits);
 9224|  66.6k|    }
 9225|  29.9k|    if (digits == max_digits) {
  ------------------
  |  Branch (9225:9): [True: 2.56k, False: 27.3k]
  ------------------
 9226|       |      // add the temporary value, then check if we've truncated any digits
 9227|  2.56k|      add_native(result, limb(powers_of_ten_uint64[counter]), value);
 9228|  2.56k|      bool truncated = is_truncated(p, pend);
 9229|  2.56k|      if (num.fraction.ptr != nullptr) {
  ------------------
  |  Branch (9229:11): [True: 1.73k, False: 826]
  ------------------
 9230|  1.73k|        truncated |= is_truncated(num.fraction);
 9231|  1.73k|      }
 9232|  2.56k|      if (truncated) {
  ------------------
  |  Branch (9232:11): [True: 1.97k, False: 594]
  ------------------
 9233|  1.97k|        round_up_bigint(result, digits);
 9234|  1.97k|      }
 9235|  2.56k|      return;
 9236|  27.3k|    } else {
 9237|  27.3k|      add_native(result, limb(powers_of_ten_uint64[counter]), value);
 9238|  27.3k|      counter = 0;
 9239|  27.3k|      value = 0;
 9240|  27.3k|    }
 9241|  29.9k|  }
 9242|       |
 9243|       |  // add our fraction digits, if they're available.
 9244|  11.6k|  if (num.fraction.ptr != nullptr) {
  ------------------
  |  Branch (9244:7): [True: 10.4k, False: 1.21k]
  ------------------
 9245|  10.4k|    p = num.fraction.ptr;
 9246|  10.4k|    pend = p + num.fraction.len();
 9247|  10.4k|    if (digits == 0) {
  ------------------
  |  Branch (9247:9): [True: 370, False: 10.1k]
  ------------------
 9248|    370|      skip_zeros(p, pend);
 9249|    370|    }
 9250|       |    // process all digits, in increments of step per loop
 9251|  42.7k|    while (p != pend) {
  ------------------
  |  Branch (9251:12): [True: 34.9k, False: 7.83k]
  ------------------
 9252|  94.2k|      while ((std::distance(p, pend) >= 8) && (step - counter >= 8) &&
  ------------------
  |  Branch (9252:14): [True: 84.2k, False: 10.0k]
  |  Branch (9252:47): [True: 60.9k, False: 23.2k]
  ------------------
 9253|  60.9k|             (max_digits - digits >= 8)) {
  ------------------
  |  Branch (9253:14): [True: 59.3k, False: 1.65k]
  ------------------
 9254|  59.3k|        parse_eight_digits(p, value, counter, digits);
 9255|  59.3k|      }
 9256|   139k|      while (counter < step && p != pend && digits < max_digits) {
  ------------------
  |  Branch (9256:14): [True: 113k, False: 25.7k]
  |  Branch (9256:32): [True: 106k, False: 6.82k]
  |  Branch (9256:45): [True: 104k, False: 2.35k]
  ------------------
 9257|   104k|        parse_one_digit(p, value, counter, digits);
 9258|   104k|      }
 9259|  34.9k|      if (digits == max_digits) {
  ------------------
  |  Branch (9259:11): [True: 2.63k, False: 32.3k]
  ------------------
 9260|       |        // add the temporary value, then check if we've truncated any digits
 9261|  2.63k|        add_native(result, limb(powers_of_ten_uint64[counter]), value);
 9262|  2.63k|        bool truncated = is_truncated(p, pend);
 9263|  2.63k|        if (truncated) {
  ------------------
  |  Branch (9263:13): [True: 1.70k, False: 926]
  ------------------
 9264|  1.70k|          round_up_bigint(result, digits);
 9265|  1.70k|        }
 9266|  2.63k|        return;
 9267|  32.3k|      } else {
 9268|  32.3k|        add_native(result, limb(powers_of_ten_uint64[counter]), value);
 9269|  32.3k|        counter = 0;
 9270|  32.3k|        value = 0;
 9271|  32.3k|      }
 9272|  34.9k|    }
 9273|  10.4k|  }
 9274|       |
 9275|  9.05k|  if (counter != 0) {
  ------------------
  |  Branch (9275:7): [True: 0, False: 9.05k]
  ------------------
 9276|      0|    add_native(result, limb(powers_of_ten_uint64[counter]), value);
 9277|      0|  }
 9278|  9.05k|}
_ZN19simdjson_fast_float10skip_zerosIcEEvRPKT_S3_:
 9113|  14.6k|skip_zeros(UC const *&first, UC const *last) noexcept {
 9114|  14.6k|  uint64_t val;
 9115|  14.9k|  while (!cpp20_and_in_constexpr() &&
  ------------------
  |  Branch (9115:10): [True: 14.9k, Folded]
  ------------------
 9116|  14.9k|         std::distance(first, last) >= int_cmp_len<UC>()) {
  ------------------
  |  Branch (9116:10): [True: 11.2k, False: 3.67k]
  ------------------
 9117|  11.2k|    ::memcpy(&val, first, sizeof(uint64_t));
 9118|  11.2k|    if (val != int_cmp_zeros<UC>()) {
  ------------------
  |  Branch (9118:9): [True: 10.9k, False: 290]
  ------------------
 9119|  10.9k|      break;
 9120|  10.9k|    }
 9121|    290|    first += int_cmp_len<UC>();
 9122|    290|  }
 9123|  16.1k|  while (first != last) {
  ------------------
  |  Branch (9123:10): [True: 15.7k, False: 370]
  ------------------
 9124|  15.7k|    if (*first != UC('0')) {
  ------------------
  |  Branch (9124:9): [True: 14.2k, False: 1.52k]
  ------------------
 9125|  14.2k|      break;
 9126|  14.2k|    }
 9127|  1.52k|    first++;
 9128|  1.52k|  }
 9129|  14.6k|}
simdjson.cpp:_ZN19simdjson_fast_floatL11int_cmp_lenIcEEiv:
 6236|  37.3k|template <typename UC> static constexpr int int_cmp_len() {
 6237|  37.3k|  return sizeof(uint64_t) / sizeof(UC);
 6238|  37.3k|}
simdjson.cpp:_ZN19simdjson_fast_floatL13int_cmp_zerosIcEEmv:
 6226|  20.1k|template <typename UC> static constexpr uint64_t int_cmp_zeros() {
 6227|  20.1k|  static_assert((sizeof(UC) == 1) || (sizeof(UC) == 2) || (sizeof(UC) == 4),
 6228|  20.1k|                "Unsupported character size");
 6229|  20.1k|  return (sizeof(UC) == 1) ? 0x3030303030303030
  ------------------
  |  Branch (6229:10): [True: 20.1k, Folded]
  ------------------
 6230|  20.1k|         : (sizeof(UC) == 2)
  ------------------
  |  Branch (6230:12): [Folded, False: 0]
  ------------------
 6231|      0|             ? (uint64_t(UC('0')) << 48 | uint64_t(UC('0')) << 32 |
 6232|      0|                uint64_t(UC('0')) << 16 | UC('0'))
 6233|      0|             : (uint64_t(UC('0')) << 32 | UC('0'));
 6234|  20.1k|}
_ZN19simdjson_fast_float18parse_eight_digitsIcEEvRPKT_RmS5_S5_:
 9164|   104k|                   size_t &count) noexcept {
 9165|   104k|  value = value * 100000000 + parse_eight_digits_unrolled(p);
 9166|   104k|  p += 8;
 9167|   104k|  counter += 8;
 9168|   104k|  count += 8;
 9169|   104k|}
_ZN19simdjson_fast_float27parse_eight_digits_unrolledIcEEjPKT_:
 6702|   104k|parse_eight_digits_unrolled(UC const *chars) noexcept {
 6703|   104k|  if (cpp20_and_in_constexpr() || !has_simd_opt<UC>()) {
  ------------------
  |  Branch (6703:7): [Folded, False: 0]
  |  Branch (6703:35): [True: 0, Folded]
  ------------------
 6704|   104k|    return parse_eight_digits_unrolled(read8_to_u64(chars)); // truncation okay
 6705|   104k|  }
 6706|      0|  return parse_eight_digits_unrolled(simd_read8_to_u64(chars));
 6707|   104k|}
_ZN19simdjson_fast_float15parse_one_digitIcEEvRPKT_RmS5_S5_:
 9174|   170k|                size_t &count) noexcept {
 9175|   170k|  value = value * 10 + limb(*p - UC('0'));
 9176|   170k|  p++;
 9177|   170k|  counter++;
 9178|   170k|  count++;
 9179|   170k|}
_ZN19simdjson_fast_float10add_nativeERNS_6bigintEmm:
 9182|  68.5k|add_native(bigint &big, limb power, limb value) noexcept {
 9183|  68.5k|  big.mul(power);
 9184|  68.5k|  big.add(value);
 9185|  68.5k|}
_ZN19simdjson_fast_float6bigint3mulEm:
 8896|  68.5k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool mul(limb y) noexcept { return small_mul(vec, y); }
_ZN19simdjson_fast_float9small_mulILt62EEEbRNS_8stackvecIXT_EEEm:
 8593|   108k|                                            limb y) noexcept {
 8594|   108k|  limb carry = 0;
 8595|   429k|  for (size_t index = 0; index < vec.len(); index++) {
  ------------------
  |  Branch (8595:26): [True: 321k, False: 108k]
  ------------------
 8596|   321k|    vec[index] = scalar_mul(vec[index], y, carry);
 8597|   321k|  }
 8598|   108k|  if (carry != 0) {
  ------------------
  |  Branch (8598:7): [True: 78.6k, False: 29.7k]
  ------------------
 8599|  78.6k|    SIMDJSON_FASTFLOAT_TRY(vec.try_push(carry));
  ------------------
  |  | 5228|  78.6k|  {                                                                            \
  |  | 5229|  78.6k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 78.6k]
  |  |  ------------------
  |  | 5230|  78.6k|      return false;                                                            \
  |  | 5231|  78.6k|  }
  ------------------
 8600|  78.6k|  }
 8601|   108k|  return true;
 8602|   108k|}
_ZNK19simdjson_fast_float8stackvecILt62EE3lenEv:
 8383|   783k|  constexpr size_t len() const noexcept { return length; }
_ZN19simdjson_fast_float10scalar_mulEmmRm:
 8540|   321k|scalar_mul(limb x, limb y, limb &carry) noexcept {
 8541|   321k|#ifdef SIMDJSON_FASTFLOAT_64BIT_LIMB
 8542|   321k|#if defined(__SIZEOF_INT128__)
 8543|       |  // GCC and clang both define it as an extension.
 8544|   321k|  __uint128_t z = __uint128_t(x) * __uint128_t(y) + __uint128_t(carry);
 8545|   321k|  carry = limb(z >> limb_bits);
 8546|   321k|  return limb(z);
 8547|       |#else
 8548|       |  // fallback, no native 128-bit integer multiplication with carry.
 8549|       |  // on msvc, this optimizes identically, somehow.
 8550|       |  value128 z = full_multiplication(x, y);
 8551|       |  bool overflow;
 8552|       |  z.low = scalar_add(z.low, carry, overflow);
 8553|       |  z.high += uint64_t(overflow); // cannot overflow
 8554|       |  carry = z.high;
 8555|       |  return z.low;
 8556|       |#endif
 8557|       |#else
 8558|       |  uint64_t z = uint64_t(x) * uint64_t(y) + uint64_t(carry);
 8559|       |  carry = limb(z >> limb_bits);
 8560|       |  return limb(z);
 8561|       |#endif
 8562|   321k|}
_ZN19simdjson_fast_float8stackvecILt62EEixEm:
 8361|   859k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 limb &operator[](size_t index) noexcept {
 8362|   859k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  | 5221|   859k|  {                                                                            \
  |  | 5222|   859k|    static_cast<void>(x);                                                      \
  |  | 5223|   859k|  }
  ------------------
 8363|   859k|    return data[index];
 8364|   859k|  }
_ZN19simdjson_fast_float8stackvecILt62EE8try_pushEm:
 8396|  96.1k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 bool try_push(limb value) noexcept {
 8397|  96.1k|    if (len() < capacity()) {
  ------------------
  |  Branch (8397:9): [True: 96.1k, False: 0]
  ------------------
 8398|  96.1k|      push_unchecked(value);
 8399|  96.1k|      return true;
 8400|  96.1k|    } else {
 8401|      0|      return false;
 8402|      0|    }
 8403|  96.1k|  }
_ZNK19simdjson_fast_float8stackvecILt62EE8capacityEv:
 8387|   113k|  constexpr size_t capacity() const noexcept { return size; }
_ZN19simdjson_fast_float8stackvecILt62EE14push_uncheckedEm:
 8390|   109k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 void push_unchecked(limb value) noexcept {
 8391|   109k|    data[length] = value;
 8392|   109k|    length++;
 8393|   109k|  }
_ZN19simdjson_fast_float6bigint3addEm:
 8898|  68.5k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool add(limb y) noexcept { return small_add(vec, y); }
_ZN19simdjson_fast_float9small_addILt62EEEbRNS_8stackvecIXT_EEEm:
 8586|  68.5k|small_add(stackvec<size> &vec, limb y) noexcept {
 8587|  68.5k|  return small_add_from(vec, y, 0);
 8588|  68.5k|}
_ZN19simdjson_fast_float14small_add_fromILt62EEEbRNS_8stackvecIXT_EEEmm:
 8568|  68.5k|                                                 size_t start) noexcept {
 8569|  68.5k|  size_t index = start;
 8570|  68.5k|  limb carry = y;
 8571|  68.5k|  bool overflow;
 8572|   100k|  while (carry != 0 && index < vec.len()) {
  ------------------
  |  Branch (8572:10): [True: 46.8k, False: 53.9k]
  |  Branch (8572:24): [True: 32.2k, False: 14.5k]
  ------------------
 8573|  32.2k|    vec[index] = scalar_add(vec[index], carry, overflow);
 8574|  32.2k|    carry = limb(overflow);
 8575|  32.2k|    index += 1;
 8576|  32.2k|  }
 8577|  68.5k|  if (carry != 0) {
  ------------------
  |  Branch (8577:7): [True: 14.5k, False: 53.9k]
  ------------------
 8578|  14.5k|    SIMDJSON_FASTFLOAT_TRY(vec.try_push(carry));
  ------------------
  |  | 5228|  14.5k|  {                                                                            \
  |  | 5229|  14.5k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 14.5k]
  |  |  ------------------
  |  | 5230|  14.5k|      return false;                                                            \
  |  | 5231|  14.5k|  }
  ------------------
 8579|  14.5k|  }
 8580|  68.5k|  return true;
 8581|  68.5k|}
_ZN19simdjson_fast_float10scalar_addEmmRb:
 8520|  72.9k|scalar_add(limb x, limb y, bool &overflow) noexcept {
 8521|  72.9k|  limb z;
 8522|       |// gcc and clang
 8523|  72.9k|#if defined(__has_builtin)
 8524|  72.9k|#if __has_builtin(__builtin_add_overflow)
 8525|  72.9k|  if (!cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (8525:7): [True: 72.9k, Folded]
  ------------------
 8526|  72.9k|    overflow = __builtin_add_overflow(x, y, &z);
 8527|  72.9k|    return z;
 8528|  72.9k|  }
 8529|      0|#endif
 8530|      0|#endif
 8531|       |
 8532|       |  // generic, this still optimizes correctly on MSVC.
 8533|      0|  z = x + y;
 8534|      0|  overflow = z < x;
 8535|      0|  return z;
 8536|  72.9k|}
_ZN19simdjson_fast_float12is_truncatedIcEEbPKT_S3_:
 9135|  6.93k|is_truncated(UC const *first, UC const *last) noexcept {
 9136|       |  // do 8-bit optimizations, can just compare to 8 literal 0s.
 9137|  6.93k|  uint64_t val;
 9138|  14.5k|  while (!cpp20_and_in_constexpr() &&
  ------------------
  |  Branch (9138:10): [True: 14.5k, Folded]
  ------------------
 9139|  14.5k|         std::distance(first, last) >= int_cmp_len<UC>()) {
  ------------------
  |  Branch (9139:10): [True: 8.88k, False: 5.65k]
  ------------------
 9140|  8.88k|    ::memcpy(&val, first, sizeof(uint64_t));
 9141|  8.88k|    if (val != int_cmp_zeros<UC>()) {
  ------------------
  |  Branch (9141:9): [True: 1.27k, False: 7.60k]
  ------------------
 9142|  1.27k|      return true;
 9143|  1.27k|    }
 9144|  7.60k|    first += int_cmp_len<UC>();
 9145|  7.60k|  }
 9146|  22.3k|  while (first != last) {
  ------------------
  |  Branch (9146:10): [True: 19.2k, False: 3.08k]
  ------------------
 9147|  19.2k|    if (*first != UC('0')) {
  ------------------
  |  Branch (9147:9): [True: 2.57k, False: 16.6k]
  ------------------
 9148|  2.57k|      return true;
 9149|  2.57k|    }
 9150|  16.6k|    ++first;
 9151|  16.6k|  }
 9152|  3.08k|  return false;
 9153|  5.65k|}
_ZN19simdjson_fast_float12is_truncatedIcEEbNS_4spanIKT_EE:
 9157|  1.73k|is_truncated(span<UC const> s) noexcept {
 9158|  1.73k|  return is_truncated(s.ptr, s.ptr + s.len());
 9159|  1.73k|}
_ZN19simdjson_fast_float15round_up_bigintERNS_6bigintERm:
 9188|  3.67k|round_up_bigint(bigint &big, size_t &count) noexcept {
 9189|       |  // need to round-up the digits, but need to avoid rounding
 9190|       |  // ....9999 to ...10000, which could cause a false halfway point.
 9191|  3.67k|  add_native(big, 10, 1);
 9192|  3.67k|  count++;
 9193|  3.67k|}
_ZN19simdjson_fast_float19positive_digit_compIdEENS_17adjusted_mantissaERNS_6bigintEi:
 9282|    560|positive_digit_comp(bigint &bigmant, int32_t exponent) noexcept {
 9283|    560|  SIMDJSON_FASTFLOAT_ASSERT(bigmant.pow10(uint32_t(exponent)));
  ------------------
  |  | 5214|    560|  {                                                                            \
  |  | 5215|    560|    static_cast<void>(x);                                                      \
  |  | 5216|    560|  }
  ------------------
 9284|    560|  adjusted_mantissa answer;
 9285|    560|  bool truncated;
 9286|    560|  answer.mantissa = bigmant.hi64(truncated);
 9287|    560|  int bias = binary_format<T>::mantissa_explicit_bits() -
 9288|    560|             binary_format<T>::minimum_exponent();
 9289|    560|  answer.power2 = bigmant.bit_length() - 64 + bias;
 9290|       |
 9291|    560|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 9292|    560|    round_nearest_tie_even(
 9293|    560|        a, shift,
 9294|    560|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 9295|    560|          return is_above || (is_halfway && truncated) ||
 9296|    560|                 (is_odd && is_halfway);
 9297|    560|        });
 9298|    560|  });
 9299|       |
 9300|    560|  return answer;
 9301|    560|}
_ZN19simdjson_fast_float6bigint5pow10Ej:
 8935|  1.39k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool pow10(uint32_t exp) noexcept {
 8936|  1.39k|    SIMDJSON_FASTFLOAT_TRY(pow5(exp));
  ------------------
  |  | 5228|  1.39k|  {                                                                            \
  |  | 5229|  1.39k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 1.39k]
  |  |  ------------------
  |  | 5230|  1.39k|      return false;                                                            \
  |  | 5231|  1.39k|  }
  ------------------
 8937|  1.39k|    return pow2(exp);
 8938|  1.39k|  }
_ZN19simdjson_fast_float6bigint4pow5Ej:
 8904|  14.2k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool pow5(uint32_t exp) noexcept {
 8905|       |    // multiply by a power of 5
 8906|  14.2k|    size_t large_length = sizeof(large_power_of_5) / sizeof(limb);
 8907|  14.2k|    limb_span large = limb_span(large_power_of_5, large_length);
 8908|  15.3k|    while (exp >= large_step) {
  ------------------
  |  Branch (8908:12): [True: 1.08k, False: 14.2k]
  ------------------
 8909|  1.08k|      SIMDJSON_FASTFLOAT_TRY(large_mul(vec, large));
  ------------------
  |  | 5228|  1.08k|  {                                                                            \
  |  | 5229|  1.08k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 1.08k]
  |  |  ------------------
  |  | 5230|  1.08k|      return false;                                                            \
  |  | 5231|  1.08k|  }
  ------------------
 8910|  1.08k|      exp -= large_step;
 8911|  1.08k|    }
 8912|  14.2k|#ifdef SIMDJSON_FASTFLOAT_64BIT_LIMB
 8913|  14.2k|    uint32_t small_step = 27;
 8914|  14.2k|    limb max_native = 7450580596923828125UL;
 8915|       |#else
 8916|       |    uint32_t small_step = 13;
 8917|       |    limb max_native = 1220703125U;
 8918|       |#endif
 8919|  35.6k|    while (exp >= small_step) {
  ------------------
  |  Branch (8919:12): [True: 21.4k, False: 14.2k]
  ------------------
 8920|  21.4k|      SIMDJSON_FASTFLOAT_TRY(small_mul(vec, max_native));
  ------------------
  |  | 5228|  21.4k|  {                                                                            \
  |  | 5229|  21.4k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 21.4k]
  |  |  ------------------
  |  | 5230|  21.4k|      return false;                                                            \
  |  | 5231|  21.4k|  }
  ------------------
 8921|  21.4k|      exp -= small_step;
 8922|  21.4k|    }
 8923|  14.2k|    if (exp != 0) {
  ------------------
  |  Branch (8923:9): [True: 12.9k, False: 1.31k]
  ------------------
 8924|       |      // Work around clang bug https://godbolt.org/z/zedh7rrhc
 8925|       |      // This is similar to https://github.com/llvm/llvm-project/issues/47746,
 8926|       |      // except the workaround described there don't work here
 8927|  12.9k|      SIMDJSON_FASTFLOAT_TRY(small_mul(vec, limb((static_cast<void>(small_power_of_5[0]),
  ------------------
  |  | 5228|  12.9k|  {                                                                            \
  |  | 5229|  12.9k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 12.9k]
  |  |  ------------------
  |  | 5230|  12.9k|      return false;                                                            \
  |  | 5231|  12.9k|  }
  ------------------
 8928|  12.9k|                                         small_power_of_5[exp]))));
 8929|  12.9k|    }
 8930|       |
 8931|  14.2k|    return true;
 8932|  14.2k|  }
_ZN19simdjson_fast_float4spanImEC2EPKmm:
 5439|  20.7k|  constexpr span(T const *_ptr, size_t _length) : ptr(_ptr), length(_length) {}
_ZN19simdjson_fast_float9large_mulILt62EEEbRNS_8stackvecIXT_EEENS_4spanImEE:
 8673|  1.08k|SIMDJSON_FASTFLOAT_CONSTEXPR20 bool large_mul(stackvec<size> &x, limb_span y) noexcept {
 8674|  1.08k|  if (y.len() == 1) {
  ------------------
  |  Branch (8674:7): [True: 0, False: 1.08k]
  ------------------
 8675|      0|    SIMDJSON_FASTFLOAT_TRY(small_mul(x, y[0]));
  ------------------
  |  | 5228|      0|  {                                                                            \
  |  | 5229|      0|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 5230|      0|      return false;                                                            \
  |  | 5231|      0|  }
  ------------------
 8676|  1.08k|  } else {
 8677|  1.08k|    SIMDJSON_FASTFLOAT_TRY(long_mul(x, y));
  ------------------
  |  | 5228|  1.08k|  {                                                                            \
  |  | 5229|  1.08k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 1.08k]
  |  |  ------------------
  |  | 5230|  1.08k|      return false;                                                            \
  |  | 5231|  1.08k|  }
  ------------------
 8678|  1.08k|  }
 8679|  1.08k|  return true;
 8680|  1.08k|}
_ZNK19simdjson_fast_float4spanImE3lenEv:
 5443|  66.3k|  constexpr size_t len() const noexcept { return length; }
_ZNK19simdjson_fast_float4spanImEixEm:
 5445|  35.1k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 const T &operator[](size_t index) const noexcept {
 5446|  35.1k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  | 5221|  35.1k|  {                                                                            \
  |  | 5222|  35.1k|    static_cast<void>(x);                                                      \
  |  | 5223|  35.1k|  }
  ------------------
 5447|  35.1k|    return ptr[index];
 5448|  35.1k|  }
_ZN19simdjson_fast_float8long_mulILt62EEEbRNS_8stackvecIXT_EEENS_4spanImEE:
 8645|  1.08k|SIMDJSON_FASTFLOAT_CONSTEXPR20 bool long_mul(stackvec<size> &x, limb_span y) noexcept {
 8646|  1.08k|  limb_span xs = limb_span(x.data, x.len());
 8647|  1.08k|  stackvec<size> z(xs);
 8648|  1.08k|  limb_span zs = limb_span(z.data, z.len());
 8649|       |
 8650|  1.08k|  if (y.len() != 0) {
  ------------------
  |  Branch (8650:7): [True: 1.08k, False: 0]
  ------------------
 8651|  1.08k|    limb y0 = y[0];
 8652|  1.08k|    SIMDJSON_FASTFLOAT_TRY(small_mul(x, y0));
  ------------------
  |  | 5228|  1.08k|  {                                                                            \
  |  | 5229|  1.08k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 1.08k]
  |  |  ------------------
  |  | 5230|  1.08k|      return false;                                                            \
  |  | 5231|  1.08k|  }
  ------------------
 8653|  5.40k|    for (size_t index = 1; index < y.len(); index++) {
  ------------------
  |  Branch (8653:28): [True: 4.32k, False: 1.08k]
  ------------------
 8654|  4.32k|      limb yi = y[index];
 8655|  4.32k|      stackvec<size> zi;
 8656|  4.32k|      if (yi != 0) {
  ------------------
  |  Branch (8656:11): [True: 4.32k, False: 0]
  ------------------
 8657|       |        // re-use the same buffer throughout
 8658|  4.32k|        zi.set_len(0);
 8659|  4.32k|        SIMDJSON_FASTFLOAT_TRY(zi.try_extend(zs));
  ------------------
  |  | 5228|  4.32k|  {                                                                            \
  |  | 5229|  4.32k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 4.32k]
  |  |  ------------------
  |  | 5230|  4.32k|      return false;                                                            \
  |  | 5231|  4.32k|  }
  ------------------
 8660|  4.32k|        SIMDJSON_FASTFLOAT_TRY(small_mul(zi, yi));
  ------------------
  |  | 5228|  4.32k|  {                                                                            \
  |  | 5229|  4.32k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 4.32k]
  |  |  ------------------
  |  | 5230|  4.32k|      return false;                                                            \
  |  | 5231|  4.32k|  }
  ------------------
 8661|  4.32k|        limb_span zis = limb_span(zi.data, zi.len());
 8662|  4.32k|        SIMDJSON_FASTFLOAT_TRY(large_add_from(x, zis, index));
  ------------------
  |  | 5228|  4.32k|  {                                                                            \
  |  | 5229|  4.32k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 4.32k]
  |  |  ------------------
  |  | 5230|  4.32k|      return false;                                                            \
  |  | 5231|  4.32k|  }
  ------------------
 8663|  4.32k|      }
 8664|  4.32k|    }
 8665|  1.08k|  }
 8666|       |
 8667|  1.08k|  x.normalize();
 8668|  1.08k|  return true;
 8669|  1.08k|}
_ZN19simdjson_fast_float8stackvecILt62EEC2ENS_4spanImEE:
 8357|  1.08k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 stackvec(limb_span s) {
 8358|  1.08k|    SIMDJSON_FASTFLOAT_ASSERT(try_extend(s));
  ------------------
  |  | 5214|  1.08k|  {                                                                            \
  |  | 5215|  1.08k|    static_cast<void>(x);                                                      \
  |  | 5216|  1.08k|  }
  ------------------
 8359|  1.08k|  }
_ZN19simdjson_fast_float8stackvecILt62EE7set_lenEm:
 8379|  21.2k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 void set_len(size_t len) noexcept {
 8380|  21.2k|    length = uint16_t(len);
 8381|  21.2k|  }
_ZN19simdjson_fast_float8stackvecILt62EE10try_extendENS_4spanImEE:
 8413|  5.40k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool try_extend(limb_span s) noexcept {
 8414|  5.40k|    if (len() + s.len() <= capacity()) {
  ------------------
  |  Branch (8414:9): [True: 5.40k, False: 0]
  ------------------
 8415|  5.40k|      extend_unchecked(s);
 8416|  5.40k|      return true;
 8417|  5.40k|    } else {
 8418|      0|      return false;
 8419|      0|    }
 8420|  5.40k|  }
_ZN19simdjson_fast_float8stackvecILt62EE16extend_uncheckedENS_4spanImEE:
 8406|  5.40k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 void extend_unchecked(limb_span s) noexcept {
 8407|  5.40k|    limb *ptr = data + length;
 8408|  5.40k|    std::copy_n(s.ptr, s.len(), ptr);
 8409|  5.40k|    set_len(len() + s.len());
 8410|  5.40k|  }
_ZN19simdjson_fast_float14large_add_fromILt62EEEbRNS_8stackvecIXT_EEENS_4spanImEEm:
 8608|  4.32k|                                          size_t start) noexcept {
 8609|       |  // the effective x buffer is from `xstart..x.len()`, so exit early
 8610|       |  // if we can't get that current range.
 8611|  4.32k|  if (x.len() < start || y.len() > x.len() - start) {
  ------------------
  |  Branch (8611:7): [True: 0, False: 4.32k]
  |  Branch (8611:26): [True: 4.20k, False: 114]
  ------------------
 8612|  4.20k|    SIMDJSON_FASTFLOAT_TRY(x.try_resize(y.len() + start, 0));
  ------------------
  |  | 5228|  4.20k|  {                                                                            \
  |  | 5229|  4.20k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 4.20k]
  |  |  ------------------
  |  | 5230|  4.20k|      return false;                                                            \
  |  | 5231|  4.20k|  }
  ------------------
 8613|  4.20k|  }
 8614|       |
 8615|  4.32k|  bool carry = false;
 8616|  34.1k|  for (size_t index = 0; index < y.len(); index++) {
  ------------------
  |  Branch (8616:26): [True: 29.7k, False: 4.32k]
  ------------------
 8617|  29.7k|    limb xi = x[index + start];
 8618|  29.7k|    limb yi = y[index];
 8619|  29.7k|    bool c1 = false;
 8620|  29.7k|    bool c2 = false;
 8621|  29.7k|    xi = scalar_add(xi, yi, c1);
 8622|  29.7k|    if (carry) {
  ------------------
  |  Branch (8622:9): [True: 10.9k, False: 18.8k]
  ------------------
 8623|  10.9k|      xi = scalar_add(xi, 1, c2);
 8624|  10.9k|    }
 8625|  29.7k|    x[index + start] = xi;
 8626|  29.7k|    carry = c1 | c2;
 8627|  29.7k|  }
 8628|       |
 8629|       |  // handle overflow
 8630|  4.32k|  if (carry) {
  ------------------
  |  Branch (8630:7): [True: 0, False: 4.32k]
  ------------------
 8631|      0|    SIMDJSON_FASTFLOAT_TRY(small_add_from(x, 1, y.len() + start));
  ------------------
  |  | 5228|      0|  {                                                                            \
  |  | 5229|      0|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 0]
  |  |  ------------------
  |  | 5230|      0|      return false;                                                            \
  |  | 5231|      0|  }
  ------------------
 8632|      0|  }
 8633|  4.32k|  return true;
 8634|  4.32k|}
_ZN19simdjson_fast_float8stackvecILt62EE10try_resizeEmm:
 8439|  4.20k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool try_resize(size_t new_len, limb value) noexcept {
 8440|  4.20k|    if (new_len > capacity()) {
  ------------------
  |  Branch (8440:9): [True: 0, False: 4.20k]
  ------------------
 8441|      0|      return false;
 8442|  4.20k|    } else {
 8443|  4.20k|      resize_unchecked(new_len, value);
 8444|  4.20k|      return true;
 8445|  4.20k|    }
 8446|  4.20k|  }
_ZN19simdjson_fast_float8stackvecILt62EE16resize_uncheckedEmm:
 8426|  4.20k|  void resize_unchecked(size_t new_len, limb value) noexcept {
 8427|  4.20k|    if (new_len > len()) {
  ------------------
  |  Branch (8427:9): [True: 4.20k, False: 0]
  ------------------
 8428|  4.20k|      size_t count = new_len - len();
 8429|  4.20k|      limb *first = data + len();
 8430|  4.20k|      limb *last = first + count;
 8431|  4.20k|      ::std::fill(first, last, value);
 8432|  4.20k|      set_len(new_len);
 8433|  4.20k|    } else {
 8434|      0|      set_len(new_len);
 8435|      0|    }
 8436|  4.20k|  }
_ZN19simdjson_fast_float8stackvecILt62EE9normalizeEv:
 8462|  13.9k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 void normalize() noexcept {
 8463|  13.9k|    while (len() > 0 && rindex(0) == 0) {
  ------------------
  |  Branch (8463:12): [True: 13.9k, False: 0]
  |  Branch (8463:25): [True: 0, False: 13.9k]
  ------------------
 8464|      0|      length--;
 8465|      0|    }
 8466|  13.9k|  }
_ZNK19simdjson_fast_float8stackvecILt62EE6rindexEm:
 8372|  18.4k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 const limb &rindex(size_t index) const noexcept {
 8373|  18.4k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  | 5221|  18.4k|  {                                                                            \
  |  | 5222|  18.4k|    static_cast<void>(x);                                                      \
  |  | 5223|  18.4k|  }
  ------------------
 8374|  18.4k|    size_t rindex = length - index - 1;
 8375|  18.4k|    return data[rindex];
 8376|  18.4k|  }
_ZN19simdjson_fast_float6bigint4pow2Ej:
 8901|  14.0k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool pow2(uint32_t exp) noexcept { return shl(exp); }
_ZN19simdjson_fast_float6bigint3shlEm:
 8863|  14.0k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool shl(size_t n) noexcept {
 8864|  14.0k|    size_t rem = n % limb_bits;
 8865|  14.0k|    size_t div = n / limb_bits;
 8866|  14.0k|    if (rem != 0) {
  ------------------
  |  Branch (8866:9): [True: 13.0k, False: 942]
  ------------------
 8867|  13.0k|      SIMDJSON_FASTFLOAT_TRY(shl_bits(rem));
  ------------------
  |  | 5228|  13.0k|  {                                                                            \
  |  | 5229|  13.0k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 13.0k]
  |  |  ------------------
  |  | 5230|  13.0k|      return false;                                                            \
  |  | 5231|  13.0k|  }
  ------------------
 8868|  13.0k|    }
 8869|  14.0k|    if (div != 0) {
  ------------------
  |  Branch (8869:9): [True: 7.37k, False: 6.66k]
  ------------------
 8870|  7.37k|      SIMDJSON_FASTFLOAT_TRY(shl_limbs(div));
  ------------------
  |  | 5228|  7.37k|  {                                                                            \
  |  | 5229|  7.37k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (5229:9): [True: 0, False: 7.37k]
  |  |  ------------------
  |  | 5230|  7.37k|      return false;                                                            \
  |  | 5231|  7.37k|  }
  ------------------
 8871|  7.37k|    }
 8872|  14.0k|    return true;
 8873|  14.0k|  }
_ZN19simdjson_fast_float6bigint8shl_bitsEm:
 8816|  13.0k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool shl_bits(size_t n) noexcept {
 8817|       |    // Internally, for each item, we shift left by n, and add the previous
 8818|       |    // right shifted limb-bits.
 8819|       |    // For example, we transform (for u8) shifted left 2, to:
 8820|       |    //      b10100100 b01000010
 8821|       |    //      b10 b10010001 b00001000
 8822|  13.0k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(n != 0);
  ------------------
  |  | 5221|  13.0k|  {                                                                            \
  |  | 5222|  13.0k|    static_cast<void>(x);                                                      \
  |  | 5223|  13.0k|  }
  ------------------
 8823|  13.0k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(n < sizeof(limb) * 8);
  ------------------
  |  | 5221|  13.0k|  {                                                                            \
  |  | 5222|  13.0k|    static_cast<void>(x);                                                      \
  |  | 5223|  13.0k|  }
  ------------------
 8824|       |
 8825|  13.0k|    size_t shl = n;
 8826|  13.0k|    size_t shr = limb_bits - shl;
 8827|  13.0k|    limb prev = 0;
 8828|  59.5k|    for (size_t index = 0; index < vec.len(); index++) {
  ------------------
  |  Branch (8828:28): [True: 46.4k, False: 13.0k]
  ------------------
 8829|  46.4k|      limb xi = vec[index];
 8830|  46.4k|      vec[index] = (xi << shl) | (prev >> shr);
 8831|  46.4k|      prev = xi;
 8832|  46.4k|    }
 8833|       |
 8834|  13.0k|    limb carry = prev >> shr;
 8835|  13.0k|    if (carry != 0) {
  ------------------
  |  Branch (8835:9): [True: 2.98k, False: 10.1k]
  ------------------
 8836|  2.98k|      return vec.try_push(carry);
 8837|  2.98k|    }
 8838|  10.1k|    return true;
 8839|  13.0k|  }
_ZN19simdjson_fast_float6bigint9shl_limbsEm:
 8842|  7.37k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bool shl_limbs(size_t n) noexcept {
 8843|  7.37k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(n != 0);
  ------------------
  |  | 5221|  7.37k|  {                                                                            \
  |  | 5222|  7.37k|    static_cast<void>(x);                                                      \
  |  | 5223|  7.37k|  }
  ------------------
 8844|  7.37k|    if (n + vec.len() > vec.capacity()) {
  ------------------
  |  Branch (8844:9): [True: 0, False: 7.37k]
  ------------------
 8845|      0|      return false;
 8846|  7.37k|    } else if (!vec.is_empty()) {
  ------------------
  |  Branch (8846:16): [True: 7.37k, False: 0]
  ------------------
 8847|       |      // move limbs
 8848|  7.37k|      limb *dst = vec.data + n;
 8849|  7.37k|      limb const *src = vec.data;
 8850|  7.37k|      std::copy_backward(src, src + vec.len(), dst + vec.len());
 8851|       |      // fill in empty limbs
 8852|  7.37k|      limb *first = vec.data;
 8853|  7.37k|      limb *last = first + n;
 8854|  7.37k|      ::std::fill(first, last, 0);
 8855|  7.37k|      vec.set_len(n + vec.len());
 8856|  7.37k|      return true;
 8857|  7.37k|    } else {
 8858|      0|      return true;
 8859|      0|    }
 8860|  7.37k|  }
_ZNK19simdjson_fast_float8stackvecILt62EE8is_emptyEv:
 8385|  8.76k|  constexpr bool is_empty() const noexcept { return length == 0; }
_ZNK19simdjson_fast_float6bigint4hi64ERb:
 8762|  1.39k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 uint64_t hi64(bool &truncated) const noexcept {
 8763|  1.39k|#ifdef SIMDJSON_FASTFLOAT_64BIT_LIMB
 8764|  1.39k|    if (vec.len() == 0) {
  ------------------
  |  Branch (8764:9): [True: 0, False: 1.39k]
  ------------------
 8765|      0|      return empty_hi64(truncated);
 8766|  1.39k|    } else if (vec.len() == 1) {
  ------------------
  |  Branch (8766:16): [True: 57, False: 1.33k]
  ------------------
 8767|     57|      return uint64_hi64(vec.rindex(0), truncated);
 8768|  1.33k|    } else {
 8769|  1.33k|      uint64_t result = uint64_hi64(vec.rindex(0), vec.rindex(1), truncated);
 8770|  1.33k|      truncated |= vec.nonzero(2);
 8771|  1.33k|      return result;
 8772|  1.33k|    }
 8773|       |#else
 8774|       |    if (vec.len() == 0) {
 8775|       |      return empty_hi64(truncated);
 8776|       |    } else if (vec.len() == 1) {
 8777|       |      return uint32_hi64(vec.rindex(0), truncated);
 8778|       |    } else if (vec.len() == 2) {
 8779|       |      return uint32_hi64(vec.rindex(0), vec.rindex(1), truncated);
 8780|       |    } else {
 8781|       |      uint64_t result =
 8782|       |          uint32_hi64(vec.rindex(0), vec.rindex(1), vec.rindex(2), truncated);
 8783|       |      truncated |= vec.nonzero(3);
 8784|       |      return result;
 8785|       |    }
 8786|       |#endif
 8787|  1.39k|  }
_ZN19simdjson_fast_float11uint64_hi64EmRb:
 8476|     57|uint64_hi64(uint64_t r0, bool &truncated) noexcept {
 8477|     57|  truncated = false;
 8478|     57|  int shl = leading_zeroes(r0);
 8479|     57|  return r0 << shl;
 8480|     57|}
_ZN19simdjson_fast_float11uint64_hi64EmmRb:
 8483|  1.33k|uint64_hi64(uint64_t r0, uint64_t r1, bool &truncated) noexcept {
 8484|  1.33k|  int shl = leading_zeroes(r0);
 8485|  1.33k|  if (shl == 0) {
  ------------------
  |  Branch (8485:7): [True: 39, False: 1.29k]
  ------------------
 8486|     39|    truncated = r1 != 0;
 8487|     39|    return r0;
 8488|  1.29k|  } else {
 8489|  1.29k|    int shr = 64 - shl;
 8490|  1.29k|    truncated = (r1 << shl) != 0;
 8491|  1.29k|    return (r0 << shl) | (r1 >> shr);
 8492|  1.29k|  }
 8493|  1.33k|}
_ZNK19simdjson_fast_float8stackvecILt62EE7nonzeroEm:
 8451|  1.33k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 bool nonzero(size_t index) const noexcept {
 8452|  1.35k|    while (index < len()) {
  ------------------
  |  Branch (8452:12): [True: 361, False: 994]
  ------------------
 8453|    361|      if (rindex(index) != 0) {
  ------------------
  |  Branch (8453:11): [True: 341, False: 20]
  ------------------
 8454|    341|        return true;
 8455|    341|      }
 8456|     20|      index++;
 8457|     20|    }
 8458|    994|    return false;
 8459|  1.33k|  }
_ZNK19simdjson_fast_float6bigint10bit_lengthEv:
 8891|  1.39k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 int bit_length() const noexcept {
 8892|  1.39k|    int lz = ctlz();
 8893|  1.39k|    return int(limb_bits * vec.len()) - lz;
 8894|  1.39k|  }
_ZNK19simdjson_fast_float6bigint4ctlzEv:
 8876|  1.39k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 int ctlz() const noexcept {
 8877|  1.39k|    if (vec.is_empty()) {
  ------------------
  |  Branch (8877:9): [True: 0, False: 1.39k]
  ------------------
 8878|      0|      return 0;
 8879|  1.39k|    } else {
 8880|  1.39k|#ifdef SIMDJSON_FASTFLOAT_64BIT_LIMB
 8881|  1.39k|      return leading_zeroes(vec.rindex(0));
 8882|       |#else
 8883|       |      // no use defining a specialized leading_zeroes for a 32-bit type.
 8884|       |      uint64_t r0 = vec.rindex(0);
 8885|       |      return leading_zeroes(r0 << 32);
 8886|       |#endif
 8887|  1.39k|    }
 8888|  1.39k|  }
_ZN19simdjson_fast_float5roundIdZNS_19positive_digit_compIdEENS_17adjusted_mantissaERNS_6bigintEiEUlRS2_iE_EEvS5_T0_:
 9047|    560|                                                         callback cb) noexcept {
 9048|    560|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 9049|    560|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (9049:7): [True: 0, False: 560]
  ------------------
 9050|       |    // have a denormal float
 9051|      0|    int32_t shift = -am.power2 + 1;
 9052|      0|    cb(am, (shift < 64 ? shift : 64));
  ------------------
  |  Branch (9052:13): [True: 0, False: 0]
  ------------------
 9053|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 9054|      0|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (9054:17): [True: 0, False: 0]
  ------------------
 9055|      0|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 9056|      0|                    ? 0
 9057|      0|                    : 1;
 9058|      0|    return;
 9059|      0|  }
 9060|       |
 9061|       |  // have a normal float, use the default shift.
 9062|    560|  cb(am, mantissa_shift);
 9063|       |
 9064|       |  // check for carry
 9065|    560|  if (am.mantissa >=
  ------------------
  |  Branch (9065:7): [True: 0, False: 560]
  ------------------
 9066|    560|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 9067|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9068|      0|    am.power2++;
 9069|      0|  }
 9070|       |
 9071|       |  // check for infinite: we could have carried to an infinite power
 9072|    560|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9073|    560|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9073:7): [True: 0, False: 560]
  ------------------
 9074|      0|    am.power2 = binary_format<T>::infinite_power();
 9075|      0|    am.mantissa = 0;
 9076|      0|  }
 9077|    560|}
_ZZN19simdjson_fast_float19positive_digit_compIdEENS_17adjusted_mantissaERNS_6bigintEiENKUlRS1_iE_clES4_i:
 9291|    560|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 9292|    560|    round_nearest_tie_even(
 9293|    560|        a, shift,
 9294|    560|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 9295|    560|          return is_above || (is_halfway && truncated) ||
 9296|    560|                 (is_odd && is_halfway);
 9297|    560|        });
 9298|    560|  });
_ZN19simdjson_fast_float22round_nearest_tie_evenIZZNS_19positive_digit_compIdEENS_17adjusted_mantissaERNS_6bigintEiENKUlRS2_iE_clES5_iEUlbbbE_EEvS5_iT_:
 9082|    560|                       callback cb) noexcept {
 9083|    560|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (9083:25): [True: 0, False: 560]
  ------------------
 9084|    560|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (9084:28): [True: 0, False: 560]
  ------------------
 9085|    560|  uint64_t truncated_bits = am.mantissa & mask;
 9086|    560|  bool is_above = truncated_bits > halfway;
 9087|    560|  bool is_halfway = truncated_bits == halfway;
 9088|       |
 9089|       |  // shift digits into position
 9090|    560|  if (shift == 64) {
  ------------------
  |  Branch (9090:7): [True: 0, False: 560]
  ------------------
 9091|      0|    am.mantissa = 0;
 9092|    560|  } else {
 9093|    560|    am.mantissa >>= shift;
 9094|    560|  }
 9095|    560|  am.power2 += shift;
 9096|       |
 9097|    560|  bool is_odd = (am.mantissa & 1) == 1;
 9098|    560|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 9099|    560|}
_ZZZN19simdjson_fast_float19positive_digit_compIdEENS_17adjusted_mantissaERNS_6bigintEiENKUlRS1_iE_clES4_iENKUlbbbE_clEbbb:
 9294|    560|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 9295|    560|          return is_above || (is_halfway && truncated) ||
  ------------------
  |  Branch (9295:18): [True: 114, False: 446]
  |  Branch (9295:31): [True: 114, False: 332]
  |  Branch (9295:45): [True: 62, False: 52]
  ------------------
 9296|    384|                 (is_odd && is_halfway);
  ------------------
  |  Branch (9296:19): [True: 179, False: 205]
  |  Branch (9296:29): [True: 12, False: 167]
  ------------------
 9297|    560|        });
_ZN19simdjson_fast_float19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES1_i:
 9310|  2.62k|    bigint &bigmant, adjusted_mantissa am, int32_t exponent) noexcept {
 9311|  2.62k|  bigint &real_digits = bigmant;
 9312|  2.62k|  int32_t real_exp = exponent;
 9313|       |
 9314|       |  // get the value of `b`, rounded down, and get a bigint representation of b+h
 9315|  2.62k|  adjusted_mantissa am_b = am;
 9316|       |  // gcc7 buf: use a lambda to remove the noexcept qualifier bug with
 9317|       |  // -Wnoexcept-type.
 9318|  2.62k|  round<T>(am_b,
 9319|  2.62k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
 9320|  2.62k|  T b;
 9321|  2.62k|  to_float(false, am_b, b);
 9322|  2.62k|  adjusted_mantissa theor = to_extended_halfway(b);
 9323|  2.62k|  bigint theor_digits(theor.mantissa);
 9324|  2.62k|  int32_t theor_exp = theor.power2;
 9325|       |
 9326|       |  // scale real digits and theor digits to be same power.
 9327|  2.62k|  int32_t pow2_exp = theor_exp - real_exp;
 9328|  2.62k|  uint32_t pow5_exp = uint32_t(-real_exp);
 9329|  2.62k|  if (pow5_exp != 0) {
  ------------------
  |  Branch (9329:7): [True: 2.62k, False: 0]
  ------------------
 9330|  2.62k|    SIMDJSON_FASTFLOAT_ASSERT(theor_digits.pow5(pow5_exp));
  ------------------
  |  | 5214|  2.62k|  {                                                                            \
  |  | 5215|  2.62k|    static_cast<void>(x);                                                      \
  |  | 5216|  2.62k|  }
  ------------------
 9331|  2.62k|  }
 9332|  2.62k|  if (pow2_exp > 0) {
  ------------------
  |  Branch (9332:7): [True: 1.42k, False: 1.19k]
  ------------------
 9333|  1.42k|    SIMDJSON_FASTFLOAT_ASSERT(theor_digits.pow2(uint32_t(pow2_exp)));
  ------------------
  |  | 5214|  1.42k|  {                                                                            \
  |  | 5215|  1.42k|    static_cast<void>(x);                                                      \
  |  | 5216|  1.42k|  }
  ------------------
 9334|  1.42k|  } else if (pow2_exp < 0) {
  ------------------
  |  Branch (9334:14): [True: 1.17k, False: 20]
  ------------------
 9335|  1.17k|    SIMDJSON_FASTFLOAT_ASSERT(real_digits.pow2(uint32_t(-pow2_exp)));
  ------------------
  |  | 5214|  1.17k|  {                                                                            \
  |  | 5215|  1.17k|    static_cast<void>(x);                                                      \
  |  | 5216|  1.17k|  }
  ------------------
 9336|  1.17k|  }
 9337|       |
 9338|       |  // compare digits, and use it to direct rounding
 9339|  2.62k|  int ord = real_digits.compare(theor_digits);
 9340|  2.62k|  adjusted_mantissa answer = am;
 9341|  2.62k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 9342|  2.62k|    round_nearest_tie_even(
 9343|  2.62k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 9344|  2.62k|          static_cast<void>(_);  // not needed, since we've done our comparison
 9345|  2.62k|          static_cast<void>(__); // not needed, since we've done our comparison
 9346|  2.62k|          if (ord > 0) {
 9347|  2.62k|            return true;
 9348|  2.62k|          } else if (ord < 0) {
 9349|  2.62k|            return false;
 9350|  2.62k|          } else {
 9351|  2.62k|            return is_odd;
 9352|  2.62k|          }
 9353|  2.62k|        });
 9354|  2.62k|  });
 9355|       |
 9356|  2.62k|  return answer;
 9357|  2.62k|}
_ZN19simdjson_fast_float5roundIdZNS_19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES2_iEUlRS2_iE_EEvS5_T0_:
 9047|  2.62k|                                                         callback cb) noexcept {
 9048|  2.62k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 9049|  2.62k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (9049:7): [True: 193, False: 2.43k]
  ------------------
 9050|       |    // have a denormal float
 9051|    193|    int32_t shift = -am.power2 + 1;
 9052|    193|    cb(am, (shift < 64 ? shift : 64));
  ------------------
  |  Branch (9052:13): [True: 193, False: 0]
  ------------------
 9053|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 9054|    193|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (9054:17): [True: 193, False: 0]
  ------------------
 9055|    193|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 9056|    193|                    ? 0
 9057|    193|                    : 1;
 9058|    193|    return;
 9059|    193|  }
 9060|       |
 9061|       |  // have a normal float, use the default shift.
 9062|  2.43k|  cb(am, mantissa_shift);
 9063|       |
 9064|       |  // check for carry
 9065|  2.43k|  if (am.mantissa >=
  ------------------
  |  Branch (9065:7): [True: 0, False: 2.43k]
  ------------------
 9066|  2.43k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 9067|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9068|      0|    am.power2++;
 9069|      0|  }
 9070|       |
 9071|       |  // check for infinite: we could have carried to an infinite power
 9072|  2.43k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9073|  2.43k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9073:7): [True: 0, False: 2.43k]
  ------------------
 9074|      0|    am.power2 = binary_format<T>::infinite_power();
 9075|      0|    am.mantissa = 0;
 9076|      0|  }
 9077|  2.43k|}
_ZZN19simdjson_fast_float19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES1_iENKUlRS1_iE_clES4_i:
 9319|  2.62k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
_ZN19simdjson_fast_float10round_downERNS_17adjusted_mantissaEi:
 9102|  12.8k|round_down(adjusted_mantissa &am, int32_t shift) noexcept {
 9103|  12.8k|  if (shift == 64) {
  ------------------
  |  Branch (9103:7): [True: 0, False: 12.8k]
  ------------------
 9104|      0|    am.mantissa = 0;
 9105|  12.8k|  } else {
 9106|  12.8k|    am.mantissa >>= shift;
 9107|  12.8k|  }
 9108|  12.8k|  am.power2 += shift;
 9109|  12.8k|}
_ZN19simdjson_fast_float19to_extended_halfwayIdEENS_17adjusted_mantissaET_:
 9036|  2.62k|to_extended_halfway(T value) noexcept {
 9037|  2.62k|  adjusted_mantissa am = to_extended(value);
 9038|  2.62k|  am.mantissa <<= 1;
 9039|  2.62k|  am.mantissa += 1;
 9040|  2.62k|  am.power2 -= 1;
 9041|  2.62k|  return am;
 9042|  2.62k|}
_ZN19simdjson_fast_float11to_extendedIdEENS_17adjusted_mantissaET_:
 9001|  2.62k|to_extended(T value) noexcept {
 9002|  2.62k|  using equiv_uint = equiv_uint_t<T>;
 9003|  2.62k|  constexpr equiv_uint exponent_mask = binary_format<T>::exponent_mask();
 9004|  2.62k|  constexpr equiv_uint mantissa_mask = binary_format<T>::mantissa_mask();
 9005|  2.62k|  constexpr equiv_uint hidden_bit_mask = binary_format<T>::hidden_bit_mask();
 9006|       |
 9007|  2.62k|  adjusted_mantissa am;
 9008|  2.62k|  int32_t bias = binary_format<T>::mantissa_explicit_bits() -
 9009|  2.62k|                 binary_format<T>::minimum_exponent();
 9010|  2.62k|  equiv_uint bits;
 9011|  2.62k|#if SIMDJSON_FASTFLOAT_HAS_BIT_CAST
 9012|  2.62k|  bits = std::bit_cast<equiv_uint>(value);
 9013|       |#else
 9014|       |  ::memcpy(&bits, &value, sizeof(T));
 9015|       |#endif
 9016|  2.62k|  if ((bits & exponent_mask) == 0) {
  ------------------
  |  Branch (9016:7): [True: 193, False: 2.43k]
  ------------------
 9017|       |    // denormal
 9018|    193|    am.power2 = 1 - bias;
 9019|    193|    am.mantissa = bits & mantissa_mask;
 9020|  2.43k|  } else {
 9021|       |    // normal
 9022|  2.43k|    am.power2 = int32_t((bits & exponent_mask) >>
 9023|  2.43k|                        binary_format<T>::mantissa_explicit_bits());
 9024|  2.43k|    am.power2 -= bias;
 9025|  2.43k|    am.mantissa = (bits & mantissa_mask) | hidden_bit_mask;
 9026|  2.43k|  }
 9027|       |
 9028|  2.62k|  return am;
 9029|  2.62k|}
_ZN19simdjson_fast_float6bigintC2Em:
 8750|  12.8k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 bigint(uint64_t value) : vec() {
 8751|  12.8k|#ifdef SIMDJSON_FASTFLOAT_64BIT_LIMB
 8752|  12.8k|    vec.push_unchecked(value);
 8753|       |#else
 8754|       |    vec.push_unchecked(uint32_t(value));
 8755|       |    vec.push_unchecked(uint32_t(value >> 32));
 8756|       |#endif
 8757|  12.8k|    vec.normalize();
 8758|  12.8k|  }
_ZNK19simdjson_fast_float6bigint7compareERKS0_:
 8795|  12.8k|  SIMDJSON_FASTFLOAT_CONSTEXPR20 int compare(bigint const &other) const noexcept {
 8796|  12.8k|    if (vec.len() > other.vec.len()) {
  ------------------
  |  Branch (8796:9): [True: 0, False: 12.8k]
  ------------------
 8797|      0|      return 1;
 8798|  12.8k|    } else if (vec.len() < other.vec.len()) {
  ------------------
  |  Branch (8798:16): [True: 0, False: 12.8k]
  ------------------
 8799|      0|      return -1;
 8800|  12.8k|    } else {
 8801|  39.8k|      for (size_t index = vec.len(); index > 0; index--) {
  ------------------
  |  Branch (8801:38): [True: 38.9k, False: 895]
  ------------------
 8802|  38.9k|        limb xi = vec[index - 1];
 8803|  38.9k|        limb yi = other.vec[index - 1];
 8804|  38.9k|        if (xi > yi) {
  ------------------
  |  Branch (8804:13): [True: 8.68k, False: 30.2k]
  ------------------
 8805|  8.68k|          return 1;
 8806|  30.2k|        } else if (xi < yi) {
  ------------------
  |  Branch (8806:20): [True: 3.27k, False: 26.9k]
  ------------------
 8807|  3.27k|          return -1;
 8808|  3.27k|        }
 8809|  38.9k|      }
 8810|    895|      return 0;
 8811|  12.8k|    }
 8812|  12.8k|  }
_ZNK19simdjson_fast_float8stackvecILt62EEixEm:
 8366|  77.8k|  SIMDJSON_FASTFLOAT_CONSTEXPR14 const limb &operator[](size_t index) const noexcept {
 8367|  77.8k|    SIMDJSON_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  | 5221|  77.8k|  {                                                                            \
  |  | 5222|  77.8k|    static_cast<void>(x);                                                      \
  |  | 5223|  77.8k|  }
  ------------------
 8368|  77.8k|    return data[index];
 8369|  77.8k|  }
_ZN19simdjson_fast_float5roundIdZNS_19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES2_iEUlRS2_iE0_EEvS5_T0_:
 9047|  2.62k|                                                         callback cb) noexcept {
 9048|  2.62k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 9049|  2.62k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (9049:7): [True: 193, False: 2.43k]
  ------------------
 9050|       |    // have a denormal float
 9051|    193|    int32_t shift = -am.power2 + 1;
 9052|    193|    cb(am, (shift < 64 ? shift : 64));
  ------------------
  |  Branch (9052:13): [True: 193, False: 0]
  ------------------
 9053|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 9054|    193|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (9054:17): [True: 193, False: 0]
  ------------------
 9055|    193|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 9056|    193|                    ? 0
 9057|    193|                    : 1;
 9058|    193|    return;
 9059|    193|  }
 9060|       |
 9061|       |  // have a normal float, use the default shift.
 9062|  2.43k|  cb(am, mantissa_shift);
 9063|       |
 9064|       |  // check for carry
 9065|  2.43k|  if (am.mantissa >=
  ------------------
  |  Branch (9065:7): [True: 48, False: 2.38k]
  ------------------
 9066|  2.43k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 9067|     48|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9068|     48|    am.power2++;
 9069|     48|  }
 9070|       |
 9071|       |  // check for infinite: we could have carried to an infinite power
 9072|  2.43k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9073|  2.43k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9073:7): [True: 0, False: 2.43k]
  ------------------
 9074|      0|    am.power2 = binary_format<T>::infinite_power();
 9075|      0|    am.mantissa = 0;
 9076|      0|  }
 9077|  2.43k|}
_ZZN19simdjson_fast_float19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES1_iENKUlRS1_iE0_clES4_i:
 9341|  2.62k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 9342|  2.62k|    round_nearest_tie_even(
 9343|  2.62k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 9344|  2.62k|          static_cast<void>(_);  // not needed, since we've done our comparison
 9345|  2.62k|          static_cast<void>(__); // not needed, since we've done our comparison
 9346|  2.62k|          if (ord > 0) {
 9347|  2.62k|            return true;
 9348|  2.62k|          } else if (ord < 0) {
 9349|  2.62k|            return false;
 9350|  2.62k|          } else {
 9351|  2.62k|            return is_odd;
 9352|  2.62k|          }
 9353|  2.62k|        });
 9354|  2.62k|  });
_ZN19simdjson_fast_float22round_nearest_tie_evenIZZNS_19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES2_iENKUlRS2_iE0_clES5_iEUlbbbE_EEvS5_iT_:
 9082|  2.62k|                       callback cb) noexcept {
 9083|  2.62k|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (9083:25): [True: 0, False: 2.62k]
  ------------------
 9084|  2.62k|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (9084:28): [True: 0, False: 2.62k]
  ------------------
 9085|  2.62k|  uint64_t truncated_bits = am.mantissa & mask;
 9086|  2.62k|  bool is_above = truncated_bits > halfway;
 9087|  2.62k|  bool is_halfway = truncated_bits == halfway;
 9088|       |
 9089|       |  // shift digits into position
 9090|  2.62k|  if (shift == 64) {
  ------------------
  |  Branch (9090:7): [True: 0, False: 2.62k]
  ------------------
 9091|      0|    am.mantissa = 0;
 9092|  2.62k|  } else {
 9093|  2.62k|    am.mantissa >>= shift;
 9094|  2.62k|  }
 9095|  2.62k|  am.power2 += shift;
 9096|       |
 9097|  2.62k|  bool is_odd = (am.mantissa & 1) == 1;
 9098|  2.62k|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 9099|  2.62k|}
_ZZZN19simdjson_fast_float19negative_digit_compIdEENS_17adjusted_mantissaERNS_6bigintES1_iENKUlRS1_iE0_clES4_iENKUlbbbE_clEbbb:
 9343|  2.62k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 9344|  2.62k|          static_cast<void>(_);  // not needed, since we've done our comparison
 9345|  2.62k|          static_cast<void>(__); // not needed, since we've done our comparison
 9346|  2.62k|          if (ord > 0) {
  ------------------
  |  Branch (9346:15): [True: 1.29k, False: 1.33k]
  ------------------
 9347|  1.29k|            return true;
 9348|  1.33k|          } else if (ord < 0) {
  ------------------
  |  Branch (9348:22): [True: 1.25k, False: 74]
  ------------------
 9349|  1.25k|            return false;
 9350|  1.25k|          } else {
 9351|     74|            return is_odd;
 9352|     74|          }
 9353|  2.62k|        });
_ZN19simdjson_fast_float22clinger_fast_path_implIdEEbmlbRT_:
 9586|  3.24k|                       T &value) noexcept {
 9587|       |  // The implementation of the Clinger's fast path is convoluted because
 9588|       |  // we want round-to-nearest in all cases, irrespective of the rounding mode
 9589|       |  // selected on the thread.
 9590|       |  // We proceed optimistically, assuming that detail::rounds_to_nearest()
 9591|       |  // returns true.
 9592|  3.24k|  if (binary_format<T>::min_exponent_fast_path() <= exponent &&
  ------------------
  |  Branch (9592:7): [True: 2.95k, False: 288]
  ------------------
 9593|  2.95k|      exponent <= binary_format<T>::max_exponent_fast_path() &&
  ------------------
  |  Branch (9593:7): [True: 2.82k, False: 132]
  ------------------
 9594|  2.82k|      mantissa <= binary_format<T>::max_mantissa_fast_path()) {
  ------------------
  |  Branch (9594:7): [True: 12, False: 2.81k]
  ------------------
 9595|       |    // The mantissa bound above is a necessary condition for BOTH branches
 9596|       |    // below: the rounding-mode-dependent branch checks the tighter
 9597|       |    // max_mantissa_fast_path(exponent) <= max_mantissa_fast_path(). Testing
 9598|       |    // it before detail::rounds_to_nearest() spares long-mantissa inputs
 9599|       |    // (which can never take the fast path) the volatile-float probe.
 9600|       |    //
 9601|       |    // Unfortunately, the conventional Clinger's fast path is only possible
 9602|       |    // when the system rounds to the nearest float.
 9603|       |    //
 9604|       |    // We expect the next branch to almost always be selected.
 9605|       |    // We could check it first (before the previous branch), but
 9606|       |    // there might be performance advantages at having the check
 9607|       |    // be last.
 9608|     12|    if (!cpp20_and_in_constexpr() && detail::rounds_to_nearest()) {
  ------------------
  |  Branch (9608:9): [True: 12, Folded]
  |  Branch (9608:38): [True: 12, False: 0]
  ------------------
 9609|       |      // We have that fegetround() == FE_TONEAREST.
 9610|       |      // Next is Clinger's fast path.
 9611|     12|      value = T(mantissa);
 9612|     12|      if (exponent < 0) {
  ------------------
  |  Branch (9612:11): [True: 12, False: 0]
  ------------------
 9613|     12|        value = value / binary_format<T>::exact_power_of_ten(-exponent);
 9614|     12|      } else {
 9615|      0|        value = value * binary_format<T>::exact_power_of_ten(exponent);
 9616|      0|      }
 9617|     12|      if (is_negative) {
  ------------------
  |  Branch (9617:11): [True: 1, False: 11]
  ------------------
 9618|      1|        value = -value;
 9619|      1|      }
 9620|     12|      return true;
 9621|     12|    } else {
 9622|       |      // We do not have that fegetround() == FE_TONEAREST.
 9623|       |      // Next is a modified Clinger's fast path, inspired by Jakub Jelinek's
 9624|       |      // proposal
 9625|      0|      if (exponent >= 0 &&
  ------------------
  |  Branch (9625:11): [True: 0, False: 0]
  ------------------
 9626|      0|          mantissa <= binary_format<T>::max_mantissa_fast_path(exponent)) {
  ------------------
  |  Branch (9626:11): [True: 0, False: 0]
  ------------------
 9627|      0|#if defined(__clang__) || defined(SIMDJSON_FASTFLOAT_32BIT)
 9628|       |        // Clang may map 0 to -0.0 when fegetround() == FE_DOWNWARD
 9629|      0|        if (mantissa == 0) {
  ------------------
  |  Branch (9629:13): [True: 0, False: 0]
  ------------------
 9630|      0|          value = is_negative ? T(-0.) : T(0.);
  ------------------
  |  Branch (9630:19): [True: 0, False: 0]
  ------------------
 9631|      0|          return true;
 9632|      0|        }
 9633|      0|#endif
 9634|      0|        value = T(mantissa) * binary_format<T>::exact_power_of_ten(exponent);
 9635|      0|        if (is_negative) {
  ------------------
  |  Branch (9635:13): [True: 0, False: 0]
  ------------------
 9636|      0|          value = -value;
 9637|      0|        }
 9638|      0|        return true;
 9639|      0|      }
 9640|      0|    }
 9641|     12|  }
 9642|  3.23k|  return false;
 9643|  3.24k|}
_ZN19simdjson_fast_float13binary_formatIdE22min_exponent_fast_pathEv:
 5747|  3.24k|inline constexpr int binary_format<double>::min_exponent_fast_path() {
 5748|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
 5749|       |  return 0;
 5750|       |#else
 5751|  3.24k|  return -22;
 5752|  3.24k|#endif
 5753|  3.24k|}
_ZN19simdjson_fast_float13binary_formatIdE22max_exponent_fast_pathEv:
 5819|  2.95k|inline constexpr int binary_format<double>::max_exponent_fast_path() {
 5820|  2.95k|  return 22;
 5821|  2.95k|}
_ZN19simdjson_fast_float13binary_formatIdE22max_mantissa_fast_pathEv:
 5829|  2.82k|inline constexpr uint64_t binary_format<double>::max_mantissa_fast_path() {
 5830|  2.82k|  return uint64_t(2) << mantissa_explicit_bits();
 5831|  2.82k|}
_ZN19simdjson_fast_float6detail17rounds_to_nearestEv:
 9470|  1.43k|simdjson_fastfloat_really_inline bool rounds_to_nearest() noexcept {
 9471|       |  // https://lemire.me/blog/2020/06/26/gcc-not-nearest/
 9472|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
 9473|       |  return false;
 9474|       |#endif
 9475|       |  // See
 9476|       |  // A fast function to check your floating-point rounding mode
 9477|       |  // https://lemire.me/blog/2022/11/16/a-fast-function-to-check-your-floating-point-rounding-mode/
 9478|       |  //
 9479|       |  // This function is meant to be equivalent to :
 9480|       |  // prior: #include <cfenv>
 9481|       |  //  return fegetround() == FE_TONEAREST;
 9482|       |  // However, it is expected to be much faster than the fegetround()
 9483|       |  // function call.
 9484|       |  //
 9485|       |  // The volatile keyword prevents the compiler from computing the function
 9486|       |  // at compile-time.
 9487|       |  // There might be other ways to prevent compile-time optimizations (e.g.,
 9488|       |  // asm). The value does not need to be std::numeric_limits<float>::min(), any
 9489|       |  // small value so that 1 + x should round to 1 would do (after accounting for
 9490|       |  // excess precision, as in 387 instructions).
 9491|  1.43k|  static float volatile fmin = (std::numeric_limits<float>::min)();
 9492|  1.43k|  float fmini = fmin; // we copy it so that it gets loaded at most once.
 9493|       |//
 9494|       |// Explanation:
 9495|       |// Only when fegetround() == FE_TONEAREST do we have that
 9496|       |// fmin + 1.0f == 1.0f - fmin.
 9497|       |//
 9498|       |// FE_UPWARD:
 9499|       |//  fmin + 1.0f > 1
 9500|       |//  1.0f - fmin == 1
 9501|       |//
 9502|       |// FE_DOWNWARD or  FE_TOWARDZERO:
 9503|       |//  fmin + 1.0f == 1
 9504|       |//  1.0f - fmin < 1
 9505|       |//
 9506|       |// Note: This may fail to be accurate if fast-math has been
 9507|       |// enabled, as rounding conventions may not apply.
 9508|       |#ifdef SIMDJSON_FASTFLOAT_VISUAL_STUDIO
 9509|       |#pragma warning(push)
 9510|       |//  todo: is there a VS warning?
 9511|       |//  see
 9512|       |//  https://stackoverflow.com/questions/46079446/is-there-a-warning-for-floating-point-equality-checking-in-visual-studio-2013
 9513|       |#elif defined(__clang__)
 9514|       |#pragma clang diagnostic push
 9515|  1.43k|SIMDJSON_DISABLE_GCC_WARNING(-Wfloat-equal)
 9516|       |#elif defined(__GNUC__)
 9517|       |#pragma GCC diagnostic push
 9518|       |SIMDJSON_DISABLE_GCC_WARNING(-Wfloat-equal)
 9519|       |#endif
 9520|  1.43k|  return (fmini + 1.0f == 1.0f - fmini);
 9521|       |#ifdef SIMDJSON_FASTFLOAT_VISUAL_STUDIO
 9522|       |#pragma warning(pop)
 9523|       |#elif defined(__clang__)
 9524|       |#pragma clang diagnostic pop
 9525|       |#elif defined(__GNUC__)
 9526|       |#pragma GCC diagnostic pop
 9527|       |#endif
 9528|  1.43k|}
_ZN19simdjson_fast_float13binary_formatIdE18exact_power_of_tenEl:
 6109|     12|binary_format<double>::exact_power_of_ten(int64_t power) {
 6110|       |  // Work around clang bug https://godbolt.org/z/zedh7rrhc
 6111|     12|  return static_cast<void>(powers_of_ten[0]), powers_of_ten[power];
 6112|     12|}
_ZN19simdjson_fast_float13compute_floatINS_13binary_formatIdEEEENS_17adjusted_mantissaElm:
 8196|  33.7k|compute_float(int64_t q, uint64_t w) noexcept {
 8197|  33.7k|  adjusted_mantissa answer;
 8198|  33.7k|  if ((w == 0) || (q < binary::smallest_power_of_ten())) {
  ------------------
  |  Branch (8198:7): [True: 10, False: 33.7k]
  |  Branch (8198:19): [True: 273, False: 33.4k]
  ------------------
 8199|    283|    answer.power2 = 0;
 8200|    283|    answer.mantissa = 0;
 8201|       |    // result should be zero
 8202|    283|    return answer;
 8203|    283|  }
 8204|  33.4k|  if (q > binary::largest_power_of_ten()) {
  ------------------
  |  Branch (8204:7): [True: 155, False: 33.3k]
  ------------------
 8205|       |    // we want to get infinity:
 8206|    155|    answer.power2 = binary::infinite_power();
 8207|    155|    answer.mantissa = 0;
 8208|    155|    return answer;
 8209|    155|  }
 8210|       |  // At this point in time q is in [powers::smallest_power_of_five,
 8211|       |  // powers::largest_power_of_five].
 8212|       |
 8213|       |  // We want the most significant bit of i to be 1. Shift if needed.
 8214|  33.3k|  int lz = leading_zeroes(w);
 8215|  33.3k|  w <<= lz;
 8216|       |
 8217|       |  // The required precision is binary::mantissa_explicit_bits() + 3 because
 8218|       |  // 1. We need the implicit bit
 8219|       |  // 2. We need an extra bit for rounding purposes
 8220|       |  // 3. We might lose a bit due to the "upperbit" routine (result too small,
 8221|       |  // requiring a shift)
 8222|       |
 8223|  33.3k|  value128 product =
 8224|  33.3k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 8225|       |  // The computed 'product' is always sufficient.
 8226|       |  // Mathematical proof:
 8227|       |  // Noble Mushtak and Daniel Lemire, Fast Number Parsing Without Fallback (to
 8228|       |  // appear) See script/mushtak_lemire.py
 8229|       |
 8230|       |  // The "compute_product_approximation" function can be slightly slower than a
 8231|       |  // branchless approach: value128 product = compute_product(q, w); but in
 8232|       |  // practice, we can win big with the compute_product_approximation if its
 8233|       |  // additional branch is easily predicted. Which is best is data specific.
 8234|  33.3k|  int upperbit = int(product.high >> 63);
 8235|  33.3k|  int shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3;
 8236|       |
 8237|  33.3k|  answer.mantissa = product.high >> shift;
 8238|       |
 8239|  33.3k|  answer.power2 = int32_t(detail::power(int32_t(q)) + upperbit - lz -
 8240|  33.3k|                          binary::minimum_exponent());
 8241|  33.3k|  if (answer.power2 <= 0) { // we have a subnormal?
  ------------------
  |  Branch (8241:7): [True: 2.79k, False: 30.5k]
  ------------------
 8242|       |    // Here have that answer.power2 <= 0 so -answer.power2 >= 0
 8243|  2.79k|    if (-answer.power2 + 1 >=
  ------------------
  |  Branch (8243:9): [True: 0, False: 2.79k]
  ------------------
 8244|  2.79k|        64) { // if we have more than 64 bits below the minimum exponent, you
 8245|       |              // have a zero for sure.
 8246|      0|      answer.power2 = 0;
 8247|      0|      answer.mantissa = 0;
 8248|       |      // result should be zero
 8249|      0|      return answer;
 8250|      0|    }
 8251|       |    // next line is safe because -answer.power2 + 1 < 64
 8252|  2.79k|    answer.mantissa >>= -answer.power2 + 1;
 8253|       |    // Thankfully, we can't have both "round-to-even" and subnormals because
 8254|       |    // "round-to-even" only occurs for powers close to 0 in the 32-bit and
 8255|       |    // and 64-bit case (with no more than 19 digits).
 8256|  2.79k|    answer.mantissa += (answer.mantissa & 1); // round up
 8257|  2.79k|    answer.mantissa >>= 1;
 8258|       |    // There is a weird scenario where we don't have a subnormal but just.
 8259|       |    // Suppose we start with 2.2250738585072013e-308, we end up
 8260|       |    // with 0x3fffffffffffff x 2^-1023-53 which is technically subnormal
 8261|       |    // whereas 0x40000000000000 x 2^-1023-53  is normal. Now, we need to round
 8262|       |    // up 0x3fffffffffffff x 2^-1023-53  and once we do, we are no longer
 8263|       |    // subnormal, but we can only know this after rounding.
 8264|       |    // So we only declare a subnormal if we are smaller than the threshold.
 8265|  2.79k|    answer.power2 =
 8266|  2.79k|        (answer.mantissa < (uint64_t(1) << binary::mantissa_explicit_bits()))
  ------------------
  |  Branch (8266:9): [True: 2.79k, False: 0]
  ------------------
 8267|  2.79k|            ? 0
 8268|  2.79k|            : 1;
 8269|  2.79k|    return answer;
 8270|  2.79k|  }
 8271|       |
 8272|       |  // usually, we round *up*, but if we fall right in between and and we have an
 8273|       |  // even basis, we need to round down
 8274|       |  // We are only concerned with the cases where 5**q fits in single 64-bit word.
 8275|  30.5k|  if ((product.low <= 1) && (q >= binary::min_exponent_round_to_even()) &&
  ------------------
  |  Branch (8275:7): [True: 3.61k, False: 26.9k]
  |  Branch (8275:29): [True: 3.19k, False: 417]
  ------------------
 8276|  3.19k|      (q <= binary::max_exponent_round_to_even()) &&
  ------------------
  |  Branch (8276:7): [True: 3.15k, False: 41]
  ------------------
 8277|  3.15k|      ((answer.mantissa & 3) == 1)) { // we may fall between two floats!
  ------------------
  |  Branch (8277:7): [True: 1.62k, False: 1.52k]
  ------------------
 8278|       |    // To be in-between two floats we need that in doing
 8279|       |    //   answer.mantissa = product.high >> (upperbit + 64 -
 8280|       |    //   binary::mantissa_explicit_bits() - 3);
 8281|       |    // ... we dropped out only zeroes. But if this happened, then we can go
 8282|       |    // back!!!
 8283|  1.62k|    if ((answer.mantissa << shift) == product.high) {
  ------------------
  |  Branch (8283:9): [True: 329, False: 1.29k]
  ------------------
 8284|    329|      answer.mantissa &= ~uint64_t(1); // flip it so that we do not round up
 8285|    329|    }
 8286|  1.62k|  }
 8287|       |
 8288|  30.5k|  answer.mantissa += (answer.mantissa & 1); // round up
 8289|  30.5k|  answer.mantissa >>= 1;
 8290|  30.5k|  if (answer.mantissa >= (uint64_t(2) << binary::mantissa_explicit_bits())) {
  ------------------
  |  Branch (8290:7): [True: 289, False: 30.2k]
  ------------------
 8291|    289|    answer.mantissa = (uint64_t(1) << binary::mantissa_explicit_bits());
 8292|    289|    answer.power2++; // undo previous addition
 8293|    289|  }
 8294|       |
 8295|  30.5k|  answer.mantissa &= ~(uint64_t(1) << binary::mantissa_explicit_bits());
 8296|  30.5k|  if (answer.power2 >= binary::infinite_power()) { // infinity
  ------------------
  |  Branch (8296:7): [True: 90, False: 30.4k]
  ------------------
 8297|     90|    answer.power2 = binary::infinite_power();
 8298|     90|    answer.mantissa = 0;
 8299|     90|  }
 8300|  30.5k|  return answer;
 8301|  33.3k|}
_ZN19simdjson_fast_float13binary_formatIdE21smallest_power_of_tenEv:
 6129|  33.7k|inline constexpr int binary_format<double>::smallest_power_of_ten() {
 6130|  33.7k|  return -342;
 6131|  33.7k|}
_ZN19simdjson_fast_float13binary_formatIdE20largest_power_of_tenEv:
 6120|  33.4k|template <> inline constexpr int binary_format<double>::largest_power_of_ten() {
 6121|  33.4k|  return 308;
 6122|  33.4k|}
_ZN19simdjson_fast_float13binary_formatIdE26min_exponent_round_to_evenEv:
 5785|  3.61k|inline constexpr int binary_format<double>::min_exponent_round_to_even() {
 5786|  3.61k|  return -4;
 5787|  3.61k|}
_ZN19simdjson_fast_float13binary_formatIdE26max_exponent_round_to_evenEv:
 5775|  3.19k|inline constexpr int binary_format<double>::max_exponent_round_to_even() {
 5776|  3.19k|  return 23;
 5777|  3.19k|}
_ZN19simdjson_fast_float8to_floatIdEEvbNS_17adjusted_mantissaERT_:
 6183|  21.1k|to_float(bool negative, adjusted_mantissa am, T &value) {
 6184|  21.1k|  using equiv_uint = equiv_uint_t<T>;
 6185|  21.1k|  equiv_uint word = equiv_uint(am.mantissa);
 6186|  21.1k|  word = equiv_uint(word | equiv_uint(am.power2)
 6187|  21.1k|                               << binary_format<T>::mantissa_explicit_bits());
 6188|  21.1k|  word =
 6189|  21.1k|      equiv_uint(word | equiv_uint(negative) << binary_format<T>::sign_index());
 6190|  21.1k|#if SIMDJSON_FASTFLOAT_HAS_BIT_CAST
 6191|  21.1k|  value = std::bit_cast<T>(word);
 6192|       |#else
 6193|       |  ::memcpy(&value, &word, sizeof(T));
 6194|       |#endif
 6195|  21.1k|}
_ZN19simdjson_fast_float13binary_formatIdE10sign_indexEv:
 5810|  21.1k|template <> inline constexpr int binary_format<double>::sign_index() {
 5811|  21.1k|  return 63;
 5812|  21.1k|}
_ZN19simdjson_fast_float13binary_formatIdE14infinite_powerEv:
 5802|  54.5k|template <> inline constexpr int binary_format<double>::infinite_power() {
 5803|  54.5k|  return 0x7FF;
 5804|  54.5k|}
simdjson.cpp:_ZN8simdjson8internal12_GLOBAL__N_121parse_with_fast_floatIfEET_PKcS5_:
10002|   134k|template <typename T> T parse_with_fast_float(const char *first, const char *end) noexcept {
10003|   134k|  T value{};
10004|   134k|  auto answer =
10005|   134k|      simdjson_fast_float::from_chars_advanced(first, end, value, json_options);
10006|   134k|  if (answer.ec == std::errc::invalid_argument) { return T(0); }
  ------------------
  |  Branch (10006:7): [True: 0, False: 134k]
  ------------------
10007|   134k|  return value;
10008|   134k|}
_ZN19simdjson_fast_float19from_chars_advancedIfcEENS_19from_chars_result_tIT0_EEPKS2_S5_RT_NS_15parse_options_tIS2_EE:
 9938|   134k|                    parse_options_t<UC> options) noexcept {
 9939|   134k|  return from_chars_advanced_caller<
 9940|   134k|      size_t(is_supported_float_type<T>::value) +
 9941|   134k|      2 * size_t(is_supported_integer_type<T>::value)>::call(first, last, value,
 9942|   134k|                                                             options);
 9943|   134k|}
_ZN19simdjson_fast_float26from_chars_advanced_callerILm1EE4callIfcEENS_19from_chars_result_tIT0_EEPKS4_S7_RT_NS_15parse_options_tIS4_EE:
 9921|   134k|       parse_options_t<UC> options) noexcept {
 9922|   134k|    return from_chars_float_advanced(first, last, value, options);
 9923|   134k|  }
_ZN19simdjson_fast_float25from_chars_float_advancedIfcEENS_19from_chars_result_tIT0_EEPKS2_S5_RT_NS_15parse_options_tIS2_EE:
 9709|   134k|                          parse_options_t<UC> options) noexcept {
 9710|       |
 9711|   134k|  static_assert(is_supported_float_type<T>::value,
 9712|   134k|                "only some floating-point types are supported");
 9713|   134k|  static_assert(is_supported_char_type<UC>::value,
 9714|   134k|                "only char, wchar_t, char16_t and char32_t are supported");
 9715|       |
 9716|   134k|  chars_format const fmt = detail::adjust_for_feature_macros(options.format);
 9717|       |
 9718|   134k|  from_chars_result_t<UC> answer;
 9719|   134k|  if (uint64_t(fmt & chars_format::skip_white_space)) {
  ------------------
  |  Branch (9719:7): [True: 0, False: 134k]
  ------------------
 9720|      0|    while ((first != last) && simdjson_fast_float::is_space(*first)) {
  ------------------
  |  Branch (9720:12): [True: 0, False: 0]
  |  Branch (9720:31): [True: 0, False: 0]
  ------------------
 9721|      0|      first++;
 9722|      0|    }
 9723|      0|  }
 9724|   134k|  if (first == last) {
  ------------------
  |  Branch (9724:7): [True: 0, False: 134k]
  ------------------
 9725|      0|    answer.ec = std::errc::invalid_argument;
 9726|      0|    answer.ptr = first;
 9727|      0|    return answer;
 9728|      0|  }
 9729|   134k|  bool const bjf = uint64_t(fmt & detail::basic_json_fmt) != 0;
 9730|       |
 9731|       |  // Fast path: parse WITHOUT materializing the integer/fraction spans (read
 9732|       |  // only by the rare slow paths). Skipping their stores keeps the fat
 9733|       |  // parsed_number_string_t off the hot path. store_spans is a runtime argument,
 9734|       |  // so this reuses the single parse_number_string instantiation.
 9735|   134k|  parsed_number_string_t<UC> pns =
 9736|   134k|      bjf ? parse_number_string<true, UC>(first, last, options, false)
  ------------------
  |  Branch (9736:7): [True: 134k, False: 0]
  ------------------
 9737|   134k|          : parse_number_string<false, UC>(first, last, options, false);
 9738|   134k|  if (!pns.valid) {
  ------------------
  |  Branch (9738:7): [True: 0, False: 134k]
  ------------------
 9739|      0|    if (uint64_t(fmt & chars_format::no_infnan)) {
  ------------------
  |  Branch (9739:9): [True: 0, False: 0]
  ------------------
 9740|      0|      answer.ec = std::errc::invalid_argument;
 9741|      0|      answer.ptr = first;
 9742|      0|      return answer;
 9743|      0|    } else {
 9744|      0|      return detail::parse_infnan(first, last, value, fmt);
 9745|      0|    }
 9746|      0|  }
 9747|       |
 9748|       |  // Slow path A (rare): > 19 significant digits. The no-span parse left the
 9749|       |  // mantissa un-truncated and skipped the span-based recompute; the cold helper
 9750|       |  // re-parses with spans and runs the full algorithm.
 9751|       |  //
 9752|       |// We have to disable -Wc++20-extensions for the [[unlikely]] attribute
 9753|       |// See comment for @jwakely at
 9754|       |// https://github.com/fastfloat/simdjson_fast_float/pull/387#discussion_r3366943539
 9755|       |// This is unfortunate.
 9756|   134k|#ifdef __clang__
 9757|   134k|#pragma clang diagnostic push
 9758|   134k|#if (!defined(__APPLE_CC__) && __clang_major__ >= 10) || (__clang_major__ >= 13)
 9759|   134k|SIMDJSON_DISABLE_GCC_WARNING(-Wc++20-extensions)
 9760|   134k|#endif
 9761|   134k|#endif
 9762|   134k|  if simdjson_fastfloat_unlikely (pns.too_many_digits) {
  ------------------
  |  | 5205|   134k|#define simdjson_fastfloat_unlikely(x) (x) [[unlikely]]
  |  |  ------------------
  |  |  |  Branch (5205:41): [True: 114k, False: 19.9k]
  |  |  ------------------
  ------------------
 9763|   114k|    return parse_number_slow_path<T, UC>(first, last, value, options, bjf);
 9764|   114k|  }
 9765|  19.9k|  answer.ec = std::errc(); // be optimistic
 9766|  19.9k|  answer.ptr = pns.lastmatch;
 9767|       |
 9768|  19.9k|  if (clinger_fast_path_impl(pns.mantissa, pns.exponent, pns.negative, value)) {
  ------------------
  |  Branch (9768:7): [True: 1.42k, False: 18.5k]
  ------------------
 9769|  1.42k|    return answer;
 9770|  1.42k|  }
 9771|       |
 9772|  18.5k|  adjusted_mantissa am =
 9773|  18.5k|      compute_float<binary_format<T>>(pns.exponent, pns.mantissa);
 9774|       |  // Slow path B (rare): Eisel-Lemire could not resolve; digit_comp needs the
 9775|       |  // integer/fraction spans. Route to the cold helper (clinger there is a
 9776|       |  // dead-effect since it already failed here; the cold re-parse + digit_comp
 9777|       |  // via from_chars_advanced reproduces this branch).
 9778|  18.5k|  if simdjson_fastfloat_unlikely (am.power2 < 0) {
  ------------------
  |  | 5205|  18.5k|#define simdjson_fastfloat_unlikely(x) (x) [[unlikely]]
  |  |  ------------------
  |  |  |  Branch (5205:41): [True: 0, False: 18.5k]
  |  |  ------------------
  ------------------
 9779|      0|    return parse_number_slow_path<T, UC>(first, last, value, options, bjf);
 9780|      0|  }
 9781|  18.5k|#ifdef __clang__
 9782|  18.5k|#pragma clang diagnostic pop
 9783|  18.5k|#endif
 9784|  18.5k|  to_float(pns.negative, am, value);
 9785|       |  // Test for over/underflow.
 9786|  18.5k|  if ((pns.mantissa != 0 && am.mantissa == 0 && am.power2 == 0) ||
  ------------------
  |  Branch (9786:8): [True: 12.3k, False: 6.13k]
  |  Branch (9786:29): [True: 10.3k, False: 2.07k]
  |  Branch (9786:49): [True: 8.76k, False: 1.54k]
  ------------------
 9787|  10.1k|      am.power2 == binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9787:7): [True: 1.34k, False: 8.41k]
  ------------------
 9788|  10.1k|    answer.ec = std::errc::result_out_of_range;
 9789|  10.1k|  }
 9790|  18.5k|  return answer;
 9791|  18.5k|}
_ZN19simdjson_fast_float22parse_number_slow_pathIfcEENS_19from_chars_result_tIT0_EEPKS2_S5_RT_NS_15parse_options_tIS2_EEb:
 9699|   114k|                       parse_options_t<UC> options, bool bjf) noexcept {
 9700|   114k|  parsed_number_string_t<UC> pns =
 9701|   114k|      bjf ? parse_number_string<true, UC>(first, last, options, true)
  ------------------
  |  Branch (9701:7): [True: 114k, False: 0]
  ------------------
 9702|   114k|          : parse_number_string<false, UC>(first, last, options, true);
 9703|   114k|  return from_chars_advanced(pns, value);
 9704|   114k|}
_ZN19simdjson_fast_float19from_chars_advancedIfcEENS_19from_chars_result_tIT0_EERNS_22parsed_number_string_tIS2_EERT_:
 9652|   114k|from_chars_advanced(parsed_number_string_t<UC> &pns, T &value) noexcept {
 9653|   114k|  static_assert(is_supported_float_type<T>::value,
 9654|   114k|                "only some floating-point types are supported");
 9655|   114k|  static_assert(is_supported_char_type<UC>::value,
 9656|   114k|                "only char, wchar_t, char16_t and char32_t are supported");
 9657|       |
 9658|   114k|  from_chars_result_t<UC> answer;
 9659|       |
 9660|   114k|  answer.ec = std::errc(); // be optimistic
 9661|   114k|  answer.ptr = pns.lastmatch;
 9662|       |
 9663|   114k|  if (!pns.too_many_digits &&
  ------------------
  |  Branch (9663:7): [True: 0, False: 114k]
  ------------------
 9664|      0|      clinger_fast_path_impl(pns.mantissa, pns.exponent, pns.negative, value))
  ------------------
  |  Branch (9664:7): [True: 0, False: 0]
  ------------------
 9665|      0|    return answer;
 9666|       |
 9667|   114k|  adjusted_mantissa am =
 9668|   114k|      compute_float<binary_format<T>>(pns.exponent, pns.mantissa);
 9669|   114k|  if (pns.too_many_digits && am.power2 >= 0) {
  ------------------
  |  Branch (9669:7): [True: 114k, False: 0]
  |  Branch (9669:30): [True: 114k, False: 0]
  ------------------
 9670|   114k|    if (am != compute_float<binary_format<T>>(pns.exponent, pns.mantissa + 1)) {
  ------------------
  |  Branch (9670:9): [True: 11.0k, False: 103k]
  ------------------
 9671|  11.0k|      am = compute_error<binary_format<T>>(pns.exponent, pns.mantissa);
 9672|  11.0k|    }
 9673|   114k|  }
 9674|       |  // If we called compute_float<binary_format<T>>(pns.exponent, pns.mantissa)
 9675|       |  // and we have an invalid power (am.power2 < 0), then we need to go the long
 9676|       |  // way around again. This is very uncommon.
 9677|   114k|  if (am.power2 < 0) {
  ------------------
  |  Branch (9677:7): [True: 11.0k, False: 103k]
  ------------------
 9678|  11.0k|    am = digit_comp<T>(pns, am);
 9679|  11.0k|  }
 9680|   114k|  to_float(pns.negative, am, value);
 9681|       |  // Test for over/underflow.
 9682|   114k|  if ((pns.mantissa != 0 && am.mantissa == 0 && am.power2 == 0) ||
  ------------------
  |  Branch (9682:8): [True: 114k, False: 0]
  |  Branch (9682:29): [True: 21.8k, False: 92.7k]
  |  Branch (9682:49): [True: 9.33k, False: 12.5k]
  ------------------
 9683|   105k|      am.power2 == binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9683:7): [True: 121, False: 105k]
  ------------------
 9684|  9.45k|    answer.ec = std::errc::result_out_of_range;
 9685|  9.45k|  }
 9686|   114k|  return answer;
 9687|   114k|}
_ZN19simdjson_fast_float13compute_errorINS_13binary_formatIfEEEENS_17adjusted_mantissaElm:
 8181|  11.0k|compute_error(int64_t q, uint64_t w) noexcept {
 8182|  11.0k|  int lz = leading_zeroes(w);
 8183|  11.0k|  w <<= lz;
 8184|  11.0k|  value128 product =
 8185|  11.0k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 8186|  11.0k|  return compute_error_scaled<binary>(q, product.high, lz);
 8187|  11.0k|}
_ZN19simdjson_fast_float29compute_product_approximationILi26EEENS_8value128Elm:
 8115|   225k|compute_product_approximation(int64_t q, uint64_t w) {
 8116|   225k|  int const index = 2 * int(q - powers::smallest_power_of_five);
 8117|       |  // For small values of q, e.g., q in [0,27], the answer is always exact
 8118|       |  // because The line value128 firstproduct = full_multiplication(w,
 8119|       |  // power_of_five_128[index]); gives the exact answer.
 8120|   225k|  value128 firstproduct =
 8121|   225k|      full_multiplication(w, powers::power_of_five_128[index]);
 8122|   225k|  static_assert((bit_precision >= 0) && (bit_precision <= 64),
 8123|   225k|                " precision should  be in (0,64]");
 8124|   225k|  constexpr uint64_t precision_mask =
 8125|   225k|      (bit_precision < 64) ? (uint64_t(0xFFFFFFFFFFFFFFFF) >> bit_precision)
  ------------------
  |  Branch (8125:7): [True: 0, Folded]
  ------------------
 8126|   225k|                           : uint64_t(0xFFFFFFFFFFFFFFFF);
 8127|   225k|  if ((firstproduct.high & precision_mask) ==
  ------------------
  |  Branch (8127:7): [True: 28.3k, False: 197k]
  ------------------
 8128|   225k|      precision_mask) { // could further guard with  (lower + w < lower)
 8129|       |    // regarding the second product, we only need secondproduct.high, but our
 8130|       |    // expectation is that the compiler will optimize this extra work away if
 8131|       |    // needed.
 8132|  28.3k|    value128 secondproduct =
 8133|  28.3k|        full_multiplication(w, powers::power_of_five_128[index + 1]);
 8134|  28.3k|    firstproduct.low += secondproduct.high;
 8135|  28.3k|    if (secondproduct.high > firstproduct.low) {
  ------------------
  |  Branch (8135:9): [True: 25.8k, False: 2.58k]
  ------------------
 8136|  25.8k|      firstproduct.high++;
 8137|  25.8k|    }
 8138|  28.3k|  }
 8139|   225k|  return firstproduct;
 8140|   225k|}
_ZN19simdjson_fast_float20compute_error_scaledINS_13binary_formatIfEEEENS_17adjusted_mantissaElmi:
 8167|  11.0k|compute_error_scaled(int64_t q, uint64_t w, int lz) noexcept {
 8168|  11.0k|  int hilz = int(w >> 63) ^ 1;
 8169|  11.0k|  adjusted_mantissa answer;
 8170|  11.0k|  answer.mantissa = w << hilz;
 8171|  11.0k|  int bias = binary::mantissa_explicit_bits() - binary::minimum_exponent();
 8172|  11.0k|  answer.power2 = int32_t(detail::power(int32_t(q)) + bias - hilz - lz - 62 +
 8173|  11.0k|                          invalid_am_bias);
 8174|  11.0k|  return answer;
 8175|  11.0k|}
_ZN19simdjson_fast_float13binary_formatIfE22mantissa_explicit_bitsEv:
 5770|   878k|inline constexpr int binary_format<float>::mantissa_explicit_bits() {
 5771|   878k|  return 23;
 5772|   878k|}
_ZN19simdjson_fast_float13binary_formatIfE16minimum_exponentEv:
 5798|   236k|template <> inline constexpr int binary_format<float>::minimum_exponent() {
 5799|   236k|  return -127;
 5800|   236k|}
_ZN19simdjson_fast_float10digit_compIfcEENS_17adjusted_mantissaERNS_22parsed_number_string_tIT0_EES1_:
 9374|  11.0k|digit_comp(parsed_number_string_t<UC> &num, adjusted_mantissa am) noexcept {
 9375|       |  // remove the invalid exponent bias
 9376|  11.0k|  am.power2 -= invalid_am_bias;
 9377|       |
 9378|  11.0k|  int32_t sci_exp =
 9379|  11.0k|      scientific_exponent(num.mantissa, static_cast<int32_t>(num.exponent));
 9380|  11.0k|  size_t max_digits = binary_format<T>::max_digits();
 9381|  11.0k|  size_t digits = 0;
 9382|  11.0k|  bigint bigmant;
 9383|  11.0k|  parse_mantissa(bigmant, num, max_digits, digits);
 9384|       |  // can't underflow, since digits is at most max_digits.
 9385|  11.0k|  int32_t exponent = sci_exp + 1 - int32_t(digits);
 9386|  11.0k|  if (exponent >= 0) {
  ------------------
  |  Branch (9386:7): [True: 832, False: 10.2k]
  ------------------
 9387|    832|    return positive_digit_comp<T>(bigmant, exponent);
 9388|  10.2k|  } else {
 9389|  10.2k|    return negative_digit_comp<T>(bigmant, am, exponent);
 9390|  10.2k|  }
 9391|  11.0k|}
_ZN19simdjson_fast_float13binary_formatIfE10max_digitsEv:
 6141|  11.0k|template <> inline constexpr size_t binary_format<float>::max_digits() {
 6142|  11.0k|  return 114;
 6143|  11.0k|}
_ZN19simdjson_fast_float19positive_digit_compIfEENS_17adjusted_mantissaERNS_6bigintEi:
 9282|    832|positive_digit_comp(bigint &bigmant, int32_t exponent) noexcept {
 9283|    832|  SIMDJSON_FASTFLOAT_ASSERT(bigmant.pow10(uint32_t(exponent)));
  ------------------
  |  | 5214|    832|  {                                                                            \
  |  | 5215|    832|    static_cast<void>(x);                                                      \
  |  | 5216|    832|  }
  ------------------
 9284|    832|  adjusted_mantissa answer;
 9285|    832|  bool truncated;
 9286|    832|  answer.mantissa = bigmant.hi64(truncated);
 9287|    832|  int bias = binary_format<T>::mantissa_explicit_bits() -
 9288|    832|             binary_format<T>::minimum_exponent();
 9289|    832|  answer.power2 = bigmant.bit_length() - 64 + bias;
 9290|       |
 9291|    832|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 9292|    832|    round_nearest_tie_even(
 9293|    832|        a, shift,
 9294|    832|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 9295|    832|          return is_above || (is_halfway && truncated) ||
 9296|    832|                 (is_odd && is_halfway);
 9297|    832|        });
 9298|    832|  });
 9299|       |
 9300|    832|  return answer;
 9301|    832|}
_ZN19simdjson_fast_float5roundIfZNS_19positive_digit_compIfEENS_17adjusted_mantissaERNS_6bigintEiEUlRS2_iE_EEvS5_T0_:
 9047|    832|                                                         callback cb) noexcept {
 9048|    832|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 9049|    832|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (9049:7): [True: 0, False: 832]
  ------------------
 9050|       |    // have a denormal float
 9051|      0|    int32_t shift = -am.power2 + 1;
 9052|      0|    cb(am, (shift < 64 ? shift : 64));
  ------------------
  |  Branch (9052:13): [True: 0, False: 0]
  ------------------
 9053|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 9054|      0|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (9054:17): [True: 0, False: 0]
  ------------------
 9055|      0|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 9056|      0|                    ? 0
 9057|      0|                    : 1;
 9058|      0|    return;
 9059|      0|  }
 9060|       |
 9061|       |  // have a normal float, use the default shift.
 9062|    832|  cb(am, mantissa_shift);
 9063|       |
 9064|       |  // check for carry
 9065|    832|  if (am.mantissa >=
  ------------------
  |  Branch (9065:7): [True: 0, False: 832]
  ------------------
 9066|    832|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 9067|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9068|      0|    am.power2++;
 9069|      0|  }
 9070|       |
 9071|       |  // check for infinite: we could have carried to an infinite power
 9072|    832|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9073|    832|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9073:7): [True: 0, False: 832]
  ------------------
 9074|      0|    am.power2 = binary_format<T>::infinite_power();
 9075|      0|    am.mantissa = 0;
 9076|      0|  }
 9077|    832|}
_ZZN19simdjson_fast_float19positive_digit_compIfEENS_17adjusted_mantissaERNS_6bigintEiENKUlRS1_iE_clES4_i:
 9291|    832|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 9292|    832|    round_nearest_tie_even(
 9293|    832|        a, shift,
 9294|    832|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 9295|    832|          return is_above || (is_halfway && truncated) ||
 9296|    832|                 (is_odd && is_halfway);
 9297|    832|        });
 9298|    832|  });
_ZN19simdjson_fast_float22round_nearest_tie_evenIZZNS_19positive_digit_compIfEENS_17adjusted_mantissaERNS_6bigintEiENKUlRS2_iE_clES5_iEUlbbbE_EEvS5_iT_:
 9082|    832|                       callback cb) noexcept {
 9083|    832|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (9083:25): [True: 0, False: 832]
  ------------------
 9084|    832|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (9084:28): [True: 0, False: 832]
  ------------------
 9085|    832|  uint64_t truncated_bits = am.mantissa & mask;
 9086|    832|  bool is_above = truncated_bits > halfway;
 9087|    832|  bool is_halfway = truncated_bits == halfway;
 9088|       |
 9089|       |  // shift digits into position
 9090|    832|  if (shift == 64) {
  ------------------
  |  Branch (9090:7): [True: 0, False: 832]
  ------------------
 9091|      0|    am.mantissa = 0;
 9092|    832|  } else {
 9093|    832|    am.mantissa >>= shift;
 9094|    832|  }
 9095|    832|  am.power2 += shift;
 9096|       |
 9097|    832|  bool is_odd = (am.mantissa & 1) == 1;
 9098|    832|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 9099|    832|}
_ZZZN19simdjson_fast_float19positive_digit_compIfEENS_17adjusted_mantissaERNS_6bigintEiENKUlRS1_iE_clES4_iENKUlbbbE_clEbbb:
 9294|    832|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 9295|    832|          return is_above || (is_halfway && truncated) ||
  ------------------
  |  Branch (9295:18): [True: 198, False: 634]
  |  Branch (9295:31): [True: 277, False: 357]
  |  Branch (9295:45): [True: 276, False: 1]
  ------------------
 9296|    358|                 (is_odd && is_halfway);
  ------------------
  |  Branch (9296:19): [True: 68, False: 290]
  |  Branch (9296:29): [True: 0, False: 68]
  ------------------
 9297|    832|        });
_ZN19simdjson_fast_float19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES1_i:
 9310|  10.2k|    bigint &bigmant, adjusted_mantissa am, int32_t exponent) noexcept {
 9311|  10.2k|  bigint &real_digits = bigmant;
 9312|  10.2k|  int32_t real_exp = exponent;
 9313|       |
 9314|       |  // get the value of `b`, rounded down, and get a bigint representation of b+h
 9315|  10.2k|  adjusted_mantissa am_b = am;
 9316|       |  // gcc7 buf: use a lambda to remove the noexcept qualifier bug with
 9317|       |  // -Wnoexcept-type.
 9318|  10.2k|  round<T>(am_b,
 9319|  10.2k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
 9320|  10.2k|  T b;
 9321|  10.2k|  to_float(false, am_b, b);
 9322|  10.2k|  adjusted_mantissa theor = to_extended_halfway(b);
 9323|  10.2k|  bigint theor_digits(theor.mantissa);
 9324|  10.2k|  int32_t theor_exp = theor.power2;
 9325|       |
 9326|       |  // scale real digits and theor digits to be same power.
 9327|  10.2k|  int32_t pow2_exp = theor_exp - real_exp;
 9328|  10.2k|  uint32_t pow5_exp = uint32_t(-real_exp);
 9329|  10.2k|  if (pow5_exp != 0) {
  ------------------
  |  Branch (9329:7): [True: 10.2k, False: 0]
  ------------------
 9330|  10.2k|    SIMDJSON_FASTFLOAT_ASSERT(theor_digits.pow5(pow5_exp));
  ------------------
  |  | 5214|  10.2k|  {                                                                            \
  |  | 5215|  10.2k|    static_cast<void>(x);                                                      \
  |  | 5216|  10.2k|  }
  ------------------
 9331|  10.2k|  }
 9332|  10.2k|  if (pow2_exp > 0) {
  ------------------
  |  Branch (9332:7): [True: 9.56k, False: 665]
  ------------------
 9333|  9.56k|    SIMDJSON_FASTFLOAT_ASSERT(theor_digits.pow2(uint32_t(pow2_exp)));
  ------------------
  |  | 5214|  9.56k|  {                                                                            \
  |  | 5215|  9.56k|    static_cast<void>(x);                                                      \
  |  | 5216|  9.56k|  }
  ------------------
 9334|  9.56k|  } else if (pow2_exp < 0) {
  ------------------
  |  Branch (9334:14): [True: 470, False: 195]
  ------------------
 9335|    470|    SIMDJSON_FASTFLOAT_ASSERT(real_digits.pow2(uint32_t(-pow2_exp)));
  ------------------
  |  | 5214|    470|  {                                                                            \
  |  | 5215|    470|    static_cast<void>(x);                                                      \
  |  | 5216|    470|  }
  ------------------
 9336|    470|  }
 9337|       |
 9338|       |  // compare digits, and use it to direct rounding
 9339|  10.2k|  int ord = real_digits.compare(theor_digits);
 9340|  10.2k|  adjusted_mantissa answer = am;
 9341|  10.2k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 9342|  10.2k|    round_nearest_tie_even(
 9343|  10.2k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 9344|  10.2k|          static_cast<void>(_);  // not needed, since we've done our comparison
 9345|  10.2k|          static_cast<void>(__); // not needed, since we've done our comparison
 9346|  10.2k|          if (ord > 0) {
 9347|  10.2k|            return true;
 9348|  10.2k|          } else if (ord < 0) {
 9349|  10.2k|            return false;
 9350|  10.2k|          } else {
 9351|  10.2k|            return is_odd;
 9352|  10.2k|          }
 9353|  10.2k|        });
 9354|  10.2k|  });
 9355|       |
 9356|  10.2k|  return answer;
 9357|  10.2k|}
_ZN19simdjson_fast_float5roundIfZNS_19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES2_iEUlRS2_iE_EEvS5_T0_:
 9047|  10.2k|                                                         callback cb) noexcept {
 9048|  10.2k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 9049|  10.2k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (9049:7): [True: 0, False: 10.2k]
  ------------------
 9050|       |    // have a denormal float
 9051|      0|    int32_t shift = -am.power2 + 1;
 9052|      0|    cb(am, (shift < 64 ? shift : 64));
  ------------------
  |  Branch (9052:13): [True: 0, False: 0]
  ------------------
 9053|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 9054|      0|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (9054:17): [True: 0, False: 0]
  ------------------
 9055|      0|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 9056|      0|                    ? 0
 9057|      0|                    : 1;
 9058|      0|    return;
 9059|      0|  }
 9060|       |
 9061|       |  // have a normal float, use the default shift.
 9062|  10.2k|  cb(am, mantissa_shift);
 9063|       |
 9064|       |  // check for carry
 9065|  10.2k|  if (am.mantissa >=
  ------------------
  |  Branch (9065:7): [True: 0, False: 10.2k]
  ------------------
 9066|  10.2k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 9067|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9068|      0|    am.power2++;
 9069|      0|  }
 9070|       |
 9071|       |  // check for infinite: we could have carried to an infinite power
 9072|  10.2k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9073|  10.2k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9073:7): [True: 0, False: 10.2k]
  ------------------
 9074|      0|    am.power2 = binary_format<T>::infinite_power();
 9075|      0|    am.mantissa = 0;
 9076|      0|  }
 9077|  10.2k|}
_ZZN19simdjson_fast_float19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES1_iENKUlRS1_iE_clES4_i:
 9319|  10.2k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
_ZN19simdjson_fast_float19to_extended_halfwayIfEENS_17adjusted_mantissaET_:
 9036|  10.2k|to_extended_halfway(T value) noexcept {
 9037|  10.2k|  adjusted_mantissa am = to_extended(value);
 9038|  10.2k|  am.mantissa <<= 1;
 9039|  10.2k|  am.mantissa += 1;
 9040|  10.2k|  am.power2 -= 1;
 9041|  10.2k|  return am;
 9042|  10.2k|}
_ZN19simdjson_fast_float11to_extendedIfEENS_17adjusted_mantissaET_:
 9001|  10.2k|to_extended(T value) noexcept {
 9002|  10.2k|  using equiv_uint = equiv_uint_t<T>;
 9003|  10.2k|  constexpr equiv_uint exponent_mask = binary_format<T>::exponent_mask();
 9004|  10.2k|  constexpr equiv_uint mantissa_mask = binary_format<T>::mantissa_mask();
 9005|  10.2k|  constexpr equiv_uint hidden_bit_mask = binary_format<T>::hidden_bit_mask();
 9006|       |
 9007|  10.2k|  adjusted_mantissa am;
 9008|  10.2k|  int32_t bias = binary_format<T>::mantissa_explicit_bits() -
 9009|  10.2k|                 binary_format<T>::minimum_exponent();
 9010|  10.2k|  equiv_uint bits;
 9011|  10.2k|#if SIMDJSON_FASTFLOAT_HAS_BIT_CAST
 9012|  10.2k|  bits = std::bit_cast<equiv_uint>(value);
 9013|       |#else
 9014|       |  ::memcpy(&bits, &value, sizeof(T));
 9015|       |#endif
 9016|  10.2k|  if ((bits & exponent_mask) == 0) {
  ------------------
  |  Branch (9016:7): [True: 0, False: 10.2k]
  ------------------
 9017|       |    // denormal
 9018|      0|    am.power2 = 1 - bias;
 9019|      0|    am.mantissa = bits & mantissa_mask;
 9020|  10.2k|  } else {
 9021|       |    // normal
 9022|  10.2k|    am.power2 = int32_t((bits & exponent_mask) >>
 9023|  10.2k|                        binary_format<T>::mantissa_explicit_bits());
 9024|  10.2k|    am.power2 -= bias;
 9025|  10.2k|    am.mantissa = (bits & mantissa_mask) | hidden_bit_mask;
 9026|  10.2k|  }
 9027|       |
 9028|  10.2k|  return am;
 9029|  10.2k|}
_ZN19simdjson_fast_float5roundIfZNS_19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES2_iEUlRS2_iE0_EEvS5_T0_:
 9047|  10.2k|                                                         callback cb) noexcept {
 9048|  10.2k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 9049|  10.2k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (9049:7): [True: 0, False: 10.2k]
  ------------------
 9050|       |    // have a denormal float
 9051|      0|    int32_t shift = -am.power2 + 1;
 9052|      0|    cb(am, (shift < 64 ? shift : 64));
  ------------------
  |  Branch (9052:13): [True: 0, False: 0]
  ------------------
 9053|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 9054|      0|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (9054:17): [True: 0, False: 0]
  ------------------
 9055|      0|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 9056|      0|                    ? 0
 9057|      0|                    : 1;
 9058|      0|    return;
 9059|      0|  }
 9060|       |
 9061|       |  // have a normal float, use the default shift.
 9062|  10.2k|  cb(am, mantissa_shift);
 9063|       |
 9064|       |  // check for carry
 9065|  10.2k|  if (am.mantissa >=
  ------------------
  |  Branch (9065:7): [True: 0, False: 10.2k]
  ------------------
 9066|  10.2k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 9067|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9068|      0|    am.power2++;
 9069|      0|  }
 9070|       |
 9071|       |  // check for infinite: we could have carried to an infinite power
 9072|  10.2k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 9073|  10.2k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (9073:7): [True: 0, False: 10.2k]
  ------------------
 9074|      0|    am.power2 = binary_format<T>::infinite_power();
 9075|      0|    am.mantissa = 0;
 9076|      0|  }
 9077|  10.2k|}
_ZZN19simdjson_fast_float19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES1_iENKUlRS1_iE0_clES4_i:
 9341|  10.2k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 9342|  10.2k|    round_nearest_tie_even(
 9343|  10.2k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 9344|  10.2k|          static_cast<void>(_);  // not needed, since we've done our comparison
 9345|  10.2k|          static_cast<void>(__); // not needed, since we've done our comparison
 9346|  10.2k|          if (ord > 0) {
 9347|  10.2k|            return true;
 9348|  10.2k|          } else if (ord < 0) {
 9349|  10.2k|            return false;
 9350|  10.2k|          } else {
 9351|  10.2k|            return is_odd;
 9352|  10.2k|          }
 9353|  10.2k|        });
 9354|  10.2k|  });
_ZN19simdjson_fast_float22round_nearest_tie_evenIZZNS_19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES2_iENKUlRS2_iE0_clES5_iEUlbbbE_EEvS5_iT_:
 9082|  10.2k|                       callback cb) noexcept {
 9083|  10.2k|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (9083:25): [True: 0, False: 10.2k]
  ------------------
 9084|  10.2k|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (9084:28): [True: 0, False: 10.2k]
  ------------------
 9085|  10.2k|  uint64_t truncated_bits = am.mantissa & mask;
 9086|  10.2k|  bool is_above = truncated_bits > halfway;
 9087|  10.2k|  bool is_halfway = truncated_bits == halfway;
 9088|       |
 9089|       |  // shift digits into position
 9090|  10.2k|  if (shift == 64) {
  ------------------
  |  Branch (9090:7): [True: 0, False: 10.2k]
  ------------------
 9091|      0|    am.mantissa = 0;
 9092|  10.2k|  } else {
 9093|  10.2k|    am.mantissa >>= shift;
 9094|  10.2k|  }
 9095|  10.2k|  am.power2 += shift;
 9096|       |
 9097|  10.2k|  bool is_odd = (am.mantissa & 1) == 1;
 9098|  10.2k|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 9099|  10.2k|}
_ZZZN19simdjson_fast_float19negative_digit_compIfEENS_17adjusted_mantissaERNS_6bigintES1_iENKUlRS1_iE0_clES4_iENKUlbbbE_clEbbb:
 9343|  10.2k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 9344|  10.2k|          static_cast<void>(_);  // not needed, since we've done our comparison
 9345|  10.2k|          static_cast<void>(__); // not needed, since we've done our comparison
 9346|  10.2k|          if (ord > 0) {
  ------------------
  |  Branch (9346:15): [True: 7.39k, False: 2.83k]
  ------------------
 9347|  7.39k|            return true;
 9348|  7.39k|          } else if (ord < 0) {
  ------------------
  |  Branch (9348:22): [True: 2.01k, False: 821]
  ------------------
 9349|  2.01k|            return false;
 9350|  2.01k|          } else {
 9351|    821|            return is_odd;
 9352|    821|          }
 9353|  10.2k|        });
_ZN19simdjson_fast_float22clinger_fast_path_implIfEEbmlbRT_:
 9586|  19.9k|                       T &value) noexcept {
 9587|       |  // The implementation of the Clinger's fast path is convoluted because
 9588|       |  // we want round-to-nearest in all cases, irrespective of the rounding mode
 9589|       |  // selected on the thread.
 9590|       |  // We proceed optimistically, assuming that detail::rounds_to_nearest()
 9591|       |  // returns true.
 9592|  19.9k|  if (binary_format<T>::min_exponent_fast_path() <= exponent &&
  ------------------
  |  Branch (9592:7): [True: 9.09k, False: 10.8k]
  ------------------
 9593|  9.09k|      exponent <= binary_format<T>::max_exponent_fast_path() &&
  ------------------
  |  Branch (9593:7): [True: 2.43k, False: 6.66k]
  ------------------
 9594|  2.43k|      mantissa <= binary_format<T>::max_mantissa_fast_path()) {
  ------------------
  |  Branch (9594:7): [True: 1.42k, False: 1.00k]
  ------------------
 9595|       |    // The mantissa bound above is a necessary condition for BOTH branches
 9596|       |    // below: the rounding-mode-dependent branch checks the tighter
 9597|       |    // max_mantissa_fast_path(exponent) <= max_mantissa_fast_path(). Testing
 9598|       |    // it before detail::rounds_to_nearest() spares long-mantissa inputs
 9599|       |    // (which can never take the fast path) the volatile-float probe.
 9600|       |    //
 9601|       |    // Unfortunately, the conventional Clinger's fast path is only possible
 9602|       |    // when the system rounds to the nearest float.
 9603|       |    //
 9604|       |    // We expect the next branch to almost always be selected.
 9605|       |    // We could check it first (before the previous branch), but
 9606|       |    // there might be performance advantages at having the check
 9607|       |    // be last.
 9608|  1.42k|    if (!cpp20_and_in_constexpr() && detail::rounds_to_nearest()) {
  ------------------
  |  Branch (9608:9): [True: 1.42k, Folded]
  |  Branch (9608:38): [True: 1.42k, False: 0]
  ------------------
 9609|       |      // We have that fegetround() == FE_TONEAREST.
 9610|       |      // Next is Clinger's fast path.
 9611|  1.42k|      value = T(mantissa);
 9612|  1.42k|      if (exponent < 0) {
  ------------------
  |  Branch (9612:11): [True: 678, False: 746]
  ------------------
 9613|    678|        value = value / binary_format<T>::exact_power_of_ten(-exponent);
 9614|    746|      } else {
 9615|    746|        value = value * binary_format<T>::exact_power_of_ten(exponent);
 9616|    746|      }
 9617|  1.42k|      if (is_negative) {
  ------------------
  |  Branch (9617:11): [True: 350, False: 1.07k]
  ------------------
 9618|    350|        value = -value;
 9619|    350|      }
 9620|  1.42k|      return true;
 9621|  1.42k|    } else {
 9622|       |      // We do not have that fegetround() == FE_TONEAREST.
 9623|       |      // Next is a modified Clinger's fast path, inspired by Jakub Jelinek's
 9624|       |      // proposal
 9625|      0|      if (exponent >= 0 &&
  ------------------
  |  Branch (9625:11): [True: 0, False: 0]
  ------------------
 9626|      0|          mantissa <= binary_format<T>::max_mantissa_fast_path(exponent)) {
  ------------------
  |  Branch (9626:11): [True: 0, False: 0]
  ------------------
 9627|      0|#if defined(__clang__) || defined(SIMDJSON_FASTFLOAT_32BIT)
 9628|       |        // Clang may map 0 to -0.0 when fegetround() == FE_DOWNWARD
 9629|      0|        if (mantissa == 0) {
  ------------------
  |  Branch (9629:13): [True: 0, False: 0]
  ------------------
 9630|      0|          value = is_negative ? T(-0.) : T(0.);
  ------------------
  |  Branch (9630:19): [True: 0, False: 0]
  ------------------
 9631|      0|          return true;
 9632|      0|        }
 9633|      0|#endif
 9634|      0|        value = T(mantissa) * binary_format<T>::exact_power_of_ten(exponent);
 9635|      0|        if (is_negative) {
  ------------------
  |  Branch (9635:13): [True: 0, False: 0]
  ------------------
 9636|      0|          value = -value;
 9637|      0|        }
 9638|      0|        return true;
 9639|      0|      }
 9640|      0|    }
 9641|  1.42k|  }
 9642|  18.5k|  return false;
 9643|  19.9k|}
_ZN19simdjson_fast_float13binary_formatIfE22min_exponent_fast_pathEv:
 5756|  19.9k|inline constexpr int binary_format<float>::min_exponent_fast_path() {
 5757|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
 5758|       |  return 0;
 5759|       |#else
 5760|  19.9k|  return -10;
 5761|  19.9k|#endif
 5762|  19.9k|}
_ZN19simdjson_fast_float13binary_formatIfE22max_exponent_fast_pathEv:
 5824|  9.09k|inline constexpr int binary_format<float>::max_exponent_fast_path() {
 5825|  9.09k|  return 10;
 5826|  9.09k|}
_ZN19simdjson_fast_float13binary_formatIfE22max_mantissa_fast_pathEv:
 5834|  2.43k|inline constexpr uint64_t binary_format<float>::max_mantissa_fast_path() {
 5835|  2.43k|  return uint64_t(2) << mantissa_explicit_bits();
 5836|  2.43k|}
_ZN19simdjson_fast_float13binary_formatIfE18exact_power_of_tenEl:
 6115|  1.42k|inline constexpr float binary_format<float>::exact_power_of_ten(int64_t power) {
 6116|       |  // Work around clang bug https://godbolt.org/z/zedh7rrhc
 6117|  1.42k|  return static_cast<void>(powers_of_ten[0]), powers_of_ten[power];
 6118|  1.42k|}
_ZN19simdjson_fast_float13compute_floatINS_13binary_formatIfEEEENS_17adjusted_mantissaElm:
 8196|   247k|compute_float(int64_t q, uint64_t w) noexcept {
 8197|   247k|  adjusted_mantissa answer;
 8198|   247k|  if ((w == 0) || (q < binary::smallest_power_of_ten())) {
  ------------------
  |  Branch (8198:7): [True: 6.13k, False: 241k]
  |  Branch (8198:19): [True: 25.7k, False: 215k]
  ------------------
 8199|  31.9k|    answer.power2 = 0;
 8200|  31.9k|    answer.mantissa = 0;
 8201|       |    // result should be zero
 8202|  31.9k|    return answer;
 8203|  31.9k|  }
 8204|   215k|  if (q > binary::largest_power_of_ten()) {
  ------------------
  |  Branch (8204:7): [True: 1.34k, False: 214k]
  ------------------
 8205|       |    // we want to get infinity:
 8206|  1.34k|    answer.power2 = binary::infinite_power();
 8207|  1.34k|    answer.mantissa = 0;
 8208|  1.34k|    return answer;
 8209|  1.34k|  }
 8210|       |  // At this point in time q is in [powers::smallest_power_of_five,
 8211|       |  // powers::largest_power_of_five].
 8212|       |
 8213|       |  // We want the most significant bit of i to be 1. Shift if needed.
 8214|   214k|  int lz = leading_zeroes(w);
 8215|   214k|  w <<= lz;
 8216|       |
 8217|       |  // The required precision is binary::mantissa_explicit_bits() + 3 because
 8218|       |  // 1. We need the implicit bit
 8219|       |  // 2. We need an extra bit for rounding purposes
 8220|       |  // 3. We might lose a bit due to the "upperbit" routine (result too small,
 8221|       |  // requiring a shift)
 8222|       |
 8223|   214k|  value128 product =
 8224|   214k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 8225|       |  // The computed 'product' is always sufficient.
 8226|       |  // Mathematical proof:
 8227|       |  // Noble Mushtak and Daniel Lemire, Fast Number Parsing Without Fallback (to
 8228|       |  // appear) See script/mushtak_lemire.py
 8229|       |
 8230|       |  // The "compute_product_approximation" function can be slightly slower than a
 8231|       |  // branchless approach: value128 product = compute_product(q, w); but in
 8232|       |  // practice, we can win big with the compute_product_approximation if its
 8233|       |  // additional branch is easily predicted. Which is best is data specific.
 8234|   214k|  int upperbit = int(product.high >> 63);
 8235|   214k|  int shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3;
 8236|       |
 8237|   214k|  answer.mantissa = product.high >> shift;
 8238|       |
 8239|   214k|  answer.power2 = int32_t(detail::power(int32_t(q)) + upperbit - lz -
 8240|   214k|                          binary::minimum_exponent());
 8241|   214k|  if (answer.power2 <= 0) { // we have a subnormal?
  ------------------
  |  Branch (8241:7): [True: 15.5k, False: 198k]
  ------------------
 8242|       |    // Here have that answer.power2 <= 0 so -answer.power2 >= 0
 8243|  15.5k|    if (-answer.power2 + 1 >=
  ------------------
  |  Branch (8243:9): [True: 202, False: 15.3k]
  ------------------
 8244|  15.5k|        64) { // if we have more than 64 bits below the minimum exponent, you
 8245|       |              // have a zero for sure.
 8246|    202|      answer.power2 = 0;
 8247|    202|      answer.mantissa = 0;
 8248|       |      // result should be zero
 8249|    202|      return answer;
 8250|    202|    }
 8251|       |    // next line is safe because -answer.power2 + 1 < 64
 8252|  15.3k|    answer.mantissa >>= -answer.power2 + 1;
 8253|       |    // Thankfully, we can't have both "round-to-even" and subnormals because
 8254|       |    // "round-to-even" only occurs for powers close to 0 in the 32-bit and
 8255|       |    // and 64-bit case (with no more than 19 digits).
 8256|  15.3k|    answer.mantissa += (answer.mantissa & 1); // round up
 8257|  15.3k|    answer.mantissa >>= 1;
 8258|       |    // There is a weird scenario where we don't have a subnormal but just.
 8259|       |    // Suppose we start with 2.2250738585072013e-308, we end up
 8260|       |    // with 0x3fffffffffffff x 2^-1023-53 which is technically subnormal
 8261|       |    // whereas 0x40000000000000 x 2^-1023-53  is normal. Now, we need to round
 8262|       |    // up 0x3fffffffffffff x 2^-1023-53  and once we do, we are no longer
 8263|       |    // subnormal, but we can only know this after rounding.
 8264|       |    // So we only declare a subnormal if we are smaller than the threshold.
 8265|  15.3k|    answer.power2 =
 8266|  15.3k|        (answer.mantissa < (uint64_t(1) << binary::mantissa_explicit_bits()))
  ------------------
  |  Branch (8266:9): [True: 15.3k, False: 0]
  ------------------
 8267|  15.3k|            ? 0
 8268|  15.3k|            : 1;
 8269|  15.3k|    return answer;
 8270|  15.5k|  }
 8271|       |
 8272|       |  // usually, we round *up*, but if we fall right in between and and we have an
 8273|       |  // even basis, we need to round down
 8274|       |  // We are only concerned with the cases where 5**q fits in single 64-bit word.
 8275|   198k|  if ((product.low <= 1) && (q >= binary::min_exponent_round_to_even()) &&
  ------------------
  |  Branch (8275:7): [True: 46.3k, False: 152k]
  |  Branch (8275:29): [True: 40.4k, False: 5.91k]
  ------------------
 8276|  40.4k|      (q <= binary::max_exponent_round_to_even()) &&
  ------------------
  |  Branch (8276:7): [True: 39.6k, False: 755]
  ------------------
 8277|  39.6k|      ((answer.mantissa & 3) == 1)) { // we may fall between two floats!
  ------------------
  |  Branch (8277:7): [True: 21.6k, False: 18.0k]
  ------------------
 8278|       |    // To be in-between two floats we need that in doing
 8279|       |    //   answer.mantissa = product.high >> (upperbit + 64 -
 8280|       |    //   binary::mantissa_explicit_bits() - 3);
 8281|       |    // ... we dropped out only zeroes. But if this happened, then we can go
 8282|       |    // back!!!
 8283|  21.6k|    if ((answer.mantissa << shift) == product.high) {
  ------------------
  |  Branch (8283:9): [True: 8.28k, False: 13.3k]
  ------------------
 8284|  8.28k|      answer.mantissa &= ~uint64_t(1); // flip it so that we do not round up
 8285|  8.28k|    }
 8286|  21.6k|  }
 8287|       |
 8288|   198k|  answer.mantissa += (answer.mantissa & 1); // round up
 8289|   198k|  answer.mantissa >>= 1;
 8290|   198k|  if (answer.mantissa >= (uint64_t(2) << binary::mantissa_explicit_bits())) {
  ------------------
  |  Branch (8290:7): [True: 8.77k, False: 190k]
  ------------------
 8291|  8.77k|    answer.mantissa = (uint64_t(1) << binary::mantissa_explicit_bits());
 8292|  8.77k|    answer.power2++; // undo previous addition
 8293|  8.77k|  }
 8294|       |
 8295|   198k|  answer.mantissa &= ~(uint64_t(1) << binary::mantissa_explicit_bits());
 8296|   198k|  if (answer.power2 >= binary::infinite_power()) { // infinity
  ------------------
  |  Branch (8296:7): [True: 239, False: 198k]
  ------------------
 8297|    239|    answer.power2 = binary::infinite_power();
 8298|    239|    answer.mantissa = 0;
 8299|    239|  }
 8300|   198k|  return answer;
 8301|   214k|}
_ZN19simdjson_fast_float13binary_formatIfE21smallest_power_of_tenEv:
 6133|   241k|template <> inline constexpr int binary_format<float>::smallest_power_of_ten() {
 6134|   241k|  return -64;
 6135|   241k|}
_ZN19simdjson_fast_float13binary_formatIfE20largest_power_of_tenEv:
 6124|   215k|template <> inline constexpr int binary_format<float>::largest_power_of_ten() {
 6125|   215k|  return 38;
 6126|   215k|}
_ZN19simdjson_fast_float13binary_formatIfE26min_exponent_round_to_evenEv:
 5790|  46.3k|inline constexpr int binary_format<float>::min_exponent_round_to_even() {
 5791|  46.3k|  return -17;
 5792|  46.3k|}
_ZN19simdjson_fast_float13binary_formatIfE26max_exponent_round_to_evenEv:
 5780|  40.4k|inline constexpr int binary_format<float>::max_exponent_round_to_even() {
 5781|  40.4k|  return 10;
 5782|  40.4k|}
_ZN19simdjson_fast_float8to_floatIfEEvbNS_17adjusted_mantissaERT_:
 6183|   143k|to_float(bool negative, adjusted_mantissa am, T &value) {
 6184|   143k|  using equiv_uint = equiv_uint_t<T>;
 6185|   143k|  equiv_uint word = equiv_uint(am.mantissa);
 6186|   143k|  word = equiv_uint(word | equiv_uint(am.power2)
 6187|   143k|                               << binary_format<T>::mantissa_explicit_bits());
 6188|   143k|  word =
 6189|   143k|      equiv_uint(word | equiv_uint(negative) << binary_format<T>::sign_index());
 6190|   143k|#if SIMDJSON_FASTFLOAT_HAS_BIT_CAST
 6191|   143k|  value = std::bit_cast<T>(word);
 6192|       |#else
 6193|       |  ::memcpy(&value, &word, sizeof(T));
 6194|       |#endif
 6195|   143k|}
_ZN19simdjson_fast_float13binary_formatIfE10sign_indexEv:
 5814|   143k|template <> inline constexpr int binary_format<float>::sign_index() {
 5815|   143k|  return 31;
 5816|   143k|}
_ZN19simdjson_fast_float13binary_formatIfE14infinite_powerEv:
 5806|   336k|template <> inline constexpr int binary_format<float>::infinite_power() {
 5807|   336k|  return 0xFF;
 5808|   336k|}
_ZN8simdjson8internal10atomic_ptrIKNS_14implementationEEaSEPS3_:
12297|      1|  atomic_ptr& operator=(T *_ptr) { ptr = _ptr; return *this; }
_ZN8simdjson8internal10atomic_ptrIKNS_14implementationEEcvPS3_Ev:
12294|      1|  operator T*() { return ptr.load(); }
_ZN8simdjson8internal10atomic_ptrIKNS_14implementationEEC2EPS3_:
12288|      1|  atomic_ptr(T *_ptr) : ptr{_ptr} {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm128EEC2EPKhm:
25994|   115k|simdjson_inline buf_block_reader<STEP_SIZE>::buf_block_reader(const uint8_t *_buf, size_t _len) : buf{_buf}, len{_len}, lenminusstep{len < STEP_SIZE ? 0 : len - STEP_SIZE}, idx{0} {}
  ------------------
  |  Branch (25994:134): [True: 31.3k, False: 84.4k]
  ------------------
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage112json_scannerC2Ev:
26638|   115k|  json_scanner() = default;
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm128EE14has_full_blockEv:
26000|  9.97M|simdjson_inline bool buf_block_reader<STEP_SIZE>::has_full_block() const {
26001|  9.97M|  return idx < lenminusstep;
26002|  9.97M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage112json_scanner4nextERKNS1_4simd8simd8x64IhEE:
26664|  19.9M|simdjson_inline json_block json_scanner::next(const simd::simd8x64<uint8_t>& in) {
26665|  19.9M|  json_string_block strings = string_scanner.next(in);
26666|       |  // identifies the white-space and the structural characters
26667|  19.9M|  json_character_block characters = json_character_block::classify(in);
26668|       |  // The term "scalar" refers to anything except structural characters and white space
26669|       |  // (so letters, numbers, quotes).
26670|       |  // We want follows_scalar to mark anything that follows a non-quote scalar (so letters and numbers).
26671|       |  //
26672|       |  // A terminal quote should either be followed by a structural character (comma, brace, bracket, colon)
26673|       |  // or nothing. However, we still want ' "a string"true ' to mark the 't' of 'true' as a potential
26674|       |  // pseudo-structural character just like we would if we had  ' "a string" true '; otherwise we
26675|       |  // may need to add an extra check when parsing strings.
26676|       |  //
26677|       |  // Performance: there are many ways to skin this cat.
26678|  19.9M|  const uint64_t nonquote_scalar = characters.scalar() & ~strings.quote();
26679|  19.9M|  uint64_t follows_nonquote_scalar = follows(nonquote_scalar, prev_scalar);
26680|       |  // We are returning a function-local object so either we get a move constructor
26681|       |  // or we get copy elision.
26682|  19.9M|  return json_block(
26683|  19.9M|    strings,// strings is a function-local object so either it moves or the copy is elided.
26684|  19.9M|    characters,
26685|  19.9M|    follows_nonquote_scalar
26686|  19.9M|  );
26687|  19.9M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage119json_string_scanner4nextERKNS1_4simd8simd8x64IhEE:
26278|  19.9M|simdjson_really_inline json_string_block json_string_scanner::next(const simd::simd8x64<uint8_t>& in) {
26279|  19.9M|  const uint64_t backslash = in.eq('\\');
26280|  19.9M|  const uint64_t escaped = escape_scanner.next(backslash).escaped;
26281|  19.9M|  const uint64_t quote = in.eq('"') & ~escaped;
26282|       |
26283|       |  //
26284|       |  // prefix_xor flips on bits inside the string (and flips off the end quote).
26285|       |  //
26286|       |  // Then we xor with prev_in_string: if we were in a string already, its effect is flipped
26287|       |  // (characters inside strings are outside, and characters outside strings are inside).
26288|       |  //
26289|  19.9M|  const uint64_t in_string = prefix_xor(quote) ^ prev_in_string;
26290|       |
26291|       |  //
26292|       |  // Check if we're still in a string at the end of the box so the next block will know
26293|       |  //
26294|  19.9M|  prev_in_string = uint64_t(static_cast<int64_t>(in_string) >> 63);
26295|       |
26296|       |  // Use ^ to turn the beginning quote off, and the end quote on.
26297|       |
26298|       |  // We are returning a function-local object so either we get a move constructor
26299|       |  // or we get copy elision.
26300|  19.9M|  return json_string_block(escaped, quote, in_string);
26301|  19.9M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhE2eqEh:
22564|  39.9M|    simdjson_inline uint64_t eq(const T m) const {
22565|  39.9M|      const simd8<T> mask = simd8<T>::splat(m);
22566|  39.9M|      return  simd8x64<bool>(
22567|  39.9M|        this->chunks[0] == mask,
22568|  39.9M|        this->chunks[1] == mask
22569|  39.9M|      ).to_bitmask();
22570|  39.9M|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IbEC2ENS2_5simd8IbEES6_:
22530|  99.7M|    simdjson_inline simd8x64(const simd8<T> chunk0, const simd8<T> chunk1) : chunks{chunk0, chunk1} {}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IbE10to_bitmaskEv:
22546|  99.7M|    simdjson_inline uint64_t to_bitmask() const {
22547|  99.7M|      uint64_t r_lo = uint32_t(this->chunks[0].to_bitmask());
22548|  99.7M|      uint64_t r_hi =                       this->chunks[1].to_bitmask();
22549|  99.7M|      return r_lo | (r_hi << 32);
22550|  99.7M|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage119json_escape_scanner4nextEm:
26112|  19.9M|  simdjson_really_inline escaped_and_escape next(uint64_t backslash) noexcept {
26113|       |
26114|  19.9M|#if !SIMDJSON_SKIP_BACKSLASH_SHORT_CIRCUIT
26115|  19.9M|    if (!backslash) { return {next_escaped_without_backslashes(), 0}; }
  ------------------
  |  Branch (26115:9): [True: 19.3M, False: 637k]
  ------------------
26116|   637k|#endif
26117|       |
26118|       |    // |                                | Mask (shows characters instead of 1's) | Depth | Instructions        |
26119|       |    // |--------------------------------|----------------------------------------|-------|---------------------|
26120|       |    // | string                         | `\\n_\\\n___\\\n___\\\\___\\\\__\\\`   |       |                     |
26121|       |    // |                                | `    even   odd    even   odd   odd`   |       |                     |
26122|       |    // | potential_escape               | ` \  \\\    \\\    \\\\   \\\\  \\\`   | 1     | 1 (backslash & ~first_is_escaped)
26123|       |    // | escape_and_terminal_code       | ` \n \ \n   \ \n   \ \    \ \   \ \`   | 5     | 5 (next_escape_and_terminal_code())
26124|       |    // | escaped                        | `\    \ n    \ n    \ \    \ \   \ ` X | 6     | 7 (escape_and_terminal_code ^ (potential_escape | first_is_escaped))
26125|       |    // | escape                         | `    \ \    \ \    \ \    \ \   \ \`   | 6     | 8 (escape_and_terminal_code & backslash)
26126|       |    // | first_is_escaped               | `\                                 `   | 7 (*) | 9 (escape >> 63) ()
26127|       |    //                                                                               (*) this is not needed until the next iteration
26128|   637k|    uint64_t escape_and_terminal_code = next_escape_and_terminal_code(backslash & ~this->next_is_escaped);
26129|   637k|    uint64_t escaped = escape_and_terminal_code ^ (backslash | this->next_is_escaped);
26130|   637k|    uint64_t escape = escape_and_terminal_code & backslash;
26131|   637k|    this->next_is_escaped = escape >> 63;
26132|   637k|    return {escaped, escape};
26133|  19.9M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage119json_escape_scanner32next_escaped_without_backslashesEv:
26138|  19.3M|  simdjson_really_inline uint64_t next_escaped_without_backslashes() noexcept {
26139|  19.3M|    uint64_t escaped = this->next_is_escaped;
26140|  19.3M|    this->next_is_escaped = 0;
26141|  19.3M|    return escaped;
26142|  19.3M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage119json_escape_scanner29next_escape_and_terminal_codeEm:
26158|   637k|  static simdjson_really_inline uint64_t next_escape_and_terminal_code(uint64_t potential_escape) noexcept {
26159|       |    // If we were to just shift and mask out any odd bits, we'd actually get a *half* right answer:
26160|       |    // any even-aligned backslash runs would be correct! Odd-aligned backslash runs would be
26161|       |    // inverted (\\\ would be 010 instead of 101).
26162|       |    //
26163|       |    // ```
26164|       |    // string:              | ____\\\\_\\\\_____ |
26165|       |    // maybe_escaped | ODD  |     \ \   \ \      |
26166|       |    //               even-aligned ^^^  ^^^^ odd-aligned
26167|       |    // ```
26168|       |    //
26169|       |    // Taking that into account, our basic strategy is:
26170|       |    //
26171|       |    // 1. Use subtraction to produce a mask with 1's for even-aligned runs and 0's for
26172|       |    //    odd-aligned runs.
26173|       |    // 2. XOR all odd bits, which masks out the odd bits in even-aligned runs, and brings IN the
26174|       |    //    odd bits in odd-aligned runs.
26175|       |    // 3. & with backslash to clean up any stray bits.
26176|       |    // runs are set to 0, and then XORing with "odd":
26177|       |    //
26178|       |    // |                                | Mask (shows characters instead of 1's) | Instructions        |
26179|       |    // |--------------------------------|----------------------------------------|---------------------|
26180|       |    // | string                         | `\\n_\\\n___\\\n___\\\\___\\\\__\\\`   |
26181|       |    // |                                | `    even   odd    even   odd   odd`   |
26182|       |    // | maybe_escaped                  | `  n  \\n    \\n    \\\_   \\\_  \\` X | 1 (potential_escape << 1)
26183|       |    // | maybe_escaped_and_odd          | ` \n_ \\n _ \\\n_ _ \\\__ _\\\_ \\\`   | 1 (maybe_escaped | odd)
26184|       |    // | even_series_codes_and_odd      | `  n_\\\  _    n_ _\\\\ _     _    `   | 1 (maybe_escaped_and_odd - potential_escape)
26185|       |    // | escape_and_terminal_code       | ` \n \ \n   \ \n   \ \    \ \   \ \`   | 1 (^ odd)
26186|       |    //
26187|       |
26188|       |    // Escaped characters are characters following an escape.
26189|   637k|    uint64_t maybe_escaped = potential_escape << 1;
26190|       |
26191|       |    // To distinguish odd from even escape sequences, therefore, we turn on any *starting*
26192|       |    // escapes that are on an odd byte. (We actually bring in all odd bits, for speed.)
26193|       |    // - Odd runs of backslashes are 0000, and the code at the end ("n" in \n or \\n) is 1.
26194|       |    // - Odd runs of backslashes are 1111, and the code at the end ("n" in \n or \\n) is 0.
26195|       |    // - All other odd bytes are 1, and even bytes are 0.
26196|   637k|    uint64_t maybe_escaped_and_odd_bits     = maybe_escaped | ODD_BITS;
26197|   637k|    uint64_t even_series_codes_and_odd_bits = maybe_escaped_and_odd_bits - potential_escape;
26198|       |
26199|       |    // Now we flip all odd bytes back with xor. This:
26200|       |    // - Makes odd runs of backslashes go from 0000 to 1010
26201|       |    // - Makes even runs of backslashes go from 1111 to 1010
26202|       |    // - Sets actually-escaped codes to 1 (the n in \n and \\n: \n = 11, \\n = 100)
26203|       |    // - Resets all other bytes to 0
26204|   637k|    return even_series_codes_and_odd_bits ^ ODD_BITS;
26205|   637k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_110prefix_xorEm:
22142|  19.9M|simdjson_inline uint64_t prefix_xor(const uint64_t bitmask) {
22143|       |  // There should be no such thing with a processor supporting avx2
22144|       |  // but not clmul.
22145|  19.9M|  __m128i all_ones = _mm_set1_epi8('\xFF');
22146|       |  __m128i result = _mm_clmulepi64_si128(_mm_set_epi64x(0ULL, bitmask), all_ones, 0);
22147|  19.9M|  return _mm_cvtsi128_si64(result);
22148|  19.9M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage117json_string_blockC2Emmm:
26233|  19.9M|  _escaped(escaped), _quote(quote), _in_string(in_string) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_120json_character_block8classifyERKNS1_4simd8simd8x64IhEE:
29233|  19.9M|simdjson_inline json_character_block json_character_block::classify(const simd::simd8x64<uint8_t>& in) {
29234|       |  // These lookups rely on the fact that anything < 127 will match the lower 4 bits, which is why
29235|       |  // we can't use the generic lookup_16.
29236|  19.9M|  const auto whitespace_table = simd8<uint8_t>::repeat_16(' ', 100, 100, 100, 17, 100, 113, 2, 100, '\t', '\n', 112, 100, '\r', 100, 100);
29237|       |
29238|       |  // The 6 operators (:,[]{}) have these values:
29239|       |  //
29240|       |  // , 2C
29241|       |  // : 3A
29242|       |  // [ 5B
29243|       |  // { 7B
29244|       |  // ] 5D
29245|       |  // } 7D
29246|       |  //
29247|       |  // If you use | 0x20 to turn [ and ] into { and }, the lower 4 bits of each character is unique.
29248|       |  // We exploit this, using a simd 4-bit lookup to tell us which character match against, and then
29249|       |  // match it (against | 0x20).
29250|       |  //
29251|       |  // To prevent recognizing other characters, everything else gets compared with 0, which cannot
29252|       |  // match due to the | 0x20.
29253|       |  //
29254|       |  // NOTE: Due to the | 0x20, this ALSO treats <FF> and <SUB> (control characters 0C and 1A) like ,
29255|       |  // and :. This gets caught in stage 2, which checks the actual character to ensure the right
29256|       |  // operators are in the right places.
29257|  19.9M|  const auto op_table = simd8<uint8_t>::repeat_16(
29258|  19.9M|    0, 0, 0, 0,
29259|  19.9M|    0, 0, 0, 0,
29260|  19.9M|    0, 0, ':', '{', // : = 3A, [ = 5B, { = 7B
29261|  19.9M|    ',', '}', 0, 0  // , = 2C, ] = 5D, } = 7D
29262|  19.9M|  );
29263|       |
29264|       |  // We compute whitespace and op separately. If later code only uses one or the
29265|       |  // other, given the fact that all functions are aggressively inlined, we can
29266|       |  // hope that useless computations will be omitted. This is namely case when
29267|       |  // minifying (we only need whitespace).
29268|       |
29269|  19.9M|  const uint64_t whitespace = in.eq({
29270|  19.9M|    _mm256_shuffle_epi8(whitespace_table, in.chunks[0]),
29271|  19.9M|    _mm256_shuffle_epi8(whitespace_table, in.chunks[1])
29272|  19.9M|  });
29273|       |  // Turn [ and ] into { and }
29274|  19.9M|  const simd8x64<uint8_t> curlified{
29275|  19.9M|    in.chunks[0] | 0x20,
29276|  19.9M|    in.chunks[1] | 0x20
29277|  19.9M|  };
29278|  19.9M|  const uint64_t op = curlified.eq({
29279|  19.9M|    _mm256_shuffle_epi8(op_table, in.chunks[0]),
29280|  19.9M|    _mm256_shuffle_epi8(op_table, in.chunks[1])
29281|  19.9M|  });
29282|       |
29283|  19.9M|  return { whitespace, op };
29284|  19.9M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhE2eqERKS4_:
22572|  39.9M|    simdjson_inline uint64_t eq(const simd8x64<uint8_t> &other) const {
22573|  39.9M|      return  simd8x64<bool>(
22574|  39.9M|        this->chunks[0] == other.chunks[0],
22575|  39.9M|        this->chunks[1] == other.chunks[1]
22576|  39.9M|      ).to_bitmask();
22577|  39.9M|    }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhEC2ENS2_5simd8IhEES6_:
22530|  59.8M|    simdjson_inline simd8x64(const simd8<T> chunk0, const simd8<T> chunk1) : chunks{chunk0, chunk1} {}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_120json_character_block6scalarEv:
25886|  39.9M|  simdjson_inline uint64_t scalar() const noexcept { return ~(op() | whitespace()); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_120json_character_block2opEv:
25885|  59.8M|  simdjson_inline uint64_t op() const noexcept { return _op; }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_120json_character_block10whitespaceEv:
25884|  39.9M|  simdjson_inline uint64_t whitespace() const noexcept { return _whitespace; }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage117json_string_block5quoteEv:
26238|  19.9M|  simdjson_really_inline uint64_t quote() const { return _quote; }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage17followsEmRm:
26658|  19.9M|simdjson_inline uint64_t follows(const uint64_t match, uint64_t &overflow) {
26659|  19.9M|  const uint64_t result = match << 1 | overflow;
26660|  19.9M|  overflow = match >> 63;
26661|  19.9M|  return result;
26662|  19.9M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage110json_blockC2ENS2_17json_string_blockENS1_20json_character_blockEm:
26568|  19.9M|  _string(string), _characters(characters), _follows_potential_nonquote_scalar(follows_potential_nonquote_scalar) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_110count_onesEm:
22111|  11.1M|simdjson_inline long long int count_ones(uint64_t input_num) {
22112|       |  return _popcnt64(input_num);
22113|  11.1M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm128EE7advanceEv:
26050|  9.97M|simdjson_inline void buf_block_reader<STEP_SIZE>::advance() {
26051|  9.97M|  idx += STEP_SIZE;
26052|  9.97M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm128EE10full_blockEv:
26005|  9.86M|simdjson_inline const uint8_t *buf_block_reader<STEP_SIZE>::full_block() const {
26006|  9.86M|  return &buf[idx];
26007|  9.86M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage112json_scanner6finishEv:
26689|   115k|simdjson_warn_unused simdjson_inline error_code json_scanner::finish() {
26690|   115k|  return string_scanner.finish();
26691|   115k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage119json_string_scanner6finishEv:
26303|   115k|simdjson_really_inline error_code json_string_scanner::finish() {
26304|   115k|  if (prev_in_string) {
  ------------------
  |  Branch (26304:7): [True: 479, False: 115k]
  ------------------
26305|    479|    return UNCLOSED_STRING;
26306|    479|  }
26307|   115k|  return SUCCESS;
26308|   115k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage123json_structural_indexer5indexILm128EEENS_10error_codeEPKhmRNS0_25dom_parser_implementationENS_11stage1_modeE:
27472|   115k|error_code json_structural_indexer::index(const uint8_t *buf, size_t len, dom_parser_implementation &parser, stage1_mode partial) noexcept {
27473|   115k|  if (simdjson_unlikely(len > parser.capacity())) { return CAPACITY; }
  ------------------
  |  |  747|   115k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 115k]
  |  |  ------------------
  ------------------
27474|       |  // We guard the rest of the code so that we can assume that len > 0 throughout.
27475|   115k|  if (len == 0) { return EMPTY; }
  ------------------
  |  Branch (27475:7): [True: 3, False: 115k]
  ------------------
27476|   115k|  if (is_streaming(partial)) {
  ------------------
  |  Branch (27476:7): [True: 0, False: 115k]
  ------------------
27477|      0|    len = trim_partial_utf8(buf, len);
27478|       |    // If you end up with an empty window after trimming
27479|       |    // the partial UTF-8 bytes, then chances are good that you
27480|       |    // have an UTF-8 formatting error.
27481|      0|    if(len == 0) { return UTF8_ERROR; }
  ------------------
  |  Branch (27481:8): [True: 0, False: 0]
  ------------------
27482|      0|  }
27483|   115k|  buf_block_reader<STEP_SIZE> reader(buf, len);
27484|   115k|  json_structural_indexer indexer(parser.structural_indexes.get());
27485|       |
27486|       |  // Read all but the last block
27487|  9.97M|  while (reader.has_full_block()) {
  ------------------
  |  Branch (27487:10): [True: 9.86M, False: 115k]
  ------------------
27488|  9.86M|    indexer.step<STEP_SIZE>(reader.full_block(), reader);
27489|  9.86M|  }
27490|       |  // Take care of the last block (will always be there unless file is empty which is
27491|       |  // not supposed to happen.)
27492|   115k|  uint8_t block[STEP_SIZE];
27493|   115k|  const size_t remaining = parser._unpadded ? reader.get_remainder(block) : reader.get_remainder_padded(block);
  ------------------
  |  Branch (27493:28): [True: 0, False: 115k]
  ------------------
27494|   115k|  if (simdjson_unlikely(remaining == 0)) { return UNEXPECTED_ERROR; }
  ------------------
  |  |  747|   115k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 115k]
  |  |  ------------------
  ------------------
27495|   115k|  indexer.step<STEP_SIZE>(block, reader);
27496|   115k|  return indexer.finish(parser, reader.block_index(), len, partial);
27497|   115k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage117trim_partial_utf8EPKhm:
27434|    253|simdjson_inline size_t trim_partial_utf8(const uint8_t *buf, size_t len) {
27435|    253|  if (simdjson_unlikely(len < 3)) {
  ------------------
  |  |  747|    253|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 7, False: 246]
  |  |  ------------------
  ------------------
27436|      7|    switch (len) {
  ------------------
  |  Branch (27436:13): [True: 7, False: 0]
  ------------------
27437|      7|      case 2:
  ------------------
  |  Branch (27437:7): [True: 7, False: 0]
  ------------------
27438|      7|        if (buf[len-1] >= 0xc0) { return len-1; } // 2-, 3- and 4-byte characters with only 1 byte left
  ------------------
  |  Branch (27438:13): [True: 1, False: 6]
  ------------------
27439|      6|        if (buf[len-2] >= 0xe0) { return len-2; } // 3- and 4-byte characters with only 2 bytes left
  ------------------
  |  Branch (27439:13): [True: 1, False: 5]
  ------------------
27440|      5|        return len;
27441|      0|      case 1:
  ------------------
  |  Branch (27441:7): [True: 0, False: 7]
  ------------------
27442|      0|        if (buf[len-1] >= 0xc0) { return len-1; } // 2-, 3- and 4-byte characters with only 1 byte left
  ------------------
  |  Branch (27442:13): [True: 0, False: 0]
  ------------------
27443|      0|        return len;
27444|      0|      case 0:
  ------------------
  |  Branch (27444:7): [True: 0, False: 7]
  ------------------
27445|      0|        return len;
27446|      7|    }
27447|      7|  }
27448|    246|  if (buf[len-1] >= 0xc0) { return len-1; } // 2-, 3- and 4-byte characters with only 1 byte left
  ------------------
  |  Branch (27448:7): [True: 28, False: 218]
  ------------------
27449|    218|  if (buf[len-2] >= 0xe0) { return len-2; } // 3- and 4-byte characters with only 1 byte left
  ------------------
  |  Branch (27449:7): [True: 17, False: 201]
  ------------------
27450|    201|  if (buf[len-3] >= 0xf0) { return len-3; } // 4-byte characters with only 3 bytes left
  ------------------
  |  Branch (27450:7): [True: 12, False: 189]
  ------------------
27451|    189|  return len;
27452|    201|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage123json_structural_indexerC2EPj:
27431|   115k|simdjson_inline json_structural_indexer::json_structural_indexer(uint32_t *structural_indexes) : indexer{structural_indexes} {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexerC2EPj:
27306|   115k|  simdjson_inline bit_indexer(uint32_t *index_buf) : tail(index_buf) {}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage123json_structural_indexer4stepILm128EEEvPKhRNS2_16buf_block_readerIXT_EEE:
27500|  9.97M|simdjson_inline void json_structural_indexer::step<128>(const uint8_t *block, buf_block_reader<128> &reader) noexcept {
27501|  9.97M|  simd::simd8x64<uint8_t> in_1(block);
27502|  9.97M|  simd::simd8x64<uint8_t> in_2(block+64);
27503|  9.97M|  json_block block_1 = scanner.next(in_1);
27504|  9.97M|  json_block block_2 = scanner.next(in_2);
27505|  9.97M|  this->next(in_1, block_1, reader.block_index());
27506|  9.97M|  this->next(in_2, block_2, reader.block_index()+64);
27507|  9.97M|  reader.advance();
27508|  9.97M|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage123json_structural_indexer4nextERKNS1_4simd8simd8x64IhEERKNS2_10json_blockEm:
27518|  19.9M|simdjson_inline void json_structural_indexer::next(const simd::simd8x64<uint8_t>& in, const json_block& block, size_t idx) {
27519|  19.9M|  uint64_t unescaped = in.lteq(0x1F);
27520|  19.9M|#if SIMDJSON_UTF8VALIDATION
27521|  19.9M|  checker.check_next_input(in);
27522|  19.9M|#endif
27523|  19.9M|  indexer.write(uint32_t(idx-64), prev_structurals); // Output *last* iteration's structurals to the parser
27524|  19.9M|  prev_structurals = block.structural_start();
27525|  19.9M|  unescaped_chars_error |= block.non_quote_inside_string(unescaped);
27526|  19.9M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd8simd8x64IhE4lteqEh:
22579|  19.9M|    simdjson_inline uint64_t lteq(const T m) const {
22580|  19.9M|      const simd8<T> mask = simd8<T>::splat(m);
22581|  19.9M|      return  simd8x64<bool>(
22582|  19.9M|        this->chunks[0] <= mask,
22583|  19.9M|        this->chunks[1] <= mask
22584|  19.9M|      ).to_bitmask();
22585|  19.9M|    }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhEleES4_:
22494|  39.9M|    simdjson_inline simd8<bool> operator<=(const simd8<uint8_t> other) const { return other.max_val(*this) == other; }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_14simd5simd8IhE7max_valES4_:
22488|  39.9M|    simdjson_inline simd8<uint8_t> max_val(const simd8<uint8_t> other) const { return _mm256_max_epu8(*this, other); }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer5writeEjm:
27371|  20.0M|  simdjson_inline void write(uint32_t idx, uint64_t bits) {
27372|       |    // In some instances, the next branch is expensive because it is mispredicted.
27373|       |    // Unfortunately, in other cases,
27374|       |    // it helps tremendously.
27375|  20.0M|    if (bits == 0)
  ------------------
  |  Branch (27375:9): [True: 8.87M, False: 11.1M]
  ------------------
27376|  8.87M|        return;
27377|       |
27378|  11.1M|    int cnt = static_cast<int>(count_ones(bits));
27379|       |
27380|       |#if SIMDJSON_PREFER_REVERSE_BITS
27381|       |    bits = reverse_bits(bits);
27382|       |#endif
27383|       |#ifdef SIMDJSON_STRUCTURAL_INDEXER_STEP
27384|       |    static constexpr const int STEP = SIMDJSON_STRUCTURAL_INDEXER_STEP;
27385|       |#else
27386|  11.1M|    static constexpr const int STEP = 4;
27387|  11.1M|#endif
27388|  11.1M|    static constexpr const int STEP_UNTIL = 24;
27389|       |
27390|  11.1M|    write_indexes_stepped<0, STEP_UNTIL, STEP>(idx, bits, cnt);
27391|  11.1M|    SIMDJSON_IF_CONSTEXPR (STEP_UNTIL < 64) {
  ------------------
  |  |   81|  11.1M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27392|  11.1M|      if (simdjson_unlikely(STEP_UNTIL < cnt)) {
  ------------------
  |  |  747|  11.1M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 193k, False: 10.9M]
  |  |  ------------------
  ------------------
27393|  2.21M|        for (int i=STEP_UNTIL; i<cnt; i++) {
  ------------------
  |  Branch (27393:32): [True: 2.02M, False: 193k]
  ------------------
27394|  2.02M|          write_index(idx, bits, i);
27395|  2.02M|        }
27396|   193k|      }
27397|  11.1M|    }
27398|       |
27399|  11.1M|    this->tail += cnt;
27400|  11.1M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer21write_indexes_steppedILi0ELi24ELi4EEEijRmi:
27350|  11.1M|  simdjson_inline int write_indexes_stepped(uint32_t idx, uint64_t& bits, int cnt) {
27351|  11.1M|    write_indexes<START, STEP>(idx, bits);
27352|  11.1M|    SIMDJSON_IF_CONSTEXPR ((START+STEP)  < END) {
  ------------------
  |  |   81|  11.1M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27353|  11.1M|      if (simdjson_unlikely((START+STEP) < cnt)) {
  ------------------
  |  |  747|  11.1M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 9.57M, False: 1.61M]
  |  |  ------------------
  ------------------
27354|  9.57M|        write_indexes_stepped<(START+STEP<END?START+STEP:END), END, STEP>(idx, bits, cnt);
27355|  9.57M|      }
27356|  11.1M|    }
27357|  11.1M|    return ((END-START) % STEP) == 0 ? END : (END-START) - ((END-START) % STEP) + STEP;
  ------------------
  |  Branch (27357:12): [True: 11.1M, Folded]
  ------------------
27358|  11.1M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi0ELi4EEEijRm:
27341|  11.1M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  11.1M|    write_index(idx, bits, START);
27343|  11.1M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  11.1M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  11.1M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  11.1M|    }
27346|  11.1M|    return START+N;
27347|  11.1M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi1ELi3EEEijRm:
27341|  11.1M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  11.1M|    write_index(idx, bits, START);
27343|  11.1M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  11.1M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  11.1M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  11.1M|    }
27346|  11.1M|    return START+N;
27347|  11.1M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi2ELi2EEEijRm:
27341|  11.1M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  11.1M|    write_index(idx, bits, START);
27343|  11.1M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  11.1M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  11.1M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  11.1M|    }
27346|  11.1M|    return START+N;
27347|  11.1M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi3ELi1EEEijRm:
27341|  11.1M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  11.1M|    write_index(idx, bits, START);
27343|  11.1M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  11.1M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|       |      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|       |    }
27346|  11.1M|    return START+N;
27347|  11.1M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer21write_indexes_steppedILi4ELi24ELi4EEEijRmi:
27350|  9.57M|  simdjson_inline int write_indexes_stepped(uint32_t idx, uint64_t& bits, int cnt) {
27351|  9.57M|    write_indexes<START, STEP>(idx, bits);
27352|  9.57M|    SIMDJSON_IF_CONSTEXPR ((START+STEP)  < END) {
  ------------------
  |  |   81|  9.57M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27353|  9.57M|      if (simdjson_unlikely((START+STEP) < cnt)) {
  ------------------
  |  |  747|  9.57M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 5.45M, False: 4.11M]
  |  |  ------------------
  ------------------
27354|  5.45M|        write_indexes_stepped<(START+STEP<END?START+STEP:END), END, STEP>(idx, bits, cnt);
27355|  5.45M|      }
27356|  9.57M|    }
27357|  9.57M|    return ((END-START) % STEP) == 0 ? END : (END-START) - ((END-START) % STEP) + STEP;
  ------------------
  |  Branch (27357:12): [True: 9.57M, Folded]
  ------------------
27358|  9.57M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi4ELi4EEEijRm:
27341|  9.57M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  9.57M|    write_index(idx, bits, START);
27343|  9.57M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  9.57M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  9.57M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  9.57M|    }
27346|  9.57M|    return START+N;
27347|  9.57M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi5ELi3EEEijRm:
27341|  9.57M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  9.57M|    write_index(idx, bits, START);
27343|  9.57M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  9.57M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  9.57M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  9.57M|    }
27346|  9.57M|    return START+N;
27347|  9.57M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi6ELi2EEEijRm:
27341|  9.57M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  9.57M|    write_index(idx, bits, START);
27343|  9.57M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  9.57M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  9.57M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  9.57M|    }
27346|  9.57M|    return START+N;
27347|  9.57M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi7ELi1EEEijRm:
27341|  9.57M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  9.57M|    write_index(idx, bits, START);
27343|  9.57M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  9.57M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|       |      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|       |    }
27346|  9.57M|    return START+N;
27347|  9.57M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer21write_indexes_steppedILi8ELi24ELi4EEEijRmi:
27350|  5.45M|  simdjson_inline int write_indexes_stepped(uint32_t idx, uint64_t& bits, int cnt) {
27351|  5.45M|    write_indexes<START, STEP>(idx, bits);
27352|  5.45M|    SIMDJSON_IF_CONSTEXPR ((START+STEP)  < END) {
  ------------------
  |  |   81|  5.45M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27353|  5.45M|      if (simdjson_unlikely((START+STEP) < cnt)) {
  ------------------
  |  |  747|  5.45M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 2.36M, False: 3.09M]
  |  |  ------------------
  ------------------
27354|  2.36M|        write_indexes_stepped<(START+STEP<END?START+STEP:END), END, STEP>(idx, bits, cnt);
27355|  2.36M|      }
27356|  5.45M|    }
27357|  5.45M|    return ((END-START) % STEP) == 0 ? END : (END-START) - ((END-START) % STEP) + STEP;
  ------------------
  |  Branch (27357:12): [True: 5.45M, Folded]
  ------------------
27358|  5.45M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi8ELi4EEEijRm:
27341|  5.45M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  5.45M|    write_index(idx, bits, START);
27343|  5.45M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  5.45M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  5.45M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  5.45M|    }
27346|  5.45M|    return START+N;
27347|  5.45M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi9ELi3EEEijRm:
27341|  5.45M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  5.45M|    write_index(idx, bits, START);
27343|  5.45M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  5.45M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  5.45M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  5.45M|    }
27346|  5.45M|    return START+N;
27347|  5.45M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi10ELi2EEEijRm:
27341|  5.45M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  5.45M|    write_index(idx, bits, START);
27343|  5.45M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  5.45M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  5.45M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  5.45M|    }
27346|  5.45M|    return START+N;
27347|  5.45M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi11ELi1EEEijRm:
27341|  5.45M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  5.45M|    write_index(idx, bits, START);
27343|  5.45M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  5.45M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|       |      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|       |    }
27346|  5.45M|    return START+N;
27347|  5.45M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer21write_indexes_steppedILi12ELi24ELi4EEEijRmi:
27350|  2.36M|  simdjson_inline int write_indexes_stepped(uint32_t idx, uint64_t& bits, int cnt) {
27351|  2.36M|    write_indexes<START, STEP>(idx, bits);
27352|  2.36M|    SIMDJSON_IF_CONSTEXPR ((START+STEP)  < END) {
  ------------------
  |  |   81|  2.36M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27353|  2.36M|      if (simdjson_unlikely((START+STEP) < cnt)) {
  ------------------
  |  |  747|  2.36M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 1.15M, False: 1.20M]
  |  |  ------------------
  ------------------
27354|  1.15M|        write_indexes_stepped<(START+STEP<END?START+STEP:END), END, STEP>(idx, bits, cnt);
27355|  1.15M|      }
27356|  2.36M|    }
27357|  2.36M|    return ((END-START) % STEP) == 0 ? END : (END-START) - ((END-START) % STEP) + STEP;
  ------------------
  |  Branch (27357:12): [True: 2.36M, Folded]
  ------------------
27358|  2.36M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi12ELi4EEEijRm:
27341|  2.36M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  2.36M|    write_index(idx, bits, START);
27343|  2.36M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  2.36M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  2.36M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  2.36M|    }
27346|  2.36M|    return START+N;
27347|  2.36M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi13ELi3EEEijRm:
27341|  2.36M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  2.36M|    write_index(idx, bits, START);
27343|  2.36M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  2.36M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  2.36M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  2.36M|    }
27346|  2.36M|    return START+N;
27347|  2.36M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi14ELi2EEEijRm:
27341|  2.36M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  2.36M|    write_index(idx, bits, START);
27343|  2.36M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  2.36M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  2.36M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  2.36M|    }
27346|  2.36M|    return START+N;
27347|  2.36M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi15ELi1EEEijRm:
27341|  2.36M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  2.36M|    write_index(idx, bits, START);
27343|  2.36M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  2.36M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|       |      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|       |    }
27346|  2.36M|    return START+N;
27347|  2.36M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer21write_indexes_steppedILi16ELi24ELi4EEEijRmi:
27350|  1.15M|  simdjson_inline int write_indexes_stepped(uint32_t idx, uint64_t& bits, int cnt) {
27351|  1.15M|    write_indexes<START, STEP>(idx, bits);
27352|  1.15M|    SIMDJSON_IF_CONSTEXPR ((START+STEP)  < END) {
  ------------------
  |  |   81|  1.15M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27353|  1.15M|      if (simdjson_unlikely((START+STEP) < cnt)) {
  ------------------
  |  |  747|  1.15M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 438k, False: 711k]
  |  |  ------------------
  ------------------
27354|   438k|        write_indexes_stepped<(START+STEP<END?START+STEP:END), END, STEP>(idx, bits, cnt);
27355|   438k|      }
27356|  1.15M|    }
27357|  1.15M|    return ((END-START) % STEP) == 0 ? END : (END-START) - ((END-START) % STEP) + STEP;
  ------------------
  |  Branch (27357:12): [True: 1.15M, Folded]
  ------------------
27358|  1.15M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi16ELi4EEEijRm:
27341|  1.15M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  1.15M|    write_index(idx, bits, START);
27343|  1.15M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  1.15M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  1.15M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  1.15M|    }
27346|  1.15M|    return START+N;
27347|  1.15M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi17ELi3EEEijRm:
27341|  1.15M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  1.15M|    write_index(idx, bits, START);
27343|  1.15M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  1.15M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  1.15M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  1.15M|    }
27346|  1.15M|    return START+N;
27347|  1.15M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi18ELi2EEEijRm:
27341|  1.15M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  1.15M|    write_index(idx, bits, START);
27343|  1.15M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  1.15M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|  1.15M|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|  1.15M|    }
27346|  1.15M|    return START+N;
27347|  1.15M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi19ELi1EEEijRm:
27341|  1.15M|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|  1.15M|    write_index(idx, bits, START);
27343|  1.15M|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|  1.15M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|       |      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|       |    }
27346|  1.15M|    return START+N;
27347|  1.15M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer21write_indexes_steppedILi20ELi24ELi4EEEijRmi:
27350|   438k|  simdjson_inline int write_indexes_stepped(uint32_t idx, uint64_t& bits, int cnt) {
27351|   438k|    write_indexes<START, STEP>(idx, bits);
27352|   438k|    SIMDJSON_IF_CONSTEXPR ((START+STEP)  < END) {
  ------------------
  |  |   81|   438k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27353|       |      if (simdjson_unlikely((START+STEP) < cnt)) {
27354|       |        write_indexes_stepped<(START+STEP<END?START+STEP:END), END, STEP>(idx, bits, cnt);
27355|       |      }
27356|       |    }
27357|   438k|    return ((END-START) % STEP) == 0 ? END : (END-START) - ((END-START) % STEP) + STEP;
  ------------------
  |  Branch (27357:12): [True: 438k, Folded]
  ------------------
27358|   438k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi20ELi4EEEijRm:
27341|   438k|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|   438k|    write_index(idx, bits, START);
27343|   438k|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|   438k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|   438k|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|   438k|    }
27346|   438k|    return START+N;
27347|   438k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi21ELi3EEEijRm:
27341|   438k|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|   438k|    write_index(idx, bits, START);
27343|   438k|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|   438k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|   438k|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|   438k|    }
27346|   438k|    return START+N;
27347|   438k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi22ELi2EEEijRm:
27341|   438k|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|   438k|    write_index(idx, bits, START);
27343|   438k|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|   438k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|   438k|      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|   438k|    }
27346|   438k|    return START+N;
27347|   438k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer13write_indexesILi23ELi1EEEijRm:
27341|   438k|  simdjson_inline int write_indexes(uint32_t idx, uint64_t& bits) {
27342|   438k|    write_index(idx, bits, START);
27343|   438k|    SIMDJSON_IF_CONSTEXPR (N > 1) {
  ------------------
  |  |   81|   438k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
27344|       |      write_indexes<(N-1>0?START+1:START), (N-1>=0?N-1:1)>(idx, bits);
27345|       |    }
27346|   438k|    return START+N;
27347|   438k|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage111bit_indexer11write_indexEjRmi:
27334|   122M|  simdjson_inline void write_index(uint32_t idx, uint64_t& bits, int i) {
27335|   122M|    this->tail[i] = idx + trailing_zeroes(bits);
27336|   122M|    bits = clear_lowest_bit(bits);
27337|   122M|  }
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_116clear_lowest_bitEm:
22096|   122M|simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
22097|       |  return _blsr_u64(input_num);
22098|   122M|}
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage110json_block16structural_startEv:
26574|  19.9M|  simdjson_inline uint64_t structural_start() const noexcept { return potential_structural_start() & ~_string.string_tail(); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage110json_block26potential_structural_startEv:
26598|  19.9M|  simdjson_inline uint64_t potential_structural_start() const noexcept { return _characters.op() | potential_scalar_start(); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage110json_block22potential_scalar_startEv:
26603|  19.9M|  simdjson_inline uint64_t potential_scalar_start() const noexcept {
26604|       |    // The term "scalar" refers to anything except structural characters and white space
26605|       |    // (so letters, numbers, quotes).
26606|       |    // Whenever it is preceded by something that is not a structural element ({,},[,],:, ") nor a white-space
26607|       |    // then we know that it is irrelevant structurally.
26608|  19.9M|    return _characters.scalar() & ~follows_potential_scalar();
26609|  19.9M|  }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage110json_block24follows_potential_scalarEv:
26614|  19.9M|  simdjson_inline uint64_t follows_potential_scalar() const noexcept {
26615|       |    // _follows_potential_nonquote_scalar: is defined as marking any character that follows a character
26616|       |    // that is not a structural element ({,},[,],:, comma) nor a quote (") and that is not a
26617|       |    // white space.
26618|       |    // It is understood that within quoted region, anything at all could be marked (irrelevant).
26619|  19.9M|    return _follows_potential_nonquote_scalar;
26620|  19.9M|  }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage117json_string_block11string_tailEv:
26246|  19.9M|  simdjson_really_inline uint64_t string_tail() const { return _in_string ^ _quote; }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage110json_block23non_quote_inside_stringEm:
26581|  19.9M|  simdjson_inline uint64_t non_quote_inside_string(uint64_t mask) const noexcept { return _string.non_quote_inside_string(mask); }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage117json_string_block23non_quote_inside_stringEm:
26242|  19.9M|  simdjson_really_inline uint64_t non_quote_inside_string(uint64_t mask) const { return mask & _in_string; }
simdjson.cpp:_ZNK8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm128EE20get_remainder_paddedEPh:
26030|   115k|simdjson_inline size_t buf_block_reader<STEP_SIZE>::get_remainder_padded(uint8_t *dst) const {
26031|   115k|  static_assert(STEP_SIZE <= 128, "keep_mask covers blocks of up to 128 bytes");
26032|   115k|  static_assert(sizeof(simd::simd8<uint8_t>) <= SIMDJSON_PADDING, "a vector load at the last byte must stay in the padding");
26033|   115k|  const size_t remaining = len - idx;
26034|   115k|  if (remaining == 0) { return 0; }
  ------------------
  |  Branch (26034:7): [True: 0, False: 115k]
  ------------------
26035|   115k|  const simd::simd8<uint8_t> spaces = simd::simd8<uint8_t>::splat(0x20);
26036|   578k|  for (size_t off = 0; off < STEP_SIZE; off += sizeof(simd::simd8<uint8_t>)) {
  ------------------
  |  Branch (26036:24): [True: 463k, False: 115k]
  ------------------
26037|   463k|    simd::simd8<uint8_t> v = spaces;
26038|   463k|    if (off < remaining) {
  ------------------
  |  Branch (26038:9): [True: 294k, False: 168k]
  ------------------
26039|       |      // Starts before len, so it ends within the padding.
26040|   294k|      const simd::simd8<uint8_t> in = simd::simd8<uint8_t>::load(buf + idx + off);
26041|   294k|      const simd::simd8<uint8_t> keep = simd::simd8<uint8_t>::load(keep_mask + 128 - remaining + off);
26042|   294k|      v = spaces ^ ((in ^ spaces) & keep);
26043|   294k|    }
26044|   463k|    v.store(dst + off);
26045|   463k|  }
26046|   115k|  return remaining;
26047|   115k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage123json_structural_indexer6finishERNS0_25dom_parser_implementationEmmNS_11stage1_modeE:
27542|   115k|simdjson_inline error_code json_structural_indexer::finish(dom_parser_implementation &parser, size_t idx, size_t len, stage1_mode partial) {
27543|       |  // Write out the final iteration's structurals
27544|   115k|  indexer.write(uint32_t(idx-64), prev_structurals);
27545|   115k|  error_code error = scanner.finish();
27546|       |  // We deliberately break down the next expression so that it is
27547|       |  // human readable.
27548|   115k|  const bool should_we_exit = is_streaming(partial) ?
  ------------------
  |  Branch (27548:31): [True: 0, False: 115k]
  ------------------
27549|      0|    ((error != SUCCESS) && (error != UNCLOSED_STRING)) // when partial we tolerate UNCLOSED_STRING
  ------------------
  |  Branch (27549:6): [True: 0, False: 0]
  |  Branch (27549:28): [True: 0, False: 0]
  ------------------
27550|   115k|    : (error != SUCCESS); // if partial is false, we must have SUCCESS
27551|   115k|  const bool have_unclosed_string = (error == UNCLOSED_STRING);
27552|   115k|  parser.n_structural_indexes = uint32_t(indexer.tail - parser.structural_indexes.get());
27553|       |  /***
27554|       |   * The On-Demand API requires special padding.
27555|       |   *
27556|       |   * This is related to https://github.com/simdjson/simdjson/issues/906
27557|       |   * Basically, we want to make sure that if the parsing continues beyond the last (valid)
27558|       |   * structural character, it quickly stops.
27559|       |   * Only three structural characters can be repeated without triggering an error in JSON:  [,] and }.
27560|       |   * We repeat the padding character (at 'len'). We don't know what it is, but if the parsing
27561|       |   * continues, then it must be [,] or }.
27562|       |   * Suppose it is ] or }. We backtrack to the first character, what could it be that would
27563|       |   * not trigger an error? It could be ] or } but no, because you can't start a document that way.
27564|       |   * It can't be a comma, a colon or any simple value. So the only way we could continue is
27565|       |   * if the repeated character is [. But if so, the document must start with [. But if the document
27566|       |   * starts with [, it should end with ]. If we enforce that rule, then we would get
27567|       |   * ][[ which is invalid.
27568|       |   *
27569|       |   * This is illustrated with the test array_iterate_unclosed_error() on the following input:
27570|       |   * R"({ "a": [,,)"
27571|       |   **/
27572|   115k|  parser.structural_indexes[parser.n_structural_indexes] = uint32_t(len); // used later in partial == stage1_mode::streaming_final
27573|   115k|  parser.structural_indexes[parser.n_structural_indexes + 1] = uint32_t(len);
27574|   115k|  parser.structural_indexes[parser.n_structural_indexes + 2] = 0;
27575|   115k|  parser.next_structural_index = 0;
27576|       |
27577|       |  // Bail out only once the count and sentinels above are set:
27578|       |  // document_stream::truncated_bytes() reads them even on error.
27579|   115k|  if (simdjson_unlikely(should_we_exit)) {
  ------------------
  |  |  747|   115k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 479, False: 115k]
  |  |  ------------------
  ------------------
27580|       |    // The error is UNCLOSED_STRING, which iterate_allow_incomplete_json()
27581|       |    // accepts: it must not hide an invalid input. A character cut by the end
27582|       |    // of the input belongs to the unclosed string, as when streaming.
27583|    479|    if (unescaped_chars_error) { return UNESCAPED_CHARS; }
  ------------------
  |  Branch (27583:9): [True: 206, False: 273]
  ------------------
27584|    273|    if (checker.errors() != SUCCESS &&
  ------------------
  |  Branch (27584:9): [True: 253, False: 20]
  ------------------
27585|    253|        !generic_validate_utf8<utf8_checker>(parser.buf, trim_partial_utf8(parser.buf, len))) {
  ------------------
  |  Branch (27585:9): [True: 234, False: 19]
  ------------------
27586|    234|      return UTF8_ERROR;
27587|    234|    }
27588|     39|    return error;
27589|    273|  }
27590|   115k|  if (unescaped_chars_error) { return UNESCAPED_CHARS; }
  ------------------
  |  Branch (27590:7): [True: 144, False: 115k]
  ------------------
27591|       |
27592|       |  // a valid JSON file cannot have zero structural indexes - we should have found something
27593|   115k|  if (simdjson_unlikely(parser.n_structural_indexes == 0u)) {
  ------------------
  |  |  747|   115k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 1, False: 115k]
  |  |  ------------------
  ------------------
27594|      1|    return EMPTY;
27595|      1|  }
27596|   115k|  if (simdjson_unlikely(parser.structural_indexes[parser.n_structural_indexes - 1] > len)) {
  ------------------
  |  |  747|   115k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 115k]
  |  |  ------------------
  ------------------
27597|      0|    return UNEXPECTED_ERROR;
27598|      0|  }
27599|   115k|  if (partial == stage1_mode::streaming_partial) {
  ------------------
  |  Branch (27599:7): [True: 0, False: 115k]
  ------------------
27600|       |    // If we have an unclosed string, then the last structural
27601|       |    // will be the quote and we want to make sure to omit it.
27602|      0|    if(have_unclosed_string) {
  ------------------
  |  Branch (27602:8): [True: 0, False: 0]
  ------------------
27603|      0|      parser.n_structural_indexes--;
27604|       |      // a valid JSON file cannot have zero structural indexes - we should have found something
27605|      0|      if (simdjson_unlikely(parser.n_structural_indexes == 0u)) { return CAPACITY; }
  ------------------
  |  |  747|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
27606|      0|    }
27607|       |    // We truncate the input to the end of the last complete document (or zero).
27608|      0|    const bool partial_scalar = !have_unclosed_string && ends_with_partial_scalar(parser, len);
  ------------------
  |  Branch (27608:33): [True: 0, False: 0]
  |  Branch (27608:58): [True: 0, False: 0]
  ------------------
27609|      0|    const bool unfinished = ends_with_unfinished_document(parser);
27610|      0|    auto new_structural_indexes = find_next_document_index(parser, partial_scalar || unfinished);
  ------------------
  |  Branch (27610:68): [True: 0, False: 0]
  |  Branch (27610:86): [True: 0, False: 0]
  ------------------
27611|      0|    if (new_structural_indexes == 0 && parser.n_structural_indexes > 0) {
  ------------------
  |  Branch (27611:9): [True: 0, False: 0]
  |  Branch (27611:40): [True: 0, False: 0]
  ------------------
27612|       |      // The batch holds a single document, whose brackets balance but which
27613|       |      // cannot be valid JSON: it is not too big, it is invalid.
27614|      0|      if (unfinished && find_next_document_index(parser, partial_scalar) != 0) { return TAPE_ERROR; }
  ------------------
  |  Branch (27614:11): [True: 0, False: 0]
  |  Branch (27614:25): [True: 0, False: 0]
  ------------------
27615|      0|      if(parser.structural_indexes[0] == 0) {
  ------------------
  |  Branch (27615:10): [True: 0, False: 0]
  ------------------
27616|       |        // If the buffer is partial and we started at index 0 but the document is
27617|       |        // incomplete, it's too big to parse.
27618|      0|        return CAPACITY;
27619|      0|      } else {
27620|       |        // It is possible that the document could be parsed, we just had a lot
27621|       |        // of white space.
27622|      0|        parser.n_structural_indexes = 0;
27623|      0|        return EMPTY;
27624|      0|      }
27625|      0|    }
27626|      0|    parser.n_structural_indexes = new_structural_indexes;
27627|   115k|  } else if (partial == stage1_mode::streaming_final) {
  ------------------
  |  Branch (27627:14): [True: 0, False: 115k]
  ------------------
27628|      0|    if(have_unclosed_string) { parser.n_structural_indexes--; }
  ------------------
  |  Branch (27628:8): [True: 0, False: 0]
  ------------------
27629|       |    // We truncate the input to the end of the last complete document (or zero).
27630|       |    // Because partial == stage1_mode::streaming_final, it means that we may
27631|       |    // silently ignore trailing garbage. Though it sounds bad, we do it
27632|       |    // deliberately because many people who have streams of JSON documents
27633|       |    // will truncate them for processing. E.g., imagine that you are uncompressing
27634|       |    // the data from a size file or receiving it in chunks from the network. You
27635|       |    // may not know where exactly the last document will be. Meanwhile the
27636|       |    // document_stream instances allow people to know the JSON documents they are
27637|       |    // parsing (see the iterator.source() method).
27638|      0|    parser.n_structural_indexes = find_next_document_index(parser);
27639|       |    // We store the initial n_structural_indexes so that the client can see
27640|       |    // whether we used truncation. If initial_n_structural_indexes == parser.n_structural_indexes,
27641|       |    // then this will query parser.structural_indexes[parser.n_structural_indexes] which is len,
27642|       |    // otherwise, it will copy some prior index.
27643|      0|    parser.structural_indexes[parser.n_structural_indexes + 1] = parser.structural_indexes[parser.n_structural_indexes];
27644|       |    // This next line is critical, do not change it unless you understand what you are
27645|       |    // doing.
27646|      0|    parser.structural_indexes[parser.n_structural_indexes] = uint32_t(len);
27647|      0|    if (simdjson_unlikely(parser.n_structural_indexes == 0u)) {
  ------------------
  |  |  747|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
27648|       |        // We tolerate an unclosed string at the very end of the stream. Indeed, users
27649|       |        // often load their data in bulk without being careful and they want us to ignore
27650|       |        // the trailing garbage.
27651|      0|        return EMPTY;
27652|      0|    }
27653|   115k|  } else if (partial == stage1_mode::json_sequence_partial) {
  ------------------
  |  Branch (27653:14): [True: 0, False: 115k]
  ------------------
27654|       |    // RFC 7464: use RS positions for batch boundaries
27655|       |    // A discarded unclosed string also caps how far the filter may scan.
27656|      0|    size_t scan_len = len;
27657|      0|    if(have_unclosed_string) {
  ------------------
  |  Branch (27657:8): [True: 0, False: 0]
  ------------------
27658|      0|      drop_json_sequence_unclosed_string(parser, len);
27659|      0|      if (simdjson_unlikely(parser.n_structural_indexes == 0u)) { return CAPACITY; }
  ------------------
  |  |  747|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
27660|      0|      scan_len = parser.structural_indexes[parser.n_structural_indexes];
27661|      0|    }
27662|      0|    uint32_t next_batch_start = uint32_t(len);
27663|      0|    auto new_structural_indexes = find_next_document_index_json_sequence(parser, len, false, next_batch_start, scan_len);
27664|      0|    if (new_structural_indexes == DOCUMENT_TOO_LARGE) {
  ------------------
  |  Branch (27664:9): [True: 0, False: 0]
  ------------------
27665|      0|      return CAPACITY;
27666|      0|    }
27667|      0|    if (new_structural_indexes == 0) {
  ------------------
  |  Branch (27667:9): [True: 0, False: 0]
  ------------------
27668|       |      // An EMPTY batch must still advance next_batch_start, or document_stream
27669|       |      // re-parses the same bytes forever. CAPACITY when it cannot.
27670|      0|      if (next_batch_start == 0) { return CAPACITY; }
  ------------------
  |  Branch (27670:11): [True: 0, False: 0]
  ------------------
27671|      0|      parser.n_structural_indexes = 0;
27672|      0|      parser.structural_indexes[0] = next_batch_start;
27673|      0|      return EMPTY;
27674|      0|    }
27675|      0|    parser.n_structural_indexes = new_structural_indexes;
27676|      0|    parser.structural_indexes[parser.n_structural_indexes] = next_batch_start;
27677|       |    // The next batch starts at an RS, which the On-Demand API never reads as a
27678|       |    // string, a container or a separator. But an invalid last document may make
27679|       |    // it skip that RS as a value: repeat it, so that the index past it is not
27680|       |    // the next record, which can be a string that does not close in this batch.
27681|      0|    parser.structural_indexes[parser.n_structural_indexes + 1] = next_batch_start;
27682|   115k|  } else if (partial == stage1_mode::json_sequence_final) {
  ------------------
  |  Branch (27682:14): [True: 0, False: 115k]
  ------------------
27683|       |    // RFC 7464: final batch, last document extends to EOF
27684|       |    // As above: a discarded unclosed string caps how far the filter may scan.
27685|      0|    size_t scan_len = len;
27686|      0|    if(have_unclosed_string) {
  ------------------
  |  Branch (27686:8): [True: 0, False: 0]
  ------------------
27687|      0|      drop_json_sequence_unclosed_string(parser, len);
27688|      0|      scan_len = parser.structural_indexes[parser.n_structural_indexes];
27689|      0|    }
27690|      0|    uint32_t next_batch_start = uint32_t(len);
27691|      0|    parser.n_structural_indexes = find_next_document_index_json_sequence(parser, len, true, next_batch_start, scan_len);
27692|       |    // The filter compacted structural_indexes in place and restored the EOF
27693|       |    // sentinel past the compacted end, so the copy below is either the start
27694|       |    // of a truncated document or len, as in streaming_final.
27695|      0|    parser.structural_indexes[parser.n_structural_indexes + 1] = parser.structural_indexes[parser.n_structural_indexes];
27696|      0|    parser.structural_indexes[parser.n_structural_indexes] = uint32_t(len);
27697|      0|    if (simdjson_unlikely(parser.n_structural_indexes == 0u)) { return EMPTY; }
  ------------------
  |  |  747|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
27698|   115k|  } else if (partial == stage1_mode::comma_delimited_partial) {
  ------------------
  |  Branch (27698:14): [True: 0, False: 115k]
  ------------------
27699|       |    // Comma-delimited: filter root-level commas, use comma positions for batch boundaries
27700|      0|    if(have_unclosed_string) {
  ------------------
  |  Branch (27700:8): [True: 0, False: 0]
  ------------------
27701|      0|      parser.n_structural_indexes--;
27702|      0|      if (simdjson_unlikely(parser.n_structural_indexes == 0u)) { return CAPACITY; }
  ------------------
  |  |  747|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
27703|      0|    }
27704|      0|    uint32_t next_batch_start = uint32_t(len);
27705|      0|    auto new_structural_indexes = filter_comma_delimited(parser, len, false, next_batch_start);
27706|      0|    if (new_structural_indexes == DOCUMENT_TOO_LARGE) {
  ------------------
  |  Branch (27706:9): [True: 0, False: 0]
  ------------------
27707|      0|      return CAPACITY;
27708|      0|    }
27709|      0|    if (new_structural_indexes == 0) {
  ------------------
  |  Branch (27709:9): [True: 0, False: 0]
  ------------------
27710|       |      // An EMPTY batch must still advance next_batch_start, or document_stream
27711|       |      // re-parses the same bytes forever. CAPACITY when it cannot.
27712|      0|      if (next_batch_start == 0) { return CAPACITY; }
  ------------------
  |  Branch (27712:11): [True: 0, False: 0]
  ------------------
27713|      0|      parser.n_structural_indexes = 0;
27714|      0|      parser.structural_indexes[0] = next_batch_start;
27715|      0|      return EMPTY;
27716|      0|    }
27717|      0|    parser.n_structural_indexes = new_structural_indexes;
27718|      0|    parser.structural_indexes[parser.n_structural_indexes] = next_batch_start;
27719|   115k|  } else if (partial == stage1_mode::comma_delimited_final) {
  ------------------
  |  Branch (27719:14): [True: 0, False: 115k]
  ------------------
27720|       |    // Comma-delimited: final batch, last document extends to EOF
27721|      0|    if(have_unclosed_string) { parser.n_structural_indexes--; }
  ------------------
  |  Branch (27721:8): [True: 0, False: 0]
  ------------------
27722|      0|    uint32_t next_batch_start = uint32_t(len);
27723|      0|    parser.n_structural_indexes = filter_comma_delimited(parser, len, true, next_batch_start);
27724|      0|    parser.structural_indexes[parser.n_structural_indexes + 1] = parser.structural_indexes[parser.n_structural_indexes];
27725|      0|    parser.structural_indexes[parser.n_structural_indexes] = uint32_t(len);
27726|      0|    if (simdjson_unlikely(parser.n_structural_indexes == 0u)) { return EMPTY; }
  ------------------
  |  |  747|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (747:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
27727|      0|  }
27728|   115k|  checker.check_eof();
27729|   115k|  return checker.errors();
27730|   115k|}
simdjson.cpp:_ZN8simdjson7haswell12_GLOBAL__N_16stage116buf_block_readerILm128EE11block_indexEv:
25997|  20.0M|simdjson_inline size_t buf_block_reader<STEP_SIZE>::block_index() { return idx; }

_ZN8simdjson8fallback7builder14string_builder12append_commaEv:
50251|  7.76M|simdjson_inline void string_builder::append_comma() noexcept {
50252|  7.76M|  if (capacity_check(1)) {
  ------------------
  |  Branch (50252:7): [True: 7.76M, False: 0]
  ------------------
50253|  7.76M|    buffer_data()[position++] = ',';
50254|  7.76M|  }
50255|  7.76M|}
_ZN8simdjson8fallback7builder14string_builder14capacity_checkEm:
49793|  34.6M|simdjson_inline bool string_builder::capacity_check(size_t upcoming_bytes) {
49794|       |  // We use the convention that when is_valid is false, then the capacity and
49795|       |  // the position are 0.
49796|       |  // Most of the time, this function will return true.
49797|  34.6M|  if (simdjson_likely(upcoming_bytes <= capacity - position)) {
  ------------------
  |  |  764|  34.6M|  #define simdjson_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (764:30): [True: 34.6M, False: 41.3k]
  |  |  ------------------
  ------------------
49798|  34.6M|    return true;
49799|  34.6M|  }
49800|       |  // check for overflow, most of the time there is no overflow
49801|  41.3k|  if (simdjson_unlikely(position + upcoming_bytes < position)) {
  ------------------
  |  |  767|  41.3k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 0, False: 41.3k]
  |  |  ------------------
  ------------------
49802|      0|    return false;
49803|      0|  }
49804|       |  // We will rarely get here.
49805|  41.3k|  grow_buffer((std::max)(capacity * 2, position + upcoming_bytes));
49806|       |  // If the buffer allocation failed, we set is_valid to false.
49807|  41.3k|  return is_valid;
49808|  41.3k|}
_ZN8simdjson8fallback7builder14string_builder11grow_bufferEm:
49810|  82.3k|inline void string_builder::grow_buffer(size_t desired_capacity) {
49811|  82.3k|  if (!is_valid) {
  ------------------
  |  Branch (49811:7): [True: 0, False: 82.3k]
  ------------------
49812|      0|    return;
49813|      0|  }
49814|  82.3k|  std::string new_buffer;
49815|  82.3k|  if (desired_capacity > new_buffer.max_size()) {
  ------------------
  |  Branch (49815:7): [True: 0, False: 82.3k]
  ------------------
49816|      0|    set_valid(false);
49817|      0|    return;
49818|      0|  }
49819|  82.3k|#if defined(__cpp_exceptions) || defined(_CPPUNWIND)
49820|  82.3k|  try {
49821|  82.3k|    internal::resize_uninitialized(new_buffer, desired_capacity);
49822|  82.3k|  } catch (...) { // std::bad_alloc
49823|      0|    set_valid(false);
49824|      0|    return;
49825|      0|  }
49826|       |#else
49827|       |  // Without exceptions, a failed allocation terminates the program.
49828|       |  internal::resize_uninitialized(new_buffer, desired_capacity);
49829|       |#endif
49830|  82.3k|  std::memcpy(&new_buffer[0], buffer_data(), position);
49831|  82.3k|  buffer.swap(new_buffer);
49832|  82.3k|  capacity = desired_capacity;
49833|  82.3k|}
_ZN8simdjson8fallback7builder8internal20resize_uninitializedERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEm:
49780|  82.3k|simdjson_inline void resize_uninitialized(std::string &s, size_t n) {
49781|       |#if defined(__cpp_lib_string_resize_and_overwrite) && __cpp_lib_string_resize_and_overwrite >= 202110L
49782|       |  s.resize_and_overwrite(n, [](char *, size_t len) noexcept { return len; });
49783|       |#else
49784|  82.3k|  s.resize(n);
49785|  82.3k|#endif
49786|  82.3k|}
_ZN8simdjson8fallback7builder14string_builder11buffer_dataEv:
48670|  42.6M|  simdjson_inline char *buffer_data() noexcept { return &buffer[0]; }
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc117ELc114ELc105EEEENSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEvT0_:
50301|  71.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  71.5k|#if SIMDJSON_CONSTEVAL
50303|  71.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  71.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  71.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  71.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  71.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  71.5k|    escape_and_append_with_quotes(value);
50313|  71.5k|  }
50314|  71.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  71.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  71.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  71.5k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  71.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEEEEEvv:
50108|  99.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  99.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  99.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 99.1k, False: 0]
  ------------------
50111|  99.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  99.1k|    position += constevalutil::static_string_size<Text>();
50113|  99.1k|  }
50114|  99.1k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
50034|  1.30M|string_builder::escape_and_append_with_quotes(std::string_view input) noexcept {
50035|       |  // escaping might turn a control character into \x00xx so 6 characters.
50036|       |  // Guard against size_t overflow in the arithmetic below.
50037|  1.30M|  if (input.size() > ((std::numeric_limits<size_t>::max)() - 2) / 6) {
  ------------------
  |  Branch (50037:7): [True: 0, False: 1.30M]
  ------------------
50038|      0|    set_valid(false);
50039|      0|    return;
50040|      0|  }
50041|  1.30M|  if (capacity_check(2 + 6 * input.size())) {
  ------------------
  |  Branch (50041:7): [True: 1.30M, False: 0]
  ------------------
50042|  1.30M|    buffer_data()[position++] = '"';
50043|  1.30M|    position += write_string_escaped(input, buffer_data() + position);
50044|  1.30M|    buffer_data()[position++] = '"';
50045|  1.30M|  }
50046|  1.30M|}
_ZN8simdjson8internal11escape_sse220write_string_escapedENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEPc:
12716|  1.30M|simdjson_really_inline size_t write_string_escaped(const std::string_view input, char *out) {
12717|  1.30M|  const uint8_t *src = reinterpret_cast<const uint8_t *>(input.data());
12718|  1.30M|  return size_t(escape_from(src, input.size(), 0, out) - out);
12719|  1.30M|}
_ZN8simdjson8internal11escape_sse211escape_fromEPKhmmPc:
12658|  1.30M|                                         size_t i, char *out) noexcept {
12659|  14.4M|  while (i + 16 <= len) {
  ------------------
  |  Branch (12659:10): [True: 13.1M, False: 1.30M]
  ------------------
12660|  13.1M|    escape_vector word = escape_load16(src + i);
12661|  13.1M|    escape_vector flags = escape_flags(word);
12662|  13.1M|    if (simdjson_likely(!escape_any(flags))) {
  ------------------
  |  |  764|  13.1M|  #define simdjson_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (764:30): [True: 12.9M, False: 199k]
  |  |  ------------------
  ------------------
12663|  12.9M|      escape_store16(out, word);
12664|  12.9M|      out += 16;
12665|  12.9M|    } else {
12666|   199k|      out = escape_block(src, out, i, i + 16, escape_bitmask(flags));
12667|   199k|    }
12668|  13.1M|    i += 16;
12669|  13.1M|  }
12670|  1.30M|  if (i < len) {
  ------------------
  |  Branch (12670:7): [True: 1.23M, False: 71.3k]
  ------------------
12671|  1.23M|    const size_t rem = len - i;
12672|  1.23M|    uint64_t m;
12673|  1.23M|    if (len >= 16) {
  ------------------
  |  Branch (12673:9): [True: 381k, False: 849k]
  ------------------
12674|       |      // The last 16 bytes of the input are in bounds. Bit k of that block's
12675|       |      // mask belongs to input position len - 16 + k, so shift it down to align
12676|       |      // bit 0 with position i.
12677|   381k|      m = escape_mask(escape_load16(src + len - 16)) >>
12678|   381k|          (escape_mask_bits * (16 - rem));
12679|   849k|    } else if (len >= 8) {
  ------------------
  |  Branch (12679:16): [True: 346k, False: 503k]
  ------------------
12680|       |      // Here i == 0 and rem == len. Two overlapping 8-byte loads cover
12681|       |      // [0, 8) and [len - 8, len), which is the whole input since len < 16.
12682|   346k|      uint64_t mm = escape_mask(escape_load8x2(src, src + len - 8));
12683|   346k|      constexpr uint64_t low8 = (uint64_t(1) << (escape_mask_bits * 8)) - 1;
12684|   346k|      m = (mm & low8) |
12685|   346k|          ((mm >> (escape_mask_bits * 8)) << (escape_mask_bits * (len - 8)));
12686|   503k|    } else if (len >= 4) {
  ------------------
  |  Branch (12686:16): [True: 357k, False: 145k]
  ------------------
12687|       |      // Same idea with two overlapping 4-byte loads.
12688|   357k|      uint64_t mm = escape_mask(escape_load4x2(src, src + len - 4));
12689|   357k|      constexpr uint64_t low4 = (uint64_t(1) << (escape_mask_bits * 4)) - 1;
12690|   357k|      m = (mm & low4) | (((mm >> (escape_mask_bits * 4)) & low4)
12691|   357k|                         << (escape_mask_bits * (len - 4)));
12692|   357k|    } else {
12693|       |      // Fewer than 4 bytes: at most three table lookups, no need for SIMD.
12694|   511k|      for (size_t k = 0; k < len; k++) {
  ------------------
  |  Branch (12694:26): [True: 365k, False: 145k]
  ------------------
12695|   365k|        uint8_t c = src[k];
12696|   365k|        if (escape_tables<>::quotable[c]) {
  ------------------
  |  Branch (12696:13): [True: 58.2k, False: 307k]
  ------------------
12697|  58.2k|          escape_json_char(char(c), out);
12698|   307k|        } else {
12699|   307k|          *out++ = char(c);
12700|   307k|        }
12701|   365k|      }
12702|   145k|      return out;
12703|   145k|    }
12704|  1.08M|    if (m == 0) {
  ------------------
  |  Branch (12704:9): [True: 970k, False: 114k]
  ------------------
12705|   970k|      copy_lt16(out, src + i, rem);
12706|   970k|      out += rem;
12707|   970k|    } else {
12708|   114k|      out = escape_block(src, out, i, len, m);
12709|   114k|    }
12710|  1.08M|  }
12711|  1.15M|  return out;
12712|  1.30M|}
_ZN8simdjson8internal11escape_sse213escape_load16EPKh:
12511|  13.5M|simdjson_inline escape_vector escape_load16(const uint8_t *p) noexcept {
12512|  13.5M|  return _mm_loadu_si128(reinterpret_cast<const __m128i *>(p));
12513|  13.5M|}
_ZN8simdjson8internal11escape_sse212escape_flagsEDv2_x:
12539|  14.2M|simdjson_inline escape_vector escape_flags(escape_vector v) noexcept {
12540|  14.2M|  const __m128i v34 = _mm_set1_epi8(34); // '"'
12541|  14.2M|  const __m128i v92 = _mm_set1_epi8(92); // '\\'
12542|  14.2M|  const __m128i v31 = _mm_set1_epi8(31); // for control char detection
12543|  14.2M|  __m128i needs_escape = _mm_cmpeq_epi8(v, v34);
12544|  14.2M|  needs_escape = _mm_or_si128(needs_escape, _mm_cmpeq_epi8(v, v92));
12545|  14.2M|  return _mm_or_si128(
12546|  14.2M|      needs_escape, _mm_cmpeq_epi8(_mm_subs_epu8(v, v31), _mm_setzero_si128()));
12547|  14.2M|}
_ZN8simdjson8internal11escape_sse210escape_anyEDv2_x:
12552|  13.1M|simdjson_inline bool escape_any(escape_vector flags) noexcept {
12553|  13.1M|  return _mm_movemask_epi8(flags) != 0;
12554|  13.1M|}
_ZN8simdjson8internal11escape_sse214escape_store16EPcDv2_x:
12515|  12.9M|simdjson_inline void escape_store16(char *out, escape_vector v) noexcept {
12516|  12.9M|  _mm_storeu_si128(reinterpret_cast<__m128i *>(out), v);
12517|  12.9M|}
_ZN8simdjson8internal11escape_sse212escape_blockEPKhPcmmm:
12636|   313k|                                         uint64_t m) noexcept {
12637|   313k|  constexpr uint64_t lane = (uint64_t(1) << escape_mask_bits) - 1;
12638|       |
12639|   313k|  size_t pos = i; // first byte not yet copied
12640|  1.20M|  while (m) {
  ------------------
  |  Branch (12640:10): [True: 891k, False: 313k]
  ------------------
12641|   891k|    const size_t tz = trailing_zeroes(m);
12642|   891k|    const size_t next = i + tz / escape_mask_bits;
12643|       |    // Copy the run of safe bytes that precedes this escape.
12644|   891k|    copy_lt16(out, src + pos, next - pos);
12645|   891k|    out += next - pos;
12646|   891k|    escape_json_char(char(src[next]), out);
12647|   891k|    pos = next + 1;
12648|   891k|    m &= ~(lane << tz);
12649|   891k|  }
12650|       |  // Copy whatever follows the last escape.
12651|   313k|  copy_lt16(out, src + pos, blockend - pos);
12652|   313k|  return out + (blockend - pos);
12653|   313k|}
_ZN8simdjson8internal15trailing_zeroesEm:
12116|   891k|simdjson_inline int trailing_zeroes(uint64_t input_num) noexcept {
12117|       |#ifdef _MSC_VER
12118|       |  unsigned long ret;
12119|       |#if defined(_M_X64) || defined(_M_ARM64)
12120|       |  _BitScanForward64(&ret, input_num);
12121|       |#else
12122|       |  if (!_BitScanForward(&ret, (unsigned long)input_num)) {
12123|       |    _BitScanForward(&ret, (unsigned long)(input_num >> 32));
12124|       |    ret += 32;
12125|       |  }
12126|       |#endif
12127|       |  return int(ret);
12128|       |#else
12129|   891k|  return __builtin_ctzll(input_num);
12130|   891k|#endif
12131|   891k|}
_ZN8simdjson8internal11escape_sse214escape_bitmaskEDv2_x:
12557|  1.28M|simdjson_inline uint64_t escape_bitmask(escape_vector flags) noexcept {
12558|  1.28M|  return uint64_t(uint32_t(_mm_movemask_epi8(flags)));
12559|  1.28M|}
_ZN8simdjson8internal11escape_sse211escape_maskEDv2_x:
12609|  1.08M|simdjson_inline uint64_t escape_mask(escape_vector v) noexcept {
12610|  1.08M|  return escape_bitmask(escape_flags(v));
12611|  1.08M|}
_ZN8simdjson8internal11escape_sse214escape_load8x2EPKhS3_:
12521|   346k|                                             const uint8_t *b) noexcept {
12522|   346k|  return _mm_unpacklo_epi64(
12523|   346k|      _mm_loadl_epi64(reinterpret_cast<const __m128i *>(a)),
12524|   346k|      _mm_loadl_epi64(reinterpret_cast<const __m128i *>(b)));
12525|   346k|}
_ZN8simdjson8internal11escape_sse214escape_load4x2EPKhS3_:
12530|   357k|                                             const uint8_t *b) noexcept {
12531|   357k|  int32_t a32, b32;
12532|   357k|  memcpy(&a32, a, 4);
12533|   357k|  memcpy(&b32, b, 4);
12534|   357k|  return _mm_unpacklo_epi32(_mm_cvtsi32_si128(a32), _mm_cvtsi32_si128(b32));
12535|   357k|}
_ZN8simdjson8internal16escape_json_charEcRPc:
12171|   949k|simdjson_inline void escape_json_char(char c, char *&out) {
12172|   949k|  if (c == '"') {
  ------------------
  |  Branch (12172:7): [True: 30.4k, False: 919k]
  ------------------
12173|  30.4k|    memcpy(out, "\\\"", 2);
12174|  30.4k|    out += 2;
12175|   919k|  } else if (c == '\\') {
  ------------------
  |  Branch (12175:14): [True: 744k, False: 175k]
  ------------------
12176|   744k|    memcpy(out, "\\\\", 2);
12177|   744k|    out += 2;
12178|   744k|  } else {
12179|   175k|    const char *v = escape_tables<>::control[uint8_t(c)];
12180|   175k|    const size_t n = v[1] == 'u' ? 6 : 2;
  ------------------
  |  Branch (12180:22): [True: 9.44k, False: 165k]
  ------------------
12181|   175k|    memcpy(out, v, n);
12182|   175k|    out += n;
12183|   175k|  }
12184|   949k|}
_ZN8simdjson8internal11escape_sse29copy_lt16EPcPKhm:
12616|  2.17M|                               size_t n) noexcept {
12617|  2.17M|  if (n >= 8) {
  ------------------
  |  Branch (12617:7): [True: 644k, False: 1.53M]
  ------------------
12618|   644k|    memcpy(dst, src, 8);
12619|   644k|    memcpy(dst + n - 8, src + n - 8, 8);
12620|  1.53M|  } else if (n >= 4) {
  ------------------
  |  Branch (12620:14): [True: 498k, False: 1.03M]
  ------------------
12621|   498k|    memcpy(dst, src, 4);
12622|   498k|    memcpy(dst + n - 4, src + n - 4, 4);
12623|  1.03M|  } else if (n > 0) {
  ------------------
  |  Branch (12623:14): [True: 372k, False: 661k]
  ------------------
12624|   372k|    dst[0] = char(src[0]);
12625|   372k|    dst[n >> 1] = char(src[n >> 1]);
12626|   372k|    dst[n - 1] = char(src[n - 1]);
12627|   372k|  }
12628|  2.17M|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc117ELc114ELc105EEEENSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEvT0_:
50301|  27.6k|string_builder::append_key_value(value_type value) noexcept {
50302|  27.6k|#if SIMDJSON_CONSTEVAL
50303|  27.6k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  27.6k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  27.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  27.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  27.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  27.6k|    escape_and_append_with_quotes(value);
50313|  27.6k|  }
50314|  27.6k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  27.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  27.6k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  27.6k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  27.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc102ELc97ELc108ELc108ELc98ELc97ELc99ELc107EEEETnDaLb1EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|  5.19k|string_builder::append_key_value() noexcept {
50366|  5.19k|#if SIMDJSON_CONSTEVAL
50367|  5.19k|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|  5.19k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|  5.19k|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|  5.19k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc102ELc97ELc108ELc108ELc98ELc97ELc99ELc107EEEELb1EEEEEvv:
50108|  5.19k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.19k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.19k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.19k, False: 0]
  ------------------
50111|  5.19k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.19k|    position += constevalutil::static_string_size<Text>();
50113|  5.19k|  }
50114|  5.19k|}
_ZN8simdjson8fallback7builder14string_builder12append_colonEv:
50257|  3.39M|simdjson_inline void string_builder::append_colon() noexcept {
50258|  3.39M|  if (capacity_check(1)) {
  ------------------
  |  Branch (50258:7): [True: 3.39M, False: 0]
  ------------------
50259|  3.39M|    buffer_data()[position++] = ':';
50260|  3.39M|  }
50261|  3.39M|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEEEvv:
50352|  7.21k|string_builder::append_key_value() noexcept {
50353|  7.21k|#if SIMDJSON_CONSTEVAL
50354|  7.21k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  7.21k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEEEEEvv:
50108|  7.21k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.21k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.21k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.21k, False: 0]
  ------------------
50111|  7.21k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.21k|    position += constevalutil::static_string_size<Text>();
50113|  7.21k|  }
50114|  7.21k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEEEvv:
50066|  7.21k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  7.21k|#if SIMDJSON_CONSTEVAL
50068|  7.21k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  7.21k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEEEEEvv:
50108|  7.21k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.21k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.21k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.21k, False: 0]
  ------------------
50111|  7.21k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.21k|    position += constevalutil::static_string_size<Text>();
50113|  7.21k|  }
50114|  7.21k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEfEEvT0_:
50301|  1.51k|string_builder::append_key_value(value_type value) noexcept {
50302|  1.51k|#if SIMDJSON_CONSTEVAL
50303|  1.51k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  1.51k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  1.51k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  1.51k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  1.51k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  1.51k|    escape_and_append_with_quotes(value);
50313|  1.51k|  }
50314|  1.51k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  1.51k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  1.51k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  1.51k|    escape_and_append_with_quotes(value);
50317|  1.51k|  }
50318|  1.51k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  1.51k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  1.51k|    escape_and_append_with_quotes(value);
50320|  1.51k|  }
50321|  1.51k|  else {
50322|  1.51k|    append(value);
50323|  1.51k|  }
50324|  1.51k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEEEEEvv:
50108|  1.51k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.51k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.51k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.51k, False: 0]
  ------------------
50111|  1.51k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.51k|    position += constevalutil::static_string_size<Text>();
50113|  1.51k|  }
50114|  1.51k|}
_ZN8simdjson8fallback7builder14string_builder6appendIfvEEvT_:
49930|  1.99M|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|  1.99M|  static_assert(std::is_same<number_type, bool>::value ||
49932|  1.99M|                    std::is_integral<number_type>::value ||
49933|  1.99M|                    std::is_floating_point<number_type>::value,
49934|  1.99M|                "Unsupported number type");
49935|  1.99M|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|  1.99M|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|  1.99M|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|  1.99M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|  1.99M|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|  1.99M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|  1.99M|    constexpr size_t max_number_size = 20;
49957|  1.99M|    if (capacity_check(max_number_size)) {
49958|  1.99M|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|  1.99M|      char* end = internal::write_uint_jeaiii(
49960|  1.99M|          buffer_data() + position,
49961|  1.99M|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|  1.99M|      position = end - buffer_data();
49963|  1.99M|    }
49964|  1.99M|  }
49965|  1.99M|  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
  ------------------
  |  |  101|  1.99M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|  1.99M|    constexpr size_t max_number_size = 20;
49968|  1.99M|    if (capacity_check(max_number_size)) {
49969|  1.99M|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|  1.99M|      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|  1.99M|      unsigned_type pv = negative
49973|  1.99M|          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|  1.99M|          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|  1.99M|  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
  ------------------
  |  |  101|  1.99M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|  1.99M|    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|  1.99M|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49988:9): [True: 1.99M, False: 0]
  ------------------
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|  1.99M|      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|  1.99M|                                               double(v));
50015|  1.99M|      position = end - buffer_data();
50016|  1.99M|    }
50017|  1.99M|  }
50018|  1.99M|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEfEEvT0_:
50301|  7.21k|string_builder::append_key_value(value_type value) noexcept {
50302|  7.21k|#if SIMDJSON_CONSTEVAL
50303|  7.21k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  7.21k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  7.21k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  7.21k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  7.21k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  7.21k|    escape_and_append_with_quotes(value);
50313|  7.21k|  }
50314|  7.21k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  7.21k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  7.21k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  7.21k|    escape_and_append_with_quotes(value);
50317|  7.21k|  }
50318|  7.21k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  7.21k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  7.21k|    escape_and_append_with_quotes(value);
50320|  7.21k|  }
50321|  7.21k|  else {
50322|  7.21k|    append(value);
50323|  7.21k|  }
50324|  7.21k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEEEEEvv:
50108|  7.21k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.21k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.21k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.21k, False: 0]
  ------------------
50111|  7.21k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.21k|    position += constevalutil::static_string_size<Text>();
50113|  7.21k|  }
50114|  7.21k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc122ELc102ELc97ELc114EEEEfEEvT0_:
50301|  13.1k|string_builder::append_key_value(value_type value) noexcept {
50302|  13.1k|#if SIMDJSON_CONSTEVAL
50303|  13.1k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  13.1k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  13.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  13.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  13.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  13.1k|    escape_and_append_with_quotes(value);
50313|  13.1k|  }
50314|  13.1k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  13.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  13.1k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  13.1k|    escape_and_append_with_quotes(value);
50317|  13.1k|  }
50318|  13.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  13.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  13.1k|    escape_and_append_with_quotes(value);
50320|  13.1k|  }
50321|  13.1k|  else {
50322|  13.1k|    append(value);
50323|  13.1k|  }
50324|  13.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc122ELc102ELc97ELc114EEEEEEEEvv:
50108|  13.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  13.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  13.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 13.1k, False: 0]
  ------------------
50111|  13.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  13.1k|    position += constevalutil::static_string_size<Text>();
50113|  13.1k|  }
50114|  13.1k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEfEEvT0_:
50301|  17.2k|string_builder::append_key_value(value_type value) noexcept {
50302|  17.2k|#if SIMDJSON_CONSTEVAL
50303|  17.2k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  17.2k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  17.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  17.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  17.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  17.2k|    escape_and_append_with_quotes(value);
50313|  17.2k|  }
50314|  17.2k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  17.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  17.2k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  17.2k|    escape_and_append_with_quotes(value);
50317|  17.2k|  }
50318|  17.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  17.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  17.2k|    escape_and_append_with_quotes(value);
50320|  17.2k|  }
50321|  17.2k|  else {
50322|  17.2k|    append(value);
50323|  17.2k|  }
50324|  17.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEEvv:
50108|  17.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  17.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  17.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 17.2k, False: 0]
  ------------------
50111|  17.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  17.2k|    position += constevalutil::static_string_size<Text>();
50113|  17.2k|  }
50114|  17.2k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEEEvv:
50352|  10.0k|string_builder::append_key_value() noexcept {
50353|  10.0k|#if SIMDJSON_CONSTEVAL
50354|  10.0k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEEEEEvv:
50108|  10.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.0k, False: 0]
  ------------------
50111|  10.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.0k|    position += constevalutil::static_string_size<Text>();
50113|  10.0k|  }
50114|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEEEvv:
50066|  10.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  10.0k|#if SIMDJSON_CONSTEVAL
50068|  10.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEEEEEvv:
50108|  10.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.0k, False: 0]
  ------------------
50111|  10.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.0k|    position += constevalutil::static_string_size<Text>();
50113|  10.0k|  }
50114|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEfEEvT0_:
50301|  10.0k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.0k|#if SIMDJSON_CONSTEVAL
50303|  10.0k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.0k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.0k|    escape_and_append_with_quotes(value);
50313|  10.0k|  }
50314|  10.0k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.0k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.0k|    escape_and_append_with_quotes(value);
50317|  10.0k|  }
50318|  10.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  10.0k|    escape_and_append_with_quotes(value);
50320|  10.0k|  }
50321|  10.0k|  else {
50322|  10.0k|    append(value);
50323|  10.0k|  }
50324|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEEEEEvv:
50108|  10.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.0k, False: 0]
  ------------------
50111|  10.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.0k|    position += constevalutil::static_string_size<Text>();
50113|  10.0k|  }
50114|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc121ELc109ELc97ELc103EEEEfEEvT0_:
50301|  10.0k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.0k|#if SIMDJSON_CONSTEVAL
50303|  10.0k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.0k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.0k|    escape_and_append_with_quotes(value);
50313|  10.0k|  }
50314|  10.0k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.0k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.0k|    escape_and_append_with_quotes(value);
50317|  10.0k|  }
50318|  10.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  10.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  10.0k|    escape_and_append_with_quotes(value);
50320|  10.0k|  }
50321|  10.0k|  else {
50322|  10.0k|    append(value);
50323|  10.0k|  }
50324|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc121ELc109ELc97ELc103EEEEEEEEvv:
50108|  10.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.0k, False: 0]
  ------------------
50111|  10.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.0k|    position += constevalutil::static_string_size<Text>();
50113|  10.0k|  }
50114|  10.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEENSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEvT0_:
50301|  10.4k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.4k|#if SIMDJSON_CONSTEVAL
50303|  10.4k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.4k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.4k|    escape_and_append_with_quotes(value);
50313|  10.4k|  }
50314|  10.4k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.4k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.4k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  10.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEEEEEvv:
50108|  10.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.4k, False: 0]
  ------------------
50111|  10.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.4k|    position += constevalutil::static_string_size<Text>();
50113|  10.4k|  }
50114|  10.4k|}
_ZN8simdjson8fallback7builder14string_builder12start_objectEv:
50227|  4.08M|simdjson_inline void string_builder::start_object() noexcept {
50228|  4.08M|  if (capacity_check(1)) {
  ------------------
  |  Branch (50228:7): [True: 4.08M, False: 0]
  ------------------
50229|  4.08M|    buffer_data()[position++] = '{';
50230|  4.08M|  }
50231|  4.08M|}
_ZN8simdjson8fallback7builder14string_builder10end_objectEv:
50233|  4.08M|simdjson_inline void string_builder::end_object() noexcept {
50234|  4.08M|  if (capacity_check(1)) {
  ------------------
  |  Branch (50234:7): [True: 4.08M, False: 0]
  ------------------
50235|  4.08M|    buffer_data()[position++] = '}';
50236|  4.08M|  }
50237|  4.08M|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEEEvv:
50066|  12.1k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  12.1k|#if SIMDJSON_CONSTEVAL
50068|  12.1k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  12.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|  12.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.1k, False: 0]
  ------------------
50111|  12.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.1k|    position += constevalutil::static_string_size<Text>();
50113|  12.1k|  }
50114|  12.1k|}
_ZN8simdjson8fallback7builder14string_builder11start_arrayEv:
50239|   689k|simdjson_inline void string_builder::start_array() noexcept {
50240|   689k|  if (capacity_check(1)) {
  ------------------
  |  Branch (50240:7): [True: 689k, False: 0]
  ------------------
50241|   689k|    buffer_data()[position++] = '[';
50242|   689k|  }
50243|   689k|}
_ZN8simdjson8fallback7builder14string_builder9end_arrayEv:
50245|   689k|simdjson_inline void string_builder::end_array() noexcept {
50246|   689k|  if (capacity_check(1)) {
  ------------------
  |  Branch (50246:7): [True: 689k, False: 0]
  ------------------
50247|   689k|    buffer_data()[position++] = ']';
50248|   689k|  }
50249|   689k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEEvv:
50066|  66.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  66.3k|#if SIMDJSON_CONSTEVAL
50068|  66.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  66.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEEEEvv:
50108|  66.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  66.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  66.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 66.3k, False: 0]
  ------------------
50111|  66.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  66.3k|    position += constevalutil::static_string_size<Text>();
50113|  66.3k|  }
50114|  66.3k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEEEvv:
50066|  31.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  31.9k|#if SIMDJSON_CONSTEVAL
50068|  31.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  31.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|  31.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  31.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  31.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 31.9k, False: 0]
  ------------------
50111|  31.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  31.9k|    position += constevalutil::static_string_size<Text>();
50113|  31.9k|  }
50114|  31.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEEEvv:
50066|  25.7k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  25.7k|#if SIMDJSON_CONSTEVAL
50068|  25.7k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  25.7k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEEEEEvv:
50108|  25.7k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  25.7k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  25.7k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 25.7k, False: 0]
  ------------------
50111|  25.7k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  25.7k|    position += constevalutil::static_string_size<Text>();
50113|  25.7k|  }
50114|  25.7k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEmEEvT0_:
50301|  2.88k|string_builder::append_key_value(value_type value) noexcept {
50302|  2.88k|#if SIMDJSON_CONSTEVAL
50303|  2.88k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  2.88k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  2.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  2.88k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  2.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  2.88k|    escape_and_append_with_quotes(value);
50313|  2.88k|  }
50314|  2.88k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  2.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  2.88k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  2.88k|    escape_and_append_with_quotes(value);
50317|  2.88k|  }
50318|  2.88k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  2.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  2.88k|    escape_and_append_with_quotes(value);
50320|  2.88k|  }
50321|  2.88k|  else {
50322|  2.88k|    append(value);
50323|  2.88k|  }
50324|  2.88k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEEEEEvv:
50108|  2.88k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.88k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.88k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.88k, False: 0]
  ------------------
50111|  2.88k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.88k|    position += constevalutil::static_string_size<Text>();
50113|  2.88k|  }
50114|  2.88k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEETnDaLb1EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|      1|string_builder::append_key_value() noexcept {
50366|      1|#if SIMDJSON_CONSTEVAL
50367|      1|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|      1|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|      1|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|      1|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEELb1EEEEEvv:
50108|      1|simdjson_inline void string_builder::append_static_string() noexcept {
50109|      1|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|      1|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1, False: 0]
  ------------------
50111|      1|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|      1|    position += constevalutil::static_string_size<Text>();
50113|      1|  }
50114|      1|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEEEvv:
50352|  21.1k|string_builder::append_key_value() noexcept {
50353|  21.1k|#if SIMDJSON_CONSTEVAL
50354|  21.1k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  21.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEEEEEvv:
50108|  21.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  21.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  21.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 21.1k, False: 0]
  ------------------
50111|  21.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  21.1k|    position += constevalutil::static_string_size<Text>();
50113|  21.1k|  }
50114|  21.1k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEEEvv:
50066|  21.1k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  21.1k|#if SIMDJSON_CONSTEVAL
50068|  21.1k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  21.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEEEEEvv:
50108|  21.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  21.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  21.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 21.1k, False: 0]
  ------------------
50111|  21.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  21.1k|    position += constevalutil::static_string_size<Text>();
50113|  21.1k|  }
50114|  21.1k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEfEEvT0_:
50301|  21.1k|string_builder::append_key_value(value_type value) noexcept {
50302|  21.1k|#if SIMDJSON_CONSTEVAL
50303|  21.1k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  21.1k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  21.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  21.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  21.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  21.1k|    escape_and_append_with_quotes(value);
50313|  21.1k|  }
50314|  21.1k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  21.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  21.1k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  21.1k|    escape_and_append_with_quotes(value);
50317|  21.1k|  }
50318|  21.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  21.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  21.1k|    escape_and_append_with_quotes(value);
50320|  21.1k|  }
50321|  21.1k|  else {
50322|  21.1k|    append(value);
50323|  21.1k|  }
50324|  21.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEEEEvv:
50108|  21.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  21.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  21.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 21.1k, False: 0]
  ------------------
50111|  21.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  21.1k|    position += constevalutil::static_string_size<Text>();
50113|  21.1k|  }
50114|  21.1k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm4EEEtlA4_cLc98ELc111ELc120EEEEEEvv:
50352|     11|string_builder::append_key_value() noexcept {
50353|     11|#if SIMDJSON_CONSTEVAL
50354|     11|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|     11|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc98ELc111ELc120EEEEEEEEvv:
50108|     11|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     11|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     11|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 11, False: 0]
  ------------------
50111|     11|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     11|    position += constevalutil::static_string_size<Text>();
50113|     11|  }
50114|     11|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc98ELc111ELc120EEEEEEvv:
50066|     11|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|     11|#if SIMDJSON_CONSTEVAL
50068|     11|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|     11|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm4EEEtlA4_cLc98ELc111ELc120EEEEEEEEvv:
50108|     11|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     11|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     11|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 11, False: 0]
  ------------------
50111|     11|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     11|    position += constevalutil::static_string_size<Text>();
50113|     11|  }
50114|     11|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEEvv:
50066|     11|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|     11|#if SIMDJSON_CONSTEVAL
50068|     11|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|     11|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEEEEvv:
50108|     11|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     11|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     11|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 11, False: 0]
  ------------------
50111|     11|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     11|    position += constevalutil::static_string_size<Text>();
50113|     11|  }
50114|     11|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEEEvv:
50352|  6.73k|string_builder::append_key_value() noexcept {
50353|  6.73k|#if SIMDJSON_CONSTEVAL
50354|  6.73k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  6.73k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEEEEEvv:
50108|  6.73k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.73k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.73k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.73k, False: 0]
  ------------------
50111|  6.73k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.73k|    position += constevalutil::static_string_size<Text>();
50113|  6.73k|  }
50114|  6.73k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEEEvv:
50066|  6.73k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  6.73k|#if SIMDJSON_CONSTEVAL
50068|  6.73k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  6.73k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEEEEEvv:
50108|  6.73k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.73k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.73k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.73k, False: 0]
  ------------------
50111|  6.73k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.73k|    position += constevalutil::static_string_size<Text>();
50113|  6.73k|  }
50114|  6.73k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEfEEvT0_:
50301|  10.6k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.6k|#if SIMDJSON_CONSTEVAL
50303|  10.6k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.6k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.6k|    escape_and_append_with_quotes(value);
50313|  10.6k|  }
50314|  10.6k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.6k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.6k|    escape_and_append_with_quotes(value);
50317|  10.6k|  }
50318|  10.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  10.6k|    escape_and_append_with_quotes(value);
50320|  10.6k|  }
50321|  10.6k|  else {
50322|  10.6k|    append(value);
50323|  10.6k|  }
50324|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEEEEEvv:
50108|  10.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.6k, False: 0]
  ------------------
50111|  10.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.6k|    position += constevalutil::static_string_size<Text>();
50113|  10.6k|  }
50114|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEfEEvT0_:
50301|  10.6k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.6k|#if SIMDJSON_CONSTEVAL
50303|  10.6k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.6k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.6k|    escape_and_append_with_quotes(value);
50313|  10.6k|  }
50314|  10.6k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.6k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.6k|    escape_and_append_with_quotes(value);
50317|  10.6k|  }
50318|  10.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  10.6k|    escape_and_append_with_quotes(value);
50320|  10.6k|  }
50321|  10.6k|  else {
50322|  10.6k|    append(value);
50323|  10.6k|  }
50324|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEEEEEvv:
50108|  10.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.6k, False: 0]
  ------------------
50111|  10.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.6k|    position += constevalutil::static_string_size<Text>();
50113|  10.6k|  }
50114|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEfEEvT0_:
50301|  10.6k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.6k|#if SIMDJSON_CONSTEVAL
50303|  10.6k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.6k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.6k|    escape_and_append_with_quotes(value);
50313|  10.6k|  }
50314|  10.6k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.6k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.6k|    escape_and_append_with_quotes(value);
50317|  10.6k|  }
50318|  10.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  10.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  10.6k|    escape_and_append_with_quotes(value);
50320|  10.6k|  }
50321|  10.6k|  else {
50322|  10.6k|    append(value);
50323|  10.6k|  }
50324|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEEEEvv:
50108|  10.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.6k, False: 0]
  ------------------
50111|  10.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.6k|    position += constevalutil::static_string_size<Text>();
50113|  10.6k|  }
50114|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEEEvv:
50352|  3.87k|string_builder::append_key_value() noexcept {
50353|  3.87k|#if SIMDJSON_CONSTEVAL
50354|  3.87k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  3.87k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEEEEEvv:
50108|  3.87k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.87k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.87k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.87k, False: 0]
  ------------------
50111|  3.87k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.87k|    position += constevalutil::static_string_size<Text>();
50113|  3.87k|  }
50114|  3.87k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEEEvv:
50066|  3.87k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.87k|#if SIMDJSON_CONSTEVAL
50068|  3.87k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.87k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEEEEEvv:
50108|  3.87k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.87k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.87k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.87k, False: 0]
  ------------------
50111|  3.87k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.87k|    position += constevalutil::static_string_size<Text>();
50113|  3.87k|  }
50114|  3.87k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEEEvv:
50352|  12.5k|string_builder::append_key_value() noexcept {
50353|  12.5k|#if SIMDJSON_CONSTEVAL
50354|  12.5k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEEEEEvv:
50108|  12.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.5k, False: 0]
  ------------------
50111|  12.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.5k|    position += constevalutil::static_string_size<Text>();
50113|  12.5k|  }
50114|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEEEvv:
50066|  12.5k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  12.5k|#if SIMDJSON_CONSTEVAL
50068|  12.5k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEEEEEvv:
50108|  12.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.5k, False: 0]
  ------------------
50111|  12.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.5k|    position += constevalutil::static_string_size<Text>();
50113|  12.5k|  }
50114|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEfEEvT0_:
50301|  12.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  12.5k|#if SIMDJSON_CONSTEVAL
50303|  12.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  12.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  12.5k|    escape_and_append_with_quotes(value);
50313|  12.5k|  }
50314|  12.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  12.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  12.5k|    escape_and_append_with_quotes(value);
50317|  12.5k|  }
50318|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  12.5k|    escape_and_append_with_quotes(value);
50320|  12.5k|  }
50321|  12.5k|  else {
50322|  12.5k|    append(value);
50323|  12.5k|  }
50324|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEEEEEvv:
50108|  12.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.5k, False: 0]
  ------------------
50111|  12.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.5k|    position += constevalutil::static_string_size<Text>();
50113|  12.5k|  }
50114|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc90EEEEfEEvT0_:
50301|  12.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  12.5k|#if SIMDJSON_CONSTEVAL
50303|  12.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  12.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  12.5k|    escape_and_append_with_quotes(value);
50313|  12.5k|  }
50314|  12.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  12.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  12.5k|    escape_and_append_with_quotes(value);
50317|  12.5k|  }
50318|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  12.5k|    escape_and_append_with_quotes(value);
50320|  12.5k|  }
50321|  12.5k|  else {
50322|  12.5k|    append(value);
50323|  12.5k|  }
50324|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc90EEEEEEEEvv:
50108|  12.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.5k, False: 0]
  ------------------
50111|  12.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.5k|    position += constevalutil::static_string_size<Text>();
50113|  12.5k|  }
50114|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEbEEvT0_:
50301|  12.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  12.5k|#if SIMDJSON_CONSTEVAL
50303|  12.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  12.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  12.5k|    escape_and_append_with_quotes(value);
50313|  12.5k|  }
50314|  12.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  12.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  12.5k|    escape_and_append_with_quotes(value);
50317|  12.5k|  }
50318|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  12.5k|    escape_and_append_with_quotes(value);
50320|  12.5k|  }
50321|  12.5k|  else {
50322|  12.5k|    append(value);
50323|  12.5k|  }
50324|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEEEEvv:
50108|  12.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.5k, False: 0]
  ------------------
50111|  12.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.5k|    position += constevalutil::static_string_size<Text>();
50113|  12.5k|  }
50114|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder6appendIbvEEvT_:
49930|  12.5k|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|  12.5k|  static_assert(std::is_same<number_type, bool>::value ||
49932|  12.5k|                    std::is_integral<number_type>::value ||
49933|  12.5k|                    std::is_floating_point<number_type>::value,
49934|  12.5k|                "Unsupported number type");
49935|  12.5k|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|  12.5k|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|  12.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|  12.5k|    if (v) {
  ------------------
  |  Branch (49939:9): [True: 453, False: 12.1k]
  ------------------
49940|    453|      constexpr char true_literal[] = "true";
49941|    453|      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|    453|      if (capacity_check(true_len)) {
  ------------------
  |  Branch (49942:11): [True: 453, False: 0]
  ------------------
49943|    453|        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|    453|        position += true_len;
49945|    453|      }
49946|  12.1k|    } else {
49947|  12.1k|      constexpr char false_literal[] = "false";
49948|  12.1k|      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|  12.1k|      if (capacity_check(false_len)) {
  ------------------
  |  Branch (49949:11): [True: 12.1k, False: 0]
  ------------------
49950|  12.1k|        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|  12.1k|        position += false_len;
49952|  12.1k|      }
49953|  12.1k|    }
49954|       |  }
49955|       |  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
49956|       |    constexpr size_t max_number_size = 20;
49957|       |    if (capacity_check(max_number_size)) {
49958|       |      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|       |      char* end = internal::write_uint_jeaiii(
49960|       |          buffer_data() + position,
49961|       |          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|       |      position = end - buffer_data();
49963|       |    }
49964|       |  }
49965|       |  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|       |    constexpr size_t max_number_size = 20;
49968|       |    if (capacity_check(max_number_size)) {
49969|       |      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|       |      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|       |      unsigned_type pv = negative
49973|       |          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|       |          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|       |  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|       |    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|       |    if (capacity_check(max_number_size)) {
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|       |      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|       |                                               double(v));
50015|       |      position = end - buffer_data();
50016|       |    }
50017|       |  }
50018|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc97ELc118ELc101ELc114ELc97ELc103ELc101EEEEEEvv:
50066|   217k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|   217k|#if SIMDJSON_CONSTEVAL
50068|   217k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|   217k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc97ELc118ELc101ELc114ELc97ELc103ELc101EEEEEEEEvv:
50108|   217k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   217k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   217k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 217k, False: 0]
  ------------------
50111|   217k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   217k|    position += constevalutil::static_string_size<Text>();
50113|   217k|  }
50114|   217k|}
_ZN8simdjson8fallback7builder14string_builderC2Em:
49789|  40.9k|simdjson_inline string_builder::string_builder(size_t initial_capacity) {
49790|  40.9k|  grow_buffer(initial_capacity);
49791|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder7move_toERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
49836|  40.9k|inline error_code string_builder::move_to(std::string &out) noexcept {
49837|  40.9k|  if (!is_valid) {
  ------------------
  |  Branch (49837:7): [True: 0, False: 40.9k]
  ------------------
49838|      0|    return simdjson::OUT_OF_CAPACITY;
49839|      0|  }
49840|  40.9k|  if (position <= buffer.capacity() / 2) {
  ------------------
  |  Branch (49840:7): [True: 25.5k, False: 15.4k]
  ------------------
49841|       |    // Most of the buffer is unused: copy the bytes out, so that a small
49842|       |    // result does not keep the whole buffer allocated. The builder keeps its
49843|       |    // buffer for what it writes next.
49844|  25.5k|#if defined(__cpp_exceptions) || defined(_CPPUNWIND)
49845|  25.5k|    try {
49846|  25.5k|      out.assign(buffer.data(), position);
49847|  25.5k|    } catch (...) { // std::bad_alloc
49848|      0|      return simdjson::MEMALLOC;
49849|      0|    }
49850|       |#else
49851|       |    // Without exceptions, a failed allocation terminates the program.
49852|       |    out.assign(buffer.data(), position);
49853|       |#endif
49854|  25.5k|    position = 0;
49855|  25.5k|    return simdjson::SUCCESS;
49856|  25.5k|  }
49857|  15.4k|  buffer.resize(position); // shrinking never allocates
49858|  15.4k|  out = std::move(buffer);
49859|  15.4k|  std::string().swap(buffer);
49860|  15.4k|  position = 0;
49861|  15.4k|  capacity = 0;
49862|  15.4k|  return simdjson::SUCCESS;
49863|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc97ELc99ELc99ELc101ELc115ELc115ELc111ELc114ELc115EEEEEEvv:
50066|  7.07k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  7.07k|#if SIMDJSON_CONSTEVAL
50068|  7.07k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  7.07k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm10EEEtlA10_cLc97ELc99ELc99ELc101ELc115ELc115ELc111ELc114ELc115EEEEEEEEvv:
50108|  7.07k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.07k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.07k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.07k, False: 0]
  ------------------
50111|  7.07k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.07k|    position += constevalutil::static_string_size<Text>();
50113|  7.07k|  }
50114|  7.07k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEmEEvT0_:
50301|   160k|string_builder::append_key_value(value_type value) noexcept {
50302|   160k|#if SIMDJSON_CONSTEVAL
50303|   160k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   160k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   160k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   160k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   160k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   160k|    escape_and_append_with_quotes(value);
50313|   160k|  }
50314|   160k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   160k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   160k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   160k|    escape_and_append_with_quotes(value);
50317|   160k|  }
50318|   160k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   160k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   160k|    escape_and_append_with_quotes(value);
50320|   160k|  }
50321|   160k|  else {
50322|   160k|    append(value);
50323|   160k|  }
50324|   160k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEEEEvv:
50108|   160k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   160k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   160k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 160k, False: 0]
  ------------------
50111|   160k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   160k|    position += constevalutil::static_string_size<Text>();
50113|   160k|  }
50114|   160k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEmEEvT0_:
50301|   191k|string_builder::append_key_value(value_type value) noexcept {
50302|   191k|#if SIMDJSON_CONSTEVAL
50303|   191k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   191k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   191k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   191k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   191k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   191k|    escape_and_append_with_quotes(value);
50313|   191k|  }
50314|   191k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   191k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   191k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   191k|    escape_and_append_with_quotes(value);
50317|   191k|  }
50318|   191k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   191k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   191k|    escape_and_append_with_quotes(value);
50320|   191k|  }
50321|   191k|  else {
50322|   191k|    append(value);
50323|   191k|  }
50324|   191k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEEEEEvv:
50108|   191k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   191k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   191k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 191k, False: 0]
  ------------------
50111|   191k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   191k|    position += constevalutil::static_string_size<Text>();
50113|   191k|  }
50114|   191k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEENSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEvT0_:
50301|   154k|string_builder::append_key_value(value_type value) noexcept {
50302|   154k|#if SIMDJSON_CONSTEVAL
50303|   154k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   154k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   154k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   154k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   154k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   154k|    escape_and_append_with_quotes(value);
50313|   154k|  }
50314|   154k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   154k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   154k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   154k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|   154k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEEEEEvv:
50108|   154k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   154k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   154k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 154k, False: 0]
  ------------------
50111|   154k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   154k|    position += constevalutil::static_string_size<Text>();
50113|   154k|  }
50114|   154k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEjEEvT0_:
50301|   169k|string_builder::append_key_value(value_type value) noexcept {
50302|   169k|#if SIMDJSON_CONSTEVAL
50303|   169k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   169k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   169k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   169k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   169k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   169k|    escape_and_append_with_quotes(value);
50313|   169k|  }
50314|   169k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   169k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   169k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   169k|    escape_and_append_with_quotes(value);
50317|   169k|  }
50318|   169k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   169k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   169k|    escape_and_append_with_quotes(value);
50320|   169k|  }
50321|   169k|  else {
50322|   169k|    append(value);
50323|   169k|  }
50324|   169k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEEEEvv:
50108|   169k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   169k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   169k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 169k, False: 0]
  ------------------
50111|   169k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   169k|    position += constevalutil::static_string_size<Text>();
50113|   169k|  }
50114|   169k|}
_ZN8simdjson8fallback7builder14string_builder6appendIjvEEvT_:
49930|   169k|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|   169k|  static_assert(std::is_same<number_type, bool>::value ||
49932|   169k|                    std::is_integral<number_type>::value ||
49933|   169k|                    std::is_floating_point<number_type>::value,
49934|   169k|                "Unsupported number type");
49935|   169k|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|   169k|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|   169k|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|   169k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|   169k|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|   169k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|   169k|    constexpr size_t max_number_size = 20;
49957|   169k|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49957:9): [True: 169k, False: 0]
  ------------------
49958|   169k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|   169k|      char* end = internal::write_uint_jeaiii(
49960|   169k|          buffer_data() + position,
49961|   169k|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|   169k|      position = end - buffer_data();
49963|   169k|    }
49964|       |  }
49965|       |  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|       |    constexpr size_t max_number_size = 20;
49968|       |    if (capacity_check(max_number_size)) {
49969|       |      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|       |      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|       |      unsigned_type pv = negative
49973|       |          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|       |          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|       |  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|       |    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|       |    if (capacity_check(max_number_size)) {
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|       |      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|       |                                               double(v));
50015|       |      position = end - buffer_data();
50016|       |    }
50017|       |  }
50018|   169k|}
_ZN8simdjson8internal17write_uint_jeaiiiEPcm:
11991|  2.90M|simdjson_really_inline char *write_uint_jeaiii(char *b, uint64_t n) noexcept {
11992|  2.90M|  if (n < 100000000) {
  ------------------
  |  Branch (11992:7): [True: 2.60M, False: 298k]
  ------------------
11993|  2.60M|    return jeaiii_lt1e8(b, uint32_t(n));
11994|  2.60M|  }
11995|   298k|  if (n < (uint64_t(1) << 32)) {
  ------------------
  |  Branch (11995:7): [True: 53.1k, False: 245k]
  ------------------
11996|  53.1k|    return jeaiii_9_or_10(b, n);
11997|  53.1k|  }
11998|       |  // At least 10 digits: the low 8 digits, and 2 to 12 digits above them.
11999|   245k|  const uint32_t z = uint32_t(n % 100000000);
12000|   245k|  uint64_t u = n / 100000000;
12001|   245k|  if (u < 100000000) {
  ------------------
  |  Branch (12001:7): [True: 154k, False: 90.7k]
  ------------------
12002|       |    // u has 2 to 8 digits (if u < 10, n would be below 2^32).
12003|   154k|    b = jeaiii_lt1e8(b, uint32_t(u));
12004|   154k|  } else if (u < (uint64_t(1) << 32)) {
  ------------------
  |  Branch (12004:14): [True: 33.0k, False: 57.6k]
  ------------------
12005|  33.0k|    b = jeaiii_9_or_10(b, u);
12006|  57.6k|  } else {
12007|       |    // u has 11 or 12 digits: split off 8 more.
12008|  57.6k|    const uint32_t y = uint32_t(u % 100000000);
12009|  57.6k|    u /= 100000000;
12010|  57.6k|    b = jeaiii_lt1e8(b, uint32_t(u)); // 3 or 4 digits
12011|  57.6k|    b = jeaiii_8_digits(b, y);
12012|  57.6k|  }
12013|   245k|  return jeaiii_8_digits(b, z);
12014|   298k|}
_ZN8simdjson8internal12jeaiii_lt1e8EPcj:
11923|  2.81M|simdjson_really_inline char *jeaiii_lt1e8(char *b, uint32_t n) noexcept {
11924|  2.81M|  constexpr uint64_t mask24 = (uint64_t(1) << 24) - 1;
11925|  2.81M|  constexpr uint64_t mask32 = (uint64_t(1) << 32) - 1;
11926|  2.81M|  if (n < 100) {
  ------------------
  |  Branch (11926:7): [True: 1.57M, False: 1.24M]
  ------------------
11927|  1.57M|    jeaiii_write_fd(b, n);
11928|  1.57M|    return n < 10 ? b + 1 : b + 2;
  ------------------
  |  Branch (11928:12): [True: 1.10M, False: 464k]
  ------------------
11929|  1.57M|  }
11930|  1.24M|  if (n < 1000000) {
  ------------------
  |  Branch (11930:7): [True: 1.05M, False: 186k]
  ------------------
11931|  1.05M|    if (n < 10000) {
  ------------------
  |  Branch (11931:9): [True: 667k, False: 392k]
  ------------------
11932|   667k|      const uint32_t f0 = uint32_t(10 * (1 << 24) / 1e3 + 1) * n;
11933|   667k|      jeaiii_write_fd(b, f0 >> 24);
11934|   667k|      b -= n < 1000;
11935|   667k|      const uint32_t f2 = uint32_t(f0 & mask24) * 100;
11936|   667k|      jeaiii_write_dd(b + 2, f2 >> 24);
11937|   667k|      return b + 4;
11938|   667k|    }
11939|   392k|    const uint64_t f0 = uint64_t(10 * (1ull << 32) / 1e5 + 1) * n;
11940|   392k|    jeaiii_write_fd(b, f0 >> 32);
11941|   392k|    b -= n < 100000;
11942|   392k|    const uint64_t f2 = (f0 & mask32) * 100;
11943|   392k|    jeaiii_write_dd(b + 2, f2 >> 32);
11944|   392k|    const uint64_t f4 = (f2 & mask32) * 100;
11945|   392k|    jeaiii_write_dd(b + 4, f4 >> 32);
11946|   392k|    return b + 6;
11947|  1.05M|  }
11948|   186k|  const uint64_t f0 = uint64_t(10 * (1ull << 48) / 1e7 + 1) * n >> 16;
11949|   186k|  jeaiii_write_fd(b, f0 >> 32);
11950|   186k|  b -= n < 10000000;
11951|   186k|  const uint64_t f2 = (f0 & mask32) * 100;
11952|   186k|  jeaiii_write_dd(b + 2, f2 >> 32);
11953|   186k|  const uint64_t f4 = (f2 & mask32) * 100;
11954|   186k|  jeaiii_write_dd(b + 4, f4 >> 32);
11955|   186k|  const uint64_t f6 = (f4 & mask32) * 100;
11956|   186k|  jeaiii_write_dd(b + 6, f6 >> 32);
11957|   186k|  return b + 8;
11958|  1.24M|}
_ZN8simdjson8internal15jeaiii_write_fdEPcm:
11918|  2.90M|simdjson_really_inline void jeaiii_write_fd(char *p, uint64_t k) noexcept {
11919|  2.90M|  std::memcpy(p, &jeaiii_fd[2 * k], 2);
11920|  2.90M|}
_ZN8simdjson8internal15jeaiii_write_ddEPcm:
11915|  3.56M|simdjson_really_inline void jeaiii_write_dd(char *p, uint64_t k) noexcept {
11916|  3.56M|  std::memcpy(p, &jeaiii_dd[2 * k], 2);
11917|  3.56M|}
_ZN8simdjson8internal14jeaiii_9_or_10EPcm:
11975|  86.2k|simdjson_really_inline char *jeaiii_9_or_10(char *b, uint64_t n) noexcept {
11976|  86.2k|  constexpr uint64_t mask57 = (uint64_t(1) << 57) - 1;
11977|  86.2k|  const uint64_t f0 = uint64_t(10 * (1ull << 57) / 1e9 + 1) * n;
11978|  86.2k|  jeaiii_write_fd(b, f0 >> 57);
11979|  86.2k|  b -= n < 1000000000;
11980|  86.2k|  const uint64_t f2 = (f0 & mask57) * 100;
11981|  86.2k|  jeaiii_write_dd(b + 2, f2 >> 57);
11982|  86.2k|  const uint64_t f4 = (f2 & mask57) * 100;
11983|  86.2k|  jeaiii_write_dd(b + 4, f4 >> 57);
11984|  86.2k|  const uint64_t f6 = (f4 & mask57) * 100;
11985|  86.2k|  jeaiii_write_dd(b + 6, f6 >> 57);
11986|  86.2k|  const uint64_t f8 = (f6 & mask57) * 100;
11987|  86.2k|  jeaiii_write_dd(b + 8, f8 >> 57);
11988|  86.2k|  return b + 10;
11989|  86.2k|}
_ZN8simdjson8internal15jeaiii_8_digitsEPcj:
11961|   303k|simdjson_really_inline char *jeaiii_8_digits(char *b, uint32_t z) noexcept {
11962|   303k|  constexpr uint64_t mask32 = (uint64_t(1) << 32) - 1;
11963|   303k|  const uint64_t f0 = (uint64_t((1ull << 48) / 1e6 + 1) * z >> 16) + 1;
11964|   303k|  jeaiii_write_dd(b, f0 >> 32);
11965|   303k|  const uint64_t f2 = (f0 & mask32) * 100;
11966|   303k|  jeaiii_write_dd(b + 2, f2 >> 32);
11967|   303k|  const uint64_t f4 = (f2 & mask32) * 100;
11968|   303k|  jeaiii_write_dd(b + 4, f4 >> 32);
11969|   303k|  const uint64_t f6 = (f4 & mask32) * 100;
11970|   303k|  jeaiii_write_dd(b + 6, f6 >> 32);
11971|   303k|  return b + 8;
11972|   303k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEETnDaLb1EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|  4.85k|string_builder::append_key_value() noexcept {
50366|  4.85k|#if SIMDJSON_CONSTEVAL
50367|  4.85k|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|  4.85k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|  4.85k|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|  4.85k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEELb1EEEEEvv:
50108|  4.85k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.85k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.85k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.85k, False: 0]
  ------------------
50111|  4.85k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.85k|    position += constevalutil::static_string_size<Text>();
50113|  4.85k|  }
50114|  4.85k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEmEEvT0_:
50301|   142k|string_builder::append_key_value(value_type value) noexcept {
50302|   142k|#if SIMDJSON_CONSTEVAL
50303|   142k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   142k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   142k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   142k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   142k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   142k|    escape_and_append_with_quotes(value);
50313|   142k|  }
50314|   142k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   142k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   142k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   142k|    escape_and_append_with_quotes(value);
50317|   142k|  }
50318|   142k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   142k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   142k|    escape_and_append_with_quotes(value);
50320|   142k|  }
50321|   142k|  else {
50322|   142k|    append(value);
50323|   142k|  }
50324|   142k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEEEEEvv:
50108|   142k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   142k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   142k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 142k, False: 0]
  ------------------
50111|   142k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   142k|    position += constevalutil::static_string_size<Text>();
50113|   142k|  }
50114|   142k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEEEvv:
50066|  14.2k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  14.2k|#if SIMDJSON_CONSTEVAL
50068|  14.2k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  14.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEEEEEvv:
50108|  14.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.2k, False: 0]
  ------------------
50111|  14.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.2k|    position += constevalutil::static_string_size<Text>();
50113|  14.2k|  }
50114|  14.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEEEvv:
50066|  14.2k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  14.2k|#if SIMDJSON_CONSTEVAL
50068|  14.2k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  14.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEEEEEvv:
50108|  14.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.2k, False: 0]
  ------------------
50111|  14.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.2k|    position += constevalutil::static_string_size<Text>();
50113|  14.2k|  }
50114|  14.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEEvv:
50066|  14.2k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  14.2k|#if SIMDJSON_CONSTEVAL
50068|  14.2k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  14.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEEEEvv:
50108|  14.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.2k, False: 0]
  ------------------
50111|  14.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.2k|    position += constevalutil::static_string_size<Text>();
50113|  14.2k|  }
50114|  14.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc109ELc97ELc120EEEEEEvv:
50066|  82.1k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  82.1k|#if SIMDJSON_CONSTEVAL
50068|  82.1k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  82.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm4EEEtlA4_cLc109ELc97ELc120EEEEEEEEvv:
50108|  82.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  82.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  82.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 82.1k, False: 0]
  ------------------
50111|  82.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  82.1k|    position += constevalutil::static_string_size<Text>();
50113|  82.1k|  }
50114|  82.1k|}
_ZN8simdjson8fallback7builder14string_builder6appendIdvEEvT_:
49930|   346k|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|   346k|  static_assert(std::is_same<number_type, bool>::value ||
49932|   346k|                    std::is_integral<number_type>::value ||
49933|   346k|                    std::is_floating_point<number_type>::value,
49934|   346k|                "Unsupported number type");
49935|   346k|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|   346k|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|   346k|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|   346k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|   346k|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|   346k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|   346k|    constexpr size_t max_number_size = 20;
49957|   346k|    if (capacity_check(max_number_size)) {
49958|   346k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|   346k|      char* end = internal::write_uint_jeaiii(
49960|   346k|          buffer_data() + position,
49961|   346k|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|   346k|      position = end - buffer_data();
49963|   346k|    }
49964|   346k|  }
49965|   346k|  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
  ------------------
  |  |  101|   346k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|   346k|    constexpr size_t max_number_size = 20;
49968|   346k|    if (capacity_check(max_number_size)) {
49969|   346k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|   346k|      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|   346k|      unsigned_type pv = negative
49973|   346k|          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|   346k|          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|   346k|  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
  ------------------
  |  |  101|   346k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|   346k|    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|   346k|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49988:9): [True: 346k, False: 0]
  ------------------
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|   346k|      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|   346k|                                               double(v));
50015|   346k|      position = end - buffer_data();
50016|   346k|    }
50017|   346k|  }
50018|   346k|}
_ZN8simdjson8fallback7builder14string_builder6appendIlvEEvT_:
49930|  79.4k|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|  79.4k|  static_assert(std::is_same<number_type, bool>::value ||
49932|  79.4k|                    std::is_integral<number_type>::value ||
49933|  79.4k|                    std::is_floating_point<number_type>::value,
49934|  79.4k|                "Unsupported number type");
49935|  79.4k|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|  79.4k|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|  79.4k|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|  79.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|  79.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|  79.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|  79.4k|    constexpr size_t max_number_size = 20;
49957|  79.4k|    if (capacity_check(max_number_size)) {
49958|  79.4k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|  79.4k|      char* end = internal::write_uint_jeaiii(
49960|  79.4k|          buffer_data() + position,
49961|  79.4k|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|  79.4k|      position = end - buffer_data();
49963|  79.4k|    }
49964|  79.4k|  }
49965|  79.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
  ------------------
  |  |  101|  79.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|  79.4k|    constexpr size_t max_number_size = 20;
49968|  79.4k|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49968:9): [True: 79.4k, False: 0]
  ------------------
49969|  79.4k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|  79.4k|      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|  79.4k|      unsigned_type pv = negative
  ------------------
  |  Branch (49972:26): [True: 8.06k, False: 71.3k]
  ------------------
49973|  79.4k|          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|  79.4k|          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|  79.4k|      buffer_data()[position] = '-';
49977|  79.4k|      position += negative;
49978|  79.4k|      char* end = internal::write_uint_jeaiii(
49979|  79.4k|          buffer_data() + position, static_cast<uint64_t>(pv));
49980|  79.4k|      position = end - buffer_data();
49981|  79.4k|    }
49982|       |  }
49983|       |  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|       |    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|       |    if (capacity_check(max_number_size)) {
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|       |      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|       |                                               double(v));
50015|       |      position = end - buffer_data();
50016|       |    }
50017|       |  }
50018|  79.4k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc109ELc105ELc110EEEEEEvv:
50066|  81.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  81.9k|#if SIMDJSON_CONSTEVAL
50068|  81.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  81.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEEEEEvv:
50108|  81.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  81.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  81.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 81.9k, False: 0]
  ------------------
50111|  81.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  81.9k|    position += constevalutil::static_string_size<Text>();
50113|  81.9k|  }
50114|  81.9k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEENSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEvT0_:
50301|   484k|string_builder::append_key_value(value_type value) noexcept {
50302|   484k|#if SIMDJSON_CONSTEVAL
50303|   484k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   484k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   484k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   484k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   484k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   484k|    escape_and_append_with_quotes(value);
50313|   484k|  }
50314|   484k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   484k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   484k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   484k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|   484k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEEEEvv:
50108|   484k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   484k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   484k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 484k, False: 0]
  ------------------
50111|   484k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   484k|    position += constevalutil::static_string_size<Text>();
50113|   484k|  }
50114|   484k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc97ELc110ELc105ELc109ELc97ELc116ELc105ELc111ELc110ELc115EEEEEEvv:
50066|    643|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    643|#if SIMDJSON_CONSTEVAL
50068|    643|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    643|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc97ELc110ELc105ELc109ELc97ELc116ELc105ELc111ELc110ELc115EEEEEEEEvv:
50108|    643|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    643|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    643|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 643, False: 0]
  ------------------
50111|    643|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    643|    position += constevalutil::static_string_size<Text>();
50113|    643|  }
50114|    643|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEEEvv:
50066|  22.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  22.0k|#if SIMDJSON_CONSTEVAL
50068|  22.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  22.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEEEEEvv:
50108|  22.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  22.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  22.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 22.0k, False: 0]
  ------------------
50111|  22.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  22.0k|    position += constevalutil::static_string_size<Text>();
50113|  22.0k|  }
50114|  22.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEmEEvT0_:
50301|  47.1k|string_builder::append_key_value(value_type value) noexcept {
50302|  47.1k|#if SIMDJSON_CONSTEVAL
50303|  47.1k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  47.1k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  47.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  47.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  47.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  47.1k|    escape_and_append_with_quotes(value);
50313|  47.1k|  }
50314|  47.1k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  47.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  47.1k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  47.1k|    escape_and_append_with_quotes(value);
50317|  47.1k|  }
50318|  47.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  47.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  47.1k|    escape_and_append_with_quotes(value);
50320|  47.1k|  }
50321|  47.1k|  else {
50322|  47.1k|    append(value);
50323|  47.1k|  }
50324|  47.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEEEEEvv:
50108|  47.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  47.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  47.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 47.1k, False: 0]
  ------------------
50111|  47.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  47.1k|    position += constevalutil::static_string_size<Text>();
50113|  47.1k|  }
50114|  47.1k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEEvv:
50066|  28.6k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  28.6k|#if SIMDJSON_CONSTEVAL
50068|  28.6k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  28.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEEEEvv:
50108|  28.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  28.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  28.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 28.6k, False: 0]
  ------------------
50111|  28.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  28.6k|    position += constevalutil::static_string_size<Text>();
50113|  28.6k|  }
50114|  28.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEmEEvT0_:
50301|  27.7k|string_builder::append_key_value(value_type value) noexcept {
50302|  27.7k|#if SIMDJSON_CONSTEVAL
50303|  27.7k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  27.7k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  27.7k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  27.7k|    escape_and_append_with_quotes(value);
50313|  27.7k|  }
50314|  27.7k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  27.7k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  27.7k|    escape_and_append_with_quotes(value);
50317|  27.7k|  }
50318|  27.7k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  27.7k|    escape_and_append_with_quotes(value);
50320|  27.7k|  }
50321|  27.7k|  else {
50322|  27.7k|    append(value);
50323|  27.7k|  }
50324|  27.7k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEEEEEvv:
50108|  27.7k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  27.7k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  27.7k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 27.7k, False: 0]
  ------------------
50111|  27.7k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  27.7k|    position += constevalutil::static_string_size<Text>();
50113|  27.7k|  }
50114|  27.7k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc112ELc97ELc116ELc104EEEENSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEEEvT0_:
50301|  28.6k|string_builder::append_key_value(value_type value) noexcept {
50302|  28.6k|#if SIMDJSON_CONSTEVAL
50303|  28.6k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  28.6k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  28.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  28.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  28.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  28.6k|    escape_and_append_with_quotes(value);
50313|  28.6k|  }
50314|  28.6k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  28.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  28.6k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  28.6k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  28.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc112ELc97ELc116ELc104EEEEEEEEvv:
50108|  28.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  28.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  28.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 28.6k, False: 0]
  ------------------
50111|  28.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  28.6k|    position += constevalutil::static_string_size<Text>();
50113|  28.6k|  }
50114|  28.6k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEEEvv:
50066|  26.2k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  26.2k|#if SIMDJSON_CONSTEVAL
50068|  26.2k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  26.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEEEEEvv:
50108|  26.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  26.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  26.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 26.2k, False: 0]
  ------------------
50111|  26.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  26.2k|    position += constevalutil::static_string_size<Text>();
50113|  26.2k|  }
50114|  26.2k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEmEEvT0_:
50301|  32.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  32.5k|#if SIMDJSON_CONSTEVAL
50303|  32.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  32.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  32.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  32.5k|    escape_and_append_with_quotes(value);
50313|  32.5k|  }
50314|  32.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  32.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  32.5k|    escape_and_append_with_quotes(value);
50317|  32.5k|  }
50318|  32.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  32.5k|    escape_and_append_with_quotes(value);
50320|  32.5k|  }
50321|  32.5k|  else {
50322|  32.5k|    append(value);
50323|  32.5k|  }
50324|  32.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEEEEEvv:
50108|  32.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  32.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  32.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 32.5k, False: 0]
  ------------------
50111|  32.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  32.5k|    position += constevalutil::static_string_size<Text>();
50113|  32.5k|  }
50114|  32.5k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEETnS5_XtlNS5_ILm5EEEtlA5_cLc83ELc84ELc69ELc80EEEEEEvv:
50352|  7.40k|string_builder::append_key_value() noexcept {
50353|  7.40k|#if SIMDJSON_CONSTEVAL
50354|  7.40k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  7.40k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm5EEEtlA5_cLc83ELc84ELc69ELc80EEEEEEEEvv:
50108|  7.40k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.40k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.40k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.40k, False: 0]
  ------------------
50111|  7.40k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.40k|    position += constevalutil::static_string_size<Text>();
50113|  7.40k|  }
50114|  7.40k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEETnS5_XtlNS5_ILm12EEEtlA12_cLc67ELc85ELc66ELc73ELc67ELc83ELc80ELc76ELc73ELc78ELc69EEEEEEvv:
50352|  6.19k|string_builder::append_key_value() noexcept {
50353|  6.19k|#if SIMDJSON_CONSTEVAL
50354|  6.19k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  6.19k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm12EEEtlA12_cLc67ELc85ELc66ELc73ELc67ELc83ELc80ELc76ELc73ELc78ELc69EEEEEEEEvv:
50108|  6.19k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.19k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.19k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.19k, False: 0]
  ------------------
50111|  6.19k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.19k|    position += constevalutil::static_string_size<Text>();
50113|  6.19k|  }
50114|  6.19k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEmEEvT0_:
50301|  32.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  32.5k|#if SIMDJSON_CONSTEVAL
50303|  32.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  32.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  32.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  32.5k|    escape_and_append_with_quotes(value);
50313|  32.5k|  }
50314|  32.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  32.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  32.5k|    escape_and_append_with_quotes(value);
50317|  32.5k|  }
50318|  32.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  32.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  32.5k|    escape_and_append_with_quotes(value);
50320|  32.5k|  }
50321|  32.5k|  else {
50322|  32.5k|    append(value);
50323|  32.5k|  }
50324|  32.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEEEEvv:
50108|  32.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  32.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  32.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 32.5k, False: 0]
  ------------------
50111|  32.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  32.5k|    position += constevalutil::static_string_size<Text>();
50113|  32.5k|  }
50114|  32.5k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc98ELc117ELc102ELc102ELc101ELc114ELc115EEEEEEvv:
50066|  8.57k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  8.57k|#if SIMDJSON_CONSTEVAL
50068|  8.57k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  8.57k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc98ELc117ELc102ELc102ELc101ELc114ELc115EEEEEEEEvv:
50108|  8.57k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.57k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.57k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.57k, False: 0]
  ------------------
50111|  8.57k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.57k|    position += constevalutil::static_string_size<Text>();
50113|  8.57k|  }
50114|  8.57k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEvv:
50066|  27.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  27.0k|#if SIMDJSON_CONSTEVAL
50068|  27.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  27.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  27.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  27.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  27.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 27.0k, False: 0]
  ------------------
50111|  27.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  27.0k|    position += constevalutil::static_string_size<Text>();
50113|  27.0k|  }
50114|  27.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEmEEvT0_:
50301|   195k|string_builder::append_key_value(value_type value) noexcept {
50302|   195k|#if SIMDJSON_CONSTEVAL
50303|   195k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   195k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   195k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   195k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   195k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   195k|    escape_and_append_with_quotes(value);
50313|   195k|  }
50314|   195k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   195k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   195k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   195k|    escape_and_append_with_quotes(value);
50317|   195k|  }
50318|   195k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   195k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   195k|    escape_and_append_with_quotes(value);
50320|   195k|  }
50321|   195k|  else {
50322|   195k|    append(value);
50323|   195k|  }
50324|   195k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEEEEEvv:
50108|   195k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   195k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   195k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 195k, False: 0]
  ------------------
50111|   195k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   195k|    position += constevalutil::static_string_size<Text>();
50113|   195k|  }
50114|   195k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119ELc115EEEEEEvv:
50066|  5.21k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  5.21k|#if SIMDJSON_CONSTEVAL
50068|  5.21k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  5.21k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm12EEEtlA12_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119ELc115EEEEEEEEvv:
50108|  5.21k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.21k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.21k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.21k, False: 0]
  ------------------
50111|  5.21k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.21k|    position += constevalutil::static_string_size<Text>();
50113|  5.21k|  }
50114|  5.21k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEmEEvT0_:
50301|   152k|string_builder::append_key_value(value_type value) noexcept {
50302|   152k|#if SIMDJSON_CONSTEVAL
50303|   152k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   152k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   152k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   152k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   152k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   152k|    escape_and_append_with_quotes(value);
50313|   152k|  }
50314|   152k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   152k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   152k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   152k|    escape_and_append_with_quotes(value);
50317|   152k|  }
50318|   152k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   152k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   152k|    escape_and_append_with_quotes(value);
50320|   152k|  }
50321|   152k|  else {
50322|   152k|    append(value);
50323|   152k|  }
50324|   152k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEEEEEvv:
50108|   152k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   152k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   152k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 152k, False: 0]
  ------------------
50111|   152k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   152k|    position += constevalutil::static_string_size<Text>();
50113|   152k|  }
50114|   152k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEmEEvT0_:
50301|  36.9k|string_builder::append_key_value(value_type value) noexcept {
50302|  36.9k|#if SIMDJSON_CONSTEVAL
50303|  36.9k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  36.9k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  36.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  36.9k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  36.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  36.9k|    escape_and_append_with_quotes(value);
50313|  36.9k|  }
50314|  36.9k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  36.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  36.9k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  36.9k|    escape_and_append_with_quotes(value);
50317|  36.9k|  }
50318|  36.9k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  36.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  36.9k|    escape_and_append_with_quotes(value);
50320|  36.9k|  }
50321|  36.9k|  else {
50322|  36.9k|    append(value);
50323|  36.9k|  }
50324|  36.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEEEEEvv:
50108|  36.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  36.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  36.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 36.9k, False: 0]
  ------------------
50111|  36.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  36.9k|    position += constevalutil::static_string_size<Text>();
50113|  36.9k|  }
50114|  36.9k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEtEEvT0_:
50301|  67.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  67.5k|#if SIMDJSON_CONSTEVAL
50303|  67.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  67.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  67.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  67.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  67.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  67.5k|    escape_and_append_with_quotes(value);
50313|  67.5k|  }
50314|  67.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  67.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  67.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  67.5k|    escape_and_append_with_quotes(value);
50317|  67.5k|  }
50318|  67.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  67.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  67.5k|    escape_and_append_with_quotes(value);
50320|  67.5k|  }
50321|  67.5k|  else {
50322|  67.5k|    append(value);
50323|  67.5k|  }
50324|  67.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEEEEvv:
50108|  67.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  67.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  67.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 67.5k, False: 0]
  ------------------
50111|  67.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  67.5k|    position += constevalutil::static_string_size<Text>();
50113|  67.5k|  }
50114|  67.5k|}
_ZN8simdjson8fallback7builder14string_builder6appendItvEEvT_:
49930|  89.2k|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|  89.2k|  static_assert(std::is_same<number_type, bool>::value ||
49932|  89.2k|                    std::is_integral<number_type>::value ||
49933|  89.2k|                    std::is_floating_point<number_type>::value,
49934|  89.2k|                "Unsupported number type");
49935|  89.2k|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|  89.2k|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|  89.2k|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|  89.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|  89.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|  89.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|  89.2k|    constexpr size_t max_number_size = 20;
49957|  89.2k|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49957:9): [True: 89.2k, False: 0]
  ------------------
49958|  89.2k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|  89.2k|      char* end = internal::write_uint_jeaiii(
49960|  89.2k|          buffer_data() + position,
49961|  89.2k|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|  89.2k|      position = end - buffer_data();
49963|  89.2k|    }
49964|       |  }
49965|       |  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|       |    constexpr size_t max_number_size = 20;
49968|       |    if (capacity_check(max_number_size)) {
49969|       |      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|       |      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|       |      unsigned_type pv = negative
49973|       |          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|       |          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|       |  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|       |    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|       |    if (capacity_check(max_number_size)) {
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|       |      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|       |                                               double(v));
50015|       |      position = end - buffer_data();
50016|       |    }
50017|       |  }
50018|  89.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEEEvv:
50066|  21.8k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  21.8k|#if SIMDJSON_CONSTEVAL
50068|  21.8k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  21.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEEEEEvv:
50108|  21.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  21.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  21.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 21.8k, False: 0]
  ------------------
50111|  21.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  21.8k|    position += constevalutil::static_string_size<Text>();
50113|  21.8k|  }
50114|  21.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc65ELc84ELc84ELc82ELc73ELc66ELc85ELc84ELc69ELc83EEEEEEvv:
50066|  15.1k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  15.1k|#if SIMDJSON_CONSTEVAL
50068|  15.1k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  15.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc65ELc84ELc84ELc82ELc73ELc66ELc85ELc84ELc69ELc83EEEEEEEEvv:
50108|  15.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  15.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  15.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15.1k, False: 0]
  ------------------
50111|  15.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  15.1k|    position += constevalutil::static_string_size<Text>();
50113|  15.1k|  }
50114|  15.1k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc84ELc82ELc73ELc65ELc78ELc71ELc76ELc69ELc83EEEEEEvv:
50066|  6.34k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  6.34k|#if SIMDJSON_CONSTEVAL
50068|  6.34k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  6.34k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm10EEEtlA10_cLc84ELc82ELc73ELc65ELc78ELc71ELc76ELc69ELc83EEEEEEEEvv:
50108|  6.34k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.34k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.34k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.34k, False: 0]
  ------------------
50111|  6.34k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.34k|    position += constevalutil::static_string_size<Text>();
50113|  6.34k|  }
50114|  6.34k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc73ELc78ELc68ELc73ELc67ELc69ELc83EEEEEEvv:
50066|    367|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    367|#if SIMDJSON_CONSTEVAL
50068|    367|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    367|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc73ELc78ELc68ELc73ELc67ELc69ELc83EEEEEEEEvv:
50108|    367|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    367|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    367|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 367, False: 0]
  ------------------
50111|    367|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    367|    position += constevalutil::static_string_size<Text>();
50113|    367|  }
50114|    367|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc102ELc105ELc108ELc116ELc101ELc114EEEEEEvv:
50066|  4.30k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.30k|#if SIMDJSON_CONSTEVAL
50068|  4.30k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.30k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc102ELc105ELc108ELc116ELc101ELc114EEEEEEEEvv:
50108|  4.30k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.30k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.30k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.30k, False: 0]
  ------------------
50111|  4.30k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.30k|    position += constevalutil::static_string_size<Text>();
50113|  4.30k|  }
50114|  4.30k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc69ELc88ELc80ELc79ELc78ELc69ELc78ELc84ELc73ELc65ELc76EEEEEEvv:
50066|    859|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    859|#if SIMDJSON_CONSTEVAL
50068|    859|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    859|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm12EEEtlA12_cLc69ELc88ELc80ELc79ELc78ELc69ELc78ELc84ELc73ELc65ELc76EEEEEEEEvv:
50108|    859|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    859|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    859|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 859, False: 0]
  ------------------
50111|    859|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    859|    position += constevalutil::static_string_size<Text>();
50113|    859|  }
50114|    859|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc81ELc85ELc65ELc84ELc69ELc82ELc78ELc73ELc79ELc78EEEEEEvv:
50066|    151|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    151|#if SIMDJSON_CONSTEVAL
50068|    151|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    151|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc81ELc85ELc65ELc84ELc69ELc82ELc78ELc73ELc79ELc78EEEEEEEEvv:
50108|    151|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    151|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    151|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 151, False: 0]
  ------------------
50111|    151|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    151|    position += constevalutil::static_string_size<Text>();
50113|    151|  }
50114|    151|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc79ELc67ELc84ELc65ELc72ELc69ELc68ELc82ELc65ELc76EEEEEEvv:
50066|  3.02k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.02k|#if SIMDJSON_CONSTEVAL
50068|  3.02k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.02k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc79ELc67ELc84ELc65ELc72ELc69ELc68ELc82ELc65ELc76EEEEEEEEvv:
50108|  3.02k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.02k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.02k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.02k, False: 0]
  ------------------
50111|  3.02k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.02k|    position += constevalutil::static_string_size<Text>();
50113|  3.02k|  }
50114|  3.02k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc67ELc79ELc76ELc79ELc82EEEEEEvv:
50066|    265|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    265|#if SIMDJSON_CONSTEVAL
50068|    265|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    265|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc67ELc79ELc76ELc79ELc82EEEEEEEEvv:
50108|    265|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    265|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    265|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 265, False: 0]
  ------------------
50111|    265|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    265|    position += constevalutil::static_string_size<Text>();
50113|    265|  }
50114|    265|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc99ELc97ELc109ELc101ELc114ELc97ELc115EEEEEEvv:
50066|    827|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    827|#if SIMDJSON_CONSTEVAL
50068|    827|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    827|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc99ELc97ELc109ELc101ELc114ELc97ELc115EEEEEEEEvv:
50108|    827|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    827|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    827|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 827, False: 0]
  ------------------
50111|    827|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    827|    position += constevalutil::static_string_size<Text>();
50113|    827|  }
50114|    827|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc105ELc109ELc97ELc103ELc101ELc115EEEEEEvv:
50066|  8.27k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  8.27k|#if SIMDJSON_CONSTEVAL
50068|  8.27k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  8.27k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc105ELc109ELc97ELc103ELc101ELc115EEEEEEEEvv:
50108|  8.27k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.27k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.27k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.27k, False: 0]
  ------------------
50111|  8.27k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.27k|    position += constevalutil::static_string_size<Text>();
50113|  8.27k|  }
50114|  8.27k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEEEvv:
50066|  13.4k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  13.4k|#if SIMDJSON_CONSTEVAL
50068|  13.4k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  13.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEEEEEvv:
50108|  13.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  13.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  13.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 13.4k, False: 0]
  ------------------
50111|  13.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  13.4k|    position += constevalutil::static_string_size<Text>();
50113|  13.4k|  }
50114|  13.4k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEEvv:
50066|    874|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    874|#if SIMDJSON_CONSTEVAL
50068|    874|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    874|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEEEEvv:
50108|    874|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    874|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    874|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 874, False: 0]
  ------------------
50111|    874|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    874|    position += constevalutil::static_string_size<Text>();
50113|    874|  }
50114|    874|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEEEvv:
50066|  7.95k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  7.95k|#if SIMDJSON_CONSTEVAL
50068|  7.95k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  7.95k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEEEEEvv:
50108|  7.95k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.95k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.95k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.95k, False: 0]
  ------------------
50111|  7.95k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.95k|    position += constevalutil::static_string_size<Text>();
50113|  7.95k|  }
50114|  7.95k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEfEEvT0_:
50301|  9.17k|string_builder::append_key_value(value_type value) noexcept {
50302|  9.17k|#if SIMDJSON_CONSTEVAL
50303|  9.17k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  9.17k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  9.17k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  9.17k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  9.17k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  9.17k|    escape_and_append_with_quotes(value);
50313|  9.17k|  }
50314|  9.17k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  9.17k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  9.17k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  9.17k|    escape_and_append_with_quotes(value);
50317|  9.17k|  }
50318|  9.17k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  9.17k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  9.17k|    escape_and_append_with_quotes(value);
50320|  9.17k|  }
50321|  9.17k|  else {
50322|  9.17k|    append(value);
50323|  9.17k|  }
50324|  9.17k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEEEEEvv:
50108|  9.17k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  9.17k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  9.17k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 9.17k, False: 0]
  ------------------
50111|  9.17k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  9.17k|    position += constevalutil::static_string_size<Text>();
50113|  9.17k|  }
50114|  9.17k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm12EEEtlA12_cLc100ELc105ELc114ELc101ELc99ELc116ELc105ELc111ELc110ELc97ELc108EEEEEEvv:
50352|    428|string_builder::append_key_value() noexcept {
50353|    428|#if SIMDJSON_CONSTEVAL
50354|    428|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|    428|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc100ELc105ELc114ELc101ELc99ELc116ELc105ELc111ELc110ELc97ELc108EEEEEEEEvv:
50108|    428|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    428|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    428|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 428, False: 0]
  ------------------
50111|    428|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    428|    position += constevalutil::static_string_size<Text>();
50113|    428|  }
50114|    428|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlS6_tlS7_Lc115ELc112ELc111ELc116EEEEEEvv:
50352|  5.69k|string_builder::append_key_value() noexcept {
50353|  5.69k|#if SIMDJSON_CONSTEVAL
50354|  5.69k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc115ELc112ELc111ELc116EEEEEEEEvv:
50108|  5.69k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.69k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.69k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.69k, False: 0]
  ------------------
50111|  5.69k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.69k|    position += constevalutil::static_string_size<Text>();
50113|  5.69k|  }
50114|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEETnS5_XtlNS5_ILm6EEEtlA6_cLc112ELc111ELc105ELc110ELc116EEEEEEvv:
50352|  16.0k|string_builder::append_key_value() noexcept {
50353|  16.0k|#if SIMDJSON_CONSTEVAL
50354|  16.0k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  16.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc112ELc111ELc105ELc110ELc116EEEEEEEEvv:
50108|  16.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  16.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  16.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 16.0k, False: 0]
  ------------------
50111|  16.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  16.0k|    position += constevalutil::static_string_size<Text>();
50113|  16.0k|  }
50114|  16.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc114ELc97ELc110ELc103ELc101EEEEfEEvT0_:
50301|  8.88k|string_builder::append_key_value(value_type value) noexcept {
50302|  8.88k|#if SIMDJSON_CONSTEVAL
50303|  8.88k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  8.88k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  8.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  8.88k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  8.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  8.88k|    escape_and_append_with_quotes(value);
50313|  8.88k|  }
50314|  8.88k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  8.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  8.88k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  8.88k|    escape_and_append_with_quotes(value);
50317|  8.88k|  }
50318|  8.88k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  8.88k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  8.88k|    escape_and_append_with_quotes(value);
50320|  8.88k|  }
50321|  8.88k|  else {
50322|  8.88k|    append(value);
50323|  8.88k|  }
50324|  8.88k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc114ELc97ELc110ELc103ELc101EEEEEEEEvv:
50108|  8.88k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.88k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.88k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.88k, False: 0]
  ------------------
50111|  8.88k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.88k|    position += constevalutil::static_string_size<Text>();
50113|  8.88k|  }
50114|  8.88k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc115ELc112ELc111ELc116EEEEEEvv:
50066|  5.69k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  5.69k|#if SIMDJSON_CONSTEVAL
50068|  5.69k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm5EEEtlA5_cLc115ELc112ELc111ELc116EEEEEEEEvv:
50108|  5.69k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.69k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.69k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.69k, False: 0]
  ------------------
50111|  5.69k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.69k|    position += constevalutil::static_string_size<Text>();
50113|  5.69k|  }
50114|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEfEEvT0_:
50301|  5.69k|string_builder::append_key_value(value_type value) noexcept {
50302|  5.69k|#if SIMDJSON_CONSTEVAL
50303|  5.69k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  5.69k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  5.69k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  5.69k|    escape_and_append_with_quotes(value);
50313|  5.69k|  }
50314|  5.69k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  5.69k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  5.69k|    escape_and_append_with_quotes(value);
50317|  5.69k|  }
50318|  5.69k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  5.69k|    escape_and_append_with_quotes(value);
50320|  5.69k|  }
50321|  5.69k|  else {
50322|  5.69k|    append(value);
50323|  5.69k|  }
50324|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEEEEvv:
50108|  5.69k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.69k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.69k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.69k, False: 0]
  ------------------
50111|  5.69k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.69k|    position += constevalutil::static_string_size<Text>();
50113|  5.69k|  }
50114|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEfEEvT0_:
50301|  5.69k|string_builder::append_key_value(value_type value) noexcept {
50302|  5.69k|#if SIMDJSON_CONSTEVAL
50303|  5.69k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  5.69k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  5.69k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  5.69k|    escape_and_append_with_quotes(value);
50313|  5.69k|  }
50314|  5.69k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  5.69k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  5.69k|    escape_and_append_with_quotes(value);
50317|  5.69k|  }
50318|  5.69k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  5.69k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  5.69k|    escape_and_append_with_quotes(value);
50320|  5.69k|  }
50321|  5.69k|  else {
50322|  5.69k|    append(value);
50323|  5.69k|  }
50324|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEEEEvv:
50108|  5.69k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.69k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.69k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.69k, False: 0]
  ------------------
50111|  5.69k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.69k|    position += constevalutil::static_string_size<Text>();
50113|  5.69k|  }
50114|  5.69k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEEEvv:
50066|  46.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  46.0k|#if SIMDJSON_CONSTEVAL
50068|  46.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  46.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEEEEEvv:
50108|  46.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  46.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  46.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 46.0k, False: 0]
  ------------------
50111|  46.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  46.0k|    position += constevalutil::static_string_size<Text>();
50113|  46.0k|  }
50114|  46.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEfEEvT0_:
50301|  20.4k|string_builder::append_key_value(value_type value) noexcept {
50302|  20.4k|#if SIMDJSON_CONSTEVAL
50303|  20.4k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  20.4k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  20.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  20.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  20.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  20.4k|    escape_and_append_with_quotes(value);
50313|  20.4k|  }
50314|  20.4k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  20.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  20.4k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  20.4k|    escape_and_append_with_quotes(value);
50317|  20.4k|  }
50318|  20.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  20.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  20.4k|    escape_and_append_with_quotes(value);
50320|  20.4k|  }
50321|  20.4k|  else {
50322|  20.4k|    append(value);
50323|  20.4k|  }
50324|  20.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEEvv:
50108|  20.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  20.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  20.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 20.4k, False: 0]
  ------------------
50111|  20.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  20.4k|    position += constevalutil::static_string_size<Text>();
50113|  20.4k|  }
50114|  20.4k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEfEEvT0_:
50301|  9.50k|string_builder::append_key_value(value_type value) noexcept {
50302|  9.50k|#if SIMDJSON_CONSTEVAL
50303|  9.50k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  9.50k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  9.50k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  9.50k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  9.50k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  9.50k|    escape_and_append_with_quotes(value);
50313|  9.50k|  }
50314|  9.50k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  9.50k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  9.50k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  9.50k|    escape_and_append_with_quotes(value);
50317|  9.50k|  }
50318|  9.50k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  9.50k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  9.50k|    escape_and_append_with_quotes(value);
50320|  9.50k|  }
50321|  9.50k|  else {
50322|  9.50k|    append(value);
50323|  9.50k|  }
50324|  9.50k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|  9.50k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  9.50k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  9.50k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 9.50k, False: 0]
  ------------------
50111|  9.50k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  9.50k|    position += constevalutil::static_string_size<Text>();
50113|  9.50k|  }
50114|  9.50k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  20.4k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  20.4k|#if SIMDJSON_CONSTEVAL
50068|  20.4k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  20.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  20.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  20.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  20.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 20.4k, False: 0]
  ------------------
50111|  20.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  20.4k|    position += constevalutil::static_string_size<Text>();
50113|  20.4k|  }
50114|  20.4k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEmEEvT0_:
50301|   322k|string_builder::append_key_value(value_type value) noexcept {
50302|   322k|#if SIMDJSON_CONSTEVAL
50303|   322k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   322k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   322k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   322k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   322k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   322k|    escape_and_append_with_quotes(value);
50313|   322k|  }
50314|   322k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   322k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   322k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   322k|    escape_and_append_with_quotes(value);
50317|   322k|  }
50318|   322k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   322k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   322k|    escape_and_append_with_quotes(value);
50320|   322k|  }
50321|   322k|  else {
50322|   322k|    append(value);
50323|   322k|  }
50324|   322k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEEEEEvv:
50108|   322k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   322k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   322k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 322k, False: 0]
  ------------------
50111|   322k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   322k|    position += constevalutil::static_string_size<Text>();
50113|   322k|  }
50114|   322k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEmEEvT0_:
50301|  96.6k|string_builder::append_key_value(value_type value) noexcept {
50302|  96.6k|#if SIMDJSON_CONSTEVAL
50303|  96.6k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  96.6k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  96.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  96.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  96.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  96.6k|    escape_and_append_with_quotes(value);
50313|  96.6k|  }
50314|  96.6k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  96.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  96.6k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  96.6k|    escape_and_append_with_quotes(value);
50317|  96.6k|  }
50318|  96.6k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  96.6k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  96.6k|    escape_and_append_with_quotes(value);
50320|  96.6k|  }
50321|  96.6k|  else {
50322|  96.6k|    append(value);
50323|  96.6k|  }
50324|  96.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEEEEEvv:
50108|  96.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  96.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  96.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 96.6k, False: 0]
  ------------------
50111|  96.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  96.6k|    position += constevalutil::static_string_size<Text>();
50113|  96.6k|  }
50114|  96.6k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEEvv:
50066|  97.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  97.9k|#if SIMDJSON_CONSTEVAL
50068|  97.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  97.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEEEEvv:
50108|  97.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  97.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  97.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 97.9k, False: 0]
  ------------------
50111|  97.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  97.9k|    position += constevalutil::static_string_size<Text>();
50113|  97.9k|  }
50114|  97.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEEEvv:
50066|  41.5k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  41.5k|#if SIMDJSON_CONSTEVAL
50068|  41.5k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  41.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEEEEEvv:
50108|  41.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  41.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  41.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 41.5k, False: 0]
  ------------------
50111|  41.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  41.5k|    position += constevalutil::static_string_size<Text>();
50113|  41.5k|  }
50114|  41.5k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEfEEvT0_:
50301|  27.7k|string_builder::append_key_value(value_type value) noexcept {
50302|  27.7k|#if SIMDJSON_CONSTEVAL
50303|  27.7k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  27.7k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  27.7k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  27.7k|    escape_and_append_with_quotes(value);
50313|  27.7k|  }
50314|  27.7k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  27.7k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  27.7k|    escape_and_append_with_quotes(value);
50317|  27.7k|  }
50318|  27.7k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  27.7k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  27.7k|    escape_and_append_with_quotes(value);
50320|  27.7k|  }
50321|  27.7k|  else {
50322|  27.7k|    append(value);
50323|  27.7k|  }
50324|  27.7k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|  27.7k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  27.7k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  27.7k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 27.7k, False: 0]
  ------------------
50111|  27.7k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  27.7k|    position += constevalutil::static_string_size<Text>();
50113|  27.7k|  }
50114|  27.7k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEEEvv:
50066|  52.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  52.9k|#if SIMDJSON_CONSTEVAL
50068|  52.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  52.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEEEEEvv:
50108|  52.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  52.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  52.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 52.9k, False: 0]
  ------------------
50111|  52.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  52.9k|    position += constevalutil::static_string_size<Text>();
50113|  52.9k|  }
50114|  52.9k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  27.3k|string_builder::append_key_value(value_type value) noexcept {
50302|  27.3k|#if SIMDJSON_CONSTEVAL
50303|  27.3k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  27.3k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  27.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  27.3k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  27.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  27.3k|    escape_and_append_with_quotes(value);
50313|  27.3k|  }
50314|  27.3k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  27.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  27.3k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  27.3k|    escape_and_append_with_quotes(value);
50317|  27.3k|  }
50318|  27.3k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  27.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  27.3k|    escape_and_append_with_quotes(value);
50320|  27.3k|  }
50321|  27.3k|  else {
50322|  27.3k|    append(value);
50323|  27.3k|  }
50324|  27.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  27.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  27.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  27.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 27.3k, False: 0]
  ------------------
50111|  27.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  27.3k|    position += constevalutil::static_string_size<Text>();
50113|  27.3k|  }
50114|  27.3k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  10.6k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  10.6k|#if SIMDJSON_CONSTEVAL
50068|  10.6k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  10.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.6k, False: 0]
  ------------------
50111|  10.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.6k|    position += constevalutil::static_string_size<Text>();
50113|  10.6k|  }
50114|  10.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  23.1k|string_builder::append_key_value(value_type value) noexcept {
50302|  23.1k|#if SIMDJSON_CONSTEVAL
50303|  23.1k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  23.1k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  23.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  23.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  23.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  23.1k|    escape_and_append_with_quotes(value);
50313|  23.1k|  }
50314|  23.1k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  23.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  23.1k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  23.1k|    escape_and_append_with_quotes(value);
50317|  23.1k|  }
50318|  23.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  23.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  23.1k|    escape_and_append_with_quotes(value);
50320|  23.1k|  }
50321|  23.1k|  else {
50322|  23.1k|    append(value);
50323|  23.1k|  }
50324|  23.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  23.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  23.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  23.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 23.1k, False: 0]
  ------------------
50111|  23.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  23.1k|    position += constevalutil::static_string_size<Text>();
50113|  23.1k|  }
50114|  23.1k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  15.8k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  15.8k|#if SIMDJSON_CONSTEVAL
50068|  15.8k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  15.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  15.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  15.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  15.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15.8k, False: 0]
  ------------------
50111|  15.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  15.8k|    position += constevalutil::static_string_size<Text>();
50113|  15.8k|  }
50114|  15.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  13.4k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  13.4k|#if SIMDJSON_CONSTEVAL
50068|  13.4k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  13.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  13.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  13.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  13.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 13.4k, False: 0]
  ------------------
50111|  13.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  13.4k|    position += constevalutil::static_string_size<Text>();
50113|  13.4k|  }
50114|  13.4k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEfEEvT0_:
50301|  55.3k|string_builder::append_key_value(value_type value) noexcept {
50302|  55.3k|#if SIMDJSON_CONSTEVAL
50303|  55.3k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  55.3k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  55.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  55.3k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  55.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  55.3k|    escape_and_append_with_quotes(value);
50313|  55.3k|  }
50314|  55.3k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  55.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  55.3k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  55.3k|    escape_and_append_with_quotes(value);
50317|  55.3k|  }
50318|  55.3k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  55.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  55.3k|    escape_and_append_with_quotes(value);
50320|  55.3k|  }
50321|  55.3k|  else {
50322|  55.3k|    append(value);
50323|  55.3k|  }
50324|  55.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEEEEvv:
50108|  55.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  55.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  55.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 55.3k, False: 0]
  ------------------
50111|  55.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  55.3k|    position += constevalutil::static_string_size<Text>();
50113|  55.3k|  }
50114|  55.3k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEEEvv:
50066|  26.1k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  26.1k|#if SIMDJSON_CONSTEVAL
50068|  26.1k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  26.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  26.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  26.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  26.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 26.1k, False: 0]
  ------------------
50111|  26.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  26.1k|    position += constevalutil::static_string_size<Text>();
50113|  26.1k|  }
50114|  26.1k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  9.75k|string_builder::append_key_value(value_type value) noexcept {
50302|  9.75k|#if SIMDJSON_CONSTEVAL
50303|  9.75k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  9.75k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  9.75k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  9.75k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  9.75k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  9.75k|    escape_and_append_with_quotes(value);
50313|  9.75k|  }
50314|  9.75k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  9.75k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  9.75k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  9.75k|    escape_and_append_with_quotes(value);
50317|  9.75k|  }
50318|  9.75k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  9.75k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  9.75k|    escape_and_append_with_quotes(value);
50320|  9.75k|  }
50321|  9.75k|  else {
50322|  9.75k|    append(value);
50323|  9.75k|  }
50324|  9.75k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  9.75k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  9.75k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  9.75k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 9.75k, False: 0]
  ------------------
50111|  9.75k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  9.75k|    position += constevalutil::static_string_size<Text>();
50113|  9.75k|  }
50114|  9.75k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  9.38k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  9.38k|#if SIMDJSON_CONSTEVAL
50068|  9.38k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  9.38k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  9.38k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  9.38k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  9.38k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 9.38k, False: 0]
  ------------------
50111|  9.38k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  9.38k|    position += constevalutil::static_string_size<Text>();
50113|  9.38k|  }
50114|  9.38k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|  9.22k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  9.22k|#if SIMDJSON_CONSTEVAL
50068|  9.22k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  9.22k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  9.22k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  9.22k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  9.22k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 9.22k, False: 0]
  ------------------
50111|  9.22k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  9.22k|    position += constevalutil::static_string_size<Text>();
50113|  9.22k|  }
50114|  9.22k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  10.4k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  10.4k|#if SIMDJSON_CONSTEVAL
50068|  10.4k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  10.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  10.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.4k, False: 0]
  ------------------
50111|  10.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.4k|    position += constevalutil::static_string_size<Text>();
50113|  10.4k|  }
50114|  10.4k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEvv:
50066|  6.52k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  6.52k|#if SIMDJSON_CONSTEVAL
50068|  6.52k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  6.52k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  6.52k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.52k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.52k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.52k, False: 0]
  ------------------
50111|  6.52k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.52k|    position += constevalutil::static_string_size<Text>();
50113|  6.52k|  }
50114|  6.52k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEfEEvT0_:
50301|  6.52k|string_builder::append_key_value(value_type value) noexcept {
50302|  6.52k|#if SIMDJSON_CONSTEVAL
50303|  6.52k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  6.52k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  6.52k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  6.52k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  6.52k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  6.52k|    escape_and_append_with_quotes(value);
50313|  6.52k|  }
50314|  6.52k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  6.52k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  6.52k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  6.52k|    escape_and_append_with_quotes(value);
50317|  6.52k|  }
50318|  6.52k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  6.52k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  6.52k|    escape_and_append_with_quotes(value);
50320|  6.52k|  }
50321|  6.52k|  else {
50322|  6.52k|    append(value);
50323|  6.52k|  }
50324|  6.52k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  6.52k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.52k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.52k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.52k, False: 0]
  ------------------
50111|  6.52k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.52k|    position += constevalutil::static_string_size<Text>();
50113|  6.52k|  }
50114|  6.52k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEvv:
50066|  1.84k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.84k|#if SIMDJSON_CONSTEVAL
50068|  1.84k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.84k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEEvv:
50108|  1.84k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.84k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.84k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.84k, False: 0]
  ------------------
50111|  1.84k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.84k|    position += constevalutil::static_string_size<Text>();
50113|  1.84k|  }
50114|  1.84k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEfEEvT0_:
50301|  1.84k|string_builder::append_key_value(value_type value) noexcept {
50302|  1.84k|#if SIMDJSON_CONSTEVAL
50303|  1.84k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  1.84k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  1.84k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  1.84k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  1.84k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  1.84k|    escape_and_append_with_quotes(value);
50313|  1.84k|  }
50314|  1.84k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  1.84k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  1.84k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  1.84k|    escape_and_append_with_quotes(value);
50317|  1.84k|  }
50318|  1.84k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  1.84k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  1.84k|    escape_and_append_with_quotes(value);
50320|  1.84k|  }
50321|  1.84k|  else {
50322|  1.84k|    append(value);
50323|  1.84k|  }
50324|  1.84k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEEvv:
50108|  1.84k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.84k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.84k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.84k, False: 0]
  ------------------
50111|  1.84k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.84k|    position += constevalutil::static_string_size<Text>();
50113|  1.84k|  }
50114|  1.84k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEEEvv:
50066|  15.2k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  15.2k|#if SIMDJSON_CONSTEVAL
50068|  15.2k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  15.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEEEEEvv:
50108|  15.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  15.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  15.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15.2k, False: 0]
  ------------------
50111|  15.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  15.2k|    position += constevalutil::static_string_size<Text>();
50113|  15.2k|  }
50114|  15.2k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm4EEEtlA4_cLc105ELc111ELc114EEEEfEEvT0_:
50301|  15.2k|string_builder::append_key_value(value_type value) noexcept {
50302|  15.2k|#if SIMDJSON_CONSTEVAL
50303|  15.2k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  15.2k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  15.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  15.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  15.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  15.2k|    escape_and_append_with_quotes(value);
50313|  15.2k|  }
50314|  15.2k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  15.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  15.2k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  15.2k|    escape_and_append_with_quotes(value);
50317|  15.2k|  }
50318|  15.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  15.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  15.2k|    escape_and_append_with_quotes(value);
50320|  15.2k|  }
50321|  15.2k|  else {
50322|  15.2k|    append(value);
50323|  15.2k|  }
50324|  15.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc105ELc111ELc114EEEEEEEEvv:
50108|  15.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  15.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  15.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15.2k, False: 0]
  ------------------
50111|  15.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  15.2k|    position += constevalutil::static_string_size<Text>();
50113|  15.2k|  }
50114|  15.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEEEvv:
50066|  50.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  50.3k|#if SIMDJSON_CONSTEVAL
50068|  50.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  50.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEEEEEvv:
50108|  50.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  50.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  50.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 50.3k, False: 0]
  ------------------
50111|  50.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  50.3k|    position += constevalutil::static_string_size<Text>();
50113|  50.3k|  }
50114|  50.3k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  22.8k|string_builder::append_key_value(value_type value) noexcept {
50302|  22.8k|#if SIMDJSON_CONSTEVAL
50303|  22.8k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  22.8k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  22.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  22.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  22.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  22.8k|    escape_and_append_with_quotes(value);
50313|  22.8k|  }
50314|  22.8k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  22.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  22.8k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  22.8k|    escape_and_append_with_quotes(value);
50317|  22.8k|  }
50318|  22.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  22.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  22.8k|    escape_and_append_with_quotes(value);
50320|  22.8k|  }
50321|  22.8k|  else {
50322|  22.8k|    append(value);
50323|  22.8k|  }
50324|  22.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  22.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  22.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  22.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 22.8k, False: 0]
  ------------------
50111|  22.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  22.8k|    position += constevalutil::static_string_size<Text>();
50113|  22.8k|  }
50114|  22.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  16.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  16.3k|#if SIMDJSON_CONSTEVAL
50068|  16.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  16.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  16.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  16.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  16.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 16.3k, False: 0]
  ------------------
50111|  16.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  16.3k|    position += constevalutil::static_string_size<Text>();
50113|  16.3k|  }
50114|  16.3k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEfEEvT0_:
50301|  16.1k|string_builder::append_key_value(value_type value) noexcept {
50302|  16.1k|#if SIMDJSON_CONSTEVAL
50303|  16.1k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  16.1k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  16.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  16.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  16.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  16.1k|    escape_and_append_with_quotes(value);
50313|  16.1k|  }
50314|  16.1k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  16.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  16.1k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  16.1k|    escape_and_append_with_quotes(value);
50317|  16.1k|  }
50318|  16.1k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  16.1k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  16.1k|    escape_and_append_with_quotes(value);
50320|  16.1k|  }
50321|  16.1k|  else {
50322|  16.1k|    append(value);
50323|  16.1k|  }
50324|  16.1k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEEEEEvv:
50108|  16.1k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  16.1k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  16.1k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 16.1k, False: 0]
  ------------------
50111|  16.1k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  16.1k|    position += constevalutil::static_string_size<Text>();
50113|  16.1k|  }
50114|  16.1k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEfEEvT0_:
50301|  7.53k|string_builder::append_key_value(value_type value) noexcept {
50302|  7.53k|#if SIMDJSON_CONSTEVAL
50303|  7.53k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  7.53k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  7.53k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  7.53k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  7.53k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  7.53k|    escape_and_append_with_quotes(value);
50313|  7.53k|  }
50314|  7.53k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  7.53k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  7.53k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  7.53k|    escape_and_append_with_quotes(value);
50317|  7.53k|  }
50318|  7.53k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  7.53k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  7.53k|    escape_and_append_with_quotes(value);
50320|  7.53k|  }
50321|  7.53k|  else {
50322|  7.53k|    append(value);
50323|  7.53k|  }
50324|  7.53k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEEEEEvv:
50108|  7.53k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.53k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.53k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.53k, False: 0]
  ------------------
50111|  7.53k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.53k|    position += constevalutil::static_string_size<Text>();
50113|  7.53k|  }
50114|  7.53k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEfEEvT0_:
50301|  14.8k|string_builder::append_key_value(value_type value) noexcept {
50302|  14.8k|#if SIMDJSON_CONSTEVAL
50303|  14.8k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  14.8k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  14.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  14.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  14.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  14.8k|    escape_and_append_with_quotes(value);
50313|  14.8k|  }
50314|  14.8k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  14.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  14.8k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  14.8k|    escape_and_append_with_quotes(value);
50317|  14.8k|  }
50318|  14.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  14.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  14.8k|    escape_and_append_with_quotes(value);
50320|  14.8k|  }
50321|  14.8k|  else {
50322|  14.8k|    append(value);
50323|  14.8k|  }
50324|  14.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEEEEEvv:
50108|  14.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.8k, False: 0]
  ------------------
50111|  14.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.8k|    position += constevalutil::static_string_size<Text>();
50113|  14.8k|  }
50114|  14.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  15.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  15.0k|#if SIMDJSON_CONSTEVAL
50068|  15.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  15.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  15.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  15.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  15.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15.0k, False: 0]
  ------------------
50111|  15.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  15.0k|    position += constevalutil::static_string_size<Text>();
50113|  15.0k|  }
50114|  15.0k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEEEvv:
50066|  2.39k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  2.39k|#if SIMDJSON_CONSTEVAL
50068|  2.39k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  2.39k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|  2.39k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.39k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.39k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.39k, False: 0]
  ------------------
50111|  2.39k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.39k|    position += constevalutil::static_string_size<Text>();
50113|  2.39k|  }
50114|  2.39k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  1.05k|string_builder::append_key_value(value_type value) noexcept {
50302|  1.05k|#if SIMDJSON_CONSTEVAL
50303|  1.05k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  1.05k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  1.05k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  1.05k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  1.05k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  1.05k|    escape_and_append_with_quotes(value);
50313|  1.05k|  }
50314|  1.05k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  1.05k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  1.05k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  1.05k|    escape_and_append_with_quotes(value);
50317|  1.05k|  }
50318|  1.05k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  1.05k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  1.05k|    escape_and_append_with_quotes(value);
50320|  1.05k|  }
50321|  1.05k|  else {
50322|  1.05k|    append(value);
50323|  1.05k|  }
50324|  1.05k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  1.05k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.05k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.05k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.05k, False: 0]
  ------------------
50111|  1.05k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.05k|    position += constevalutil::static_string_size<Text>();
50113|  1.05k|  }
50114|  1.05k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm21EEEtlA21_cLc114ELc101ELc116ELc114ELc111ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  1.67k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.67k|#if SIMDJSON_CONSTEVAL
50068|  1.67k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.67k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm21EEEtlA21_cLc114ELc101ELc116ELc114ELc111ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  1.67k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.67k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.67k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.67k, False: 0]
  ------------------
50111|  1.67k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.67k|    position += constevalutil::static_string_size<Text>();
50113|  1.67k|  }
50114|  1.67k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEEEvv:
50066|  22.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  22.9k|#if SIMDJSON_CONSTEVAL
50068|  22.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  22.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEEEEEvv:
50108|  22.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  22.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  22.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 22.9k, False: 0]
  ------------------
50111|  22.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  22.9k|    position += constevalutil::static_string_size<Text>();
50113|  22.9k|  }
50114|  22.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|  8.09k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  8.09k|#if SIMDJSON_CONSTEVAL
50068|  8.09k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  8.09k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  8.09k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.09k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.09k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.09k, False: 0]
  ------------------
50111|  8.09k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.09k|    position += constevalutil::static_string_size<Text>();
50113|  8.09k|  }
50114|  8.09k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  8.27k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  8.27k|#if SIMDJSON_CONSTEVAL
50068|  8.27k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  8.27k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  8.27k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.27k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.27k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.27k, False: 0]
  ------------------
50111|  8.27k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.27k|    position += constevalutil::static_string_size<Text>();
50113|  8.27k|  }
50114|  8.27k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  12.0k|string_builder::append_key_value(value_type value) noexcept {
50302|  12.0k|#if SIMDJSON_CONSTEVAL
50303|  12.0k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  12.0k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  12.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  12.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  12.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  12.0k|    escape_and_append_with_quotes(value);
50313|  12.0k|  }
50314|  12.0k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  12.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  12.0k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  12.0k|    escape_and_append_with_quotes(value);
50317|  12.0k|  }
50318|  12.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  12.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  12.0k|    escape_and_append_with_quotes(value);
50320|  12.0k|  }
50321|  12.0k|  else {
50322|  12.0k|    append(value);
50323|  12.0k|  }
50324|  12.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  12.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.0k, False: 0]
  ------------------
50111|  12.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.0k|    position += constevalutil::static_string_size<Text>();
50113|  12.0k|  }
50114|  12.0k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  3.71k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.71k|#if SIMDJSON_CONSTEVAL
50068|  3.71k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.71k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  3.71k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.71k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.71k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.71k, False: 0]
  ------------------
50111|  3.71k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.71k|    position += constevalutil::static_string_size<Text>();
50113|  3.71k|  }
50114|  3.71k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEEEvv:
50066|  10.8k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  10.8k|#if SIMDJSON_CONSTEVAL
50068|  10.8k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  10.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEEEEEvv:
50108|  10.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.8k, False: 0]
  ------------------
50111|  10.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.8k|    position += constevalutil::static_string_size<Text>();
50113|  10.8k|  }
50114|  10.8k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  1.37k|string_builder::append_key_value(value_type value) noexcept {
50302|  1.37k|#if SIMDJSON_CONSTEVAL
50303|  1.37k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  1.37k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  1.37k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  1.37k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  1.37k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  1.37k|    escape_and_append_with_quotes(value);
50313|  1.37k|  }
50314|  1.37k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  1.37k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  1.37k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  1.37k|    escape_and_append_with_quotes(value);
50317|  1.37k|  }
50318|  1.37k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  1.37k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  1.37k|    escape_and_append_with_quotes(value);
50320|  1.37k|  }
50321|  1.37k|  else {
50322|  1.37k|    append(value);
50323|  1.37k|  }
50324|  1.37k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  1.37k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.37k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.37k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.37k, False: 0]
  ------------------
50111|  1.37k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.37k|    position += constevalutil::static_string_size<Text>();
50113|  1.37k|  }
50114|  1.37k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  1.75k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.75k|#if SIMDJSON_CONSTEVAL
50068|  1.75k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.75k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  1.75k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.75k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.75k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.75k, False: 0]
  ------------------
50111|  1.75k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.75k|    position += constevalutil::static_string_size<Text>();
50113|  1.75k|  }
50114|  1.75k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|  3.77k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.77k|#if SIMDJSON_CONSTEVAL
50068|  3.77k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.77k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  3.77k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.77k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.77k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.77k, False: 0]
  ------------------
50111|  3.77k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.77k|    position += constevalutil::static_string_size<Text>();
50113|  3.77k|  }
50114|  3.77k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  4.98k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.98k|#if SIMDJSON_CONSTEVAL
50068|  4.98k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.98k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  4.98k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.98k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.98k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.98k, False: 0]
  ------------------
50111|  4.98k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.98k|    position += constevalutil::static_string_size<Text>();
50113|  4.98k|  }
50114|  4.98k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEEvv:
50066|  4.47k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.47k|#if SIMDJSON_CONSTEVAL
50068|  4.47k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.47k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEEEEvv:
50108|  4.47k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.47k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.47k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.47k, False: 0]
  ------------------
50111|  4.47k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.47k|    position += constevalutil::static_string_size<Text>();
50113|  4.47k|  }
50114|  4.47k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|      9|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|      9|#if SIMDJSON_CONSTEVAL
50068|      9|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|      9|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|      9|simdjson_inline void string_builder::append_static_string() noexcept {
50109|      9|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|      9|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 9, False: 0]
  ------------------
50111|      9|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|      9|    position += constevalutil::static_string_size<Text>();
50113|      9|  }
50114|      9|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  3.22k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.22k|#if SIMDJSON_CONSTEVAL
50068|  3.22k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.22k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  3.22k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.22k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.22k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.22k, False: 0]
  ------------------
50111|  3.22k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.22k|    position += constevalutil::static_string_size<Text>();
50113|  3.22k|  }
50114|  3.22k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|  2.18k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  2.18k|#if SIMDJSON_CONSTEVAL
50068|  2.18k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  2.18k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  2.18k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.18k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.18k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.18k, False: 0]
  ------------------
50111|  2.18k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.18k|    position += constevalutil::static_string_size<Text>();
50113|  2.18k|  }
50114|  2.18k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  1.10k|string_builder::append_key_value(value_type value) noexcept {
50302|  1.10k|#if SIMDJSON_CONSTEVAL
50303|  1.10k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  1.10k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  1.10k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  1.10k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  1.10k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  1.10k|    escape_and_append_with_quotes(value);
50313|  1.10k|  }
50314|  1.10k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  1.10k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  1.10k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  1.10k|    escape_and_append_with_quotes(value);
50317|  1.10k|  }
50318|  1.10k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  1.10k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  1.10k|    escape_and_append_with_quotes(value);
50320|  1.10k|  }
50321|  1.10k|  else {
50322|  1.10k|    append(value);
50323|  1.10k|  }
50324|  1.10k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  1.10k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.10k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.10k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.10k, False: 0]
  ------------------
50111|  1.10k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.10k|    position += constevalutil::static_string_size<Text>();
50113|  1.10k|  }
50114|  1.10k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|    176|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    176|#if SIMDJSON_CONSTEVAL
50068|    176|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    176|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|    176|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    176|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    176|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 176, False: 0]
  ------------------
50111|    176|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    176|    position += constevalutil::static_string_size<Text>();
50113|    176|  }
50114|    176|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEEEvv:
50066|  17.4k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  17.4k|#if SIMDJSON_CONSTEVAL
50068|  17.4k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  17.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  17.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  17.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  17.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 17.4k, False: 0]
  ------------------
50111|  17.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  17.4k|    position += constevalutil::static_string_size<Text>();
50113|  17.4k|  }
50114|  17.4k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  10.8k|string_builder::append_key_value(value_type value) noexcept {
50302|  10.8k|#if SIMDJSON_CONSTEVAL
50303|  10.8k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  10.8k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  10.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  10.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  10.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  10.8k|    escape_and_append_with_quotes(value);
50313|  10.8k|  }
50314|  10.8k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  10.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  10.8k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  10.8k|    escape_and_append_with_quotes(value);
50317|  10.8k|  }
50318|  10.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  10.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  10.8k|    escape_and_append_with_quotes(value);
50320|  10.8k|  }
50321|  10.8k|  else {
50322|  10.8k|    append(value);
50323|  10.8k|  }
50324|  10.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  10.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.8k, False: 0]
  ------------------
50111|  10.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.8k|    position += constevalutil::static_string_size<Text>();
50113|  10.8k|  }
50114|  10.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  1.97k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.97k|#if SIMDJSON_CONSTEVAL
50068|  1.97k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.97k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  1.97k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.97k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.97k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.97k, False: 0]
  ------------------
50111|  1.97k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.97k|    position += constevalutil::static_string_size<Text>();
50113|  1.97k|  }
50114|  1.97k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEEEvv:
50066|  1.77k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.77k|#if SIMDJSON_CONSTEVAL
50068|  1.77k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.77k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEEEEEvv:
50108|  1.77k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.77k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.77k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.77k, False: 0]
  ------------------
50111|  1.77k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.77k|    position += constevalutil::static_string_size<Text>();
50113|  1.77k|  }
50114|  1.77k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEEEvv:
50066|  22.6k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  22.6k|#if SIMDJSON_CONSTEVAL
50068|  22.6k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  22.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEEEEEvv:
50108|  22.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  22.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  22.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 22.6k, False: 0]
  ------------------
50111|  22.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  22.6k|    position += constevalutil::static_string_size<Text>();
50113|  22.6k|  }
50114|  22.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  14.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  14.5k|#if SIMDJSON_CONSTEVAL
50303|  14.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  14.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  14.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  14.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  14.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  14.5k|    escape_and_append_with_quotes(value);
50313|  14.5k|  }
50314|  14.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  14.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  14.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  14.5k|    escape_and_append_with_quotes(value);
50317|  14.5k|  }
50318|  14.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  14.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  14.5k|    escape_and_append_with_quotes(value);
50320|  14.5k|  }
50321|  14.5k|  else {
50322|  14.5k|    append(value);
50323|  14.5k|  }
50324|  14.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  14.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.5k, False: 0]
  ------------------
50111|  14.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.5k|    position += constevalutil::static_string_size<Text>();
50113|  14.5k|  }
50114|  14.5k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  6.04k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  6.04k|#if SIMDJSON_CONSTEVAL
50068|  6.04k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  6.04k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  6.04k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.04k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.04k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.04k, False: 0]
  ------------------
50111|  6.04k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.04k|    position += constevalutil::static_string_size<Text>();
50113|  6.04k|  }
50114|  6.04k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEfEEvT0_:
50301|  7.22k|string_builder::append_key_value(value_type value) noexcept {
50302|  7.22k|#if SIMDJSON_CONSTEVAL
50303|  7.22k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  7.22k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  7.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  7.22k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  7.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  7.22k|    escape_and_append_with_quotes(value);
50313|  7.22k|  }
50314|  7.22k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  7.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  7.22k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  7.22k|    escape_and_append_with_quotes(value);
50317|  7.22k|  }
50318|  7.22k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  7.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  7.22k|    escape_and_append_with_quotes(value);
50320|  7.22k|  }
50321|  7.22k|  else {
50322|  7.22k|    append(value);
50323|  7.22k|  }
50324|  7.22k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEEEEEvv:
50108|  7.22k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.22k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.22k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.22k, False: 0]
  ------------------
50111|  7.22k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.22k|    position += constevalutil::static_string_size<Text>();
50113|  7.22k|  }
50114|  7.22k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEEvv:
50066|  7.96k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  7.96k|#if SIMDJSON_CONSTEVAL
50068|  7.96k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  7.96k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEEEEvv:
50108|  7.96k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.96k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.96k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.96k, False: 0]
  ------------------
50111|  7.96k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.96k|    position += constevalutil::static_string_size<Text>();
50113|  7.96k|  }
50114|  7.96k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  41.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  41.9k|#if SIMDJSON_CONSTEVAL
50068|  41.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  41.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  41.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  41.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  41.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 41.9k, False: 0]
  ------------------
50111|  41.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  41.9k|    position += constevalutil::static_string_size<Text>();
50113|  41.9k|  }
50114|  41.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEEEvv:
50066|  15.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  15.0k|#if SIMDJSON_CONSTEVAL
50068|  15.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  15.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm10EEEtlA10_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEEEEEvv:
50108|  15.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  15.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  15.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15.0k, False: 0]
  ------------------
50111|  15.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  15.0k|    position += constevalutil::static_string_size<Text>();
50113|  15.0k|  }
50114|  15.0k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEEEvv:
50066|   487k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|   487k|#if SIMDJSON_CONSTEVAL
50068|   487k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|   487k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEEEEEvv:
50108|   487k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   487k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   487k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 487k, False: 0]
  ------------------
50111|   487k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   487k|    position += constevalutil::static_string_size<Text>();
50113|   487k|  }
50114|   487k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|  74.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  74.3k|#if SIMDJSON_CONSTEVAL
50068|  74.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  74.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  74.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  74.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  74.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 74.3k, False: 0]
  ------------------
50111|  74.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  74.3k|    position += constevalutil::static_string_size<Text>();
50113|  74.3k|  }
50114|  74.3k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  43.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  43.0k|#if SIMDJSON_CONSTEVAL
50068|  43.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  43.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  43.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  43.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  43.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 43.0k, False: 0]
  ------------------
50111|  43.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  43.0k|    position += constevalutil::static_string_size<Text>();
50113|  43.0k|  }
50114|  43.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  57.3k|string_builder::append_key_value(value_type value) noexcept {
50302|  57.3k|#if SIMDJSON_CONSTEVAL
50303|  57.3k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  57.3k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  57.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  57.3k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  57.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  57.3k|    escape_and_append_with_quotes(value);
50313|  57.3k|  }
50314|  57.3k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  57.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  57.3k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  57.3k|    escape_and_append_with_quotes(value);
50317|  57.3k|  }
50318|  57.3k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  57.3k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  57.3k|    escape_and_append_with_quotes(value);
50320|  57.3k|  }
50321|  57.3k|  else {
50322|  57.3k|    append(value);
50323|  57.3k|  }
50324|  57.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  57.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  57.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  57.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 57.3k, False: 0]
  ------------------
50111|  57.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  57.3k|    position += constevalutil::static_string_size<Text>();
50113|  57.3k|  }
50114|  57.3k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|  70.4k|string_builder::append_key_value(value_type value) noexcept {
50302|  70.4k|#if SIMDJSON_CONSTEVAL
50303|  70.4k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  70.4k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  70.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  70.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  70.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  70.4k|    escape_and_append_with_quotes(value);
50313|  70.4k|  }
50314|  70.4k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  70.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  70.4k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  70.4k|    escape_and_append_with_quotes(value);
50317|  70.4k|  }
50318|  70.4k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  70.4k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  70.4k|    escape_and_append_with_quotes(value);
50320|  70.4k|  }
50321|  70.4k|  else {
50322|  70.4k|    append(value);
50323|  70.4k|  }
50324|  70.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  70.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  70.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  70.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 70.4k, False: 0]
  ------------------
50111|  70.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  70.4k|    position += constevalutil::static_string_size<Text>();
50113|  70.4k|  }
50114|  70.4k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  27.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  27.3k|#if SIMDJSON_CONSTEVAL
50068|  27.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  27.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  27.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  27.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  27.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 27.3k, False: 0]
  ------------------
50111|  27.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  27.3k|    position += constevalutil::static_string_size<Text>();
50113|  27.3k|  }
50114|  27.3k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  54.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  54.0k|#if SIMDJSON_CONSTEVAL
50068|  54.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  54.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  54.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  54.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  54.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 54.0k, False: 0]
  ------------------
50111|  54.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  54.0k|    position += constevalutil::static_string_size<Text>();
50113|  54.0k|  }
50114|  54.0k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEfEEvT0_:
50301|  54.0k|string_builder::append_key_value(value_type value) noexcept {
50302|  54.0k|#if SIMDJSON_CONSTEVAL
50303|  54.0k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  54.0k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  54.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  54.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  54.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  54.0k|    escape_and_append_with_quotes(value);
50313|  54.0k|  }
50314|  54.0k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  54.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  54.0k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  54.0k|    escape_and_append_with_quotes(value);
50317|  54.0k|  }
50318|  54.0k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  54.0k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  54.0k|    escape_and_append_with_quotes(value);
50320|  54.0k|  }
50321|  54.0k|  else {
50322|  54.0k|    append(value);
50323|  54.0k|  }
50324|  54.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEEvv:
50108|  54.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  54.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  54.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 54.0k, False: 0]
  ------------------
50111|  54.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  54.0k|    position += constevalutil::static_string_size<Text>();
50113|  54.0k|  }
50114|  54.0k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEvv:
50066|  12.8k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  12.8k|#if SIMDJSON_CONSTEVAL
50068|  12.8k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  12.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEEvv:
50108|  12.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.8k, False: 0]
  ------------------
50111|  12.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.8k|    position += constevalutil::static_string_size<Text>();
50113|  12.8k|  }
50114|  12.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEvv:
50066|  18.4k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  18.4k|#if SIMDJSON_CONSTEVAL
50068|  18.4k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  18.4k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|  18.4k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  18.4k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  18.4k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 18.4k, False: 0]
  ------------------
50111|  18.4k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  18.4k|    position += constevalutil::static_string_size<Text>();
50113|  18.4k|  }
50114|  18.4k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEEEvv:
50066|  8.24k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  8.24k|#if SIMDJSON_CONSTEVAL
50068|  8.24k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  8.24k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEEEEEvv:
50108|  8.24k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.24k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.24k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.24k, False: 0]
  ------------------
50111|  8.24k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.24k|    position += constevalutil::static_string_size<Text>();
50113|  8.24k|  }
50114|  8.24k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc66ELc76ELc69ELc78ELc68EEEEEEvv:
50066|    327|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    327|#if SIMDJSON_CONSTEVAL
50068|    327|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    327|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc66ELc76ELc69ELc78ELc68EEEEEEEEvv:
50108|    327|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    327|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    327|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 327, False: 0]
  ------------------
50111|    327|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    327|    position += constevalutil::static_string_size<Text>();
50113|    327|  }
50114|    327|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc77ELc65ELc83ELc75EEEEEEvv:
50066|  7.91k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  7.91k|#if SIMDJSON_CONSTEVAL
50068|  7.91k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  7.91k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm5EEEtlA5_cLc77ELc65ELc83ELc75EEEEEEEEvv:
50108|  7.91k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.91k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.91k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.91k, False: 0]
  ------------------
50111|  7.91k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.91k|    position += constevalutil::static_string_size<Text>();
50113|  7.91k|  }
50114|  7.91k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEfEEvT0_:
50301|  5.14k|string_builder::append_key_value(value_type value) noexcept {
50302|  5.14k|#if SIMDJSON_CONSTEVAL
50303|  5.14k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  5.14k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  5.14k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  5.14k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  5.14k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  5.14k|    escape_and_append_with_quotes(value);
50313|  5.14k|  }
50314|  5.14k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  5.14k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  5.14k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  5.14k|    escape_and_append_with_quotes(value);
50317|  5.14k|  }
50318|  5.14k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  5.14k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  5.14k|    escape_and_append_with_quotes(value);
50320|  5.14k|  }
50321|  5.14k|  else {
50322|  5.14k|    append(value);
50323|  5.14k|  }
50324|  5.14k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEEEEEvv:
50108|  5.14k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.14k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.14k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.14k, False: 0]
  ------------------
50111|  5.14k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.14k|    position += constevalutil::static_string_size<Text>();
50113|  5.14k|  }
50114|  5.14k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEETnDaLb1EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|  11.9k|string_builder::append_key_value() noexcept {
50366|  11.9k|#if SIMDJSON_CONSTEVAL
50367|  11.9k|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|  11.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|  11.9k|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|  11.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEELb1EEEEEvv:
50108|  11.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  11.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  11.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 11.9k, False: 0]
  ------------------
50111|  11.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  11.9k|    position += constevalutil::static_string_size<Text>();
50113|  11.9k|  }
50114|  11.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc109ELc101ELc115ELc104ELc101ELc115EEEEEEvv:
50066|  3.61k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.61k|#if SIMDJSON_CONSTEVAL
50068|  3.61k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.61k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc109ELc101ELc115ELc104ELc101ELc115EEEEEEEEvv:
50108|  3.61k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.61k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.61k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.61k, False: 0]
  ------------------
50111|  3.61k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.61k|    position += constevalutil::static_string_size<Text>();
50113|  3.61k|  }
50114|  3.61k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEEEvv:
50066|  33.6k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  33.6k|#if SIMDJSON_CONSTEVAL
50068|  33.6k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  33.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEEEEEvv:
50108|  33.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  33.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  33.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 33.6k, False: 0]
  ------------------
50111|  33.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  33.6k|    position += constevalutil::static_string_size<Text>();
50113|  33.6k|  }
50114|  33.6k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEvv:
50066|  45.8k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  45.8k|#if SIMDJSON_CONSTEVAL
50068|  45.8k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  45.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEEvv:
50108|  45.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  45.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  45.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 45.8k, False: 0]
  ------------------
50111|  45.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  45.8k|    position += constevalutil::static_string_size<Text>();
50113|  45.8k|  }
50114|  45.8k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEmEEvT_T0_:
50265|   148k|string_builder::append_key_value(key_type key, value_type value) noexcept {
50266|   148k|  static_assert(std::is_same<key_type, const char *>::value ||
50267|   148k|                    std::is_convertible<key_type, std::string_view>::value,
50268|   148k|                "Unsupported key type");
50269|   148k|  escape_and_append_with_quotes(key);
50270|   148k|  append_colon();
50271|   148k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   148k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50272|       |    append_null();
50273|       |  }
50274|   148k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   148k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50275|   148k|    escape_and_append_with_quotes(value);
50276|   148k|  }
50277|   148k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   148k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50278|   148k|      std::is_convertible<value_type, std::string_view>::value) {
50279|   148k|    escape_and_append_with_quotes(value);
50280|   148k|  }
50281|   148k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   148k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50282|   148k|    escape_and_append_with_quotes(value);
50283|   148k|  }
50284|   148k|  else {
50285|   148k|    append(value);
50286|   148k|  }
50287|   148k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEmEEvT0_:
50301|  40.2k|string_builder::append_key_value(value_type value) noexcept {
50302|  40.2k|#if SIMDJSON_CONSTEVAL
50303|  40.2k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  40.2k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  40.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  40.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  40.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  40.2k|    escape_and_append_with_quotes(value);
50313|  40.2k|  }
50314|  40.2k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  40.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  40.2k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  40.2k|    escape_and_append_with_quotes(value);
50317|  40.2k|  }
50318|  40.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  40.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  40.2k|    escape_and_append_with_quotes(value);
50320|  40.2k|  }
50321|  40.2k|  else {
50322|  40.2k|    append(value);
50323|  40.2k|  }
50324|  40.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEEEEEvv:
50108|  40.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  40.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  40.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 40.2k, False: 0]
  ------------------
50111|  40.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  40.2k|    position += constevalutil::static_string_size<Text>();
50113|  40.2k|  }
50114|  40.2k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEmEEvT0_:
50301|  28.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  28.5k|#if SIMDJSON_CONSTEVAL
50303|  28.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  28.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  28.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  28.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  28.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  28.5k|    escape_and_append_with_quotes(value);
50313|  28.5k|  }
50314|  28.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  28.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  28.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  28.5k|    escape_and_append_with_quotes(value);
50317|  28.5k|  }
50318|  28.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  28.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  28.5k|    escape_and_append_with_quotes(value);
50320|  28.5k|  }
50321|  28.5k|  else {
50322|  28.5k|    append(value);
50323|  28.5k|  }
50324|  28.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEEEEEvv:
50108|  28.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  28.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  28.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 28.5k, False: 0]
  ------------------
50111|  28.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  28.5k|    position += constevalutil::static_string_size<Text>();
50113|  28.5k|  }
50114|  28.5k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEEEvv:
50066|  4.83k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.83k|#if SIMDJSON_CONSTEVAL
50068|  4.83k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.83k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEEEEEvv:
50108|  4.83k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.83k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.83k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.83k, False: 0]
  ------------------
50111|  4.83k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.83k|    position += constevalutil::static_string_size<Text>();
50113|  4.83k|  }
50114|  4.83k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEhEEvT0_:
50301|  8.22k|string_builder::append_key_value(value_type value) noexcept {
50302|  8.22k|#if SIMDJSON_CONSTEVAL
50303|  8.22k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  8.22k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  8.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  8.22k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  8.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  8.22k|    escape_and_append_with_quotes(value);
50313|  8.22k|  }
50314|  8.22k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  8.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  8.22k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  8.22k|    escape_and_append_with_quotes(value);
50317|  8.22k|  }
50318|  8.22k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  8.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  8.22k|    escape_and_append_with_quotes(value);
50320|  8.22k|  }
50321|  8.22k|  else {
50322|  8.22k|    append(value);
50323|  8.22k|  }
50324|  8.22k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEEEEEvv:
50108|  8.22k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.22k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.22k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.22k, False: 0]
  ------------------
50111|  8.22k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.22k|    position += constevalutil::static_string_size<Text>();
50113|  8.22k|  }
50114|  8.22k|}
_ZN8simdjson8fallback7builder14string_builder6appendIhvEEvT_:
49930|  8.22k|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|  8.22k|  static_assert(std::is_same<number_type, bool>::value ||
49932|  8.22k|                    std::is_integral<number_type>::value ||
49933|  8.22k|                    std::is_floating_point<number_type>::value,
49934|  8.22k|                "Unsupported number type");
49935|  8.22k|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|  8.22k|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|  8.22k|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|  8.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|  8.22k|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|  8.22k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|  8.22k|    constexpr size_t max_number_size = 20;
49957|  8.22k|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49957:9): [True: 8.22k, False: 0]
  ------------------
49958|  8.22k|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|  8.22k|      char* end = internal::write_uint_jeaiii(
49960|  8.22k|          buffer_data() + position,
49961|  8.22k|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|  8.22k|      position = end - buffer_data();
49963|  8.22k|    }
49964|       |  }
49965|       |  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|       |    constexpr size_t max_number_size = 20;
49968|       |    if (capacity_check(max_number_size)) {
49969|       |      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|       |      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|       |      unsigned_type pv = negative
49973|       |          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|       |          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|       |  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|       |    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|       |    if (capacity_check(max_number_size)) {
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|       |      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|       |                                               double(v));
50015|       |      position = end - buffer_data();
50016|       |    }
50017|       |  }
50018|  8.22k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEvv:
50066|   721k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|   721k|#if SIMDJSON_CONSTEVAL
50068|   721k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|   721k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEEvv:
50108|   721k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   721k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   721k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 721k, False: 0]
  ------------------
50111|   721k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   721k|    position += constevalutil::static_string_size<Text>();
50113|   721k|  }
50114|   721k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEvv:
50066|  2.46k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  2.46k|#if SIMDJSON_CONSTEVAL
50068|  2.46k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  2.46k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEEvv:
50108|  2.46k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.46k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.46k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.46k, False: 0]
  ------------------
50111|  2.46k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.46k|    position += constevalutil::static_string_size<Text>();
50113|  2.46k|  }
50114|  2.46k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEEvv:
50066|  1.03k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.03k|#if SIMDJSON_CONSTEVAL
50068|  1.03k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.03k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEEEEvv:
50108|  1.03k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.03k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.03k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.03k, False: 0]
  ------------------
50111|  1.03k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.03k|    position += constevalutil::static_string_size<Text>();
50113|  1.03k|  }
50114|  1.03k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEvv:
50066|  3.69k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.69k|#if SIMDJSON_CONSTEVAL
50068|  3.69k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.69k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEEvv:
50108|  3.69k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.69k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.69k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.69k, False: 0]
  ------------------
50111|  3.69k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.69k|    position += constevalutil::static_string_size<Text>();
50113|  3.69k|  }
50114|  3.69k|}
_ZN8simdjson8fallback7builder14string_builder6appendImvEEvT_:
49930|  2.55M|simdjson_inline void string_builder::append(number_type v) noexcept {
49931|  2.55M|  static_assert(std::is_same<number_type, bool>::value ||
49932|  2.55M|                    std::is_integral<number_type>::value ||
49933|  2.55M|                    std::is_floating_point<number_type>::value,
49934|  2.55M|                "Unsupported number type");
49935|  2.55M|  static_assert(sizeof(number_type) <= sizeof(uint64_t),
49936|  2.55M|                "Integers wider than 64 bits are not supported");
49937|       |  // If C++17 is available, we can 'if constexpr' here.
49938|  2.55M|  SIMDJSON_IF_CONSTEXPR(std::is_same<number_type, bool>::value) {
  ------------------
  |  |  101|  2.55M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49939|       |    if (v) {
49940|       |      constexpr char true_literal[] = "true";
49941|       |      constexpr size_t true_len = sizeof(true_literal) - 1;
49942|       |      if (capacity_check(true_len)) {
49943|       |        std::memcpy(buffer_data() + position, true_literal, true_len);
49944|       |        position += true_len;
49945|       |      }
49946|       |    } else {
49947|       |      constexpr char false_literal[] = "false";
49948|       |      constexpr size_t false_len = sizeof(false_literal) - 1;
49949|       |      if (capacity_check(false_len)) {
49950|       |        std::memcpy(buffer_data() + position, false_literal, false_len);
49951|       |        position += false_len;
49952|       |      }
49953|       |    }
49954|       |  }
49955|  2.55M|  else SIMDJSON_IF_CONSTEXPR(std::is_unsigned<number_type>::value) {
  ------------------
  |  |  101|  2.55M|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
49956|  2.55M|    constexpr size_t max_number_size = 20;
49957|  2.55M|    if (capacity_check(max_number_size)) {
  ------------------
  |  Branch (49957:9): [True: 2.55M, False: 0]
  ------------------
49958|  2.55M|      using unsigned_type = typename std::make_unsigned<number_type>::type;
49959|  2.55M|      char* end = internal::write_uint_jeaiii(
49960|  2.55M|          buffer_data() + position,
49961|  2.55M|          static_cast<uint64_t>(static_cast<unsigned_type>(v)));
49962|  2.55M|      position = end - buffer_data();
49963|  2.55M|    }
49964|       |  }
49965|       |  else SIMDJSON_IF_CONSTEXPR(std::is_integral<number_type>::value) {
49966|       |    // 19 digits (max abs value of int64_t) + optional minus sign.
49967|       |    constexpr size_t max_number_size = 20;
49968|       |    if (capacity_check(max_number_size)) {
49969|       |      using unsigned_type = typename std::make_unsigned<number_type>::type;
49970|       |      bool negative = v < 0;
49971|       |      // 0 - pv (rather than -pv) avoids an MSVC unary-minus warning.
49972|       |      unsigned_type pv = negative
49973|       |          ? unsigned_type(0) - static_cast<unsigned_type>(v)
49974|       |          : static_cast<unsigned_type>(v);
49975|       |      // Branchless: always write '-', advance only if negative.
49976|       |      buffer_data()[position] = '-';
49977|       |      position += negative;
49978|       |      char* end = internal::write_uint_jeaiii(
49979|       |          buffer_data() + position, static_cast<uint64_t>(pv));
49980|       |      position = end - buffer_data();
49981|       |    }
49982|       |  }
49983|       |  else SIMDJSON_IF_CONSTEXPR(std::is_floating_point<number_type>::value) {
49984|       |    // Must reserve to_chars_buffer_size (40): only ~24 chars are emitted,
49985|       |    // but to_chars over-writes with fixed-size 16/17-byte copies so the
49986|       |    // compiler can inline mem* (see simdjson::internal::to_chars_buffer_size).
49987|       |    constexpr size_t max_number_size = simdjson::internal::to_chars_buffer_size;
49988|       |    if (capacity_check(max_number_size)) {
49989|       |#if SIMDJSON_ENABLE_NAN_INF
49990|       |      // Check if the input might be NaN or infinity
49991|       |      if (simdjson_unlikely(!std::isfinite(v))) {
49992|       |        if (std::isnan(v)) {
49993|       |          constexpr char nan_literal[] = "NaN";
49994|       |          constexpr size_t nan_len = sizeof(nan_literal) - 1;
49995|       |
49996|       |          std::memcpy(buffer_data() + position, nan_literal, nan_len);
49997|       |          position += nan_len;
49998|       |        } else {
49999|       |          constexpr char inf_literal[] = "Infinity";
50000|       |          constexpr size_t inf_len = sizeof(inf_literal) - 1;
50001|       |          if (v < 0) {
50002|       |            buffer_data()[position] = '-';
50003|       |            ++position;
50004|       |          }
50005|       |          std::memcpy(buffer_data() + position, inf_literal, inf_len);
50006|       |          position += inf_len;
50007|       |        }
50008|       |        return;
50009|       |      }
50010|       |#endif
50011|       |
50012|       |      // We could specialize for float.
50013|       |      char *end = simdjson::internal::to_chars(buffer_data() + position, nullptr,
50014|       |                                               double(v));
50015|       |      position = end - buffer_data();
50016|       |    }
50017|       |  }
50018|  2.55M|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEvv:
50066|  4.82k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.82k|#if SIMDJSON_CONSTEVAL
50068|  4.82k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.82k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  4.82k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.82k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.82k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.82k, False: 0]
  ------------------
50111|  4.82k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.82k|    position += constevalutil::static_string_size<Text>();
50113|  4.82k|  }
50114|  4.82k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEEEvv:
50066|    227|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    227|#if SIMDJSON_CONSTEVAL
50068|    227|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    227|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEEEEEvv:
50108|    227|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    227|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    227|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 227, False: 0]
  ------------------
50111|    227|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    227|    position += constevalutil::static_string_size<Text>();
50113|    227|  }
50114|    227|}
_ZN8simdjson8fallback7builder14string_builder6appendITkNSt3__16ranges5rangeENS4_6vectorIfNS4_9allocatorIfEEEEQaaaantsr3std14is_convertibleIT_NS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEE5valuentsr8conceptsE13optional_typeISA_Ent28require_custom_serializationISA_EEEvRKSA_:
50147|    227|simdjson_inline void string_builder::append(const R &range) noexcept {
50148|    227|  auto it = std::ranges::begin(range);
50149|    227|  auto end = std::ranges::end(range);
50150|       |  if constexpr (concepts::is_pair<std::ranges::range_value_t<R>>) {
50151|       |    start_object();
50152|       |
50153|       |    if (it == end) {
50154|       |      end_object();
50155|       |      return; // Handle empty range
50156|       |    }
50157|       |    // Append first item without leading comma
50158|       |    append_key_value(it->first, it->second);
50159|       |    ++it;
50160|       |
50161|       |    // Append remaining items with preceding commas
50162|       |    for (; it != end; ++it) {
50163|       |      append_comma();
50164|       |      append_key_value(it->first, it->second);
50165|       |    }
50166|       |    end_object();
50167|    227|  } else {
50168|    227|    start_array();
50169|    227|    if (it == end) {
  ------------------
  |  Branch (50169:9): [True: 0, False: 227]
  ------------------
50170|      0|      end_array();
50171|      0|      return; // Handle empty range
50172|      0|    }
50173|       |
50174|       |    // Append first item without leading comma
50175|    227|    append(*it);
50176|    227|    ++it;
50177|       |
50178|       |    // Append remaining items with preceding commas
50179|   157k|    for (; it != end; ++it) {
  ------------------
  |  Branch (50179:12): [True: 157k, False: 227]
  ------------------
50180|   157k|      append_comma();
50181|   157k|      append(*it);
50182|   157k|    }
50183|    227|    end_array();
50184|    227|  }
50185|    227|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEEEvv:
50066|  16.7k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  16.7k|#if SIMDJSON_CONSTEVAL
50068|  16.7k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  16.7k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEEEEEvv:
50108|  16.7k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  16.7k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  16.7k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 16.7k, False: 0]
  ------------------
50111|  16.7k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  16.7k|    position += constevalutil::static_string_size<Text>();
50113|  16.7k|  }
50114|  16.7k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEmEEvT0_:
50301|  19.2k|string_builder::append_key_value(value_type value) noexcept {
50302|  19.2k|#if SIMDJSON_CONSTEVAL
50303|  19.2k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  19.2k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  19.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  19.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  19.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  19.2k|    escape_and_append_with_quotes(value);
50313|  19.2k|  }
50314|  19.2k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  19.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  19.2k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  19.2k|    escape_and_append_with_quotes(value);
50317|  19.2k|  }
50318|  19.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  19.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  19.2k|    escape_and_append_with_quotes(value);
50320|  19.2k|  }
50321|  19.2k|  else {
50322|  19.2k|    append(value);
50323|  19.2k|  }
50324|  19.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEEEEEvv:
50108|  19.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  19.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  19.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 19.2k, False: 0]
  ------------------
50111|  19.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  19.2k|    position += constevalutil::static_string_size<Text>();
50113|  19.2k|  }
50114|  19.2k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEmEEvT0_:
50301|  1.86k|string_builder::append_key_value(value_type value) noexcept {
50302|  1.86k|#if SIMDJSON_CONSTEVAL
50303|  1.86k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  1.86k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  1.86k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  1.86k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  1.86k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  1.86k|    escape_and_append_with_quotes(value);
50313|  1.86k|  }
50314|  1.86k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  1.86k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  1.86k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  1.86k|    escape_and_append_with_quotes(value);
50317|  1.86k|  }
50318|  1.86k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  1.86k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  1.86k|    escape_and_append_with_quotes(value);
50320|  1.86k|  }
50321|  1.86k|  else {
50322|  1.86k|    append(value);
50323|  1.86k|  }
50324|  1.86k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEEEEEvv:
50108|  1.86k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.86k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.86k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.86k, False: 0]
  ------------------
50111|  1.86k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.86k|    position += constevalutil::static_string_size<Text>();
50113|  1.86k|  }
50114|  1.86k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEmEEvT0_:
50301|    683|string_builder::append_key_value(value_type value) noexcept {
50302|    683|#if SIMDJSON_CONSTEVAL
50303|    683|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|    683|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|    683|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|    683|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|    683|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|    683|    escape_and_append_with_quotes(value);
50313|    683|  }
50314|    683|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|    683|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|    683|      std::is_convertible<value_type, std::string_view>::value) {
50316|    683|    escape_and_append_with_quotes(value);
50317|    683|  }
50318|    683|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|    683|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|    683|    escape_and_append_with_quotes(value);
50320|    683|  }
50321|    683|  else {
50322|    683|    append(value);
50323|    683|  }
50324|    683|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEEEEEvv:
50108|    683|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    683|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    683|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 683, False: 0]
  ------------------
50111|    683|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    683|    position += constevalutil::static_string_size<Text>();
50113|    683|  }
50114|    683|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEEEvv:
50066|  21.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  21.9k|#if SIMDJSON_CONSTEVAL
50068|  21.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  21.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEEEEEvv:
50108|  21.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  21.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  21.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 21.9k, False: 0]
  ------------------
50111|  21.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  21.9k|    position += constevalutil::static_string_size<Text>();
50113|  21.9k|  }
50114|  21.9k|}
_ZN8simdjson8fallback7builder14string_builder6appendITkNSt3__16ranges5rangeENS4_6vectorImNS4_9allocatorImEEEEQaaaantsr3std14is_convertibleIT_NS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEE5valuentsr8conceptsE13optional_typeISA_Ent28require_custom_serializationISA_EEEvRKSA_:
50147|  43.1k|simdjson_inline void string_builder::append(const R &range) noexcept {
50148|  43.1k|  auto it = std::ranges::begin(range);
50149|  43.1k|  auto end = std::ranges::end(range);
50150|       |  if constexpr (concepts::is_pair<std::ranges::range_value_t<R>>) {
50151|       |    start_object();
50152|       |
50153|       |    if (it == end) {
50154|       |      end_object();
50155|       |      return; // Handle empty range
50156|       |    }
50157|       |    // Append first item without leading comma
50158|       |    append_key_value(it->first, it->second);
50159|       |    ++it;
50160|       |
50161|       |    // Append remaining items with preceding commas
50162|       |    for (; it != end; ++it) {
50163|       |      append_comma();
50164|       |      append_key_value(it->first, it->second);
50165|       |    }
50166|       |    end_object();
50167|  43.1k|  } else {
50168|  43.1k|    start_array();
50169|  43.1k|    if (it == end) {
  ------------------
  |  Branch (50169:9): [True: 100, False: 43.0k]
  ------------------
50170|    100|      end_array();
50171|    100|      return; // Handle empty range
50172|    100|    }
50173|       |
50174|       |    // Append first item without leading comma
50175|  43.0k|    append(*it);
50176|  43.0k|    ++it;
50177|       |
50178|       |    // Append remaining items with preceding commas
50179|   794k|    for (; it != end; ++it) {
  ------------------
  |  Branch (50179:12): [True: 751k, False: 43.0k]
  ------------------
50180|   751k|      append_comma();
50181|   751k|      append(*it);
50182|   751k|    }
50183|  43.0k|    end_array();
50184|  43.0k|  }
50185|  43.1k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEEEvv:
50066|    833|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    833|#if SIMDJSON_CONSTEVAL
50068|    833|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    833|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEEEEEvv:
50108|    833|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    833|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    833|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 833, False: 0]
  ------------------
50111|    833|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    833|    position += constevalutil::static_string_size<Text>();
50113|    833|  }
50114|    833|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEmEEvT0_:
50301|  12.5k|string_builder::append_key_value(value_type value) noexcept {
50302|  12.5k|#if SIMDJSON_CONSTEVAL
50303|  12.5k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  12.5k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  12.5k|    escape_and_append_with_quotes(value);
50313|  12.5k|  }
50314|  12.5k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  12.5k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  12.5k|    escape_and_append_with_quotes(value);
50317|  12.5k|  }
50318|  12.5k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  12.5k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  12.5k|    escape_and_append_with_quotes(value);
50320|  12.5k|  }
50321|  12.5k|  else {
50322|  12.5k|    append(value);
50323|  12.5k|  }
50324|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEEEEvv:
50108|  12.5k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  12.5k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  12.5k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 12.5k, False: 0]
  ------------------
50111|  12.5k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  12.5k|    position += constevalutil::static_string_size<Text>();
50113|  12.5k|  }
50114|  12.5k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEEvv:
50066|  40.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  40.9k|#if SIMDJSON_CONSTEVAL
50068|  40.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEEEEvv:
50108|  40.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  40.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  40.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 40.9k, False: 0]
  ------------------
50111|  40.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  40.9k|    position += constevalutil::static_string_size<Text>();
50113|  40.9k|  }
50114|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEEEvv:
50066|  1.88k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.88k|#if SIMDJSON_CONSTEVAL
50068|  1.88k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.88k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|  1.88k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.88k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.88k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.88k, False: 0]
  ------------------
50111|  1.88k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.88k|    position += constevalutil::static_string_size<Text>();
50113|  1.88k|  }
50114|  1.88k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEfEEvT0_:
50301|     10|string_builder::append_key_value(value_type value) noexcept {
50302|     10|#if SIMDJSON_CONSTEVAL
50303|     10|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|     10|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|     10|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|     10|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|     10|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|     10|    escape_and_append_with_quotes(value);
50313|     10|  }
50314|     10|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|     10|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|     10|      std::is_convertible<value_type, std::string_view>::value) {
50316|     10|    escape_and_append_with_quotes(value);
50317|     10|  }
50318|     10|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|     10|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|     10|    escape_and_append_with_quotes(value);
50320|     10|  }
50321|     10|  else {
50322|     10|    append(value);
50323|     10|  }
50324|     10|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEEEEEvv:
50108|     10|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     10|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     10|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10, False: 0]
  ------------------
50111|     10|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     10|    position += constevalutil::static_string_size<Text>();
50113|     10|  }
50114|     10|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEEEvv:
50066|      1|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|      1|#if SIMDJSON_CONSTEVAL
50068|      1|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|      1|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm16EEEtlA16_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEEEEEvv:
50108|      1|simdjson_inline void string_builder::append_static_string() noexcept {
50109|      1|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|      1|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1, False: 0]
  ------------------
50111|      1|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|      1|    position += constevalutil::static_string_size<Text>();
50113|      1|  }
50114|      1|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEfEEvT0_:
50301|     44|string_builder::append_key_value(value_type value) noexcept {
50302|     44|#if SIMDJSON_CONSTEVAL
50303|     44|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|     44|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|     44|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|     44|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|     44|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|     44|    escape_and_append_with_quotes(value);
50313|     44|  }
50314|     44|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|     44|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|     44|      std::is_convertible<value_type, std::string_view>::value) {
50316|     44|    escape_and_append_with_quotes(value);
50317|     44|  }
50318|     44|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|     44|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|     44|    escape_and_append_with_quotes(value);
50320|     44|  }
50321|     44|  else {
50322|     44|    append(value);
50323|     44|  }
50324|     44|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEEvv:
50108|     44|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     44|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     44|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 44, False: 0]
  ------------------
50111|     44|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     44|    position += constevalutil::static_string_size<Text>();
50113|     44|  }
50114|     44|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEEEvv:
50066|  19.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  19.3k|#if SIMDJSON_CONSTEVAL
50068|  19.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  19.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEEEEEvv:
50108|  19.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  19.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  19.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 19.3k, False: 0]
  ------------------
50111|  19.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  19.3k|    position += constevalutil::static_string_size<Text>();
50113|  19.3k|  }
50114|  19.3k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEmEEvT0_:
50301|  7.92k|string_builder::append_key_value(value_type value) noexcept {
50302|  7.92k|#if SIMDJSON_CONSTEVAL
50303|  7.92k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  7.92k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  7.92k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  7.92k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  7.92k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  7.92k|    escape_and_append_with_quotes(value);
50313|  7.92k|  }
50314|  7.92k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  7.92k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  7.92k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  7.92k|    escape_and_append_with_quotes(value);
50317|  7.92k|  }
50318|  7.92k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  7.92k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  7.92k|    escape_and_append_with_quotes(value);
50320|  7.92k|  }
50321|  7.92k|  else {
50322|  7.92k|    append(value);
50323|  7.92k|  }
50324|  7.92k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEEEEEvv:
50108|  7.92k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  7.92k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  7.92k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 7.92k, False: 0]
  ------------------
50111|  7.92k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  7.92k|    position += constevalutil::static_string_size<Text>();
50113|  7.92k|  }
50114|  7.92k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEmEEvT0_:
50301|  11.8k|string_builder::append_key_value(value_type value) noexcept {
50302|  11.8k|#if SIMDJSON_CONSTEVAL
50303|  11.8k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  11.8k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  11.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  11.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  11.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  11.8k|    escape_and_append_with_quotes(value);
50313|  11.8k|  }
50314|  11.8k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  11.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  11.8k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  11.8k|    escape_and_append_with_quotes(value);
50317|  11.8k|  }
50318|  11.8k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  11.8k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  11.8k|    escape_and_append_with_quotes(value);
50320|  11.8k|  }
50321|  11.8k|  else {
50322|  11.8k|    append(value);
50323|  11.8k|  }
50324|  11.8k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEEvv:
50108|  11.8k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  11.8k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  11.8k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 11.8k, False: 0]
  ------------------
50111|  11.8k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  11.8k|    position += constevalutil::static_string_size<Text>();
50113|  11.8k|  }
50114|  11.8k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEEEvv:
50066|  10.2k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  10.2k|#if SIMDJSON_CONSTEVAL
50068|  10.2k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  10.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEEEEEvv:
50108|  10.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  10.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  10.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 10.2k, False: 0]
  ------------------
50111|  10.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  10.2k|    position += constevalutil::static_string_size<Text>();
50113|  10.2k|  }
50114|  10.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEEvv:
50066|  5.89k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  5.89k|#if SIMDJSON_CONSTEVAL
50068|  5.89k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  5.89k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEEEEvv:
50108|  5.89k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.89k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.89k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.89k, False: 0]
  ------------------
50111|  5.89k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.89k|    position += constevalutil::static_string_size<Text>();
50113|  5.89k|  }
50114|  5.89k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEmEEvT0_:
50301|  5.89k|string_builder::append_key_value(value_type value) noexcept {
50302|  5.89k|#if SIMDJSON_CONSTEVAL
50303|  5.89k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  5.89k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  5.89k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  5.89k|    escape_and_append_with_quotes(value);
50313|  5.89k|  }
50314|  5.89k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  5.89k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  5.89k|    escape_and_append_with_quotes(value);
50317|  5.89k|  }
50318|  5.89k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  5.89k|    escape_and_append_with_quotes(value);
50320|  5.89k|  }
50321|  5.89k|  else {
50322|  5.89k|    append(value);
50323|  5.89k|  }
50324|  5.89k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEEEEEvv:
50108|  5.89k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.89k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.89k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.89k, False: 0]
  ------------------
50111|  5.89k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.89k|    position += constevalutil::static_string_size<Text>();
50113|  5.89k|  }
50114|  5.89k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEmEEvT0_:
50301|  5.89k|string_builder::append_key_value(value_type value) noexcept {
50302|  5.89k|#if SIMDJSON_CONSTEVAL
50303|  5.89k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  5.89k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  5.89k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  5.89k|    escape_and_append_with_quotes(value);
50313|  5.89k|  }
50314|  5.89k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  5.89k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  5.89k|    escape_and_append_with_quotes(value);
50317|  5.89k|  }
50318|  5.89k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  5.89k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  5.89k|    escape_and_append_with_quotes(value);
50320|  5.89k|  }
50321|  5.89k|  else {
50322|  5.89k|    append(value);
50323|  5.89k|  }
50324|  5.89k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEEEEvv:
50108|  5.89k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.89k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.89k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.89k, False: 0]
  ------------------
50111|  5.89k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.89k|    position += constevalutil::static_string_size<Text>();
50113|  5.89k|  }
50114|  5.89k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEvv:
50066|  5.26k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  5.26k|#if SIMDJSON_CONSTEVAL
50068|  5.26k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  5.26k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEEEvv:
50108|  5.26k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.26k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.26k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.26k, False: 0]
  ------------------
50111|  5.26k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.26k|    position += constevalutil::static_string_size<Text>();
50113|  5.26k|  }
50114|  5.26k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEETnDaLb0EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|  5.26k|string_builder::append_key_value() noexcept {
50366|  5.26k|#if SIMDJSON_CONSTEVAL
50367|  5.26k|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|  5.26k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|  5.26k|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|  5.26k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEELb0EEEEEvv:
50108|  5.26k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.26k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.26k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.26k, False: 0]
  ------------------
50111|  5.26k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.26k|    position += constevalutil::static_string_size<Text>();
50113|  5.26k|  }
50114|  5.26k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEvv:
50066|  4.42k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.42k|#if SIMDJSON_CONSTEVAL
50068|  4.42k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.42k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEEEvv:
50108|  4.42k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.42k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.42k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.42k, False: 0]
  ------------------
50111|  4.42k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.42k|    position += constevalutil::static_string_size<Text>();
50113|  4.42k|  }
50114|  4.42k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEETnDaLb0EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|  4.42k|string_builder::append_key_value() noexcept {
50366|  4.42k|#if SIMDJSON_CONSTEVAL
50367|  4.42k|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|  4.42k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|  4.42k|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|  4.42k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEELb0EEEEEvv:
50108|  4.42k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.42k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.42k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.42k, False: 0]
  ------------------
50111|  4.42k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.42k|    position += constevalutil::static_string_size<Text>();
50113|  4.42k|  }
50114|  4.42k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEvv:
50066|    964|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    964|#if SIMDJSON_CONSTEVAL
50068|    964|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    964|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEEEvv:
50108|    964|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    964|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    964|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 964, False: 0]
  ------------------
50111|    964|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    964|    position += constevalutil::static_string_size<Text>();
50113|    964|  }
50114|    964|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEETnDaLb0EQntsr13constevalutilE15is_fixed_stringIu14__remove_cvrefIDtT0_EEEEEvv:
50365|    964|string_builder::append_key_value() noexcept {
50366|    964|#if SIMDJSON_CONSTEVAL
50367|    964|  SIMDJSON_IF_CONSTEXPR(compile_time_formattable<decltype(value)>) {
  ------------------
  |  |  101|    964|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50368|    964|    append_static_string<key_value_text<key, value>>();
50369|       |  } else
50370|       |#endif
50371|       |  {
50372|       |    append_key_value<key>(value);
50373|       |  }
50374|    964|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEELb0EEEEEvv:
50108|    964|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    964|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    964|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 964, False: 0]
  ------------------
50111|    964|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    964|    position += constevalutil::static_string_size<Text>();
50113|    964|  }
50114|    964|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEtEEvT0_:
50301|  6.78k|string_builder::append_key_value(value_type value) noexcept {
50302|  6.78k|#if SIMDJSON_CONSTEVAL
50303|  6.78k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  6.78k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  6.78k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  6.78k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  6.78k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  6.78k|    escape_and_append_with_quotes(value);
50313|  6.78k|  }
50314|  6.78k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  6.78k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  6.78k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  6.78k|    escape_and_append_with_quotes(value);
50317|  6.78k|  }
50318|  6.78k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  6.78k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  6.78k|    escape_and_append_with_quotes(value);
50320|  6.78k|  }
50321|  6.78k|  else {
50322|  6.78k|    append(value);
50323|  6.78k|  }
50324|  6.78k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEEvv:
50108|  6.78k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.78k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.78k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.78k, False: 0]
  ------------------
50111|  6.78k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.78k|    position += constevalutil::static_string_size<Text>();
50113|  6.78k|  }
50114|  6.78k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEtEEvT0_:
50301|  8.64k|string_builder::append_key_value(value_type value) noexcept {
50302|  8.64k|#if SIMDJSON_CONSTEVAL
50303|  8.64k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  8.64k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  8.64k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  8.64k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  8.64k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  8.64k|    escape_and_append_with_quotes(value);
50313|  8.64k|  }
50314|  8.64k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  8.64k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  8.64k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  8.64k|    escape_and_append_with_quotes(value);
50317|  8.64k|  }
50318|  8.64k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  8.64k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  8.64k|    escape_and_append_with_quotes(value);
50320|  8.64k|  }
50321|  8.64k|  else {
50322|  8.64k|    append(value);
50323|  8.64k|  }
50324|  8.64k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEEvv:
50108|  8.64k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  8.64k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  8.64k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 8.64k, False: 0]
  ------------------
50111|  8.64k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  8.64k|    position += constevalutil::static_string_size<Text>();
50113|  8.64k|  }
50114|  8.64k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEtEEvT0_:
50301|  2.97k|string_builder::append_key_value(value_type value) noexcept {
50302|  2.97k|#if SIMDJSON_CONSTEVAL
50303|  2.97k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  2.97k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  2.97k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  2.97k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  2.97k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  2.97k|    escape_and_append_with_quotes(value);
50313|  2.97k|  }
50314|  2.97k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  2.97k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  2.97k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  2.97k|    escape_and_append_with_quotes(value);
50317|  2.97k|  }
50318|  2.97k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  2.97k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  2.97k|    escape_and_append_with_quotes(value);
50320|  2.97k|  }
50321|  2.97k|  else {
50322|  2.97k|    append(value);
50323|  2.97k|  }
50324|  2.97k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEEEEEvv:
50108|  2.97k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.97k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.97k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.97k, False: 0]
  ------------------
50111|  2.97k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.97k|    position += constevalutil::static_string_size<Text>();
50113|  2.97k|  }
50114|  2.97k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc84EEEEtEEvT0_:
50301|  3.32k|string_builder::append_key_value(value_type value) noexcept {
50302|  3.32k|#if SIMDJSON_CONSTEVAL
50303|  3.32k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  3.32k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  3.32k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  3.32k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  3.32k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  3.32k|    escape_and_append_with_quotes(value);
50313|  3.32k|  }
50314|  3.32k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  3.32k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  3.32k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  3.32k|    escape_and_append_with_quotes(value);
50317|  3.32k|  }
50318|  3.32k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  3.32k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  3.32k|    escape_and_append_with_quotes(value);
50320|  3.32k|  }
50321|  3.32k|  else {
50322|  3.32k|    append(value);
50323|  3.32k|  }
50324|  3.32k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc84EEEEEEEEvv:
50108|  3.32k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.32k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.32k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.32k, False: 0]
  ------------------
50111|  3.32k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.32k|    position += constevalutil::static_string_size<Text>();
50113|  3.32k|  }
50114|  3.32k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc99ELc101ELc110ELc101EEEEmEEvT0_:
50301|  5.63k|string_builder::append_key_value(value_type value) noexcept {
50302|  5.63k|#if SIMDJSON_CONSTEVAL
50303|  5.63k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  5.63k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  5.63k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  5.63k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  5.63k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  5.63k|    escape_and_append_with_quotes(value);
50313|  5.63k|  }
50314|  5.63k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  5.63k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  5.63k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  5.63k|    escape_and_append_with_quotes(value);
50317|  5.63k|  }
50318|  5.63k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  5.63k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  5.63k|    escape_and_append_with_quotes(value);
50320|  5.63k|  }
50321|  5.63k|  else {
50322|  5.63k|    append(value);
50323|  5.63k|  }
50324|  5.63k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc99ELc101ELc110ELc101EEEEEEEEvv:
50108|  5.63k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.63k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.63k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.63k, False: 0]
  ------------------
50111|  5.63k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.63k|    position += constevalutil::static_string_size<Text>();
50113|  5.63k|  }
50114|  5.63k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc115ELc99ELc101ELc110ELc101ELc115EEEEEEvv:
50066|  6.06k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  6.06k|#if SIMDJSON_CONSTEVAL
50068|  6.06k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  6.06k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc115ELc99ELc101ELc110ELc101ELc115EEEEEEEEvv:
50108|  6.06k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.06k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.06k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.06k, False: 0]
  ------------------
50111|  6.06k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.06k|    position += constevalutil::static_string_size<Text>();
50113|  6.06k|  }
50114|  6.06k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc115ELc107ELc105ELc110ELc115EEEEEEvv:
50066|  2.13k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  2.13k|#if SIMDJSON_CONSTEVAL
50068|  2.13k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  2.13k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc115ELc107ELc105ELc110ELc115EEEEEEEEvv:
50108|  2.13k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.13k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.13k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.13k, False: 0]
  ------------------
50111|  2.13k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.13k|    position += constevalutil::static_string_size<Text>();
50113|  2.13k|  }
50114|  2.13k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEmEEvT0_:
50301|    668|string_builder::append_key_value(value_type value) noexcept {
50302|    668|#if SIMDJSON_CONSTEVAL
50303|    668|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|    668|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|    668|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|    668|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|    668|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|    668|    escape_and_append_with_quotes(value);
50313|    668|  }
50314|    668|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|    668|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|    668|      std::is_convertible<value_type, std::string_view>::value) {
50316|    668|    escape_and_append_with_quotes(value);
50317|    668|  }
50318|    668|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|    668|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|    668|    escape_and_append_with_quotes(value);
50320|    668|  }
50321|    668|  else {
50322|    668|    append(value);
50323|    668|  }
50324|    668|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEEEEEvv:
50108|    668|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    668|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    668|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 668, False: 0]
  ------------------
50111|    668|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    668|    position += constevalutil::static_string_size<Text>();
50113|    668|  }
50114|    668|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEmEEvT0_:
50301|     89|string_builder::append_key_value(value_type value) noexcept {
50302|     89|#if SIMDJSON_CONSTEVAL
50303|     89|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|     89|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|     89|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|     89|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|     89|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|     89|    escape_and_append_with_quotes(value);
50313|     89|  }
50314|     89|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|     89|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|     89|      std::is_convertible<value_type, std::string_view>::value) {
50316|     89|    escape_and_append_with_quotes(value);
50317|     89|  }
50318|     89|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|     89|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|     89|    escape_and_append_with_quotes(value);
50320|     89|  }
50321|     89|  else {
50322|     89|    append(value);
50323|     89|  }
50324|     89|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEEEEEvv:
50108|     89|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     89|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     89|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 89, False: 0]
  ------------------
50111|     89|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     89|    position += constevalutil::static_string_size<Text>();
50113|     89|  }
50114|     89|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEEEvv:
50066|  14.3k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  14.3k|#if SIMDJSON_CONSTEVAL
50068|  14.3k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  14.3k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEEEEEvv:
50108|  14.3k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.3k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.3k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.3k, False: 0]
  ------------------
50111|  14.3k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.3k|    position += constevalutil::static_string_size<Text>();
50113|  14.3k|  }
50114|  14.3k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm9EEEtlA9_cLc116ELc101ELc120ELc116ELc117ELc114ELc101ELc115EEEEEEvv:
50066|  4.36k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.36k|#if SIMDJSON_CONSTEVAL
50068|  4.36k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.36k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc116ELc117ELc114ELc101ELc115EEEEEEEEvv:
50108|  4.36k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.36k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.36k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.36k, False: 0]
  ------------------
50111|  4.36k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.36k|    position += constevalutil::static_string_size<Text>();
50113|  4.36k|  }
50114|  4.36k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEmEEvT0_:
50301|  29.2k|string_builder::append_key_value(value_type value) noexcept {
50302|  29.2k|#if SIMDJSON_CONSTEVAL
50303|  29.2k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  29.2k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  29.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  29.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  29.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  29.2k|    escape_and_append_with_quotes(value);
50313|  29.2k|  }
50314|  29.2k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  29.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  29.2k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  29.2k|    escape_and_append_with_quotes(value);
50317|  29.2k|  }
50318|  29.2k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|  29.2k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|  29.2k|    escape_and_append_with_quotes(value);
50320|  29.2k|  }
50321|  29.2k|  else {
50322|  29.2k|    append(value);
50323|  29.2k|  }
50324|  29.2k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEEEEvv:
50108|  29.2k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  29.2k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  29.2k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 29.2k, False: 0]
  ------------------
50111|  29.2k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  29.2k|    position += constevalutil::static_string_size<Text>();
50113|  29.2k|  }
50114|  29.2k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEEEvv:
50066|  3.82k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  3.82k|#if SIMDJSON_CONSTEVAL
50068|  3.82k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  3.82k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEEEEEvv:
50108|  3.82k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  3.82k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  3.82k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 3.82k, False: 0]
  ------------------
50111|  3.82k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  3.82k|    position += constevalutil::static_string_size<Text>();
50113|  3.82k|  }
50114|  3.82k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEEEvv:
50066|     15|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|     15|#if SIMDJSON_CONSTEVAL
50068|     15|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|     15|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEEEEEvv:
50108|     15|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     15|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     15|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 15, False: 0]
  ------------------
50111|     15|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     15|    position += constevalutil::static_string_size<Text>();
50113|     15|  }
50114|     15|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEEEvv:
50066|    120|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    120|#if SIMDJSON_CONSTEVAL
50068|    120|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    120|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEEEEEvv:
50108|    120|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    120|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    120|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 120, False: 0]
  ------------------
50111|    120|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    120|    position += constevalutil::static_string_size<Text>();
50113|    120|  }
50114|    120|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEEvv:
50066|     28|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|     28|#if SIMDJSON_CONSTEVAL
50068|     28|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|     28|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEEEEvv:
50108|     28|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     28|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     28|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 28, False: 0]
  ------------------
50111|     28|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     28|    position += constevalutil::static_string_size<Text>();
50113|     28|  }
50114|     28|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEEEvv:
50066|    942|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    942|#if SIMDJSON_CONSTEVAL
50068|    942|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    942|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEEEEEvv:
50108|    942|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    942|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    942|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 942, False: 0]
  ------------------
50111|    942|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    942|    position += constevalutil::static_string_size<Text>();
50113|    942|  }
50114|    942|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEEvv:
50066|    942|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    942|#if SIMDJSON_CONSTEVAL
50068|    942|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    942|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEEEEvv:
50108|    942|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    942|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    942|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 942, False: 0]
  ------------------
50111|    942|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    942|    position += constevalutil::static_string_size<Text>();
50113|    942|  }
50114|    942|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEEEvv:
50066|    749|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    749|#if SIMDJSON_CONSTEVAL
50068|    749|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    749|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEEEEEvv:
50108|    749|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    749|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    749|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 749, False: 0]
  ------------------
50111|    749|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    749|    position += constevalutil::static_string_size<Text>();
50113|    749|  }
50114|    749|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEfEEvT0_:
50301|   108k|string_builder::append_key_value(value_type value) noexcept {
50302|   108k|#if SIMDJSON_CONSTEVAL
50303|   108k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   108k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   108k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   108k|    escape_and_append_with_quotes(value);
50313|   108k|  }
50314|   108k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   108k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   108k|    escape_and_append_with_quotes(value);
50317|   108k|  }
50318|   108k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   108k|    escape_and_append_with_quotes(value);
50320|   108k|  }
50321|   108k|  else {
50322|   108k|    append(value);
50323|   108k|  }
50324|   108k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|   108k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   108k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   108k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 108k, False: 0]
  ------------------
50111|   108k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   108k|    position += constevalutil::static_string_size<Text>();
50113|   108k|  }
50114|   108k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEfEEvT0_:
50301|   108k|string_builder::append_key_value(value_type value) noexcept {
50302|   108k|#if SIMDJSON_CONSTEVAL
50303|   108k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   108k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   108k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   108k|    escape_and_append_with_quotes(value);
50313|   108k|  }
50314|   108k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   108k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   108k|    escape_and_append_with_quotes(value);
50317|   108k|  }
50318|   108k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   108k|    escape_and_append_with_quotes(value);
50320|   108k|  }
50321|   108k|  else {
50322|   108k|    append(value);
50323|   108k|  }
50324|   108k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|   108k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   108k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   108k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 108k, False: 0]
  ------------------
50111|   108k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   108k|    position += constevalutil::static_string_size<Text>();
50113|   108k|  }
50114|   108k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEfEEvT0_:
50301|   108k|string_builder::append_key_value(value_type value) noexcept {
50302|   108k|#if SIMDJSON_CONSTEVAL
50303|   108k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|   108k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|   108k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|   108k|    escape_and_append_with_quotes(value);
50313|   108k|  }
50314|   108k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|   108k|      std::is_convertible<value_type, std::string_view>::value) {
50316|   108k|    escape_and_append_with_quotes(value);
50317|   108k|  }
50318|   108k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
  ------------------
  |  |  101|   108k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50319|   108k|    escape_and_append_with_quotes(value);
50320|   108k|  }
50321|   108k|  else {
50322|   108k|    append(value);
50323|   108k|  }
50324|   108k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEEEEEvv:
50108|   108k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   108k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   108k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 108k, False: 0]
  ------------------
50111|   108k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   108k|    position += constevalutil::static_string_size<Text>();
50113|   108k|  }
50114|   108k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm16EEEtlA16_cLc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEEEvv:
50066|   108k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|   108k|#if SIMDJSON_CONSTEVAL
50068|   108k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|   108k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm16EEEtlA16_cLc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEEEEEvv:
50108|   108k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   108k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   108k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 108k, False: 0]
  ------------------
50111|   108k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   108k|    position += constevalutil::static_string_size<Text>();
50113|   108k|  }
50114|   108k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEEEvv:
50066|   108k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|   108k|#if SIMDJSON_CONSTEVAL
50068|   108k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|   108k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEEEEEvv:
50108|   108k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|   108k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|   108k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 108k, False: 0]
  ------------------
50111|   108k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|   108k|    position += constevalutil::static_string_size<Text>();
50113|   108k|  }
50114|   108k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEEEvv:
50066|  1.06k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  1.06k|#if SIMDJSON_CONSTEVAL
50068|  1.06k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  1.06k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEEEEEvv:
50108|  1.06k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  1.06k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  1.06k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 1.06k, False: 0]
  ------------------
50111|  1.06k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  1.06k|    position += constevalutil::static_string_size<Text>();
50113|  1.06k|  }
50114|  1.06k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEEEvv:
50066|  4.08k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.08k|#if SIMDJSON_CONSTEVAL
50068|  4.08k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.08k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEEEEEvv:
50108|  4.08k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.08k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.08k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.08k, False: 0]
  ------------------
50111|  4.08k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.08k|    position += constevalutil::static_string_size<Text>();
50113|  4.08k|  }
50114|  4.08k|}
_ZN8simdjson8fallback7builder14string_builder6appendITkNSt3__16ranges5rangeENS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEEQaaaantsr3std14is_convertibleIT_NS4_17basic_string_viewIcS9_EEEE5valuentsr8conceptsE13optional_typeISF_Ent28require_custom_serializationISF_EEEvRKSF_:
50147|  31.1k|simdjson_inline void string_builder::append(const R &range) noexcept {
50148|  31.1k|  auto it = std::ranges::begin(range);
50149|  31.1k|  auto end = std::ranges::end(range);
50150|       |  if constexpr (concepts::is_pair<std::ranges::range_value_t<R>>) {
50151|       |    start_object();
50152|       |
50153|       |    if (it == end) {
50154|       |      end_object();
50155|       |      return; // Handle empty range
50156|       |    }
50157|       |    // Append first item without leading comma
50158|       |    append_key_value(it->first, it->second);
50159|       |    ++it;
50160|       |
50161|       |    // Append remaining items with preceding commas
50162|       |    for (; it != end; ++it) {
50163|       |      append_comma();
50164|       |      append_key_value(it->first, it->second);
50165|       |    }
50166|       |    end_object();
50167|  31.1k|  } else {
50168|  31.1k|    start_array();
50169|  31.1k|    if (it == end) {
  ------------------
  |  Branch (50169:9): [True: 0, False: 31.1k]
  ------------------
50170|      0|      end_array();
50171|      0|      return; // Handle empty range
50172|      0|    }
50173|       |
50174|       |    // Append first item without leading comma
50175|  31.1k|    append(*it);
50176|  31.1k|    ++it;
50177|       |
50178|       |    // Append remaining items with preceding commas
50179|   323k|    for (; it != end; ++it) {
  ------------------
  |  Branch (50179:12): [True: 292k, False: 31.1k]
  ------------------
50180|   292k|      append_comma();
50181|   292k|      append(*it);
50182|   292k|    }
50183|  31.1k|    end_array();
50184|  31.1k|  }
50185|  31.1k|}
_ZN8simdjson8fallback7builder14string_builder6appendINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEQoosr3std14is_convertibleIT_NS4_17basic_string_viewIcS7_EEEE5valuesr3std7is_sameISB_PKcEE5valueEEvRKSB_:
50138|   323k|simdjson_inline void string_builder::append(const T &value) {
50139|   323k|  escape_and_append_with_quotes(value);
50140|   323k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEEEvv:
50066|  4.94k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  4.94k|#if SIMDJSON_CONSTEVAL
50068|  4.94k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  4.94k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEEEEEvv:
50108|  4.94k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.94k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.94k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.94k, False: 0]
  ------------------
50111|  4.94k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.94k|    position += constevalutil::static_string_size<Text>();
50113|  4.94k|  }
50114|  4.94k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEEEvv:
50066|  5.41k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  5.41k|#if SIMDJSON_CONSTEVAL
50068|  5.41k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  5.41k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEEEEEvv:
50108|  5.41k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  5.41k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  5.41k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 5.41k, False: 0]
  ------------------
50111|  5.41k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  5.41k|    position += constevalutil::static_string_size<Text>();
50113|  5.41k|  }
50114|  5.41k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEEvv:
50066|    100|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|    100|#if SIMDJSON_CONSTEVAL
50068|    100|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|    100|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEEEEvv:
50108|    100|simdjson_inline void string_builder::append_static_string() noexcept {
50109|    100|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|    100|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 100, False: 0]
  ------------------
50111|    100|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|    100|    position += constevalutil::static_string_size<Text>();
50113|    100|  }
50114|    100|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEEEvv:
50066|  40.9k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  40.9k|#if SIMDJSON_CONSTEVAL
50068|  40.9k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEEEEEvv:
50108|  40.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  40.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  40.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 40.9k, False: 0]
  ------------------
50111|  40.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  40.9k|    position += constevalutil::static_string_size<Text>();
50113|  40.9k|  }
50114|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEENSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEvT0_:
50301|  40.9k|string_builder::append_key_value(value_type value) noexcept {
50302|  40.9k|#if SIMDJSON_CONSTEVAL
50303|  40.9k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  40.9k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  40.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  40.9k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  40.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  40.9k|    escape_and_append_with_quotes(value);
50313|  40.9k|  }
50314|  40.9k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  40.9k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  40.9k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  40.9k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|  40.9k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  40.9k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  40.9k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 40.9k, False: 0]
  ------------------
50111|  40.9k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  40.9k|    position += constevalutil::static_string_size<Text>();
50113|  40.9k|  }
50114|  40.9k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEENSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEvT0_:
50301|  4.91k|string_builder::append_key_value(value_type value) noexcept {
50302|  4.91k|#if SIMDJSON_CONSTEVAL
50303|  4.91k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  4.91k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  4.91k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  4.91k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  4.91k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  4.91k|    escape_and_append_with_quotes(value);
50313|  4.91k|  }
50314|  4.91k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  4.91k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  4.91k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  4.91k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  4.91k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEEEEEvv:
50108|  4.91k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  4.91k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  4.91k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 4.91k, False: 0]
  ------------------
50111|  4.91k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  4.91k|    position += constevalutil::static_string_size<Text>();
50113|  4.91k|  }
50114|  4.91k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEENSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEvT0_:
50301|  6.35k|string_builder::append_key_value(value_type value) noexcept {
50302|  6.35k|#if SIMDJSON_CONSTEVAL
50303|  6.35k|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|  6.35k|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|  6.35k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|  6.35k|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|  6.35k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|  6.35k|    escape_and_append_with_quotes(value);
50313|  6.35k|  }
50314|  6.35k|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|  6.35k|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|  6.35k|      std::is_convertible<value_type, std::string_view>::value) {
50316|  6.35k|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|  6.35k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEEEEvv:
50108|  6.35k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  6.35k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  6.35k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 6.35k, False: 0]
  ------------------
50111|  6.35k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  6.35k|    position += constevalutil::static_string_size<Text>();
50113|  6.35k|  }
50114|  6.35k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm10EEEtlA10_cLc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEETnS5_XtlNS5_ILm15EEEtlA15_cLc102ELc97ELc115ELc116ELc103ELc108ELc116ELc102ELc32ELc49ELc46ELc48ELc46ELc49EEEEEEvv:
50352|  34.6k|string_builder::append_key_value() noexcept {
50353|  34.6k|#if SIMDJSON_CONSTEVAL
50354|  34.6k|  append_static_string<key_value_text<key, value>>();
50355|       |#else
50356|       |  escape_and_append_with_quotes<key>();
50357|       |  append_colon();
50358|       |  escape_and_append_with_quotes<value>();
50359|       |#endif
50360|  34.6k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_14key_value_textIXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEXtlNS6_ILm15EEEtlA15_cLc102ELc97ELc115ELc116ELc103ELc108ELc116ELc102ELc32ELc49ELc46ELc48ELc46ELc49EEEEEEEEvv:
50108|  34.6k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  34.6k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  34.6k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 34.6k, False: 0]
  ------------------
50111|  34.6k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  34.6k|    position += constevalutil::static_string_size<Text>();
50113|  34.6k|  }
50114|  34.6k|}
_ZN8simdjson8fallback7builder14string_builder16append_key_valueITnNS_13constevalutil12fixed_stringEXtlNS5_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEENSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEvT0_:
50301|     22|string_builder::append_key_value(value_type value) noexcept {
50302|     22|#if SIMDJSON_CONSTEVAL
50303|     22|  append_static_string<quoted_key_text<key>>();
50304|       |#else
50305|       |  escape_and_append_with_quotes<key>();
50306|       |  append_colon();
50307|       |#endif
50308|     22|  SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, std::nullptr_t>::value) {
  ------------------
  |  |  101|     22|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50309|       |    append_null();
50310|       |  }
50311|     22|  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, char>::value) {
  ------------------
  |  |  101|     22|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50312|     22|    escape_and_append_with_quotes(value);
50313|     22|  }
50314|     22|  else SIMDJSON_IF_CONSTEXPR(
  ------------------
  |  |  101|     22|#define SIMDJSON_IF_CONSTEXPR if constexpr
  ------------------
50315|     22|      std::is_convertible<value_type, std::string_view>::value) {
50316|     22|    escape_and_append_with_quotes(value);
50317|       |  }
50318|       |  else SIMDJSON_IF_CONSTEXPR(std::is_same<value_type, const char *>::value) {
50319|       |    escape_and_append_with_quotes(value);
50320|       |  }
50321|       |  else {
50322|       |    append(value);
50323|       |  }
50324|     22|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS1_15quoted_key_textIXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEEvv:
50108|     22|simdjson_inline void string_builder::append_static_string() noexcept {
50109|     22|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|     22|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 22, False: 0]
  ------------------
50111|     22|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|     22|    position += constevalutil::static_string_size<Text>();
50113|     22|  }
50114|     22|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm15EEEtlA15_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc85ELc115ELc101ELc100EEEEEEvv:
50066|  14.0k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  14.0k|#if SIMDJSON_CONSTEVAL
50068|  14.0k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  14.0k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm15EEEtlA15_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc85ELc115ELc101ELc100EEEEEEEEvv:
50108|  14.0k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  14.0k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  14.0k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 14.0k, False: 0]
  ------------------
50111|  14.0k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  14.0k|    position += constevalutil::static_string_size<Text>();
50113|  14.0k|  }
50114|  14.0k|}
_ZN8simdjson8fallback7builder14string_builder29escape_and_append_with_quotesITnNS_13constevalutil12fixed_stringEXtlNS5_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEEvv:
50066|  2.59k|simdjson_inline void string_builder::escape_and_append_with_quotes() noexcept {
50067|  2.59k|#if SIMDJSON_CONSTEVAL
50068|  2.59k|  append_static_string<constevalutil::quoted_escaped_text<key>>();
50069|       |#else
50070|       |  escape_and_append_with_quotes(constevalutil::string_constant<key>::value);
50071|       |#endif
50072|  2.59k|}
_ZN8simdjson8fallback7builder14string_builder20append_static_stringINS_13constevalutil19quoted_escaped_textIXtlNS4_12fixed_stringILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEEEEvv:
50108|  2.59k|simdjson_inline void string_builder::append_static_string() noexcept {
50109|  2.59k|  constexpr auto& padded = constevalutil::static_string<Text>;
50110|  2.59k|  if (capacity_check(padded.size())) {
  ------------------
  |  Branch (50110:7): [True: 2.59k, False: 0]
  ------------------
50111|  2.59k|    std::memcpy(buffer_data() + position, padded.data(), padded.size());
50112|  2.59k|    position += constevalutil::static_string_size<Text>();
50113|  2.59k|  }
50114|  2.59k|}
_ZNK8simdjson18padded_string_view22has_sufficient_paddingEv:
 5159|   115k|inline bool padded_string_view::has_sufficient_padding() const noexcept {
 5160|   115k|  if (padding() >= SIMDJSON_PADDING) {
  ------------------
  |  Branch (5160:7): [True: 115k, False: 0]
  ------------------
 5161|   115k|    return true;
 5162|   115k|  }
 5163|      0|  size_t missing_padding = SIMDJSON_PADDING - padding();
 5164|      0|  if(length() < missing_padding) { return false; }
  ------------------
  |  Branch (5164:6): [True: 0, False: 0]
  ------------------
 5165|       |
 5166|      0|  for (size_t i = length() - missing_padding; i < length(); i++) {
  ------------------
  |  Branch (5166:47): [True: 0, False: 0]
  ------------------
 5167|      0|    char c = data()[i];
 5168|      0|    if (c != ' ' && c != '\t' && c != '\n' && c != '\r') {
  ------------------
  |  Branch (5168:9): [True: 0, False: 0]
  |  Branch (5168:21): [True: 0, False: 0]
  |  Branch (5168:34): [True: 0, False: 0]
  |  Branch (5168:47): [True: 0, False: 0]
  ------------------
 5169|      0|      return false;
 5170|      0|    }
 5171|      0|  }
 5172|      0|  return true;
 5173|      0|}
_ZN8simdjson18padded_string_view34use_trailing_whitespace_as_paddingEv:
 5175|   115k|inline bool padded_string_view::use_trailing_whitespace_as_padding() noexcept {
 5176|   115k|  if (padding() >= SIMDJSON_PADDING || !has_sufficient_padding()) {
  ------------------
  |  Branch (5176:7): [True: 115k, False: 0]
  |  Branch (5176:40): [True: 0, False: 0]
  ------------------
 5177|   115k|    return false;
 5178|   115k|  }
 5179|      0|  remove_suffix(SIMDJSON_PADDING - padding());
 5180|      0|  return true;
 5181|   115k|}
_ZNK8simdjson18padded_string_view8capacityEv:
 5183|   231k|inline size_t padded_string_view::capacity() const noexcept { return _capacity; }
_ZNK8simdjson18padded_string_view7paddingEv:
 5185|   231k|inline size_t padded_string_view::padding() const noexcept { return capacity() - length(); }
_ZN8simdjson18padded_string_view15remove_utf8_bomEv:
 5187|   115k|inline bool padded_string_view::remove_utf8_bom() noexcept {
 5188|   115k|  if(length() < 3) { return false; }
  ------------------
  |  Branch (5188:6): [True: 46, False: 115k]
  ------------------
 5189|   115k|  if (std::memcmp(data(), "\xEF\xBB\xBF", 3) == 0) {
  ------------------
  |  Branch (5189:7): [True: 952, False: 114k]
  ------------------
 5190|    952|    remove_prefix(3);
 5191|    952|    _capacity -= 3;
 5192|    952|    return true;
 5193|    952|  }
 5194|   114k|  return false;
 5195|   115k|}
_ZN8simdjson8fallback13numberparsing19full_multiplicationEmm:
20010|  1.57M|simdjson_inline internal::value128 full_multiplication(uint64_t value1, uint64_t value2) {
20011|  1.57M|  internal::value128 answer;
20012|       |#if SIMDJSON_REGULAR_VISUAL_STUDIO || SIMDJSON_IS_32BITS
20013|       |#if SIMDJSON_IS_ARM64
20014|       |  // ARM64 has native support for 64-bit multiplications, no need to emultate
20015|       |  answer.high = __umulh(value1, value2);
20016|       |  answer.low = value1 * value2;
20017|       |#else
20018|       |  answer.low = _umul128(value1, value2, &answer.high); // _umul128 not available on ARM64
20019|       |#endif // SIMDJSON_IS_ARM64
20020|       |#else // SIMDJSON_REGULAR_VISUAL_STUDIO || SIMDJSON_IS_32BITS
20021|  1.57M|  __uint128_t r = (static_cast<__uint128_t>(value1)) * value2;
20022|  1.57M|  answer.low = uint64_t(r);
20023|  1.57M|  answer.high = uint64_t(r >> 64);
20024|  1.57M|#endif
20025|  1.57M|  return answer;
20026|  1.57M|}
_ZN8simdjson8fallback13numberparsing18slow_float_parsingEPKhPd:
21417|  18.4k|inline error_code slow_float_parsing(simdjson_unused const uint8_t * src, double* answer) {
21418|  18.4k|  if (parse_float_fallback(src, answer)) {
  ------------------
  |  Branch (21418:7): [True: 18.3k, False: 95]
  ------------------
21419|  18.3k|    return SUCCESS;
21420|  18.3k|  }
21421|     95|  return INVALID_NUMBER(src);
  ------------------
  |  |20672|     95|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
21422|  18.4k|}
_ZN8simdjson8fallback8ondemand14value_iteratorC2Ev:
89322|  2.82M|  simdjson_inline value_iterator() noexcept {}
_ZN8simdjson8fallback8ondemand14value_iteratorC2ERKS2_:
89324|   113M|    : _json_iter{other._json_iter}, _depth{other._depth}, _start_position{other._start_position} {}
_ZN8simdjson8fallback8ondemand14value_iteratoraSERKS2_:
89325|  2.82M|  simdjson_inline value_iterator &operator=(const value_iterator &other) noexcept {
89326|  2.82M|    _json_iter = other._json_iter;
89327|  2.82M|    _depth = other._depth;
89328|  2.82M|    _start_position = other._start_position;
89329|  2.82M|    return *this;
89330|  2.82M|  }
_ZN8simdjson8fallback8ondemand5valueC2Ev:
89857|  22.2k|  simdjson_inline value() noexcept {}
_ZN8simdjson8fallback8ondemand14token_iteratorC2Ev:
90995|   116k|  simdjson_inline token_iterator() noexcept {}
_ZN8simdjson8fallback8ondemand13json_iteratorC2Ev:
91198|   116k|  simdjson_inline json_iterator() noexcept {}
_ZN8simdjson8fallback8ondemand15raw_json_stringC2Ev:
91717|  21.7M|  simdjson_inline raw_json_string() noexcept {}
_ZN8simdjson8fallback8ondemand15raw_json_string7consumeEv:
91851|   316k|  simdjson_inline void consume() noexcept { buf = nullptr; }
_ZN8simdjson8fallback8ondemand5arrayC2Ev:
92446|  1.61M|  simdjson_inline array() noexcept {}
_ZN8simdjson8fallback8ondemand8documentC2Ev:
92907|   116k|  simdjson_inline document() noexcept {}
_ZN8simdjson8fallback8ondemand19key_selector_detail11read_windowEPKcmm:
95841|  9.34M|                                                std::size_t shift) noexcept {
95842|  9.34M|    std::uint16_t w;
95843|       |    // Two controlled bytes (within the shortest key + its quote, hence within the
95844|       |    // padded buffer). memcpy is the portable little-endian unaligned load.
95845|  9.34M|    std::memcpy(&w, p + byte_offset, sizeof(w));
95846|       |#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
95847|       |    w = static_cast<std::uint16_t>((w >> 8) | (w << 8));
95848|       |#endif
95849|  9.34M|    return static_cast<std::uint8_t>((w >> shift) & 0xFFu);
95850|  9.34M|}
_ZNK8simdjson8fallback8ondemand15for_each_resultcvNS_10error_codeEEv:
96256|  8.06M|  constexpr operator error_code() const noexcept { return error; }
_ZN8simdjson8fallback8ondemand6objectC2Ev:
96351|  1.18M|  simdjson_inline object() noexcept {}
_ZN8simdjson8fallback8ondemand5array5startERNS1_14value_iteratorE:
98361|  1.61M|simdjson_inline simdjson_result<array> array::start(value_iterator &iter) noexcept {
98362|       |  // We don't need to know if the array is empty to start iteration, but we do want to know if there
98363|       |  // is an error--thus `simdjson_unused`.
98364|  1.61M|  simdjson_unused bool has_value;
  ------------------
  |  |  760|  1.61M|  #define simdjson_unused __attribute__((unused))
  ------------------
98365|  1.61M|  SIMDJSON_TRY( iter.start_array().get(has_value) );
  ------------------
  |  | 2642|  1.61M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 281, False: 1.61M]
  |  |  ------------------
  ------------------
98366|  1.61M|  return array(iter);
98367|  1.61M|}
_ZNR8simdjson8fallback8ondemand5array5beginEv:
98379|  1.86M|simdjson_inline simdjson_result<array_iterator> array::begin() & noexcept {
98380|       |#if SIMDJSON_DEVELOPMENT_CHECKS
98381|       |  if (!iter.is_at_iterator_start() || locked) { return OUT_OF_ORDER_ITERATION; }
98382|       |  return array_iterator(iter, this);
98383|       |#endif
98384|  1.86M|  return array_iterator(iter);
98385|  1.86M|}
_ZN8simdjson8fallback8ondemand5array3endEv:
98393|  1.86M|simdjson_inline simdjson_result<array_iterator> array::end() noexcept {
98394|  1.86M|  return array_iterator(iter);
98395|  1.86M|}
_ZNR8simdjson8fallback8ondemand5array14count_elementsEv:
98414|   291k|simdjson_inline simdjson_result<size_t> array::count_elements() & noexcept {
98415|       |#if SIMDJSON_DEVELOPMENT_CHECKS
98416|       |  if (locked) return OUT_OF_ORDER_ITERATION;
98417|       |#endif
98418|   291k|  size_t count{0};
98419|       |  // Important: we do not consume any of the values.
98420|  3.58M|  for(simdjson_unused auto v : *this) { count++; }
  ------------------
  |  |  760|   291k|  #define simdjson_unused __attribute__((unused))
  ------------------
  |  Branch (98420:30): [True: 3.58M, False: 291k]
  ------------------
98421|       |  // The above loop will always succeed, but we want to report errors.
98422|   291k|  if(iter.error()) { return iter.error(); }
  ------------------
  |  Branch (98422:6): [True: 248, False: 291k]
  ------------------
98423|       |  // We need to move back at the start because we expect users to iterate through
98424|       |  // the array after counting the number of elements.
98425|   291k|  iter.reset_array();
98426|   291k|  return count;
98427|   291k|}
_ZN8simdjson8fallback8ondemand14array_iteratordeEv:
98711|  13.2M|simdjson_inline simdjson_result<value> array_iterator::operator*() noexcept {
98712|       |#if SIMDJSON_DEVELOPMENT_CHECKS
98713|       |   SIMDJSON_ASSUME(!has_been_referenced);
98714|       |   has_been_referenced = true;
98715|       |#endif
98716|  13.2M|  if (iter.error()) { iter.abandon(); return iter.error(); }
  ------------------
  |  Branch (98716:7): [True: 1.14k, False: 13.2M]
  ------------------
98717|  13.2M|  return value(iter.child());
98718|  13.2M|}
_ZNK8simdjson8fallback8ondemand14array_iteratorneERKS2_:
98722|  15.0M|simdjson_inline bool array_iterator::operator!=(const array_iterator &) const noexcept {
98723|  15.0M|  return iter.is_open();
98724|  15.0M|}
_ZN8simdjson8fallback8ondemand14array_iteratorppEv:
98725|  13.2M|simdjson_inline array_iterator &array_iterator::operator++() noexcept {
98726|       |#if SIMDJSON_DEVELOPMENT_CHECKS
98727|       |   has_been_referenced = false;
98728|       |#endif
98729|  13.2M|  error_code error;
98730|       |  // PERF NOTE this is a safety rail ... users should exit loops as soon as they receive an error, so we'll never get here.
98731|       |  // However, it does not seem to make a perf difference, so we add it out of an abundance of caution.
98732|  13.2M|  if (( error = iter.error() )) { return *this; }
  ------------------
  |  Branch (98732:7): [True: 291, False: 13.2M]
  ------------------
98733|  13.2M|  if (( error = iter.skip_child(element_start) )) { return *this; }
  ------------------
  |  Branch (98733:7): [True: 291, False: 13.2M]
  ------------------
98734|  13.2M|  if (( error = iter.has_next_element().error() )) { return *this; }
  ------------------
  |  Branch (98734:7): [True: 851, False: 13.2M]
  ------------------
98735|  13.2M|  element_start = iter.json_iter().position();
98736|  13.2M|  return *this;
98737|  13.2M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand14array_iteratorEEdeEv:
98760|  13.2M|simdjson_inline simdjson_result<fallback::ondemand::value> simdjson_result<fallback::ondemand::array_iterator>::operator*() noexcept {
98761|  13.2M|  if (error()) { return error(); }
  ------------------
  |  Branch (98761:7): [True: 0, False: 13.2M]
  ------------------
98762|  13.2M|  return *first;
98763|  13.2M|}
_ZNK8simdjson15simdjson_resultINS_8fallback8ondemand14array_iteratorEEneERKS4_:
98768|  15.0M|simdjson_inline bool simdjson_result<fallback::ondemand::array_iterator>::operator!=(const simdjson_result<fallback::ondemand::array_iterator> &other) const noexcept {
98769|  15.0M|  if (!first.iter.is_valid()) { return error(); }
  ------------------
  |  Branch (98769:7): [True: 0, False: 15.0M]
  ------------------
98770|  15.0M|  return first != other.first;
98771|  15.0M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand14array_iteratorEEppEv:
98772|  13.2M|simdjson_inline simdjson_result<fallback::ondemand::array_iterator> &simdjson_result<fallback::ondemand::array_iterator>::operator++() noexcept {
98773|       |  // Clear the error if there is one, so we don't yield it twice
98774|  13.2M|  if (error()) { second = SUCCESS; return *this; }
  ------------------
  |  Branch (98774:7): [True: 0, False: 13.2M]
  ------------------
98775|  13.2M|  ++(first);
98776|  13.2M|  return *this;
98777|  13.2M|}
_ZN8simdjson8fallback8ondemand5value9get_arrayEv:
98853|  1.61M|simdjson_inline simdjson_result<array> value::get_array() noexcept {
98854|  1.61M|  return array::start(iter);
98855|  1.61M|}
_ZN8simdjson8fallback8ondemand5value10get_objectEv:
98856|  8.03M|simdjson_inline simdjson_result<object> value::get_object() noexcept {
98857|  8.03M|  return object::start(iter);
98858|  8.03M|}
_ZN8simdjson8fallback8ondemand5value19get_raw_json_stringEv:
98867|   730k|simdjson_inline simdjson_result<raw_json_string> value::get_raw_json_string() noexcept {
98868|   730k|  return iter.get_raw_json_string();
98869|   730k|}
_ZN8simdjson8fallback8ondemand5value10get_stringEb:
98870|   532k|simdjson_inline simdjson_result<std::string_view> value::get_string(bool allow_replacement) noexcept {
98871|   532k|  return iter.get_string(allow_replacement);
98872|   532k|}
_ZN8simdjson8fallback8ondemand5value9get_floatEv:
98893|  4.13M|simdjson_inline simdjson_result<float> value::get_float() noexcept {
98894|  4.13M|  return iter.get_float();
98895|  4.13M|}
_ZN8simdjson8fallback8ondemand5value10get_uint64Ev:
98899|  6.22M|simdjson_inline simdjson_result<uint64_t> value::get_uint64() noexcept {
98900|  6.22M|  return iter.get_uint64();
98901|  6.22M|}
_ZN8simdjson8fallback8ondemand5value10get_uint16Ev:
98917|   350k|simdjson_inline simdjson_result<uint16_t> value::get_uint16() noexcept {
98918|   350k|  return narrow_integer<uint16_t>(get_uint64());
98919|   350k|}
_ZN8simdjson8fallback8ondemand5value8get_boolEv:
98943|   108k|simdjson_inline simdjson_result<bool> value::get_bool() noexcept {
98944|   108k|  return iter.get_bool();
98945|   108k|}
_ZN8simdjson8fallback8ondemand5value7is_nullEv:
98946|  1.60M|simdjson_inline simdjson_result<bool> value::is_null() noexcept {
98947|  1.60M|  return iter.is_null();
98948|  1.60M|}
_ZN8simdjson8fallback8ondemand5value3getINS1_5arrayEEENS_10error_codeERT_:
98977|   105k|template<> simdjson_warn_unused simdjson_inline error_code value::get(array& out) noexcept { return get_array().get(out); }
_ZN8simdjson8fallback8ondemand5value3getINS1_6objectEEENS_10error_codeERT_:
98978|   873k|template<> simdjson_warn_unused simdjson_inline error_code value::get(object& out) noexcept { return get_object().get(out); }
_ZN8simdjson8fallback8ondemand5value3getINSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEENS_10error_codeERT_:
98980|   532k|template<> simdjson_warn_unused simdjson_inline error_code value::get(std::string_view& out) noexcept { return get_string(false).get(out); }
_ZN8simdjson8fallback8ondemand5value3getIfEENS_10error_codeERT_:
98986|  4.13M|template<> simdjson_warn_unused simdjson_inline error_code value::get(float& out) noexcept { return get_float().get(out); }
_ZN8simdjson8fallback8ondemand5value3getImEENS_10error_codeERT_:
98987|  5.61M|template<> simdjson_warn_unused simdjson_inline error_code value::get(uint64_t& out) noexcept { return get_uint64().get(out); }
_ZN8simdjson8fallback8ondemand5value3getItEENS_10error_codeERT_:
98991|   350k|template<> simdjson_warn_unused simdjson_inline error_code value::get(uint16_t& out) noexcept { return get_uint16().get(out); }
_ZN8simdjson8fallback8ondemand5value3getIbEENS_10error_codeERT_:
99001|   108k|template<>  simdjson_warn_unused simdjson_inline error_code value::get(bool& out) noexcept { return get_bool().get(out); }
_ZN8simdjson8fallback8ondemand5value10get_numberEv:
99112|   950k|simdjson_warn_unused simdjson_inline simdjson_result<number> value::get_number() noexcept {
99113|   950k|  return iter.get_number();
99114|   950k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE9get_arrayEv:
99319|   261k|simdjson_inline simdjson_result<fallback::ondemand::array> simdjson_result<fallback::ondemand::value>::get_array() noexcept {
99320|   261k|  if (error()) { return error(); }
  ------------------
  |  Branch (99320:7): [True: 0, False: 261k]
  ------------------
99321|   261k|  return first.get_array();
99322|   261k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE10get_objectEv:
99323|  3.57M|simdjson_inline simdjson_result<fallback::ondemand::object> simdjson_result<fallback::ondemand::value>::get_object() noexcept {
99324|  3.57M|  if (error()) { return error(); }
  ------------------
  |  Branch (99324:7): [True: 164, False: 3.57M]
  ------------------
99325|  3.57M|  return first.get_object();
99326|  3.57M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE10get_uint64Ev:
99327|  21.5k|simdjson_inline simdjson_result<uint64_t> simdjson_result<fallback::ondemand::value>::get_uint64() noexcept {
99328|  21.5k|  if (error()) { return error(); }
  ------------------
  |  Branch (99328:7): [True: 0, False: 21.5k]
  ------------------
99329|  21.5k|  return first.get_uint64();
99330|  21.5k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIS3_EENS_10error_codeERT_:
99427|  21.0k|template<> simdjson_inline error_code simdjson_result<fallback::ondemand::value>::get<fallback::ondemand::value>(fallback::ondemand::value &out) noexcept {
99428|  21.0k|  if (error()) { return error(); }
  ------------------
  |  Branch (99428:7): [True: 4, False: 21.0k]
  ------------------
99429|  21.0k|  out = first;
99430|  21.0k|  return SUCCESS;
99431|  21.0k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE10get_numberEv:
99483|   950k|simdjson_inline simdjson_result<fallback::ondemand::number> simdjson_result<fallback::ondemand::value>::get_number() noexcept {
99484|   950k|  if (error()) { return error(); }
  ------------------
  |  Branch (99484:7): [True: 114, False: 950k]
  ------------------
99485|   950k|  return first.get_number();
99486|   950k|}
_ZN8simdjson8fallback8ondemand8document5startEONS1_13json_iteratorE:
99613|   114k|simdjson_inline document document::start(json_iterator &&iter) noexcept {
99614|   114k|  return document(std::forward<json_iterator>(iter));
99615|   114k|}
_ZNK8simdjson8fallback8ondemand8document6at_endEv:
99634|  86.7k|inline bool document::at_end() const noexcept {
99635|  86.7k|  return iter.at_end();
99636|  86.7k|}
_ZN8simdjson8fallback8ondemand8document21resume_value_iteratorEv:
99642|   114k|simdjson_inline value_iterator document::resume_value_iterator() noexcept {
99643|   114k|  return value_iterator(&iter, 1, iter.root_position());
99644|   114k|}
_ZN8simdjson8fallback8ondemand8document23get_root_value_iteratorEv:
99645|   114k|simdjson_inline value_iterator document::get_root_value_iterator() noexcept {
99646|   114k|  return resume_value_iterator();
99647|   114k|}
_ZNR8simdjson8fallback8ondemand8document10get_objectEv:
99694|   114k|simdjson_inline simdjson_result<object> document::get_object() & noexcept {
99695|   114k|  auto value = get_root_value_iterator();
99696|   114k|  return object::start_root(value);
99697|   114k|}
_ZNO8simdjson15simdjson_resultINS_8fallback8ondemand8documentEE3getIS3_EENS_10error_codeERT_:
10037|   115k|template<> simdjson_warn_unused simdjson_inline error_code simdjson_result<fallback::ondemand::document>::get<fallback::ondemand::document>(fallback::ondemand::document &out) && noexcept {
10037|   115k|  if (error()) { return error(); }
  ------------------
  |  Branch (100371:7): [True: 852, False: 114k]
  ------------------
10037|   114k|  out = std::forward<fallback::ondemand::document>(first);
10037|   114k|  return SUCCESS;
10037|   115k|}
_ZN8simdjson8fallback8ondemand5field5startERNS1_14value_iteratorE:
10170|  1.10M|simdjson_inline simdjson_result<field> field::start(value_iterator &parent_iter) noexcept {
10170|  1.10M|  raw_json_string key;
10170|  1.10M|  SIMDJSON_TRY( parent_iter.field_key().get(key) );
  ------------------
  |  | 2642|  1.10M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 20, False: 1.10M]
  |  |  ------------------
  ------------------
10170|  1.10M|  SIMDJSON_TRY( parent_iter.field_value() );
  ------------------
  |  | 2642|  1.10M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 1.10M]
  |  |  ------------------
  ------------------
10170|  1.10M|  return field::start(parent_iter, key);
10170|  1.10M|}
_ZN8simdjson8fallback8ondemand5field5startERKNS1_14value_iteratorENS1_15raw_json_stringE:
10171|  1.10M|simdjson_inline simdjson_result<field> field::start(const value_iterator &parent_iter, raw_json_string key) noexcept {
10171|  1.10M|    return field(key, parent_iter.child());
10171|  1.10M|}
_ZNK8simdjson8fallback8ondemand5field11escaped_keyEv:
10175|   472k|simdjson_inline std::string_view field::escaped_key() const noexcept {
10175|   472k|  SIMDJSON_ASSUME(first.buf != nullptr); // We would like to call .alive() by Visual Studio won't let us.
  ------------------
  |  |  538|   472k|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 472k]
  |  |  |  Branch (538:83): [Folded, False: 472k]
  |  |  ------------------
  ------------------
10175|   472k|  auto end_quote = second.iter._json_iter->token.peek(second.iter.start_position() - 1);
10175|   966k|  while(*end_quote != '"') end_quote--;
  ------------------
  |  Branch (101753:9): [True: 493k, False: 472k]
  ------------------
10175|   472k|  return std::string_view(reinterpret_cast<const char*>(first.buf), end_quote - first.buf);
10175|   472k|}
_ZNR8simdjson8fallback8ondemand5field5valueEv:
10176|   680k|simdjson_inline value &field::value() & noexcept {
10176|   680k|  return second;
10176|   680k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5fieldEE11escaped_keyEv:
10180|   472k|simdjson_inline simdjson_result<std::string_view> simdjson_result<fallback::ondemand::field>::escaped_key() noexcept {
10180|   472k|  if (error()) { return error(); }
  ------------------
  |  Branch (101803:7): [True: 64, False: 472k]
  ------------------
10180|   472k|  return first.escaped_key();
10180|   472k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5fieldEE5valueEv:
10183|   680k|simdjson_inline simdjson_result<fallback::ondemand::value> simdjson_result<fallback::ondemand::field>::value() noexcept {
10183|   680k|  if (error()) { return error(); }
  ------------------
  |  Branch (101833:7): [True: 0, False: 680k]
  ------------------
10183|   680k|  return std::move(first.value());
10183|   680k|}
_ZN8simdjson8fallback8ondemand13json_iteratoraSEOS2_:
10187|   114k|simdjson_inline json_iterator &json_iterator::operator=(json_iterator &&other) noexcept {
10187|   114k|  token = other.token;
10187|   114k|  parser = other.parser;
10187|   114k|  _string_buf_loc = other._string_buf_loc;
10187|   114k|  error = other.error;
10188|   114k|  _depth = other._depth;
10188|   114k|  _root = other._root;
10188|   114k|  _streaming = other._streaming;
10188|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10188|       |  _allow_incomplete_json = other._allow_incomplete_json;
10188|       |#endif
10188|   114k|  other.parser = nullptr;
10188|   114k|  return *this;
10188|   114k|}
_ZNK8simdjson8fallback8ondemand13json_iterator8balancedEv:
10193|     51|inline bool json_iterator::balanced() const noexcept {
10193|     51|  token_iterator ti(token);
10193|     51|  int32_t count{0};
10193|     51|  ti.set_position( root_position() );
10193|  1.85k|  while(ti.peek() <= peek_last()) {
  ------------------
  |  Branch (101937:9): [True: 1.80k, False: 51]
  ------------------
10193|  1.80k|    switch (*ti.return_current_and_advance())
10193|  1.80k|    {
10194|    534|    case '[': case '{':
  ------------------
  |  Branch (101940:5): [True: 254, False: 1.55k]
  |  Branch (101940:15): [True: 280, False: 1.52k]
  ------------------
10194|    534|      count++;
10194|    534|      break;
10194|    932|    case ']': case '}':
  ------------------
  |  Branch (101943:5): [True: 240, False: 1.56k]
  |  Branch (101943:15): [True: 692, False: 1.11k]
  ------------------
10194|    932|      count--;
10194|    932|      break;
10194|    341|    default:
  ------------------
  |  Branch (101946:5): [True: 341, False: 1.46k]
  ------------------
10194|    341|      break;
10194|  1.80k|    }
10194|  1.80k|  }
10195|     51|  return count == 0;
10195|     51|}
_ZNK8simdjson8fallback8ondemand13json_iterator12out_of_placeEh:
10197|   129k|simdjson_inline bool json_iterator::out_of_place(uint8_t current) const noexcept {
10198|       |  // A value or a key follows a colon, a comma or an opening bracket; nothing else does.
10198|   129k|  if (_depth <= 1) { return false; }
  ------------------
  |  Branch (101981:7): [True: 0, False: 129k]
  ------------------
10198|   129k|  const uint8_t before = *peek(-2) | 0x20;
10198|   129k|  const bool after_start = before == ':' || before == ',' || before == '{';
  ------------------
  |  Branch (101983:28): [True: 6.56k, False: 123k]
  |  Branch (101983:45): [True: 0, False: 123k]
  |  Branch (101983:62): [True: 38.1k, False: 84.9k]
  ------------------
10198|   129k|  current |= 0x20;
10198|   129k|  const bool ends = current == ':' || current == ',' || current == '}';
  ------------------
  |  Branch (101985:21): [True: 1.26k, False: 128k]
  |  Branch (101985:39): [True: 6.60k, False: 121k]
  |  Branch (101985:57): [True: 77.1k, False: 44.6k]
  ------------------
10198|   129k|  return after_start == ends;
10198|   129k|}
_ZN8simdjson8fallback8ondemand13json_iterator18out_of_place_errorEv:
10198|  1.59k|simdjson_inline error_code json_iterator::out_of_place_error() noexcept {
10199|  1.59k|  return report_error(TAPE_ERROR, "Missing comma, colon or value");
10199|  1.59k|}
_ZN8simdjson8fallback8ondemand13json_iterator13string_is_keyEPKhPKjS6_S6_:
10199|  5.64k|simdjson_never_inline bool json_iterator::string_is_key(const uint8_t *json, token_position pos, token_position root, token_position end) noexcept {
10199|       |  // The string before pos is followed by a colon. After a colon or a bracket, it is a value;
10199|       |  // after a comma, it is a key if its container is an object.
10199|  5.64k|  const uint8_t before = pos - 2 >= root ? json[pos[-2]] : ':';
  ------------------
  |  Branch (101996:26): [True: 5.64k, False: 0]
  ------------------
10199|  5.64k|  if (before == '{') { return true; }
  ------------------
  |  Branch (101997:7): [True: 0, False: 5.64k]
  ------------------
10199|  5.64k|  if (before == ':' || before == '[') { return false; }
  ------------------
  |  Branch (101998:7): [True: 1.56k, False: 4.07k]
  |  Branch (101998:24): [True: 4.07k, False: 0]
  ------------------
10199|      0|  int32_t depth = 0;
10200|      0|  while (pos < end) {
  ------------------
  |  Branch (102000:10): [True: 0, False: 0]
  ------------------
10200|      0|    const uint8_t c = json[*pos++];
10200|      0|    depth += skip_depth_delta[c];
10200|      0|    if (depth < 0) { return c == '}'; }
  ------------------
  |  Branch (102003:9): [True: 0, False: 0]
  ------------------
10200|      0|  }
10200|      0|  return true;
10200|      0|}
_ZN8simdjson8fallback8ondemand13json_iterator9skip_restEi:
10201|  5.30M|simdjson_warn_unused simdjson_inline error_code json_iterator::skip_rest(depth_t parent_depth) noexcept {
10201|       |  // Now that we've considered the first value, we only increment/decrement for arrays/objects.
10201|       |  //
10201|       |  // Without logging, look up the depth change of each token in a table instead of branching
10201|       |  // on it: the next byte is hard to predict, so a switch mispredicts often. The loop also keeps
10201|       |  // the position and depth in locals, because the byte loads are char loads that may alias
10201|       |  // token._position and _depth, which would force a store of both on every token.
10202|  5.30M|  if (!logger::LOG_ENABLED) {
  ------------------
  |  Branch (102020:7): [True: 5.30M, Folded]
  ------------------
10202|  5.30M|    token_position pos = token.position();
10202|  5.30M|    const token_position end = end_position();
10202|  5.30M|    const uint8_t *const json = token.buf;
10202|  5.30M|    depth_t depth = _depth;
10202|   197M|    while (pos < end) {
  ------------------
  |  Branch (102025:12): [True: 197M, False: 54]
  ------------------
10202|   197M|      depth += skip_depth_delta[json[*pos++]];
10202|   197M|      if (depth <= parent_depth) {
  ------------------
  |  Branch (102027:11): [True: 5.30M, False: 192M]
  ------------------
10202|  5.30M|        token.set_position(pos);
10202|  5.30M|        _depth = depth;
10203|  5.30M|        return SUCCESS;
10203|  5.30M|      }
10203|   197M|    }
10203|     54|    token.set_position(pos);
10203|     54|    _depth = depth;
10203|     54|    return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "not enough close braces");
10203|  5.30M|  }
10203|       |
10203|      0|  while (position() < end_position()) {
  ------------------
  |  Branch (102038:10): [True: 0, False: 0]
  ------------------
10203|      0|    switch (*return_current_and_advance()) {
10204|      0|      case '[': case '{':
  ------------------
  |  Branch (102040:7): [True: 0, False: 0]
  |  Branch (102040:17): [True: 0, False: 0]
  ------------------
10204|      0|        logger::log_start_value(*this, "skip");
10204|      0|        _depth++;
10204|      0|        break;
10204|       |      // TODO consider whether matching braces is a requirement: if non-matching braces indicates
10204|       |      // *missing* braces, then future lookups are not in the object/arrays they think they are,
10204|       |      // violating the rule "validate enough structure that the user can be confident they are
10204|       |      // looking at the right values."
10204|       |      // PERF TODO we can eliminate the switch here with a lookup of how much to add to depth
10204|      0|      case ']': case '}':
  ------------------
  |  Branch (102049:7): [True: 0, False: 0]
  |  Branch (102049:17): [True: 0, False: 0]
  ------------------
10205|      0|        logger::log_end_value(*this, "skip");
10205|      0|        _depth--;
10205|      0|        if (depth() <= parent_depth) { return SUCCESS; }
  ------------------
  |  Branch (102052:13): [True: 0, False: 0]
  ------------------
10205|      0|        break;
10205|      0|      default:
  ------------------
  |  Branch (102054:7): [True: 0, False: 0]
  ------------------
10205|      0|        logger::log_value(*this, "skip", "");
10205|      0|        break;
10205|      0|    }
10205|      0|  }
10205|       |
10206|      0|  return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "not enough close braces");
10206|      0|}
_ZN8simdjson8fallback8ondemand13json_iterator10skip_childEi:
10206|   129k|simdjson_warn_unused simdjson_inline error_code json_iterator::skip_child(depth_t parent_depth) noexcept {
10206|   129k|  if (depth() <= parent_depth) { return SUCCESS; }
  ------------------
  |  Branch (102064:7): [True: 0, False: 129k]
  ------------------
10206|   129k|  const uint8_t current = *return_current_and_advance();
10206|   129k|  if (simdjson_unlikely(out_of_place(current))) { return out_of_place_error(); }
  ------------------
  |  |  767|   129k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 81, False: 129k]
  |  |  ------------------
  ------------------
10206|   129k|  switch (current) {
10206|       |    // TODO consider whether matching braces is a requirement: if non-matching braces indicates
10206|       |    // *missing* braces, then future lookups are not in the object/arrays they think they are,
10207|       |    // violating the rule "validate enough structure that the user can be confident they are
10207|       |    // looking at the right values."
10207|       |    // PERF TODO we can eliminate the switch here with a lookup of how much to add to depth
10207|       |
10207|       |    // For the first open array/object in a value, we've already incremented depth, so keep it the same
10207|       |    // We never stop at colon, but if we did, it wouldn't affect depth
10207|  12.8k|    case '[': case '{': case ':':
  ------------------
  |  Branch (102076:5): [True: 893, False: 128k]
  |  Branch (102076:15): [True: 10.7k, False: 118k]
  |  Branch (102076:25): [True: 1.21k, False: 128k]
  ------------------
10207|  12.8k|      logger::log_start_value(*this, "skip");
10207|  12.8k|      break;
10207|       |    // If there is a comma, we have just finished a value in an array/object, and need to get back in
10208|  6.56k|    case ',':
  ------------------
  |  Branch (102080:5): [True: 6.56k, False: 123k]
  ------------------
10208|  6.56k|      logger::log_value(*this, "skip");
10208|  6.56k|      break;
10208|       |    // ] or } means we just finished a value and need to jump out of the array/object
10208|  77.1k|    case ']': case '}':
  ------------------
  |  Branch (102084:5): [True: 408, False: 129k]
  |  Branch (102084:15): [True: 76.7k, False: 52.8k]
  ------------------
10208|  77.1k|      logger::log_end_value(*this, "skip");
10208|  77.1k|      _depth--;
10208|  77.1k|      if (depth() <= parent_depth) { return SUCCESS; }
  ------------------
  |  Branch (102087:11): [True: 0, False: 77.1k]
  ------------------
10208|       |#if SIMDJSON_CHECK_EOF
10208|       |      // If there are no more tokens, the parent is incomplete.
10209|       |      if (at_end()) { return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Missing [ or { at start"); }
10209|       |#endif // SIMDJSON_CHECK_EOF
10209|  77.1k|      break;
10209|  77.1k|    case '"':
  ------------------
  |  Branch (102093:5): [True: 27.4k, False: 102k]
  ------------------
10209|       |      // At the end, peek() would read the sentinel, which points into the padding.
10209|  27.4k|      if(!at_end() && *peek() == ':' && string_is_key(token.buf, token.position(), _root, end_position())) {
  ------------------
  |  Branch (102095:10): [True: 27.4k, False: 0]
  |  Branch (102095:23): [True: 5.64k, False: 21.7k]
  |  Branch (102095:41): [True: 0, False: 5.64k]
  ------------------
10209|       |        // We are at a key!!!
10209|       |        // This might happen if you just started an object and you skip it immediately.
10209|       |        // Performance note: it would be nice to get rid of this check as it is somewhat
10209|       |        // expensive.
10210|       |        // https://github.com/simdjson/simdjson/issues/1742
10210|      0|        logger::log_value(*this, "key");
10210|      0|        return_current_and_advance(); // eat up the ':'
10210|      0|        break; // important!!!
10210|      0|      }
10210|  27.4k|      if (_depth > 1 && *peek(-2) == '{') {
  ------------------
  |  Branch (102105:11): [True: 27.4k, False: 0]
  |  Branch (102105:25): [True: 0, False: 27.4k]
  ------------------
10210|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10210|       |        if (allow_incomplete_json() && at_end()) {
10210|       |          return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Object key cut before its colon");
10210|       |        }
10211|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10211|      0|        return out_of_place_error();
10211|      0|      }
10211|  27.4k|      simdjson_fallthrough;
  ------------------
  |  | 2685|  27.4k|# define simdjson_fallthrough [[fallthrough]]
  ------------------
10211|       |    // Anything else must be a scalar value
10211|  33.0k|    default:
  ------------------
  |  Branch (102115:5): [True: 5.63k, False: 123k]
  ------------------
10211|       |      // For the first scalar, we will have incremented depth already, so we decrement it here.
10211|  33.0k|      logger::log_value(*this, "skip");
10211|  33.0k|      _depth--;
10211|  33.0k|      if (depth() <= parent_depth) { return SUCCESS; }
  ------------------
  |  Branch (102119:11): [True: 0, False: 33.0k]
  ------------------
10212|  33.0k|      break;
10212|   129k|  }
10212|       |
10212|   129k|  return skip_rest(parent_depth);
10212|   129k|}
_ZN8simdjson8fallback8ondemand13json_iterator10skip_valueEi:
10212|  9.28M|simdjson_warn_unused simdjson_inline error_code json_iterator::skip_value(depth_t parent_depth) noexcept {
10212|  9.28M|  const uint8_t value_class = value_start_class[*return_current_and_advance()];
10212|  9.28M|  if (value_class == 0) {
  ------------------
  |  Branch (102128:7): [True: 4.15M, False: 5.12M]
  ------------------
10212|  4.15M|    logger::log_value(*this, "skip");
10213|  4.15M|    _depth--;
10213|  4.15M|    return SUCCESS;
10213|  4.15M|  }
10213|  5.12M|  if (value_class == 2) { return out_of_place_error(); }
  ------------------
  |  Branch (102133:7): [True: 1.25k, False: 5.12M]
  ------------------
10213|  5.12M|  logger::log_start_value(*this, "skip");
10213|  5.12M|  return skip_rest(parent_depth);
10213|  5.12M|}
_ZN8simdjson8fallback8ondemand13json_iterator12skip_partialEi:
10213|   726k|simdjson_warn_unused simdjson_inline error_code json_iterator::skip_partial(depth_t parent_depth) noexcept {
10213|   726k|  if (depth() <= parent_depth) { return SUCCESS; }
  ------------------
  |  Branch (102139:7): [True: 0, False: 726k]
  ------------------
10214|   726k|  if (depth() != parent_depth + 1) { return skip_child(parent_depth); }
  ------------------
  |  Branch (102140:7): [True: 129k, False: 596k]
  ------------------
10214|       |  // We are in the child container, past its start: at a key, a colon, a comma or the closing
10214|       |  // bracket. Another value can only follow a missing comma.
10214|   596k|  switch (*return_current_and_advance()) {
10214|  36.0k|    case ',': case ':':
  ------------------
  |  Branch (102144:5): [True: 26.2k, False: 570k]
  |  Branch (102144:15): [True: 9.85k, False: 586k]
  ------------------
10214|  36.0k|      logger::log_value(*this, "skip");
10214|  36.0k|      return skip_rest(parent_depth);
10214|   547k|    case ']': case '}':
  ------------------
  |  Branch (102147:5): [True: 5.20k, False: 591k]
  |  Branch (102147:15): [True: 542k, False: 54.2k]
  ------------------
10214|   547k|      logger::log_end_value(*this, "skip");
10214|   547k|      _depth--;
10215|   547k|      return SUCCESS;
10215|  12.8k|    case '"':
  ------------------
  |  Branch (102151:5): [True: 12.8k, False: 583k]
  ------------------
10215|  12.8k|      if (!at_end() && *peek() == ':') {
  ------------------
  |  Branch (102152:11): [True: 12.8k, False: 0]
  |  Branch (102152:24): [True: 12.7k, False: 62]
  ------------------
10215|  12.7k|        logger::log_value(*this, "key");
10215|  12.7k|        return_current_and_advance();
10215|  12.7k|        return skip_rest(parent_depth);
10215|  12.7k|      }
10215|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10215|       |      if (allow_incomplete_json() && at_end()) {
10215|       |        return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Object key cut before its colon");
10216|       |      }
10216|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10216|     62|      simdjson_fallthrough;
  ------------------
  |  | 2685|     62|# define simdjson_fallthrough [[fallthrough]]
  ------------------
10216|    252|    default:
  ------------------
  |  Branch (102163:5): [True: 190, False: 596k]
  ------------------
10216|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10216|       |      if (simdjson_unlikely(allow_incomplete_json() && position() > end_position())) {
10216|       |        return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Value cut at the end of an incomplete document");
10216|       |      }
10216|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10216|    252|      return out_of_place_error();
10217|   596k|  }
10217|   596k|}
_ZNK8simdjson8fallback8ondemand13json_iterator9streamingEv:
10218|   114k|simdjson_inline bool json_iterator::streaming() const noexcept {
10218|   114k|  return _streaming;
10218|   114k|}
_ZNK8simdjson8fallback8ondemand13json_iterator13root_positionEv:
10221|   114k|simdjson_inline token_position json_iterator::root_position() const noexcept {
10221|   114k|  return _root;
10221|   114k|}
_ZNK8simdjson8fallback8ondemand13json_iterator6at_endEv:
10224|   126k|simdjson_inline bool json_iterator::at_end() const noexcept {
10224|   126k|  return position() == end_position();
10224|   126k|}
_ZNK8simdjson8fallback8ondemand13json_iterator12end_positionEv:
10225|  5.54M|simdjson_inline token_position json_iterator::end_position() const noexcept {
10225|  5.54M|  uint32_t n_structural_indexes{parser->implementation->n_structural_indexes};
10225|  5.54M|  return &parser->implementation->structural_indexes[n_structural_indexes];
10225|  5.54M|}
_ZN8simdjson8fallback8ondemand13json_iterator7abandonEv:
10228|  7.77k|simdjson_inline void json_iterator::abandon() noexcept {
10228|  7.77k|  parser = nullptr;
10228|  7.77k|  _depth = 0;
10228|  7.77k|}
_ZN8simdjson8fallback8ondemand13json_iterator26return_current_and_advanceEv:
10228|   104M|simdjson_inline const uint8_t *json_iterator::return_current_and_advance() noexcept {
10228|       |#if SIMDJSON_CHECK_EOF
10229|       |  assert_more_tokens();
10229|       |#endif // SIMDJSON_CHECK_EOF
10229|   104M|  return token.return_current_and_advance();
10229|   104M|}
_ZNK8simdjson8fallback8ondemand13json_iterator4peekEi:
10230|  50.6M|simdjson_inline const uint8_t *json_iterator::peek(int32_t delta) const noexcept {
10230|       |#if SIMDJSON_CHECK_EOF
10230|       |  assert_more_tokens(delta+1);
10230|       |#endif // SIMDJSON_CHECK_EOF
10230|  50.6M|  return token.peek(delta);
10230|  50.6M|}
_ZNK8simdjson8fallback8ondemand13json_iterator4peekEPKj:
10231|   114k|simdjson_inline const uint8_t *json_iterator::peek(token_position position) const noexcept {
10231|       |  // todo: currently we require end-of-string buffering, but the following
10231|       |  // assert_valid_position should be turned on if/when we lift that condition.
10231|       |  // assert_valid_position(position);
10231|       |  // This is almost surely related to SIMDJSON_CHECK_EOF but given that SIMDJSON_CHECK_EOF
10231|       |  // is ON by default, we have no choice but to disable it for real with a comment.
10232|   114k|  return token.peek(position);
10232|   114k|}
_ZNK8simdjson8fallback8ondemand13json_iterator13last_positionEv:
10233|   116k|simdjson_inline token_position json_iterator::last_position() const noexcept {
10233|       |  // The following line fails under some compilers...
10233|       |  // SIMDJSON_ASSUME(parser->implementation->n_structural_indexes > 0);
10233|       |  // since it has side-effects.
10234|   116k|  uint32_t n_structural_indexes{parser->implementation->n_structural_indexes};
10234|   116k|  SIMDJSON_ASSUME(n_structural_indexes > 0);
  ------------------
  |  |  538|   116k|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 116k]
  |  |  |  Branch (538:83): [Folded, False: 116k]
  |  |  ------------------
  ------------------
10234|   116k|  return &parser->implementation->structural_indexes[n_structural_indexes - 1];
10234|   116k|}
_ZNK8simdjson8fallback8ondemand13json_iterator9peek_lastEv:
10234|   116k|simdjson_inline const uint8_t *json_iterator::peek_last() const noexcept {
10234|   116k|  return token.peek(last_position());
10234|   116k|}
_ZN8simdjson8fallback8ondemand13json_iterator9ascend_toEi:
10234|  22.8M|simdjson_inline void json_iterator::ascend_to(depth_t parent_depth) noexcept {
10234|  22.8M|  SIMDJSON_ASSUME(parent_depth >= 0 && parent_depth < INT32_MAX - 1);
  ------------------
  |  |  538|  45.7M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:42): [True: 22.8M, False: 0]
  |  |  |  Branch (538:42): [True: 22.8M, False: 0]
  |  |  |  Branch (538:83): [Folded, False: 22.8M]
  |  |  ------------------
  ------------------
10235|  22.8M|  SIMDJSON_ASSUME(_depth == parent_depth + 1);
  ------------------
  |  |  538|  22.8M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 22.8M]
  |  |  |  Branch (538:83): [Folded, False: 22.8M]
  |  |  ------------------
  ------------------
10235|  22.8M|  _depth = parent_depth;
10235|  22.8M|}
_ZN8simdjson8fallback8ondemand13json_iterator10descend_toEi:
10235|  32.5M|simdjson_inline void json_iterator::descend_to(depth_t child_depth) noexcept {
10235|  32.5M|  SIMDJSON_ASSUME(child_depth >= 1 && child_depth < INT32_MAX);
  ------------------
  |  |  538|  65.0M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:42): [True: 32.5M, False: 0]
  |  |  |  Branch (538:42): [True: 32.5M, False: 0]
  |  |  |  Branch (538:83): [Folded, False: 32.5M]
  |  |  ------------------
  ------------------
10235|  32.5M|  SIMDJSON_ASSUME(_depth == child_depth - 1);
  ------------------
  |  |  538|  32.5M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 32.5M]
  |  |  |  Branch (538:83): [Folded, False: 32.5M]
  |  |  ------------------
  ------------------
10235|  32.5M|  _depth = child_depth;
10235|  32.5M|}
_ZNK8simdjson8fallback8ondemand13json_iterator5depthEv:
10236|   131M|simdjson_inline depth_t json_iterator::depth() const noexcept {
10236|   131M|  return _depth;
10236|   131M|}
_ZN8simdjson8fallback8ondemand13json_iterator12report_errorENS_10error_codeEPKc:
10236|  13.2k|simdjson_warn_unused simdjson_inline error_code json_iterator::report_error(error_code _error, const char *message) noexcept {
10236|  13.2k|  SIMDJSON_ASSUME(_error != SUCCESS && _error != UNINITIALIZED && _error != INCORRECT_TYPE && _error != NO_SUCH_FIELD);
  ------------------
  |  |  538|  79.7k|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:42): [True: 13.2k, False: 0]
  |  |  |  Branch (538:42): [True: 13.2k, False: 0]
  |  |  |  Branch (538:42): [True: 13.2k, False: 0]
  |  |  |  Branch (538:42): [True: 13.2k, False: 0]
  |  |  |  Branch (538:83): [Folded, False: 13.2k]
  |  |  ------------------
  ------------------
10237|  13.2k|  logger::log_error(*this, message);
10237|  13.2k|  error = _error;
10237|  13.2k|  return error;
10237|  13.2k|}
_ZNK8simdjson8fallback8ondemand13json_iterator8positionEv:
10237|  95.4M|simdjson_inline token_position json_iterator::position() const noexcept {
10237|  95.4M|  return token.position();
10237|  95.4M|}
_ZN8simdjson8fallback8ondemand13json_iterator8unescapeENS1_15raw_json_stringEb:
10237|  2.63M|simdjson_inline simdjson_result<std::string_view> json_iterator::unescape(raw_json_string in, bool allow_replacement) noexcept {
10238|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10238|       |  auto result = parser->unescape(in, _string_buf_loc, allow_replacement);
10238|       |#if !defined(SIMDJSON_VISUAL_STUDIO) && !defined(SIMDJSON_CLANG_VISUAL_STUDIO)
10238|       |  // Under Visual Studio, the next SIMDJSON_ASSUME fails with: the argument
10238|       |  // has side effects that will be discarded.
10238|       |  SIMDJSON_ASSUME(!parser->string_buffer_overflow(_string_buf_loc));
10238|       |#endif // !defined(SIMDJSON_VISUAL_STUDIO) && !defined(SIMDJSON_CLANG_VISUAL_STUDIO)
10238|       |  return result;
10238|       |#else
10238|  2.63M|  return parser->unescape(in, _string_buf_loc, allow_replacement);
10239|  2.63M|#endif
10239|  2.63M|}
_ZNK8simdjson8fallback8ondemand6number15get_number_typeEv:
10256|  2.15M|simdjson_inline number_type number::get_number_type() const noexcept {
10256|  2.15M|  return type;
10256|  2.15M|}
_ZNK8simdjson8fallback8ondemand6number8is_int64Ev:
10258|  1.20M|simdjson_inline bool number::is_int64() const noexcept {
10258|  1.20M|  return get_number_type() == number_type::signed_integer;
10258|  1.20M|}
_ZNK8simdjson8fallback8ondemand6number9get_int64Ev:
10258|   256k|simdjson_inline int64_t number::get_int64() const noexcept {
10258|   256k|  return payload.signed_integer;
10258|   256k|}
_ZNK8simdjson8fallback8ondemand6number9is_doubleEv:
10259|   949k|simdjson_inline bool number::is_double() const noexcept {
10259|   949k|    return get_number_type() == number_type::floating_point_number;
10259|   949k|}
_ZNK8simdjson8fallback8ondemand6number9as_doubleEv:
10260|   949k|simdjson_inline double number::as_double() const noexcept {
10260|   949k|  if(is_double()) {
  ------------------
  |  Branch (102605:6): [True: 692k, False: 256k]
  ------------------
10260|   692k|    return payload.floating_point_number;
10260|   692k|  }
10260|   256k|  if(is_int64()) {
  ------------------
  |  Branch (102608:6): [True: 256k, False: 133]
  ------------------
10260|   256k|    return double(payload.signed_integer);
10261|   256k|  }
10261|    133|  return double(payload.unsigned_integer);
10261|   256k|}
_ZN8simdjson8fallback8ondemand6number10append_s64El:
10261|   256k|simdjson_inline void number::append_s64(int64_t value) noexcept {
10261|   256k|  payload.signed_integer = value;
10261|   256k|  type = number_type::signed_integer;
10261|   256k|}
_ZN8simdjson8fallback8ondemand6number10append_u64Em:
10261|    152|simdjson_inline void number::append_u64(uint64_t value) noexcept {
10262|    152|  payload.unsigned_integer = value;
10262|    152|  type = number_type::unsigned_integer;
10262|    152|}
_ZN8simdjson8fallback8ondemand6number13append_doubleEd:
10262|   693k|simdjson_inline void number::append_double(double value) noexcept {
10262|   693k|  payload.floating_point_number = value;
10262|   693k|  type = number_type::floating_point_number;
10262|   693k|}
_ZN8simdjson8fallback8ondemand6object5startERNS1_14value_iteratorE:
10310|  8.03M|simdjson_inline simdjson_result<object> object::start(value_iterator &iter) noexcept {
10310|  8.03M|  SIMDJSON_TRY( iter.start_object().error() );
  ------------------
  |  | 2642|  8.03M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1.22k, False: 8.03M]
  |  |  ------------------
  ------------------
10310|  8.03M|  return object(iter);
10310|  8.03M|}
_ZN8simdjson8fallback8ondemand6object10start_rootERNS1_14value_iteratorE:
10310|   114k|simdjson_inline simdjson_result<object> object::start_root(value_iterator &iter) noexcept {
10310|   114k|  SIMDJSON_TRY( iter.start_root_object().error() );
  ------------------
  |  | 2642|   114k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 232, False: 114k]
  |  |  ------------------
  ------------------
10310|   114k|  return object(iter);
10311|   114k|}
_ZNR8simdjson8fallback8ondemand6object5beginEv:
10316|   340k|simdjson_inline simdjson_result<object_iterator> object::begin() & noexcept {
10316|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10316|       |  if (!iter.is_at_iterator_start() || locked) { return OUT_OF_ORDER_ITERATION; }
10316|       |  return object_iterator(iter, this);
10316|       |#endif
10316|   340k|  return object_iterator(iter);
10317|   340k|}
_ZN8simdjson8fallback8ondemand6object3endEv:
10317|   340k|simdjson_inline simdjson_result<object_iterator> object::end() noexcept {
10317|   340k|  return object_iterator(iter);
10318|   340k|}
_ZNR8simdjson8fallback8ondemand6object12count_fieldsEv:
10329|   113k|simdjson_inline simdjson_result<size_t> object::count_fields() & noexcept {
10329|   113k|  size_t count{0};
10329|       |  // Important: we do not consume any of the values.
10329|   316k|  for(simdjson_unused auto v : *this) { count++; }
  ------------------
  |  |  760|   113k|  #define simdjson_unused __attribute__((unused))
  ------------------
  |  Branch (103298:30): [True: 316k, False: 113k]
  ------------------
10329|       |  // The above loop will always succeed, but we want to report errors.
10330|   113k|  if(iter.error()) { return iter.error(); }
  ------------------
  |  Branch (103300:6): [True: 20, False: 113k]
  ------------------
10330|       |  // We need to move back at the start because we expect users to iterate through
10330|       |  // the object after counting the number of elements.
10330|   113k|  iter.reset_object();
10330|   113k|  return count;
10330|   113k|}
_ZNR8simdjson8fallback8ondemand6object5resetEv:
10331|   113k|simdjson_inline simdjson_result<bool> object::reset() & noexcept {
10331|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10331|       |  if (locked) return OUT_OF_ORDER_ITERATION;
10332|       |#endif
10332|   113k|  return iter.reset_object();
10332|   113k|}
_ZN8simdjson8fallback8ondemand15object_iteratordeEv:
10362|  1.10M|simdjson_inline simdjson_result<field> object_iterator::operator*() noexcept {
10362|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10362|       |  // We must call * once per iteration.
10362|       |  SIMDJSON_ASSUME(!has_been_referenced);
10362|       |  has_been_referenced = true;
10362|       |#endif
10362|  1.10M|  error_code error = iter.error();
10362|  1.10M|  if (error) { iter.abandon(); return error; }
  ------------------
  |  Branch (103629:7): [True: 61, False: 1.10M]
  ------------------
10363|  1.10M|  auto result = field::start(iter);
10363|  1.10M|  value_start = iter.json_iter().position();
10363|       |  // TODO this is a safety rail ... users should exit loops as soon as they receive an error.
10363|       |  // Nonetheless, let's see if performance is OK with this if statement--the compiler may give it to us for free.
10363|  1.10M|  if (result.error()) { iter.abandon(); }
  ------------------
  |  Branch (103634:7): [True: 23, False: 1.10M]
  ------------------
10363|  1.10M|  return result;
10363|  1.10M|}
_ZNK8simdjson8fallback8ondemand15object_iteratorneERKS2_:
10364|  1.41M|simdjson_inline bool object_iterator::operator!=(const object_iterator &) const noexcept {
10364|  1.41M|  return iter.is_open();
10364|  1.41M|}
_ZN8simdjson8fallback8ondemand15object_iteratorppEv:
10364|  1.07M|simdjson_inline object_iterator &object_iterator::operator++() noexcept {
10364|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10364|       |   // Before calling ++, we must have called *.
10364|       |   SIMDJSON_ASSUME(has_been_referenced);
10365|       |   has_been_referenced = false;
10365|       |#endif
10365|       |  // TODO this is a safety rail ... users should exit loops as soon as they receive an error.
10365|       |  // Nonetheless, let's see if performance is OK with this if statement--the compiler may give it to us for free.
10365|  1.07M|  if (!iter.is_open()) { return *this; } // Iterator will be released if there is an error
  ------------------
  |  Branch (103654:7): [True: 20, False: 1.07M]
  ------------------
10365|       |
10365|  1.07M|  simdjson_unused error_code error;
  ------------------
  |  |  760|  1.07M|  #define simdjson_unused __attribute__((unused))
  ------------------
10365|  1.07M|  if ((error = iter.skip_child(value_start) )) { return *this; }
  ------------------
  |  Branch (103657:7): [True: 39, False: 1.07M]
  ------------------
10365|       |
10365|  1.07M|  simdjson_unused bool has_value;
  ------------------
  |  |  760|  1.07M|  #define simdjson_unused __attribute__((unused))
  ------------------
10366|  1.07M|  if ((error = iter.has_next_field().get(has_value) )) { return *this; };
  ------------------
  |  Branch (103660:7): [True: 22, False: 1.07M]
  ------------------
10366|  1.07M|  return *this;
10366|  1.07M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand15object_iteratorEEdeEv:
10372|  1.10M|simdjson_inline simdjson_result<fallback::ondemand::field> simdjson_result<fallback::ondemand::object_iterator>::operator*() noexcept {
10372|  1.10M|  if (error()) { return error(); }
  ------------------
  |  Branch (103725:7): [True: 0, False: 1.10M]
  ------------------
10372|  1.10M|  return *first;
10372|  1.10M|}
_ZNK8simdjson15simdjson_resultINS_8fallback8ondemand15object_iteratorEEneERKS4_:
10373|  1.41M|simdjson_inline bool simdjson_result<fallback::ondemand::object_iterator>::operator!=(const simdjson_result<fallback::ondemand::object_iterator> &other) const noexcept {
10373|  1.41M|  if (!first.iter.is_valid()) { return error(); }
  ------------------
  |  Branch (103735:7): [True: 0, False: 1.41M]
  ------------------
10373|  1.41M|  return first != other.first;
10373|  1.41M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand15object_iteratorEEppEv:
10373|  1.07M|simdjson_inline simdjson_result<fallback::ondemand::object_iterator> &simdjson_result<fallback::ondemand::object_iterator>::operator++() noexcept {
10374|       |  // Clear the error if there is one, so we don't yield it twice
10374|  1.07M|  if (error()) { second = SUCCESS; return *this; }
  ------------------
  |  Branch (103741:7): [True: 0, False: 1.07M]
  ------------------
10374|  1.07M|  ++first;
10374|  1.07M|  return *this;
10374|  1.07M|}
_ZN8simdjson8fallback8ondemand6parser8allocateEmm:
10391|   115k|simdjson_warn_unused simdjson_inline error_code parser::allocate(size_t new_capacity, size_t new_max_depth) noexcept {
10391|       |  // Reject an invalid depth before touching anything, as the implementation
10391|       |  // would: a failed allocate() leaves the parser as it was.
10391|   115k|  if (new_max_depth == 0 || new_max_depth > SIMDJSON_MAX_DEPTH) { return CAPACITY; }
  ------------------
  |  Branch (103919:7): [True: 0, False: 115k]
  |  Branch (103919:29): [True: 0, False: 115k]
  ------------------
10392|   115k|  if (new_capacity > max_capacity()) { return CAPACITY; }
  ------------------
  |  Branch (103920:7): [True: 0, False: 115k]
  ------------------
10392|   115k|  if (string_buf && new_capacity <= capacity() && new_max_depth <= max_depth()) { return SUCCESS; }
  ------------------
  |  Branch (103921:7): [True: 0, False: 115k]
  |  Branch (103921:21): [True: 0, False: 0]
  |  Branch (103921:51): [True: 0, False: 0]
  ------------------
10392|       |
10392|       |  // string_capacity copied from document::allocate
10392|   115k|  if (5 * (new_capacity / 3) + SIMDJSON_PADDING < SIMDJSON_PADDING) {
  ------------------
  |  Branch (103924:7): [True: 0, False: 115k]
  ------------------
10392|      0|    return CAPACITY; // overflow, only happen on legacy 32-bit systems with very large capacity
10392|      0|  }
10392|   115k|  size_t string_capacity = SIMDJSON_ROUNDUP_N(5 * (new_capacity / 3) + SIMDJSON_PADDING, 64);
  ------------------
  |  |  709|   115k|#define SIMDJSON_ROUNDUP_N(a, n) (((a) + ((n)-1)) & ~((n)-1))
  ------------------
10392|   115k|  std::unique_ptr<uint8_t[]> new_string_buf(new (std::nothrow) uint8_t[string_capacity]);
10392|   115k|  if (!new_string_buf) { return MEMALLOC; }
  ------------------
  |  Branch (103929:7): [True: 0, False: 115k]
  ------------------
10393|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10393|       |  std::unique_ptr<token_position[]> new_start_positions(new (std::nothrow) token_position[new_max_depth]);
10393|       |  if (!new_start_positions) { return MEMALLOC; }
10393|       |#endif
10393|   115k|  if (implementation) {
  ------------------
  |  Branch (103934:7): [True: 0, False: 115k]
  ------------------
10393|      0|    error_code err = implementation->allocate(new_capacity, new_max_depth);
10393|      0|    if (err) { return err; }
  ------------------
  |  Branch (103936:9): [True: 0, False: 0]
  ------------------
10393|   115k|  } else {
10393|   115k|    error_code err = simdjson::get_active_implementation()->create_dom_parser_implementation(new_capacity, new_max_depth, implementation);
10393|   115k|    if (err) {
  ------------------
  |  Branch (103939:9): [True: 0, False: 115k]
  ------------------
10394|      0|      implementation.reset();
10394|      0|      return err;
10394|      0|    }
10394|   115k|  }
10394|   115k|  string_buf = std::move(new_string_buf);
10394|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10394|       |  start_positions = std::move(new_start_positions);
10394|       |#endif
10394|   115k|  _capacity = new_capacity;
10394|   115k|  _max_depth = new_max_depth;
10395|   115k|  return SUCCESS;
10395|   115k|}
_ZNR8simdjson8fallback8ondemand6parser7iterateENS_18padded_string_viewE:
10395|   115k|simdjson_warn_unused simdjson_inline simdjson_result<document> parser::iterate(padded_string_view json) & noexcept {
10395|   115k|  if (!json.has_sufficient_padding()) { return INSUFFICIENT_PADDING; }
  ------------------
  |  Branch (103959:7): [True: 0, False: 115k]
  ------------------
10396|   115k|  json.use_trailing_whitespace_as_padding();
10396|       |
10396|   115k|  json.remove_utf8_bom();
10396|   115k|  _document_len = json.length();
10396|       |
10396|       |  // Allocate if needed
10396|   115k|  if (capacity() < json.length() || !string_buf) {
  ------------------
  |  Branch (103966:7): [True: 115k, False: 3]
  |  Branch (103966:37): [True: 3, False: 0]
  ------------------
10396|   115k|    SIMDJSON_TRY( allocate(json.length(), max_depth()) );
  ------------------
  |  | 2642|   115k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 115k]
  |  |  ------------------
  ------------------
10396|   115k|  }
10396|       |
10397|       |  // Run stage 1.
10397|   115k|  SIMDJSON_TRY( implementation->stage1(reinterpret_cast<const uint8_t *>(json.data()), json.length(), stage1_mode::regular) );
  ------------------
  |  | 2642|   115k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 852, False: 114k]
  |  |  ------------------
  ------------------
10397|   114k|  return document::start({ reinterpret_cast<const uint8_t *>(json.data()), this });
10397|   115k|}
_ZNK8simdjson8fallback8ondemand6parser8capacityEv:
10418|   115k|simdjson_pure simdjson_inline size_t parser::capacity() const noexcept {
10418|   115k|  return _capacity;
10419|   115k|}
_ZNK8simdjson8fallback8ondemand6parser12max_capacityEv:
10419|   115k|simdjson_pure simdjson_inline size_t parser::max_capacity() const noexcept {
10419|   115k|  return _max_capacity;
10419|   115k|}
_ZNK8simdjson8fallback8ondemand6parser9max_depthEv:
10419|   115k|simdjson_pure simdjson_inline size_t parser::max_depth() const noexcept {
10419|   115k|  return _max_depth;
10419|   115k|}
_ZNK8simdjson8fallback8ondemand6parser8unescapeENS1_15raw_json_stringERPhb:
10420|  2.63M|simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> parser::unescape(raw_json_string in, uint8_t *&dst, bool allow_replacement) const noexcept {
10420|  2.63M|  uint8_t *end = implementation->parse_string(in.buf, dst, allow_replacement);
10420|  2.63M|  if (!end) { return STRING_ERROR; }
  ------------------
  |  Branch (104208:7): [True: 1.57k, False: 2.63M]
  ------------------
10420|  2.63M|  std::string_view result(reinterpret_cast<const char *>(dst), end-dst);
10421|  2.63M|  dst = end;
10421|  2.63M|  return result;
10421|  2.63M|}
_ZNK8simdjson8fallback8ondemand15raw_json_string3rawEv:
10428|  18.8M|simdjson_inline const char * raw_json_string::raw() const noexcept {
10428|  18.8M|  return reinterpret_cast<const char *>(buf);
10428|  18.8M|}
_ZNK8simdjson8fallback8ondemand15raw_json_string8unescapeERNS1_13json_iteratorEb:
10446|   532k|simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> raw_json_string::unescape(json_iterator &iter, bool allow_replacement) const noexcept {
10446|   532k|  return iter.unescape(*this, allow_replacement);
10446|   532k|}
_ZNK8simdjson15simdjson_resultINS_8fallback8ondemand15raw_json_stringEE8unescapeERNS2_13json_iteratorEb:
10450|   532k|simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> simdjson_result<fallback::ondemand::raw_json_string>::unescape(fallback::ondemand::json_iterator &iter, bool allow_replacement) const noexcept {
10450|   532k|  if (error()) { return error(); }
  ------------------
  |  Branch (104503:7): [True: 60, False: 532k]
  ------------------
10450|   532k|  return first.unescape(iter, allow_replacement);
10450|   532k|}
_ZN8simdjson8fallback8ondemand14token_iterator26return_current_and_advanceEv:
10454|   104M|simdjson_inline const uint8_t *token_iterator::return_current_and_advance() noexcept {
10454|   104M|  return &buf[*(_position++)];
10454|   104M|}
_ZNK8simdjson8fallback8ondemand14token_iterator4peekEPKj:
10454|   703k|simdjson_inline const uint8_t *token_iterator::peek(token_position position) const noexcept {
10454|   703k|  return &buf[*position];
10454|   703k|}
_ZNK8simdjson8fallback8ondemand14token_iterator4peekEi:
10456|  50.6M|simdjson_inline const uint8_t *token_iterator::peek(int32_t delta) const noexcept {
10456|  50.6M|  return &buf[*(_position+delta)];
10456|  50.6M|}
_ZNK8simdjson8fallback8ondemand14token_iterator8positionEv:
10457|   128M|simdjson_inline token_position token_iterator::position() const noexcept {
10457|   128M|  return _position;
10457|   128M|}
_ZN8simdjson8fallback8ondemand14token_iterator12set_positionEPKj:
10457|  5.82M|simdjson_inline void token_iterator::set_position(token_position target_position) noexcept {
10457|  5.82M|  _position = target_position;
10457|  5.82M|}
_ZN8simdjson8fallback8ondemand14value_iterator12start_objectEv:
10466|  8.03M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::start_object() noexcept {
10466|  8.03M|  SIMDJSON_TRY( start_container('{', "Not an object", "object") );
  ------------------
  |  | 2642|  8.03M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 671, False: 8.03M]
  |  |  ------------------
  ------------------
10466|  8.03M|  return started_object();
10466|  8.03M|}
_ZN8simdjson8fallback8ondemand14value_iterator17start_root_objectEv:
10467|   114k|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::start_root_object() noexcept {
10467|   114k|  SIMDJSON_TRY( start_container('{', "Not an object", "object") );
  ------------------
  |  | 2642|   114k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 42, False: 114k]
  |  |  ------------------
  ------------------
10467|   114k|  return started_root_object();
10467|   114k|}
_ZN8simdjson8fallback8ondemand14value_iterator14started_objectEv:
10467|  8.37M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::started_object() noexcept {
10467|  8.37M|  assert_at_container_start();
10467|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10467|       |  // The development checks record the start of every open container in a
10467|       |  // buffer of max_depth() entries: a document nested deeper than that is
10468|       |  // rejected, as the DOM parser does.
10468|       |  if (size_t(_depth) >= _json_iter->parser->max_depth()) { return report_error(DEPTH_ERROR, "Exceeded max depth!"); }
10468|       |  _json_iter->set_start_position(_depth, start_position());
10468|       |#endif
10468|       |  // skip_child() relies on a started object beginning with a key.
10468|  8.37M|  const uint8_t *first = _json_iter->peek();
10468|  8.37M|  if (simdjson_likely(*first == '"')) { return true; }
  ------------------
  |  |  764|  8.37M|  #define simdjson_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (764:30): [True: 7.02M, False: 1.35M]
  |  |  ------------------
  ------------------
10468|  1.35M|  if (*first == '}') {
  ------------------
  |  Branch (104687:7): [True: 1.35M, False: 611]
  ------------------
10468|  1.35M|    logger::log_value(*_json_iter, "empty object");
10468|  1.35M|    _json_iter->return_current_and_advance();
10469|  1.35M|    SIMDJSON_TRY(end_container());
  ------------------
  |  | 2642|  1.35M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 1.35M]
  |  |  ------------------
  ------------------
10469|  1.35M|    return false;
10469|  1.35M|  }
10469|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10469|       |  if (_json_iter->allow_incomplete_json() && _json_iter->end_position() - _json_iter->position() <= 1) {
10469|       |    return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Object cut before its first key");
10469|       |  }
10469|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10469|    611|  abandon();
10469|    611|  return report_error(TAPE_ERROR, "Object does not start with a key");
10470|  1.35M|}
_ZN8simdjson8fallback8ondemand14value_iterator17check_root_objectEv:
10470|   114k|simdjson_warn_unused simdjson_inline error_code value_iterator::check_root_object() noexcept {
10470|       |  // When in streaming mode, we cannot expect peek_last() to be the last structural element of the
10470|       |  // current document. It only works in the normal mode where we have indexed a single document.
10470|       |  // Note that adding a check for 'streaming' is not expensive since we only have at most
10470|       |  // one root element.
10470|   114k|  if ( ! _json_iter->streaming() ) {
  ------------------
  |  Branch (104707:8): [True: 114k, False: 0]
  ------------------
10470|       |    // The following lines do not fully protect against garbage content within the
10470|       |    // object: e.g., `{"a":2} foo }`. Users concerned with garbage content should
10471|       |    // call `at_end()` on the document instance at the end of the processing to
10471|       |    // ensure that the processing has finished at the end.
10471|       |    //
10471|   114k|    if (*_json_iter->peek_last() != '}') {
  ------------------
  |  Branch (104713:9): [True: 92, False: 114k]
  ------------------
10471|     92|      _json_iter->abandon();
10471|     92|      return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "missing } at end");
10471|     92|    }
10471|       |    // If the last character is } *and* the first gibberish character is also '}'
10471|       |    // then on-demand could accidentally go over. So we need additional checks.
10471|       |    // https://github.com/simdjson/simdjson/issues/1834
10472|       |    // Checking that the document is balanced requires a full scan which is potentially
10472|       |    // expensive, but it only happens in edge cases where the first padding character is
10472|       |    // a closing bracket.
10472|   114k|    if ((*_json_iter->peek(_json_iter->end_position()) == '}') && (!_json_iter->balanced())) {
  ------------------
  |  Branch (104723:9): [True: 51, False: 114k]
  |  Branch (104723:67): [True: 38, False: 13]
  ------------------
10472|     38|      _json_iter->abandon();
10472|       |      // The exact error would require more work. It will typically be an unclosed object.
10472|     38|      return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "the document is unbalanced");
10472|     38|    }
10472|   114k|  }
10472|   114k|  return SUCCESS;
10473|   114k|}
_ZN8simdjson8fallback8ondemand14value_iterator19started_root_objectEv:
10473|   114k|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::started_root_object() noexcept {
10473|   114k|  auto error = check_root_object();
10473|   114k|  if(error) { return error; }
  ------------------
  |  Branch (104734:6): [True: 130, False: 114k]
  ------------------
10473|   114k|  return started_object();
10473|   114k|}
_ZN8simdjson8fallback8ondemand14value_iterator13end_containerEv:
10473|  9.36M|simdjson_warn_unused simdjson_inline error_code value_iterator::end_container() noexcept {
10473|       |#if SIMDJSON_CHECK_EOF
10474|       |    if (depth() > 1 && at_end()) { return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "missing parent ] or }"); }
10474|       |    // if (depth() <= 1 && !at_end()) { return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "missing [ or { at start"); }
10474|       |#endif // SIMDJSON_CHECK_EOF
10474|  9.36M|    _json_iter->ascend_to(depth()-1);
10474|  9.36M|    return SUCCESS;
10474|  9.36M|}
_ZN8simdjson8fallback8ondemand14value_iterator14has_next_fieldEv:
10474|  18.3M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::has_next_field() noexcept {
10474|  18.3M|  assert_at_next();
10474|       |  // It's illegal to call this unless there are more tokens: anything that ends in } or ] is
10475|       |  // obligated to verify there are more tokens if they are not the top level.
10475|  18.3M|  switch (*_json_iter->return_current_and_advance()) {
10475|  6.16M|    case '}':
  ------------------
  |  Branch (104752:5): [True: 6.16M, False: 12.1M]
  ------------------
10475|  6.16M|      logger::log_end_value(*_json_iter, "object");
10475|  6.16M|      SIMDJSON_TRY( end_container() );
  ------------------
  |  | 2642|  6.16M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 6.16M]
  |  |  ------------------
  ------------------
10475|  6.16M|      return false;
10475|  12.1M|    case ',':
  ------------------
  |  Branch (104756:5): [True: 12.1M, False: 6.17M]
  ------------------
10475|  12.1M|      return true;
10475|  5.53k|    default:
  ------------------
  |  Branch (104758:5): [True: 5.53k, False: 18.3M]
  ------------------
10475|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10476|       |      if (_json_iter->allow_incomplete_json() && _json_iter->position() > _json_iter->end_position()) {
10476|       |        return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Container cut at the end of an incomplete document");
10476|       |      }
10476|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10476|  5.53k|      return report_error(TAPE_ERROR, "Missing comma between object fields");
10476|  18.3M|  }
10476|  18.3M|}
_ZN8simdjson8fallback8ondemand14value_iterator9field_keyEv:
10503|  9.71M|simdjson_warn_unused simdjson_inline simdjson_result<raw_json_string> value_iterator::field_key() noexcept {
10503|  9.71M|  assert_at_next();
10503|       |
10503|  9.71M|  const uint8_t *key = _json_iter->return_current_and_advance();
10504|  9.71M|  if (*(key++) != '"') { return report_error(TAPE_ERROR, "Object key is not a string"); }
  ------------------
  |  Branch (105040:7): [True: 1.90k, False: 9.71M]
  ------------------
10504|  9.71M|  return raw_json_string(key);
10504|  9.71M|}
_ZN8simdjson8fallback8ondemand14value_iterator21field_key_with_lengthERNS1_15raw_json_stringERm:
10504|  9.49M|simdjson_warn_unused simdjson_inline error_code value_iterator::field_key_with_length(raw_json_string &key, std::size_t &len) noexcept {
10504|  9.49M|  assert_at_next();
10504|       |
10504|  9.49M|  const uint8_t *k = _json_iter->return_current_and_advance();
10504|  9.49M|  if (*(k++) != '"') { return report_error(TAPE_ERROR, "Object key is not a string"); }
  ------------------
  |  Branch (105048:7): [True: 785, False: 9.49M]
  ------------------
10504|       |  // After return_current_and_advance(), the current token is the ':' that follows
10505|       |  // the key. The closing quote sits just before it (only JSON whitespace may
10505|       |  // intervene), so step back from the ':' to the closing quote to get the length.
10505|       |  // In minified JSON this is a single back-step.
10505|  9.49M|  const char *q = reinterpret_cast<const char *>(_json_iter->peek());
10505|  9.78M|  do { --q; } while (*q != '"');
  ------------------
  |  Branch (105054:22): [True: 289k, False: 9.49M]
  ------------------
10505|  9.49M|  key = raw_json_string(k);
10505|  9.49M|  len = static_cast<std::size_t>(q - reinterpret_cast<const char *>(k));
10505|  9.49M|  return SUCCESS;
10505|  9.49M|}
_ZN8simdjson8fallback8ondemand14value_iterator11field_valueEv:
10506|  19.2M|simdjson_warn_unused simdjson_inline error_code value_iterator::field_value() noexcept {
10506|  19.2M|  assert_at_next();
10506|       |
10506|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10506|       |  // An incomplete document may end with a key, possibly cut before its closing
10506|       |  // quote. The next token is then the end-of-input sentinel, which points at the
10506|       |  // byte past the input: it must not be taken for the colon.
10506|       |  if (_json_iter->allow_incomplete_json() && _json_iter->at_end()) {
10506|       |    return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Missing colon at the end of an incomplete document");
10506|       |  }
10507|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10507|  19.2M|  if (*_json_iter->return_current_and_advance() != ':') { return report_error(TAPE_ERROR, "Missing colon in object field"); }
  ------------------
  |  Branch (105071:7): [True: 1.83k, False: 19.2M]
  ------------------
10507|  19.2M|  _json_iter->descend_to(depth()+1);
10507|  19.2M|  return SUCCESS;
10507|  19.2M|}
_ZN8simdjson8fallback8ondemand14value_iterator11start_arrayEv:
10507|  1.61M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::start_array() noexcept {
10507|  1.61M|  SIMDJSON_TRY( start_container('[', "Not an array", "array") );
  ------------------
  |  | 2642|  1.61M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 281, False: 1.61M]
  |  |  ------------------
  ------------------
10507|  1.61M|  return started_array();
10507|  1.61M|}
_ZN8simdjson8fallback8ondemand14value_iterator13started_arrayEv:
10509|  1.91M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::started_array() noexcept {
10509|  1.91M|  assert_at_container_start();
10509|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10509|       |  // See started_object().
10509|       |  if (size_t(_depth) >= _json_iter->parser->max_depth()) { return report_error(DEPTH_ERROR, "Exceeded max depth!"); }
10509|       |#endif
10509|  1.91M|  if (*_json_iter->peek() == ']') {
  ------------------
  |  Branch (105099:7): [True: 19.9k, False: 1.89M]
  ------------------
10510|  19.9k|    logger::log_value(*_json_iter, "empty array");
10510|  19.9k|    _json_iter->return_current_and_advance();
10510|  19.9k|    SIMDJSON_TRY( end_container() );
  ------------------
  |  | 2642|  19.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 19.9k]
  |  |  ------------------
  ------------------
10510|  19.9k|    return false;
10510|  19.9k|  }
10510|  1.89M|  _json_iter->descend_to(depth()+1);
10510|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10510|       |  _json_iter->set_start_position(_depth, start_position());
10510|       |#endif
10510|  1.89M|  return true;
10511|  1.91M|}
_ZN8simdjson8fallback8ondemand14value_iterator16has_next_elementEv:
10514|  13.2M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::has_next_element() noexcept {
10514|  13.2M|  assert_at_next();
10515|       |
10515|  13.2M|  logger::log_event(*this, "has_next_element");
10515|  13.2M|  switch (*_json_iter->return_current_and_advance()) {
10515|  1.82M|    case ']':
  ------------------
  |  Branch (105153:5): [True: 1.82M, False: 11.4M]
  ------------------
10515|  1.82M|      logger::log_end_value(*_json_iter, "array");
10515|  1.82M|      SIMDJSON_TRY( end_container() );
  ------------------
  |  | 2642|  1.82M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 1.82M]
  |  |  ------------------
  ------------------
10515|  1.82M|      return false;
10515|  11.4M|    case ',':
  ------------------
  |  Branch (105157:5): [True: 11.4M, False: 1.82M]
  ------------------
10515|  11.4M|      _json_iter->descend_to(depth()+1);
10515|  11.4M|      return true;
10516|    851|    default:
  ------------------
  |  Branch (105160:5): [True: 851, False: 13.2M]
  ------------------
10516|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10516|       |      if (_json_iter->allow_incomplete_json() && _json_iter->position() > _json_iter->end_position()) {
10516|       |        return report_error(INCOMPLETE_ARRAY_OR_OBJECT, "Container cut at the end of an incomplete document");
10516|       |      }
10516|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10516|    851|      return report_error(TAPE_ERROR, "Missing comma between array elements");
10516|  13.2M|  }
10516|  13.2M|}
_ZNK8simdjson8fallback8ondemand14value_iterator10parse_boolEPKh:
10517|   108k|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::parse_bool(const uint8_t *json) const noexcept {
10517|   108k|  auto not_true = atomparsing::str4ncmp(json, "true");
10517|   108k|  auto not_false = atomparsing::str4ncmp(json, "fals") | (json[4] ^ 'e');
10517|   108k|  bool error = (not_true && not_false) || jsoncharutils::is_not_structural_or_whitespace(json[not_true ? 5 : 4]);
  ------------------
  |  Branch (105173:17): [True: 71.7k, False: 36.8k]
  |  Branch (105173:29): [True: 70, False: 71.6k]
  |  Branch (105173:43): [True: 5, False: 108k]
  |  Branch (105173:95): [True: 71.6k, False: 36.8k]
  ------------------
10517|   108k|  if (error) { return incorrect_type_error("Not a boolean"); }
  ------------------
  |  Branch (105174:7): [True: 75, False: 108k]
  ------------------
10517|   108k|  return simdjson_result<bool>(!not_true);
10517|   108k|}
_ZNK8simdjson8fallback8ondemand14value_iterator10parse_nullEPKh:
10517|  1.60M|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::parse_null(const uint8_t *json) const noexcept {
10517|  1.60M|  bool is_null_string = !atomparsing::str4ncmp(json, "null") && jsoncharutils::is_structural_or_whitespace(json[4]);
  ------------------
  |  Branch (105178:25): [True: 38, False: 1.60M]
  |  Branch (105178:65): [True: 24, False: 14]
  ------------------
10517|       |  // if we start with 'n', we must be a null
10518|  1.60M|  if(!is_null_string && json[0]=='n') { return incorrect_type_error("Not a null but starts with n"); }
  ------------------
  |  Branch (105180:6): [True: 1.60M, False: 24]
  |  Branch (105180:25): [True: 61, False: 1.60M]
  ------------------
10518|  1.60M|  return is_null_string;
10518|  1.60M|}
_ZN8simdjson8fallback8ondemand14value_iterator10get_stringEb:
10518|   532k|simdjson_warn_unused simdjson_inline simdjson_result<std::string_view> value_iterator::get_string(bool allow_replacement) noexcept {
10518|   532k|  return get_raw_json_string().unescape(json_iter(), allow_replacement);
10518|   532k|}
_ZN8simdjson8fallback8ondemand14value_iterator19get_raw_json_stringEv:
10519|  3.04M|simdjson_warn_unused simdjson_inline simdjson_result<raw_json_string> value_iterator::get_raw_json_string() noexcept {
10519|  3.04M|  auto json = peek_scalar("string");
10519|  3.04M|  if (*json != '"') { return incorrect_type_error("Not a string"); }
  ------------------
  |  Branch (105198:7): [True: 707, False: 3.04M]
  ------------------
10519|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10520|       |  if (_json_iter->allow_incomplete_json()) {
10520|       |    const size_t remaining_input_length = _json_iter->remaining_input_length(json);
10520|       |    if (!raw_json_string_is_quote_terminated(json, uint32_t(remaining_input_length))) {
10520|       |      return STRING_ERROR;
10520|       |    }
10520|       |  }
10520|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10520|  3.04M|  advance_scalar("string");
10520|  3.04M|  return raw_json_string(json+1);
10520|  3.04M|}
_ZN8simdjson8fallback8ondemand14value_iterator10get_uint64Ev:
10521|  6.22M|simdjson_warn_unused simdjson_inline simdjson_result<uint64_t> value_iterator::get_uint64() noexcept {
10521|  6.22M|  auto result = numberparsing::parse_unsigned(peek_non_root_scalar("uint64"));
10521|  6.22M|  if(result.error() == SUCCESS) { advance_non_root_scalar("uint64"); }
  ------------------
  |  Branch (105212:6): [True: 6.22M, False: 925]
  ------------------
10521|  6.22M|  return result;
10521|  6.22M|}
_ZN8simdjson8fallback8ondemand14value_iterator9get_floatEv:
10524|  4.13M|simdjson_warn_unused simdjson_inline simdjson_result<float> value_iterator::get_float() noexcept {
10524|  4.13M|  auto result = numberparsing::parse_float(peek_non_root_scalar("float"));
10524|  4.13M|  if(result.error() == SUCCESS) { advance_non_root_scalar("float"); }
  ------------------
  |  Branch (105242:6): [True: 4.13M, False: 3.56k]
  ------------------
10524|  4.13M|  return result;
10524|  4.13M|}
_ZN8simdjson8fallback8ondemand14value_iterator8get_boolEv:
10525|   108k|simdjson_warn_unused simdjson_inline simdjson_result<bool> value_iterator::get_bool() noexcept {
10525|   108k|  auto result = parse_bool(peek_non_root_scalar("bool"));
10525|   108k|  if(result.error() == SUCCESS) { advance_non_root_scalar("bool"); }
  ------------------
  |  Branch (105252:6): [True: 108k, False: 75]
  ------------------
10525|   108k|  return result;
10525|   108k|}
_ZN8simdjson8fallback8ondemand14value_iterator7is_nullEv:
10525|  1.60M|simdjson_inline simdjson_result<bool> value_iterator::is_null() noexcept {
10525|  1.60M|  bool is_null_value;
10525|  1.60M|  SIMDJSON_TRY(parse_null(peek_non_root_scalar("null")).get(is_null_value));
  ------------------
  |  | 2642|  1.60M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 61, False: 1.60M]
  |  |  ------------------
  ------------------
10525|  1.60M|  if(is_null_value) { advance_non_root_scalar("null"); }
  ------------------
  |  Branch (105258:6): [True: 24, False: 1.60M]
  ------------------
10525|  1.60M|  return is_null_value;
10526|  1.60M|}
_ZN8simdjson8fallback8ondemand14value_iterator10get_numberEv:
10527|   950k|simdjson_inline simdjson_result<number> value_iterator::get_number() noexcept {
10527|   950k|  number num;
10527|   950k|  error_code error =  numberparsing::parse_number(peek_non_root_scalar("number"), num);
10527|   950k|  if(error) { return error; }
  ------------------
  |  Branch (105276:6): [True: 1.32k, False: 949k]
  ------------------
10527|   949k|  return num;
10527|   950k|}
_ZN8simdjson8fallback8ondemand14value_iterator10skip_childEPKj:
10555|  14.3M|simdjson_warn_unused simdjson_inline error_code value_iterator::skip_child(token_position child_start) noexcept {
10555|  14.3M|  if (_json_iter->depth() <= depth()) { return SUCCESS; }
  ------------------
  |  Branch (105556:7): [True: 9.14M, False: 5.16M]
  ------------------
10555|  5.16M|  if (_json_iter->position() == child_start) { return _json_iter->skip_value(depth()); }
  ------------------
  |  Branch (105557:7): [True: 4.95M, False: 204k]
  ------------------
10555|   204k|  return _json_iter->skip_partial(depth());
10555|  5.16M|}
_ZN8simdjson8fallback8ondemand14value_iterator16skip_field_childEv:
10556|  17.2M|simdjson_warn_unused simdjson_inline error_code value_iterator::skip_field_child() noexcept {
10556|  17.2M|  if (_json_iter->depth() <= depth()) { return SUCCESS; }
  ------------------
  |  Branch (105562:7): [True: 12.4M, False: 4.84M]
  ------------------
10556|  4.84M|  if (_json_iter->depth() == depth() + 1 && *_json_iter->peek(-1) == ':') { return _json_iter->skip_value(depth()); }
  ------------------
  |  Branch (105563:7): [True: 4.82M, False: 21.2k]
  |  Branch (105563:45): [True: 4.32M, False: 500k]
  ------------------
10556|   521k|  return _json_iter->skip_partial(depth());
10556|  4.84M|}
_ZNK8simdjson8fallback8ondemand14value_iterator5childEv:
10557|  28.1M|simdjson_inline value_iterator value_iterator::child() const noexcept {
10558|  28.1M|  assert_at_child();
10558|  28.1M|  return { _json_iter, depth()+1, _json_iter->token.position() };
10558|  28.1M|}
_ZNK8simdjson8fallback8ondemand14value_iterator7is_openEv:
10558|  60.1M|simdjson_inline bool value_iterator::is_open() const noexcept {
10559|  60.1M|  return _json_iter->depth() >= depth();
10559|  60.1M|}
_ZN8simdjson8fallback8ondemand14value_iterator7abandonEv:
10560|  7.64k|simdjson_inline void value_iterator::abandon() noexcept {
10560|  7.64k|  _json_iter->abandon();
10560|  7.64k|}
_ZNK8simdjson8fallback8ondemand14value_iterator5depthEv:
10561|   229M|simdjson_warn_unused simdjson_inline depth_t value_iterator::depth() const noexcept {
10561|   229M|  return _depth;
10561|   229M|}
_ZNK8simdjson8fallback8ondemand14value_iterator5errorEv:
10561|  28.5M|simdjson_warn_unused simdjson_inline error_code value_iterator::error() const noexcept {
10561|  28.5M|  return _json_iter->error;
10561|  28.5M|}
_ZNK8simdjson8fallback8ondemand14value_iterator9json_iterEv:
10562|  16.9M|simdjson_warn_unused simdjson_inline const json_iterator &value_iterator::json_iter() const noexcept {
10562|  16.9M|  return *_json_iter;
10562|  16.9M|}
_ZN8simdjson8fallback8ondemand14value_iterator9json_iterEv:
10562|  15.1M|simdjson_warn_unused simdjson_inline json_iterator &value_iterator::json_iter() noexcept {
10562|  15.1M|  return *_json_iter;
10562|  15.1M|}
_ZN8simdjson8fallback8ondemand14value_iterator11peek_scalarEPKc:
10564|  3.04M|simdjson_inline const uint8_t *value_iterator::peek_scalar(const char *type) noexcept {
10564|  3.04M|  logger::log_value(*_json_iter, start_position(), depth(), type);
10564|       |  // If we're not at the position anymore, we don't want to advance the cursor.
10564|  3.04M|  if (!is_at_start()) { return peek_start(); }
  ------------------
  |  Branch (105647:7): [True: 0, False: 3.04M]
  ------------------
10564|       |
10564|       |  // Get the JSON and advance the cursor, decreasing depth to signify that we have retrieved the value.
10565|  3.04M|  assert_at_start();
10565|  3.04M|  return _json_iter->peek();
10565|  3.04M|}
_ZN8simdjson8fallback8ondemand14value_iterator14advance_scalarEPKc:
10565|  3.04M|simdjson_inline void value_iterator::advance_scalar(const char *type) noexcept {
10565|  3.04M|  logger::log_value(*_json_iter, start_position(), depth(), type);
10565|       |  // If we're not at the position anymore, we don't want to advance the cursor.
10565|  3.04M|  if (!is_at_start()) { return; }
  ------------------
  |  Branch (105657:7): [True: 0, False: 3.04M]
  ------------------
10565|       |
10565|       |  // Get the JSON and advance the cursor, decreasing depth to signify that we have retrieved the value.
10566|  3.04M|  assert_at_start();
10566|  3.04M|  _json_iter->return_current_and_advance();
10566|  3.04M|  _json_iter->ascend_to(depth()-1);
10566|  3.04M|}
_ZN8simdjson8fallback8ondemand14value_iterator15start_containerEhPKcS4_:
10566|  9.76M|simdjson_warn_unused simdjson_inline error_code value_iterator::start_container(uint8_t start_char, const char *incorrect_type_message, const char *type) noexcept {
10566|  9.76M|  logger::log_start_value(*_json_iter, start_position(), depth(), type);
10566|       |  // If we're not at the position anymore, we don't want to advance the cursor.
10566|  9.76M|  const uint8_t *json;
10566|  9.76M|  if (!is_at_start()) {
  ------------------
  |  Branch (105669:7): [True: 0, False: 9.76M]
  ------------------
10567|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10567|       |    if (!is_at_iterator_start()) { return OUT_OF_ORDER_ITERATION; }
10567|       |#endif
10567|      0|    json = peek_start();
10567|      0|    if (*json != start_char) { return incorrect_type_error(incorrect_type_message); }
  ------------------
  |  Branch (105674:9): [True: 0, False: 0]
  ------------------
10567|  9.76M|  } else {
10567|  9.76M|    assert_at_start();
10567|       |    /**
10567|       |     * We should be prudent. Let us peek. If it is not the right type, we
10567|       |     * return an error. Only once we have determined that we have the right
10568|       |     * type are we allowed to advance!
10568|       |     */
10568|  9.76M|    json = _json_iter->peek();
10568|  9.76M|    if (*json != start_char) { return incorrect_type_error(incorrect_type_message); }
  ------------------
  |  Branch (105683:9): [True: 994, False: 9.76M]
  ------------------
10568|  9.76M|    _json_iter->return_current_and_advance();
10568|  9.76M|  }
10568|       |
10568|       |
10568|  9.76M|  return SUCCESS;
10568|  9.76M|}
_ZN8simdjson8fallback8ondemand14value_iterator20peek_non_root_scalarEPKc:
10569|  13.0M|simdjson_inline const uint8_t *value_iterator::peek_non_root_scalar(const char *type) noexcept {
10570|  13.0M|  logger::log_value(*_json_iter, start_position(), depth(), type);
10570|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10570|       |  if (_json_iter->allow_incomplete_json()) {
10570|       |    if (is_at_start()) { assert_at_non_root_start(); }
10570|       |    return _json_iter->scalar_within_input(peek_start());
10570|       |  }
10570|       |#endif // SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10570|  13.0M|  if (!is_at_start()) { return peek_start(); }
  ------------------
  |  Branch (105707:7): [True: 0, False: 13.0M]
  ------------------
10570|       |
10570|  13.0M|  assert_at_non_root_start();
10571|  13.0M|  return _json_iter->peek();
10571|  13.0M|}
_ZN8simdjson8fallback8ondemand14value_iterator23advance_non_root_scalarEPKc:
10572|  10.4M|simdjson_inline void value_iterator::advance_non_root_scalar(const char *type) noexcept {
10572|  10.4M|  logger::log_value(*_json_iter, start_position(), depth(), type);
10572|  10.4M|  if (!is_at_start()) { return; }
  ------------------
  |  Branch (105723:7): [True: 0, False: 10.4M]
  ------------------
10572|       |
10572|  10.4M|  assert_at_non_root_start();
10572|  10.4M|  _json_iter->return_current_and_advance();
10572|  10.4M|  _json_iter->ascend_to(depth()-1);
10572|  10.4M|}
_ZNK8simdjson8fallback8ondemand14value_iterator20incorrect_type_errorEPKc:
10573|  1.83k|simdjson_inline error_code value_iterator::incorrect_type_error(const char *message) const noexcept {
10573|  1.83k|  logger::log_error(*_json_iter, start_position(), depth(), message);
10573|  1.83k|  return INCORRECT_TYPE;
10573|  1.83k|}
_ZNK8simdjson8fallback8ondemand14value_iterator11is_at_startEv:
10573|  39.3M|simdjson_inline bool value_iterator::is_at_start() const noexcept {
10573|  39.3M|  return position() == start_position();
10573|  39.3M|}
_ZNK8simdjson8fallback8ondemand14value_iterator15assert_at_startEv:
10575|  39.3M|inline void value_iterator::assert_at_start() const noexcept {
10575|  39.3M|  SIMDJSON_ASSUME( _json_iter->token._position == _start_position );
  ------------------
  |  |  538|  39.3M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 39.3M]
  |  |  |  Branch (538:83): [Folded, False: 39.3M]
  |  |  ------------------
  ------------------
10575|  39.3M|  SIMDJSON_ASSUME( _json_iter->_depth == _depth );
  ------------------
  |  |  538|  39.3M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 39.3M]
  |  |  |  Branch (538:83): [Folded, False: 39.3M]
  |  |  ------------------
  ------------------
10575|  39.3M|  SIMDJSON_ASSUME( _depth > 0 );
  ------------------
  |  |  538|  39.3M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 39.3M]
  |  |  |  Branch (538:83): [Folded, False: 39.3M]
  |  |  ------------------
  ------------------
10575|  39.3M|}
_ZNK8simdjson8fallback8ondemand14value_iterator25assert_at_container_startEv:
10576|  10.2M|inline void value_iterator::assert_at_container_start() const noexcept {
10576|  10.2M|  SIMDJSON_ASSUME( _json_iter->token._position == _start_position + 1 );
  ------------------
  |  |  538|  10.2M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 10.2M]
  |  |  |  Branch (538:83): [Folded, False: 10.2M]
  |  |  ------------------
  ------------------
10576|  10.2M|  SIMDJSON_ASSUME( _json_iter->_depth == _depth );
  ------------------
  |  |  538|  10.2M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 10.2M]
  |  |  |  Branch (538:83): [Folded, False: 10.2M]
  |  |  ------------------
  ------------------
10576|  10.2M|  SIMDJSON_ASSUME( _depth > 0 );
  ------------------
  |  |  538|  10.2M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 10.2M]
  |  |  |  Branch (538:83): [Folded, False: 10.2M]
  |  |  ------------------
  ------------------
10576|  10.2M|}
_ZNK8simdjson8fallback8ondemand14value_iterator14assert_at_nextEv:
10576|  70.0M|inline void value_iterator::assert_at_next() const noexcept {
10576|  70.0M|  SIMDJSON_ASSUME( _json_iter->token._position > _start_position );
  ------------------
  |  |  538|  70.0M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 70.0M]
  |  |  |  Branch (538:83): [Folded, False: 70.0M]
  |  |  ------------------
  ------------------
10576|  70.0M|  SIMDJSON_ASSUME( _json_iter->_depth == _depth );
  ------------------
  |  |  538|  70.0M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 70.0M]
  |  |  |  Branch (538:83): [Folded, False: 70.0M]
  |  |  ------------------
  ------------------
10577|  70.0M|  SIMDJSON_ASSUME( _depth > 0 );
  ------------------
  |  |  538|  70.0M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 70.0M]
  |  |  |  Branch (538:83): [Folded, False: 70.0M]
  |  |  ------------------
  ------------------
10577|  70.0M|}
_ZN8simdjson8fallback8ondemand14value_iterator23move_at_container_startEv:
10577|   518k|simdjson_inline void value_iterator::move_at_container_start() noexcept {
10577|   518k|  _json_iter->_depth = _depth;
10578|   518k|  _json_iter->token.set_position(_start_position + 1);
10578|   518k|}
_ZN8simdjson8fallback8ondemand14value_iterator11reset_arrayEv:
10579|   291k|simdjson_inline simdjson_result<bool> value_iterator::reset_array() noexcept {
10579|   291k|  if(error()) { return error(); }
  ------------------
  |  Branch (105799:6): [True: 0, False: 291k]
  ------------------
10580|   291k|  move_at_container_start();
10580|   291k|  return started_array();
10580|   291k|}
_ZN8simdjson8fallback8ondemand14value_iterator12reset_objectEv:
10580|   227k|simdjson_inline simdjson_result<bool> value_iterator::reset_object() noexcept {
10580|   227k|  if(error()) { return error(); }
  ------------------
  |  Branch (105805:6): [True: 0, False: 227k]
  ------------------
10580|   227k|  move_at_container_start();
10580|   227k|  return started_object();
10580|   227k|}
_ZNK8simdjson8fallback8ondemand14value_iterator15assert_at_childEv:
10581|  28.1M|inline void value_iterator::assert_at_child() const noexcept {
10581|  28.1M|  SIMDJSON_ASSUME( _json_iter->token._position > _start_position );
  ------------------
  |  |  538|  28.1M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 28.1M]
  |  |  |  Branch (538:83): [Folded, False: 28.1M]
  |  |  ------------------
  ------------------
10581|  28.1M|  SIMDJSON_ASSUME( _json_iter->_depth == _depth + 1 );
  ------------------
  |  |  538|  28.1M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 28.1M]
  |  |  |  Branch (538:83): [Folded, False: 28.1M]
  |  |  ------------------
  ------------------
10581|  28.1M|  SIMDJSON_ASSUME( _depth > 0 );
  ------------------
  |  |  538|  28.1M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 28.1M]
  |  |  |  Branch (538:83): [Folded, False: 28.1M]
  |  |  ------------------
  ------------------
10581|  28.1M|}
_ZNK8simdjson8fallback8ondemand14value_iterator24assert_at_non_root_startEv:
10582|  23.5M|inline void value_iterator::assert_at_non_root_start() const noexcept {
10582|  23.5M|  assert_at_start();
10582|       |  // The value is usually inside an array or object (depth > 1), but a root
10582|       |  // array or object obtained with document::get_value() is a value at depth 1.
10582|       |  // Scalar getters may be called on it: they see the leading '[' or '{' and
10582|       |  // fail (INCORRECT_TYPE, or NUMBER_ERROR for get_number() and friends)
10582|       |  // without advancing the iterator.
10582|  23.5M|  SIMDJSON_ASSUME( _depth > 0 );
  ------------------
  |  |  538|  23.5M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 23.5M]
  |  |  |  Branch (538:83): [Folded, False: 23.5M]
  |  |  ------------------
  ------------------
10582|  23.5M|}
_ZNK8simdjson8fallback8ondemand14value_iterator15assert_is_validEv:
10583|  4.40M|inline void value_iterator::assert_is_valid() const noexcept {
10583|  4.40M|  SIMDJSON_ASSUME( _json_iter != nullptr );
  ------------------
  |  |  538|  4.40M|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 4.40M]
  |  |  |  Branch (538:83): [Folded, False: 4.40M]
  |  |  ------------------
  ------------------
10583|  4.40M|}
_ZNK8simdjson8fallback8ondemand14value_iterator8is_validEv:
10583|  16.5M|simdjson_inline bool value_iterator::is_valid() const noexcept {
10583|  16.5M|  return _json_iter != nullptr;
10583|  16.5M|}
_ZNK8simdjson8fallback8ondemand14value_iterator14start_positionEv:
10586|  79.2M|simdjson_inline token_position value_iterator::start_position() const noexcept {
10586|  79.2M|  return _start_position;
10586|  79.2M|}
_ZNK8simdjson8fallback8ondemand14value_iterator8positionEv:
10586|  39.3M|simdjson_inline token_position value_iterator::position() const noexcept {
10586|  39.3M|  return _json_iter->position();
10586|  39.3M|}
_ZN8simdjson8fallback8ondemand14value_iterator12report_errorENS_10error_codeEPKc:
10587|  11.6k|simdjson_inline error_code value_iterator::report_error(error_code error, const char *message) noexcept {
10587|  11.6k|  return _json_iter->report_error(error, message);
10587|  11.6k|}
_ZNK8simdjson8internal20simdjson_result_baseIbE5errorEv:
 3741|  38.8M|simdjson_inline error_code simdjson_result_base<T>::error() const noexcept {
 3742|  38.8M|  return this->second;
 3743|  38.8M|}
_ZNK8simdjson8internal20simdjson_result_baseImE5errorEv:
 3741|  6.22M|simdjson_inline error_code simdjson_result_base<T>::error() const noexcept {
 3742|  6.22M|  return this->second;
 3743|  6.22M|}
_ZNO8simdjson15simdjson_resultINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE3getERS5_:
 3838|  3.10M|simdjson_result<T>::get(T &value) && noexcept {
 3839|  3.10M|  return std::forward<internal::simdjson_result_base<T>>(*this).get(value);
 3840|  3.10M|}
_ZNO8simdjson8internal20simdjson_result_baseINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEE3getERS6_:
 3734|  3.10M|simdjson_warn_unused simdjson_inline error_code simdjson_result_base<T>::get(T &value) && noexcept {
 3735|  3.10M|  error_code error;
 3736|  3.10M|  std::forward<simdjson_result_base<T>>(*this).tie(value, error);
 3737|  3.10M|  return error;
 3738|  3.10M|}
_ZNO8simdjson8internal20simdjson_result_baseINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEE3tieERS6_RNS_10error_codeE:
 3726|  3.10M|simdjson_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
 3727|  3.10M|  error = this->second;
 3728|  3.10M|  if (!error) {
  ------------------
  |  Branch (3728:7): [True: 3.10M, False: 1.69k]
  ------------------
 3729|  3.10M|    value = std::forward<simdjson_result_base<T>>(*this).first;
 3730|  3.10M|  }
 3731|  3.10M|}
_ZNO8simdjson15simdjson_resultImE3getERm:
 3838|  6.63M|simdjson_result<T>::get(T &value) && noexcept {
 3839|  6.63M|  return std::forward<internal::simdjson_result_base<T>>(*this).get(value);
 3840|  6.63M|}
_ZNO8simdjson8internal20simdjson_result_baseImE3getERm:
 3734|  6.63M|simdjson_warn_unused simdjson_inline error_code simdjson_result_base<T>::get(T &value) && noexcept {
 3735|  6.63M|  error_code error;
 3736|  6.63M|  std::forward<simdjson_result_base<T>>(*this).tie(value, error);
 3737|  6.63M|  return error;
 3738|  6.63M|}
_ZNO8simdjson8internal20simdjson_result_baseImE3tieERmRNS_10error_codeE:
 3726|  6.63M|simdjson_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
 3727|  6.63M|  error = this->second;
 3728|  6.63M|  if (!error) {
  ------------------
  |  Branch (3728:7): [True: 6.63M, False: 1.19k]
  ------------------
 3729|  6.63M|    value = std::forward<simdjson_result_base<T>>(*this).first;
 3730|  6.63M|  }
 3731|  6.63M|}
_ZN8simdjson8internal10atomic_ptrIKNS_14implementationEEptEv:
 3925|   115k|  T* operator->() { return ptr.load(); }
_ZNO8simdjson15simdjson_resultIbE3getERb:
 3838|  6.01M|simdjson_result<T>::get(T &value) && noexcept {
 3839|  6.01M|  return std::forward<internal::simdjson_result_base<T>>(*this).get(value);
 3840|  6.01M|}
_ZNO8simdjson8internal20simdjson_result_baseIbE3getERb:
 3734|  6.01M|simdjson_warn_unused simdjson_inline error_code simdjson_result_base<T>::get(T &value) && noexcept {
 3735|  6.01M|  error_code error;
 3736|  6.01M|  std::forward<simdjson_result_base<T>>(*this).tie(value, error);
 3737|  6.01M|  return error;
 3738|  6.01M|}
_ZNO8simdjson8internal20simdjson_result_baseIbE3tieERbRNS_10error_codeE:
 3726|  6.01M|simdjson_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
 3727|  6.01M|  error = this->second;
 3728|  6.01M|  if (!error) {
  ------------------
  |  Branch (3728:7): [True: 6.01M, False: 500]
  ------------------
 3729|  6.01M|    value = std::forward<simdjson_result_base<T>>(*this).first;
 3730|  6.01M|  }
 3731|  6.01M|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5arrayEE5errorEv:
22373|  1.61M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|  1.61M|  return this->second;
22375|  1.61M|}
_ZNK8simdjson15simdjson_resultIbE5errorEv:
 3843|  38.8M|simdjson_inline error_code simdjson_result<T>::error() const noexcept {
 3844|  38.8M|  return internal::simdjson_result_base<T>::error();
 3845|  38.8M|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand14array_iteratorEE5errorEv:
22373|  26.4M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|  26.4M|  return this->second;
22375|  26.4M|}
_ZN8simdjson8fallback8ondemand14narrow_integerItEENS_15simdjson_resultIT_EENS3_ImEE:
98812|   350k|simdjson_inline simdjson_result<T> narrow_integer(simdjson_result<uint64_t> wide) noexcept {
98813|   350k|  uint64_t result;
98814|   350k|  SIMDJSON_TRY(std::move(wide).get(result));
  ------------------
  |  | 2642|   350k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 80, False: 350k]
  |  |  ------------------
  ------------------
98815|   350k|  if (result > static_cast<uint64_t>((std::numeric_limits<T>::max)())) { return NUMBER_OUT_OF_RANGE; }
  ------------------
  |  Branch (98815:7): [True: 65, False: 350k]
  ------------------
98816|   350k|  return static_cast<T>(result);
98817|   350k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5arrayEE3getIS3_EENS_10error_codeERT_:
92724|  1.61M|  simdjson_warn_unused simdjson_inline error_code get(T& out) noexcept(nothrow_gettable<T, fallback::ondemand::array>) {
92725|  1.61M|    if (error()) { return error(); }
  ------------------
  |  Branch (92725:9): [True: 281, False: 1.61M]
  ------------------
92726|  1.61M|    if constexpr (std::is_same_v<T, fallback::ondemand::array>) {
92727|  1.61M|      out = first;
92728|       |    } else {
92729|       |      SIMDJSON_TRY( first.get<T>(out) );
92730|       |    }
92731|  1.61M|    return SUCCESS;
92732|  1.61M|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE3getIS3_EENS_10error_codeERT_:
96837|  1.18M|  simdjson_warn_unused simdjson_inline error_code get(T& out) noexcept(nothrow_gettable<T, fallback::ondemand::object>) {
96838|  1.18M|    if (error()) { return error(); }
  ------------------
  |  Branch (96838:9): [True: 297, False: 1.18M]
  ------------------
96839|  1.18M|    if constexpr (std::is_same_v<T, fallback::ondemand::object>) {
96840|  1.18M|      out = first;
96841|       |    } else {
96842|       |      SIMDJSON_TRY( first.get<T>(out) );
96843|       |    }
96844|  1.18M|    return SUCCESS;
96845|  1.18M|  }
_ZNO8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15raw_json_stringEE3getERS3_:
22366|  12.2M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::get(T &value) && noexcept {
22367|  12.2M|  error_code error;
22368|  12.2M|  std::forward<implementation_simdjson_result_base<T>>(*this).tie(value, error);
22369|  12.2M|  return error;
22370|  12.2M|}
_ZNO8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15raw_json_stringEE3tieERS3_RNS_10error_codeE:
22358|  12.2M|simdjson_inline void implementation_simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
22359|  12.2M|  error = this->second;
22360|  12.2M|  if (!error) {
  ------------------
  |  Branch (22360:7): [True: 12.2M, False: 2.54k]
  ------------------
22361|  12.2M|    value = std::forward<implementation_simdjson_result_base<T>>(*this).first;
22362|  12.2M|  }
22363|  12.2M|}
_ZNO8simdjson15simdjson_resultINS_8fallback8ondemand6numberEE3getERS3_:
 3838|   950k|simdjson_result<T>::get(T &value) && noexcept {
 3839|   950k|  return std::forward<internal::simdjson_result_base<T>>(*this).get(value);
 3840|   950k|}
_ZNO8simdjson8internal20simdjson_result_baseINS_8fallback8ondemand6numberEE3getERS4_:
 3734|   950k|simdjson_warn_unused simdjson_inline error_code simdjson_result_base<T>::get(T &value) && noexcept {
 3735|   950k|  error_code error;
 3736|   950k|  std::forward<simdjson_result_base<T>>(*this).tie(value, error);
 3737|   950k|  return error;
 3738|   950k|}
_ZNO8simdjson8internal20simdjson_result_baseINS_8fallback8ondemand6numberEE3tieERS4_RNS_10error_codeE:
 3726|   950k|simdjson_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
 3727|   950k|  error = this->second;
 3728|   950k|  if (!error) {
  ------------------
  |  Branch (3728:7): [True: 949k, False: 1.44k]
  ------------------
 3729|   949k|    value = std::forward<simdjson_result_base<T>>(*this).first;
 3730|   949k|  }
 3731|   950k|}
_ZNO8simdjson15simdjson_resultIfE3getERf:
 3838|  4.13M|simdjson_result<T>::get(T &value) && noexcept {
 3839|  4.13M|  return std::forward<internal::simdjson_result_base<T>>(*this).get(value);
 3840|  4.13M|}
_ZNO8simdjson8internal20simdjson_result_baseIfE3getERf:
 3734|  4.13M|simdjson_warn_unused simdjson_inline error_code simdjson_result_base<T>::get(T &value) && noexcept {
 3735|  4.13M|  error_code error;
 3736|  4.13M|  std::forward<simdjson_result_base<T>>(*this).tie(value, error);
 3737|  4.13M|  return error;
 3738|  4.13M|}
_ZNO8simdjson8internal20simdjson_result_baseIfE3tieERfRNS_10error_codeE:
 3726|  4.13M|simdjson_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
 3727|  4.13M|  error = this->second;
 3728|  4.13M|  if (!error) {
  ------------------
  |  Branch (3728:7): [True: 4.13M, False: 3.56k]
  ------------------
 3729|  4.13M|    value = std::forward<simdjson_result_base<T>>(*this).first;
 3730|  4.13M|  }
 3731|  4.13M|}
_ZNO8simdjson15simdjson_resultItE3getERt:
 3838|   350k|simdjson_result<T>::get(T &value) && noexcept {
 3839|   350k|  return std::forward<internal::simdjson_result_base<T>>(*this).get(value);
 3840|   350k|}
_ZNO8simdjson8internal20simdjson_result_baseItE3getERt:
 3734|   350k|simdjson_warn_unused simdjson_inline error_code simdjson_result_base<T>::get(T &value) && noexcept {
 3735|   350k|  error_code error;
 3736|   350k|  std::forward<simdjson_result_base<T>>(*this).tie(value, error);
 3737|   350k|  return error;
 3738|   350k|}
_ZNO8simdjson8internal20simdjson_result_baseItE3tieERtRNS_10error_codeE:
 3726|   350k|simdjson_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && noexcept {
 3727|   350k|  error = this->second;
 3728|   350k|  if (!error) {
  ------------------
  |  Branch (3728:7): [True: 350k, False: 145]
  ------------------
 3729|   350k|    value = std::forward<simdjson_result_base<T>>(*this).first;
 3730|   350k|  }
 3731|   350k|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5valueEE5errorEv:
22373|  10.3M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|  10.3M|  return this->second;
22375|  10.3M|}
_ZNK8simdjson15simdjson_resultImE5errorEv:
 3843|  6.22M|simdjson_inline error_code simdjson_result<T>::error() const noexcept {
 3844|  6.22M|  return internal::simdjson_result_base<T>::error();
 3845|  6.22M|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand8documentEE5errorEv:
22373|   116k|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|   116k|  return this->second;
22375|   116k|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5fieldEE5errorEv:
22373|  2.57M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|  2.57M|  return this->second;
22375|  2.57M|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand6objectEE5errorEv:
22373|  8.15M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|  8.15M|  return this->second;
22375|  8.15M|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15object_iteratorEE5errorEv:
22373|  2.18M|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|  2.18M|  return this->second;
22375|  2.18M|}
_ZNK8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15raw_json_stringEE5errorEv:
22373|   532k|simdjson_warn_unused simdjson_inline error_code implementation_simdjson_result_base<T>::error() const noexcept {
22374|   532k|  return this->second;
22375|   532k|}
_ZNK8simdjson15simdjson_resultIfE5errorEv:
 3843|  4.13M|simdjson_inline error_code simdjson_result<T>::error() const noexcept {
 3844|  4.13M|  return internal::simdjson_result_base<T>::error();
 3845|  4.13M|}
_ZNK8simdjson8internal20simdjson_result_baseIfE5errorEv:
 3741|  4.13M|simdjson_inline error_code simdjson_result_base<T>::error() const noexcept {
 3742|  4.13M|  return this->second;
 3743|  4.13M|}
_ZN8simdjson8fallback13numberparsing12parse_numberINS0_8ondemand6numberEEENS_10error_codeEPKhRT_:
21523|   950k|simdjson_warn_unused simdjson_inline error_code parse_number(const uint8_t *const src, W &writer) {
21524|       |  //
21525|       |  // Check for minus sign
21526|       |  //
21527|   950k|  bool negative = (*src == '-');
21528|   950k|  const uint8_t *p = src + uint8_t(negative);
21529|       |
21530|       |  //
21531|       |  // Parse the integer part.
21532|       |  //
21533|       |  // PERF NOTE: we don't use is_made_of_eight_digits_fast because large integers like 123456789 are rare
21534|   950k|  const uint8_t *const start_digits = p;
21535|   950k|  uint64_t i = 0;
21536|  2.51M|  while (parse_digit(*p, i)) { p++; }
  ------------------
  |  Branch (21536:10): [True: 1.56M, False: 950k]
  ------------------
21537|       |
21538|       |  // If there were no digits, or if the integer starts with 0 and has more than one digit, it's an error.
21539|       |  // Optimization note: size_t is expected to be unsigned.
21540|   950k|  size_t digit_count = size_t(p - start_digits);
21541|   950k|  if (digit_count == 0 || ('0' == *start_digits && digit_count > 1)) {
  ------------------
  |  Branch (21541:7): [True: 133, False: 950k]
  |  Branch (21541:28): [True: 565k, False: 385k]
  |  Branch (21541:52): [True: 17, False: 565k]
  ------------------
21542|       |
21543|       |#if SIMDJSON_ENABLE_NAN_INF
21544|       |    // By this point, we know that our input does not begin with a digit. We will attempt
21545|       |    // to handle NaN/Infinity.
21546|       |
21547|       |    double d;
21548|       |    if (compute_nan_inf(p, negative, d)) {
21549|       |      writer.append_double(d);
21550|       |      return SUCCESS;
21551|       |    }
21552|       |#endif
21553|       |
21554|    150|    return INVALID_NUMBER(src);
  ------------------
  |  |20672|    150|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
21555|    150|  }
21556|       |
21557|       |  //
21558|       |  // Handle floats if there is a . or e (or both)
21559|       |  //
21560|   950k|  int64_t exponent = 0;
21561|   950k|  bool is_float = false;
21562|   950k|  if ('.' == *p) {
  ------------------
  |  Branch (21562:7): [True: 682k, False: 267k]
  ------------------
21563|   682k|    is_float = true;
21564|   682k|    ++p;
21565|   682k|    SIMDJSON_TRY( parse_decimal_after_separator(src, p, i, exponent) );
  ------------------
  |  | 2642|   682k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 34, False: 682k]
  |  |  ------------------
  ------------------
21566|   682k|    digit_count = int(p - start_digits); // used later to guard against overflows
21567|   682k|  }
21568|   950k|  if (('e' == *p) || ('E' == *p)) {
  ------------------
  |  Branch (21568:7): [True: 34.6k, False: 915k]
  |  Branch (21568:22): [True: 7.56k, False: 908k]
  ------------------
21569|  42.1k|    is_float = true;
21570|  42.1k|    ++p;
21571|  42.1k|    SIMDJSON_TRY( parse_exponent(src, p, exponent) );
  ------------------
  |  | 2642|  42.1k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 40, False: 42.1k]
  |  |  ------------------
  ------------------
21572|  42.1k|  }
21573|   950k|  if (is_float) {
  ------------------
  |  Branch (21573:7): [True: 693k, False: 256k]
  ------------------
21574|   693k|    const bool dirty_end = jsoncharutils::is_not_structural_or_whitespace(*p);
21575|   693k|    SIMDJSON_TRY( write_float(src, negative, i, start_digits, digit_count, exponent, writer) );
  ------------------
  |  | 2642|   693k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 259, False: 692k]
  |  |  ------------------
  ------------------
21576|   692k|    if (dirty_end) { return INVALID_NUMBER(src); }
  ------------------
  |  |20672|    696|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
  |  Branch (21576:9): [True: 696, False: 692k]
  ------------------
21577|   692k|    return SUCCESS;
21578|   692k|  }
21579|       |
21580|       |  // The longest negative 64-bit number is 19 digits.
21581|       |  // The longest positive 64-bit number is 20 digits.
21582|       |  // We do it this way so we don't trigger this branch unless we must.
21583|   256k|  size_t longest_digit_count = negative ? 19 : 20;
  ------------------
  |  Branch (21583:32): [True: 13.5k, False: 243k]
  ------------------
21584|   256k|  if (digit_count > longest_digit_count) { return BIGINT_NUMBER(src); }
  ------------------
  |  |20676|     11|#define BIGINT_NUMBER(SRC) (BIGINT_ERROR)
  ------------------
  |  Branch (21584:7): [True: 11, False: 256k]
  ------------------
21585|   256k|  if (digit_count == longest_digit_count) {
  ------------------
  |  Branch (21585:7): [True: 739, False: 256k]
  ------------------
21586|    739|    if (negative) {
  ------------------
  |  Branch (21586:9): [True: 625, False: 114]
  ------------------
21587|       |      // Anything negative above INT64_MAX+1 is invalid
21588|    625|      if (i > uint64_t(INT64_MAX)+1) { return BIGINT_NUMBER(src);  }
  ------------------
  |  |20676|     13|#define BIGINT_NUMBER(SRC) (BIGINT_ERROR)
  ------------------
  |  Branch (21588:11): [True: 13, False: 612]
  ------------------
21589|    612|      WRITE_INTEGER(~i+1, src, writer);
  ------------------
  |  |20673|    612|#define WRITE_INTEGER(VALUE, SRC, WRITER) (WRITER).append_s64((VALUE))
  ------------------
21590|    612|      if (jsoncharutils::is_not_structural_or_whitespace(*p)) { return INVALID_NUMBER(src); }
  ------------------
  |  |20672|     31|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
  |  Branch (21590:11): [True: 31, False: 581]
  ------------------
21591|    581|      return SUCCESS;
21592|       |    // Positive overflow check:
21593|       |    // - A 20 digit number starting with 2-9 is overflow, because 18,446,744,073,709,551,615 is the
21594|       |    //   biggest uint64_t.
21595|       |    // - A 20 digit number starting with 1 is overflow if it is less than INT64_MAX.
21596|       |    //   If we got here, it's a 20 digit number starting with the digit "1".
21597|       |    // - If a 20 digit number starting with 1 overflowed (i*10+digit), the result will be smaller
21598|       |    //   than 1,553,255,926,290,448,384.
21599|       |    // - That is smaller than the smallest possible 20-digit number the user could write:
21600|       |    //   10,000,000,000,000,000,000.
21601|       |    // - Therefore, if the number is positive and lower than that, it's overflow.
21602|       |    // - The value we are looking at is less than or equal to INT64_MAX.
21603|       |    //
21604|    612|    }  else if (src[0] != uint8_t('1') || i <= uint64_t(INT64_MAX)) { return BIGINT_NUMBER(src); }
  ------------------
  |  |20676|     16|#define BIGINT_NUMBER(SRC) (BIGINT_ERROR)
  ------------------
  |  Branch (21604:17): [True: 1, False: 113]
  |  Branch (21604:43): [True: 15, False: 98]
  ------------------
21605|    739|  }
21606|       |
21607|       |  // Write unsigned if it does not fit in a signed integer.
21608|   256k|  if (i > uint64_t(INT64_MAX)) {
  ------------------
  |  Branch (21608:7): [True: 152, False: 256k]
  ------------------
21609|    152|    WRITE_UNSIGNED(i, src, writer);
  ------------------
  |  |20674|    152|#define WRITE_UNSIGNED(VALUE, SRC, WRITER) (WRITER).append_u64((VALUE))
  ------------------
21610|   256k|  } else {
21611|       |#if SIMDJSON_MINUS_ZERO_AS_FLOAT
21612|       |    if(i == 0 && negative) {
21613|       |      // We have to write -0.0 instead of 0
21614|       |      WRITE_DOUBLE(-0.0, src, writer);
21615|       |    } else {
21616|       |      WRITE_INTEGER(negative ? (~i+1) : i, src, writer);
21617|       |    }
21618|       |#else
21619|   256k|  WRITE_INTEGER(negative ? (~i+1) : i, src, writer);
  ------------------
  |  |20673|   512k|#define WRITE_INTEGER(VALUE, SRC, WRITER) (WRITER).append_s64((VALUE))
  |  |  ------------------
  |  |  |  Branch (20673:64): [True: 12.8k, False: 243k]
  |  |  ------------------
  ------------------
21620|   256k|#endif
21621|   256k|  }
21622|   256k|  if (jsoncharutils::is_not_structural_or_whitespace(*p)) { return INVALID_NUMBER(src); }
  ------------------
  |  |20672|     78|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
  |  Branch (21622:7): [True: 78, False: 256k]
  ------------------
21623|   256k|  return SUCCESS;
21624|   256k|}
_ZN8simdjson8fallback13numberparsing11write_floatINS0_8ondemand6numberEEENS_10error_codeEPKhbmS7_mlRT_:
21426|   693k|simdjson_warn_unused simdjson_inline error_code write_float(const uint8_t *const src, bool negative, uint64_t i, const uint8_t * start_digits, size_t digit_count, int64_t exponent, W &writer) {
21427|       |  // If we frequently had to deal with long strings of digits,
21428|       |  // we could extend our code by using a 128-bit integer instead
21429|       |  // of a 64-bit integer. However, this is uncommon in practice.
21430|       |  //
21431|       |  // 9999999999999999999 < 2**64 so we can accommodate 19 digits.
21432|       |  // If we have a decimal separator, then digit_count - 1 is the number of digits, but we
21433|       |  // may not have a decimal separator!
21434|   693k|  if (simdjson_unlikely(digit_count > 19 && significant_digits(start_digits, digit_count) > 19)) {
  ------------------
  |  |  767|   733k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 18.4k, False: 674k]
  |  |  |  Branch (767:52): [True: 40.3k, False: 652k]
  |  |  |  Branch (767:52): [True: 18.4k, False: 21.9k]
  |  |  ------------------
  ------------------
21435|       |    // Ok, chances are good that we had an overflow!
21436|       |    // this is almost never going to get called!!!
21437|       |    // we start anew, going slowly!!!
21438|       |    // This will happen in the following examples:
21439|       |    // 10000000000000000000000000000000000000000000e+308
21440|       |    // 3.1415926535897932384626433832795028841971693993751
21441|       |    //
21442|       |    // NOTE: We do not pass a reference to the to slow_float_parsing. If we passed our writer
21443|       |    // reference to it, it would force it to be stored in memory, preventing the compiler from
21444|       |    // picking it apart and putting into registers. i.e. if we pass it as reference,
21445|       |    // it gets slow.
21446|  18.4k|    double d;
21447|  18.4k|    error_code error = slow_float_parsing(src, &d);
21448|  18.4k|    writer.append_double(d);
21449|  18.4k|    return error;
21450|  18.4k|  }
21451|       |  // NOTE: it's weird that the simdjson_unlikely() only wraps half the if, but it seems to get slower any other
21452|       |  // way we've tried: https://github.com/simdjson/simdjson/pull/990#discussion_r448497331
21453|       |  // To future reader: we'd love if someone found a better way, or at least could explain this result!
21454|   674k|  if (simdjson_unlikely(exponent < simdjson::internal::smallest_power) || (exponent > simdjson::internal::largest_power)) {
  ------------------
  |  |  767|  1.34M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 179, False: 674k]
  |  |  ------------------
  ------------------
  |  Branch (21454:75): [True: 125, False: 674k]
  ------------------
21455|       |    //
21456|       |    // Important: smallest_power is such that it leads to a zero value.
21457|       |    // Observe that 18446744073709551615e-343 == 0, i.e. (2**64 - 1) e -343 is zero
21458|       |    // so something x 10^-343 goes to zero, but not so with  something x 10^-342.
21459|    304|    static_assert(simdjson::internal::smallest_power <= -342, "smallest_power is not small enough");
21460|       |    //
21461|    304|    if((exponent < simdjson::internal::smallest_power) || (i == 0)) {
  ------------------
  |  Branch (21461:8): [True: 179, False: 125]
  |  Branch (21461:59): [True: 45, False: 80]
  ------------------
21462|       |      // E.g. Parse "-0.0e-999" into the same value as "-0.0". See https://en.wikipedia.org/wiki/Signed_zero
21463|    224|      WRITE_DOUBLE(negative ? -0.0 : 0.0, src, writer);
  ------------------
  |  |20675|    448|#define WRITE_DOUBLE(VALUE, SRC, WRITER) (WRITER).append_double((VALUE))
  |  |  ------------------
  |  |  |  Branch (20675:66): [True: 41, False: 183]
  |  |  ------------------
  ------------------
21464|    224|      return SUCCESS;
21465|    224|    } else { // (exponent > largest_power) and (i != 0)
21466|       |      // We have, for sure, an infinite value and simdjson refuses to parse infinite values.
21467|     80|      return INVALID_NUMBER(src);
  ------------------
  |  |20672|     80|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
21468|     80|    }
21469|    304|  }
21470|   674k|  double d;
21471|   674k|  if (!compute_float_64(exponent, i, negative, d)) {
  ------------------
  |  Branch (21471:7): [True: 84, False: 674k]
  ------------------
21472|       |    // we are almost never going to get here.
21473|     84|    if (!parse_float_fallback(src, &d)) { return INVALID_NUMBER(src); }
  ------------------
  |  |20672|     84|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
  |  Branch (21473:9): [True: 84, False: 0]
  ------------------
21474|     84|  }
21475|   674k|  WRITE_DOUBLE(d, src, writer);
  ------------------
  |  |20675|   674k|#define WRITE_DOUBLE(VALUE, SRC, WRITER) (WRITER).append_double((VALUE))
  ------------------
21476|   674k|  return SUCCESS;
21477|   674k|}
_ZN8simdjson18padded_string_viewC2EPKcmm:
 5133|   115k|  : std::string_view(s, len), _capacity(capacity)
 5134|   115k|{
 5135|   115k|  if(_capacity < len) { _capacity = len; }
  ------------------
  |  Branch (5135:6): [True: 0, False: 115k]
  ------------------
 5136|   115k|}
_ZN8simdjson15simdjson_resultIbEC2ENS_10error_codeE:
 3886|  8.32k|    : internal::simdjson_result_base<T>(error) {}
_ZN8simdjson8internal20simdjson_result_baseIbEC2ENS_10error_codeE:
 3817|  8.32k|    : simdjson_result_base(T{}, error) {}
_ZN8simdjson8internal20simdjson_result_baseIbEC2EObNS_10error_codeE:
 3814|  45.2M|    : std::pair<T, error_code>(std::forward<T>(value), error) {}
_ZN8simdjson15simdjson_resultIbEC2EOb:
 3889|  45.1M|    : internal::simdjson_result_base<T>(std::forward<T>(value)) {}
_ZN8simdjson8internal20simdjson_result_baseIbEC2EOb:
 3820|  45.1M|    : simdjson_result_base(std::forward<T>(value), SUCCESS) {}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL9log_valueERKNS1_13json_iteratorEPKcNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEii:
10272|  5.62M|inline void log_value(const json_iterator &iter, const char *type, std::string_view detail, int delta, int depth_delta) noexcept {
10272|  5.62M|  log_line(iter, "", type, detail, delta, depth_delta, log_level::info);
10272|  5.62M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL8log_lineIJEEEvRKNS1_13json_iteratorEPKcS8_NSt3__117basic_string_viewIcNS9_11char_traitsIcEEEEiiNS2_9log_levelEDpOT_:
10282|  32.7M|inline void log_line(const json_iterator &iter, const char *title_prefix, const char *title, std::string_view detail, int delta, int depth_delta, log_level level, Args&&... args) noexcept {
10282|  32.7M|  log_line(iter, iter.position()+delta, depth_t(iter.depth()+depth_delta), title_prefix, title, detail, level, std::forward<Args>(args)...);
10282|  32.7M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL8log_lineIJEEEvRKNS1_13json_iteratorEPKjiPKcSA_NSt3__117basic_string_viewIcNSB_11char_traitsIcEEEENS2_9log_levelEDpOT_:
10282|  72.0M|inline void log_line(const json_iterator &iter, token_position index, depth_t depth, const char *title_prefix, const char *title, std::string_view detail, log_level level, Args&&... args) noexcept {
10282|  72.0M|  if (LOG_ENABLED) {
  ------------------
  |  Branch (102829:7): [Folded, False: 72.0M]
  ------------------
10283|      0|    if (simdjson_unlikely(should_log(level))) {
  ------------------
  |  |  767|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
10283|      0|      const int indent = depth * 2;
10283|      0|      const auto buf = iter.token.buf;
10283|      0|      auto msg = string_format(title, std::forward<Args>(args)...);
10283|      0|      printf("| %*s%s%-*s ", indent, "", title_prefix,
10283|      0|             LOG_EVENT_LEN - indent - int(strlen(title_prefix)), msg.c_str());
10283|      0|      {
10283|       |        // Print the current structural.
10283|      0|        printf("| ");
10283|       |        // Before we begin, the index might point right before the document.
10284|       |        // This could be unsafe, see https://github.com/simdjson/simdjson/discussions/1938
10284|      0|        if (index < iter._root) {
  ------------------
  |  Branch (102841:13): [True: 0, False: 0]
  ------------------
10284|      0|          printf("%*s", LOG_BUFFER_LEN, "");
10284|      0|        } else {
10284|      0|          auto current_structural = &buf[*index];
10284|      0|          for (int i = 0; i < LOG_BUFFER_LEN; i++) {
  ------------------
  |  Branch (102845:27): [True: 0, False: 0]
  ------------------
10284|      0|            printf("%c", printable_char(current_structural[i]));
10284|      0|          }
10284|      0|        }
10284|      0|        printf(" ");
10285|      0|      }
10285|      0|      {
10285|       |        // Print the next structural.
10285|      0|        printf("| ");
10285|      0|        auto next_structural = &buf[*(index + 1)];
10285|      0|        for (int i = 0; i < LOG_SMALL_BUFFER_LEN; i++) {
  ------------------
  |  Branch (102855:25): [True: 0, False: 0]
  ------------------
10285|      0|          printf("%c", printable_char(next_structural[i]));
10285|      0|        }
10285|      0|        printf(" ");
10285|      0|      }
10286|       |      // printf("| %5u ", *(index+1));
10286|      0|      printf("| %5i ", depth);
10286|      0|      printf("| %6.*s ", int(detail.size()), detail.data());
10286|      0|      printf("|\n");
10286|       |      fflush(stdout);
10286|      0|    }
10286|      0|  }
10286|  72.0M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL9log_errorERKNS1_13json_iteratorEPKcS7_ii:
10274|  13.2k|inline void log_error(const json_iterator &iter, const char *error, const char *detail, int delta, int depth_delta) noexcept {
10274|  13.2k|  log_line(iter, "ERROR: ", error, detail, delta, depth_delta, log_level::error);
10274|  13.2k|}
_ZN8simdjson8fallback8ondemand15object_iteratorC2ERKNS1_14value_iteratorE:
10356|   681k|  : iter{_iter}
10356|   681k|{}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand15object_iteratorEEC2EOS3_:
10371|   681k|  : implementation_simdjson_result_base<fallback::ondemand::object_iterator>(std::forward<fallback::ondemand::object_iterator>(value))
10371|   681k|{
10371|   681k|  first.iter.assert_is_valid();
10371|   681k|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15object_iteratorEEC2EOS3_:
22455|   681k|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15object_iteratorEEC2EOS3_NS_10error_codeE:
22449|   681k|    : first{std::forward<T>(value)}, second{error} {}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5fieldEEC2ENS_10error_codeE:
10178|     84|    implementation_simdjson_result_base<fallback::ondemand::field>(error)
10178|     84|{
10179|     84|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5fieldEEC2ENS_10error_codeE:
22452|     84|    : implementation_simdjson_result_base(T{}, error) {}
_ZN8simdjson8fallback8ondemand5fieldC2Ev:
10169|     84|simdjson_inline field::field() noexcept : std::pair<raw_json_string, ondemand::value>() {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5fieldEEC2EOS3_NS_10error_codeE:
22449|  1.10M|    : first{std::forward<T>(value)}, second{error} {}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand15raw_json_stringEEC2ENS_10error_codeE:
10449|  2.60k|    : implementation_simdjson_result_base<fallback::ondemand::raw_json_string>(error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15raw_json_stringEEC2ENS_10error_codeE:
22452|  2.60k|    : implementation_simdjson_result_base(T{}, error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15raw_json_stringEEC2EOS3_NS_10error_codeE:
22449|  12.7M|    : first{std::forward<T>(value)}, second{error} {}
_ZN8simdjson8fallback8ondemand15raw_json_stringC2EPKh:
10428|  22.2M|simdjson_inline raw_json_string::raw_json_string(const uint8_t * _buf) noexcept : buf{_buf} {}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand15raw_json_stringEEC2EOS3_:
10449|  12.7M|    : implementation_simdjson_result_base<fallback::ondemand::raw_json_string>(std::forward<fallback::ondemand::raw_json_string>(value)) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand15raw_json_stringEEC2EOS3_:
22455|  12.7M|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson8fallback8ondemand14value_iteratorC2EPNS1_13json_iteratorEiPKj:
10466|  28.2M|) noexcept : _json_iter{json_iter}, _depth{depth}, _start_position{start_position}
10466|  28.2M|{
10466|  28.2M|}
_ZN8simdjson8fallback8ondemand5valueC2ERKNS1_14value_iteratorE:
98843|  28.1M|  : iter{_iter}
98844|  28.1M|{
98845|  28.1M|}
_ZN8simdjson8fallback8ondemand5fieldC2ENS1_15raw_json_stringEONS1_5valueE:
10169|  1.10M|  : std::pair<raw_json_string, ondemand::value>(key, std::forward<ondemand::value>(value))
10170|  1.10M|{
10170|  1.10M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5fieldEEC2EOS3_:
10178|  1.10M|    implementation_simdjson_result_base<fallback::ondemand::field>(
10178|  1.10M|      std::forward<fallback::ondemand::field>(value)
10178|  1.10M|    )
10178|  1.10M|{
10178|  1.10M|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5fieldEEC2EOS3_:
22455|  1.10M|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson15simdjson_resultINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEC2ENS_10error_codeE:
 3886|  1.69k|    : internal::simdjson_result_base<T>(error) {}
_ZN8simdjson8internal20simdjson_result_baseINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEC2ENS_10error_codeE:
 3817|  1.69k|    : simdjson_result_base(T{}, error) {}
_ZN8simdjson8internal20simdjson_result_baseINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEC2EOS6_NS_10error_codeE:
 3814|  3.10M|    : std::pair<T, error_code>(std::forward<T>(value), error) {}
_ZN8simdjson15simdjson_resultINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEC2EOS5_:
 3889|  3.10M|    : internal::simdjson_result_base<T>(std::forward<T>(value)) {}
_ZN8simdjson8internal20simdjson_result_baseINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEC2EOS6_:
 3820|  3.10M|    : simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEEC2ENS_10error_codeE:
99268|  1.14k|    implementation_simdjson_result_base<fallback::ondemand::value>(error)
99269|  1.14k|{
99270|  1.14k|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5valueEEC2ENS_10error_codeE:
22452|  1.14k|    : implementation_simdjson_result_base(T{}, error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5valueEEC2EOS3_NS_10error_codeE:
22449|  13.9M|    : first{std::forward<T>(value)}, second{error} {}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEEC2EOS3_:
99260|  13.9M|    implementation_simdjson_result_base<fallback::ondemand::value>(
99261|  13.9M|      std::forward<fallback::ondemand::value>(value)
99262|  13.9M|    )
99263|  13.9M|{
99264|  13.9M|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5valueEEC2EOS3_:
22455|  13.9M|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson15simdjson_resultImEC2ENS_10error_codeE:
 3886|  1.19k|    : internal::simdjson_result_base<T>(error) {}
_ZN8simdjson8internal20simdjson_result_baseImEC2ENS_10error_codeE:
 3817|  1.19k|    : simdjson_result_base(T{}, error) {}
_ZN8simdjson8internal20simdjson_result_baseImEC2EOmNS_10error_codeE:
 3814|  6.63M|    : std::pair<T, error_code>(std::forward<T>(value), error) {}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_114parse_unsignedEPKh:
21695|  6.22M|simdjson_unused simdjson_inline simdjson_result<uint64_t> parse_unsigned(const uint8_t * const src) noexcept {
21696|  6.22M|  const uint8_t *p = src;
21697|       |  //
21698|       |  // Parse the integer part.
21699|       |  //
21700|       |  // PERF NOTE: we don't use is_made_of_eight_digits_fast because large integers like 123456789 are rare
21701|  6.22M|  const uint8_t *const start_digits = p;
21702|  6.22M|  uint64_t i = 0;
21703|  6.22M|  parse_integer_digits(p, i);
21704|       |
21705|       |  // If there were no digits, or if the integer starts with 0 and has more than one digit, it's an error.
21706|       |  // Optimization note: size_t is expected to be unsigned.
21707|  6.22M|  size_t digit_count = size_t(p - start_digits);
21708|       |  // The longest positive 64-bit number is 20 digits.
21709|       |  // We do it this way so we don't trigger this branch unless we must.
21710|       |  // Optimization note: the compiler can probably merge
21711|       |  // ((digit_count == 0) || (digit_count > 20))
21712|       |  // into a single  branch since digit_count is unsigned.
21713|  6.22M|  if ((digit_count == 0) || (digit_count > 20)) { return INCORRECT_TYPE; }
  ------------------
  |  Branch (21713:7): [True: 365, False: 6.22M]
  |  Branch (21713:29): [True: 90, False: 6.22M]
  ------------------
21714|       |  // Here digit_count > 0.
21715|  6.22M|  if (('0' == *start_digits) && (digit_count > 1)) { return NUMBER_ERROR; }
  ------------------
  |  Branch (21715:7): [True: 759k, False: 5.46M]
  |  Branch (21715:33): [True: 72, False: 758k]
  ------------------
21716|       |  // We can do the following...
21717|       |  // if (!jsoncharutils::is_structural_or_whitespace(*p)) {
21718|       |  //  return (*p == '.' || *p == 'e' || *p == 'E') ? INCORRECT_TYPE : NUMBER_ERROR;
21719|       |  // }
21720|       |  // as a single table lookup:
21721|  6.22M|  if (integer_string_finisher[*p] != SUCCESS) { return error_code(integer_string_finisher[*p]); }
  ------------------
  |  Branch (21721:7): [True: 199, False: 6.22M]
  ------------------
21722|       |
21723|  6.22M|  if (digit_count == 20) {
  ------------------
  |  Branch (21723:7): [True: 34.0k, False: 6.19M]
  ------------------
21724|       |    // Positive overflow check:
21725|       |    // - A 20 digit number starting with 2-9 is overflow, because 18,446,744,073,709,551,615 is the
21726|       |    //   biggest uint64_t.
21727|       |    // - A 20 digit number starting with 1 is overflow if it is less than INT64_MAX.
21728|       |    //   If we got here, it's a 20 digit number starting with the digit "1".
21729|       |    // - If a 20 digit number starting with 1 overflowed (i*10+digit), the result will be smaller
21730|       |    //   than 1,553,255,926,290,448,384.
21731|       |    // - That is smaller than the smallest possible 20-digit number the user could write:
21732|       |    //   10,000,000,000,000,000,000.
21733|       |    // - Therefore, if the number is positive and lower than that, it's overflow.
21734|       |    // - The value we are looking at is less than or equal to INT64_MAX.
21735|       |    //
21736|  34.0k|    if (src[0] != uint8_t('1') || i <= uint64_t(INT64_MAX)) { return INCORRECT_TYPE; }
  ------------------
  |  Branch (21736:9): [True: 19, False: 34.0k]
  |  Branch (21736:35): [True: 180, False: 33.8k]
  ------------------
21737|  34.0k|  }
21738|       |
21739|  6.22M|  return i;
21740|  6.22M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_120parse_integer_digitsERPKhRm:
21300|  6.22M|simdjson_inline void parse_integer_digits(const uint8_t *&p, uint64_t &i) {
21301|  6.22M|#ifdef SIMDJSON_SWAR_NUMBER_PARSING
21302|  6.22M|#if SIMDJSON_SWAR_NUMBER_PARSING
21303|       |  // Identifiers, timestamps and counters often have eight digits or more.
21304|       |  // Prior related work: jsonifier parses integers as eight-digit SWAR words
21305|       |  // (str_to_i.hpp, https://github.com/nihilai-collective/Jsonifier). This
21306|       |  // takes one such word with parse_eight_digits_unrolled, the routine
21307|       |  // simdjson uses for long fractions.
21308|  6.22M|  if (is_made_of_eight_digits_fast(p)) {
  ------------------
  |  Branch (21308:7): [True: 674k, False: 5.55M]
  ------------------
21309|   674k|    i = i * 100000000 + parse_eight_digits_unrolled(p);
21310|   674k|    p += 8;
21311|   674k|  }
21312|  6.22M|  const uint8_t *const swar_end = p + 8;
21313|  8.41M|  while (p < swar_end && is_made_of_four_digits_fast(p)) {
  ------------------
  |  Branch (21313:10): [True: 8.19M, False: 224k]
  |  Branch (21313:26): [True: 2.18M, False: 6.00M]
  ------------------
21314|  2.18M|    i = i * 10000 + parse_four_digits_unrolled(p);
21315|  2.18M|    p += 4;
21316|  2.18M|  }
21317|  6.22M|#endif // SIMDJSON_SWAR_NUMBER_PARSING
21318|  6.22M|#endif // #ifdef SIMDJSON_SWAR_NUMBER_PARSING
21319|  15.0M|  while (parse_digit(*p, i)) { p++; }
  ------------------
  |  Branch (21319:10): [True: 8.80M, False: 6.22M]
  ------------------
21320|  6.22M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_128is_made_of_eight_digits_fastEPKh:
21209|  13.8M|simdjson_inline bool is_made_of_eight_digits_fast(const uint8_t *chars) {
21210|  13.8M|  uint64_t val;
21211|       |  // this can read up to 7 bytes beyond the buffer size, but we require
21212|       |  // SIMDJSON_PADDING of padding
21213|  13.8M|  static_assert(7 <= SIMDJSON_PADDING, "SIMDJSON_PADDING must be bigger than 7");
21214|  13.8M|  std::memcpy(&val, chars, 8);
21215|       |  // a branchy method might be faster:
21216|       |  // return (( val & 0xF0F0F0F0F0F0F0F0 ) == 0x3030303030303030)
21217|       |  //  && (( (val + 0x0606060606060606) & 0xF0F0F0F0F0F0F0F0 ) ==
21218|       |  //  0x3030303030303030);
21219|  13.8M|  return (((val & 0xF0F0F0F0F0F0F0F0) |
21220|  13.8M|           (((val + 0x0606060606060606) & 0xF0F0F0F0F0F0F0F0) >> 4)) ==
21221|  13.8M|          0x3333333333333333);
21222|  13.8M|}
parser.cpp:_ZN8simdjson8fallback13numberparsingL27parse_eight_digits_unrolledEPKh:
19987|  4.44M|static simdjson_inline uint32_t parse_eight_digits_unrolled(const uint8_t *chars) {
19988|  4.44M|  return parse_eight_digits_unrolled(reinterpret_cast<const char *>(chars));
19989|  4.44M|}
parser.cpp:_ZN8simdjson8fallback13numberparsingL27parse_eight_digits_unrolledEPKc:
19978|  4.44M|static simdjson_inline uint32_t parse_eight_digits_unrolled(const char *chars) {
19979|  4.44M|  uint64_t val;
19980|  4.44M|  memcpy(&val, chars, sizeof(uint64_t));
19981|  4.44M|  val = (val & 0x0F0F0F0F0F0F0F0F) * 2561 >> 8;
19982|  4.44M|  val = (val & 0x00FF00FF00FF00FF) * 6553601 >> 16;
19983|  4.44M|  return uint32_t((val & 0x0000FFFF0000FFFF) * 42949672960001 >> 32);
19984|  4.44M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_127is_made_of_four_digits_fastEPKh:
21228|  12.0M|simdjson_inline bool is_made_of_four_digits_fast(const uint8_t *chars) {
21229|  12.0M|  uint32_t val;
21230|       |  // Reads up to 3 bytes beyond the digits, which SIMDJSON_PADDING covers.
21231|  12.0M|  static_assert(3 <= SIMDJSON_PADDING, "SIMDJSON_PADDING must be bigger than 3");
21232|  12.0M|  std::memcpy(&val, chars, 4);
21233|  12.0M|  return !(((val + 0x46464646) | (val - 0x30303030)) & 0x80808080);
21234|  12.0M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_126parse_four_digits_unrolledEPKh:
21238|  2.56M|simdjson_inline uint32_t parse_four_digits_unrolled(const uint8_t *chars) {
21239|  2.56M|  uint32_t val;
21240|  2.56M|  std::memcpy(&val, chars, 4);
21241|  2.56M|  val -= 0x30303030;
21242|  2.56M|  val = (val * 10) + (val >> 8);
21243|  2.56M|  return (((val & 0x00FF00FF) * 0x00640001) >> 16) & 0xFFFF;
21244|  2.56M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_111parse_digitImEEbhRT_:
21248|  38.9M|simdjson_inline bool parse_digit(const uint8_t c, I &i) {
21249|  38.9M|  const uint8_t digit = static_cast<uint8_t>(c - '0');
21250|  38.9M|  if (digit > 9) {
  ------------------
  |  Branch (21250:7): [True: 15.3M, False: 23.5M]
  ------------------
21251|  15.3M|    return false;
21252|  15.3M|  }
21253|       |  // PERF NOTE: multiplication by 10 is cheaper than arbitrary integer multiplication
21254|  23.5M|  i = 10 * i + digit; // might overflow, we will handle the overflow later
21255|  23.5M|  return true;
21256|  38.9M|}
_ZN8simdjson15simdjson_resultImEC2EOm:
 3889|  6.63M|    : internal::simdjson_result_base<T>(std::forward<T>(value)) {}
_ZN8simdjson8internal20simdjson_result_baseImEC2EOm:
 3820|  6.63M|    : simdjson_result_base(std::forward<T>(value), SUCCESS) {}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL9log_valueERKNS1_13json_iteratorEPKjiPKcNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEE:
10272|  29.5M|inline void log_value(const json_iterator &iter, token_position index, depth_t depth, const char *type, std::string_view detail) noexcept {
10272|  29.5M|  log_line(iter, index, depth, "", type, detail, log_level::info);
10272|  29.5M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEEC2ENS_10error_codeE:
10340|  1.61k|    : implementation_simdjson_result_base<fallback::ondemand::object>(error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand6objectEEC2ENS_10error_codeE:
22452|  1.61k|    : implementation_simdjson_result_base(T{}, error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand6objectEEC2EOS3_NS_10error_codeE:
22449|  8.15M|    : first{std::forward<T>(value)}, second{error} {}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL15log_start_valueERKNS1_13json_iteratorEPKjiPKcNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEE:
10272|  9.76M|inline void log_start_value(const json_iterator &iter, token_position index, depth_t depth, const char *type, std::string_view detail) noexcept {
10272|  9.76M|  log_line(iter, index, depth, "+", type, detail, log_level::info);
10273|  9.76M|  if (LOG_ENABLED) { log_depth++; }
  ------------------
  |  Branch (102730:7): [Folded, False: 9.76M]
  ------------------
10273|  9.76M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL9log_errorERKNS1_13json_iteratorEPKjiPKcS9_:
10274|  1.83k|inline void log_error(const json_iterator &iter, token_position index, depth_t depth, const char *error, const char *detail) noexcept {
10274|  1.83k|  log_line(iter, index, depth, "ERROR: ", error, detail, log_level::error);
10274|  1.83k|}
_ZN8simdjson8fallback8ondemand6objectC2ERKNS1_14value_iteratorE:
10316|  8.14M|  : iter{_iter}
10316|  8.14M|{
10316|  8.14M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEEC2EOS3_:
10340|  8.14M|    : implementation_simdjson_result_base<fallback::ondemand::object>(std::forward<fallback::ondemand::object>(value)) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand6objectEEC2EOS3_:
22455|  8.14M|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5arrayEEC2ENS_10error_codeE:
98580|    281|  : implementation_simdjson_result_base<fallback::ondemand::array>(error)
98581|    281|{
98582|    281|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5arrayEEC2ENS_10error_codeE:
22452|    281|    : implementation_simdjson_result_base(T{}, error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5arrayEEC2EOS3_NS_10error_codeE:
22449|  1.61M|    : first{std::forward<T>(value)}, second{error} {}
_ZN8simdjson8fallback8ondemand5arrayC2ERKNS1_14value_iteratorE:
98357|  1.61M|  : iter{_iter}
98358|  1.61M|{
98359|  1.61M|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5arrayEEC2EOS3_:
98572|  1.61M|  : implementation_simdjson_result_base<fallback::ondemand::array>(
98573|  1.61M|      std::forward<fallback::ondemand::array>(value)
98574|  1.61M|    )
98575|  1.61M|{
98576|  1.61M|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand5arrayEEC2EOS3_:
22455|  1.61M|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson8fallback8ondemand14array_iteratorC2ERKNS1_14value_iteratorE:
98651|  3.72M|  : iter{_iter}, element_start{_iter.json_iter().position()}
98652|  3.72M|{}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand14array_iteratorEEC2EOS3_:
98751|  3.72M|  : fallback::implementation_simdjson_result_base<fallback::ondemand::array_iterator>(std::forward<fallback::ondemand::array_iterator>(value))
98752|  3.72M|{
98753|  3.72M|  first.iter.assert_is_valid();
98754|  3.72M|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand14array_iteratorEEC2EOS3_:
22455|  3.72M|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand14array_iteratorEEC2EOS3_NS_10error_codeE:
22449|  3.72M|    : first{std::forward<T>(value)}, second{error} {}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL15log_start_valueERKNS1_13json_iteratorEPKcii:
10273|  5.25M|inline void log_start_value(const json_iterator &iter, const char *type, int delta, int depth_delta) noexcept {
10273|  5.25M|  log_line(iter, "+", type, "", delta, depth_delta, log_level::info);
10273|  5.25M|  if (LOG_ENABLED) { log_depth++; }
  ------------------
  |  Branch (102734:7): [Folded, False: 5.25M]
  ------------------
10273|  5.25M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL13log_end_valueERKNS1_13json_iteratorEPKcii:
10273|  8.61M|inline void log_end_value(const json_iterator &iter, const char *type, int delta, int depth_delta) noexcept {
10273|  8.61M|  if (LOG_ENABLED) { log_depth--; }
  ------------------
  |  Branch (102738:7): [Folded, False: 8.61M]
  ------------------
10273|  8.61M|  log_line(iter, "-", type, "", delta, depth_delta, log_level::info);
10274|  8.61M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL9log_eventERKNS1_14value_iteratorEPKcNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEii:
10274|  13.2M|inline void log_event(const value_iterator &iter, const char *type, std::string_view detail, int delta, int depth_delta) noexcept {
10275|  13.2M|  log_event(iter.json_iter(), type, detail, delta, depth_delta);
10275|  13.2M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL9log_eventERKNS1_13json_iteratorEPKcNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEEii:
10271|  13.2M|inline void log_event(const json_iterator &iter, const char *type, std::string_view detail, int delta, int depth_delta) noexcept {
10271|  13.2M|  log_line(iter, "", type, detail, delta, depth_delta, log_level::info);
10271|  13.2M|}
_ZN8simdjson18padded_string_viewC2EPKhmm:
 5139|   115k|  : padded_string_view(reinterpret_cast<const char*>(s), len, capacity)
 5140|   115k|{
 5141|   115k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand8documentEEC2ENS_10error_codeE:
10015|    852|    implementation_simdjson_result_base<fallback::ondemand::document>(
10015|    852|      error
10015|    852|    )
10015|    852|{
10015|    852|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand8documentEEC2ENS_10error_codeE:
22452|    852|    : implementation_simdjson_result_base(T{}, error) {}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand8documentEEC2EOS3_NS_10error_codeE:
22449|   115k|    : first{std::forward<T>(value)}, second{error} {}
_ZN8simdjson8fallback8ondemand8documentC2EOS2_:
92909|   115k|  simdjson_inline document(document &&other) noexcept = default;
_ZN8simdjson8fallback8ondemand13json_iteratorC2EOS2_:
10186|   230k|  : token(std::forward<token_iterator>(other.token)),
10186|   230k|    parser{other.parser},
10186|   230k|    _string_buf_loc{other._string_buf_loc},
10186|   230k|    error{other.error},
10186|   230k|    _depth{other._depth},
10186|   230k|    _root{other._root},
10186|   230k|    _streaming{other._streaming}
10186|       |#ifdef SIMDJSON_EXPERIMENTAL_ALLOW_INCOMPLETE_JSON
10187|       |    , _allow_incomplete_json{other._allow_incomplete_json}
10187|       |#endif
10187|   230k|{
10187|   230k|  other.parser = nullptr;
10187|   230k|}
_ZN8simdjson8fallback8ondemand8documentC2EONS1_13json_iteratorE:
99608|   114k|  : iter{std::forward<json_iterator>(_iter)}
99609|   114k|{
99610|   114k|  logger::log_start_value(iter, "document");
99611|   114k|}
_ZN8simdjson8fallback8ondemand13json_iteratorC2EPKhPNS1_6parserE:
10189|   114k|  : token(buf, &_parser->implementation->structural_indexes[0]),
10189|   114k|    parser{_parser},
10189|   114k|    _string_buf_loc{parser->string_buf.get()},
10189|   114k|    _depth{1},
10189|   114k|    _root{parser->implementation->structural_indexes.get()},
10189|   114k|    _streaming{false}
10189|       |
10189|   114k|{
10189|   114k|  logger::log_headers();
10190|       |#if SIMDJSON_CHECK_EOF
10190|       |  assert_more_tokens();
10190|       |#endif
10190|   114k|}
_ZN8simdjson8fallback8ondemand14token_iteratorC2EPKhPKj:
10453|   114k|) noexcept : buf{_buf}, _position{position}
10453|   114k|{
10453|   114k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6loggerL11log_headersEv:
10276|   114k|inline void log_headers() noexcept {
10277|   114k|  if (LOG_ENABLED) {
  ------------------
  |  Branch (102770:7): [Folded, False: 114k]
  ------------------
10277|      0|    if (simdjson_unlikely(should_log(log_level::info))) {
  ------------------
  |  |  767|      0|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
10277|       |      // Technically a static variable is not thread-safe, but if you are using threads and logging... well...
10277|      0|      static bool displayed_hint{false};
10277|      0|      log_depth = 0;
10277|      0|      printf("\n");
10277|      0|      if (!displayed_hint) {
  ------------------
  |  Branch (102776:11): [True: 0, False: 0]
  ------------------
10277|       |        // We only print this helpful header once.
10277|      0|        printf("# Logging provides the depth and position of the iterator user-visible steps:\n");
10277|      0|        printf("# +array says 'this is where we were when we discovered the start array'\n");
10278|      0|        printf(
10278|      0|            "# -array says 'this is where we were when we ended the array'\n");
10278|      0|        printf("# skip says 'this is a structural or value I am skipping'\n");
10278|      0|        printf("# +/-skip says 'this is a start/end array or object I am skipping'\n");
10278|      0|        printf("#\n");
10278|      0|        printf("# The indentation of the terms (array, string,...) indicates the depth,\n");
10278|      0|        printf("# in addition to the depth being displayed.\n");
10278|      0|        printf("#\n");
10278|      0|        printf("# Every token in the document has a single depth determined by the tokens before it,\n");
10278|      0|        printf("# and is not affected by what the token actually is.\n");
10279|      0|        printf("#\n");
10279|      0|        printf("# Not all structural elements are presented as tokens in the logs.\n");
10279|      0|        printf("#\n");
10279|      0|        printf("# We never give control to the user within an empty array or an empty object.\n");
10279|      0|        printf("#\n");
10279|      0|        printf("# Inside an array, having a depth greater than the array's depth means that\n");
10279|      0|        printf("# we are pointing inside a value.\n");
10279|      0|        printf("# Having a depth equal to the array means that we are pointing right before a value.\n");
10279|      0|        printf("# Having a depth smaller than the array means that we have moved beyond the array.\n");
10279|      0|        displayed_hint = true;
10280|      0|      }
10280|      0|      printf("\n");
10280|      0|      printf("| %-*s ", LOG_EVENT_LEN, "Event");
10280|      0|      printf("| %-*s ", LOG_BUFFER_LEN, "Buffer");
10280|      0|      printf("| %-*s ", LOG_SMALL_BUFFER_LEN, "Next");
10280|       |      // printf("| %-*s ", 5,                    "Next#");
10280|      0|      printf("| %-*s ", 5, "Depth");
10280|      0|      printf("| Detail ");
10280|      0|      printf("|\n");
10280|       |
10281|      0|      printf("|%.*s", LOG_EVENT_LEN + 2, DASHES);
10281|      0|      printf("|%.*s", LOG_BUFFER_LEN + 2, DASHES);
10281|      0|      printf("|%.*s", LOG_SMALL_BUFFER_LEN + 2, DASHES);
10281|       |      // printf("|%.*s", 5+2, DASHES);
10281|      0|      printf("|%.*s", 5 + 2, DASHES);
10281|      0|      printf("|--------");
10281|      0|      printf("|\n");
10281|       |      fflush(stdout);
10281|      0|    }
10281|      0|  }
10282|   114k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand8documentEEC2EOS3_:
10014|   114k|    implementation_simdjson_result_base<fallback::ondemand::document>(
10014|   114k|      std::forward<fallback::ondemand::document>(value)
10014|   114k|    )
10014|   114k|{
10015|   114k|}
_ZN8simdjson8fallback35implementation_simdjson_result_baseINS0_8ondemand8documentEEC2EOS3_:
22455|   114k|    : implementation_simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson8fallback8ondemand8documentaSEOS2_:
92911|   114k|  simdjson_inline document &operator=(document &&other) noexcept = default;
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEXtlNS5_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEJRKZN8fastgltf6Parser5parseERNSA_8internal10JsonObjectENSA_8CategoryEE3$_0RNSt3__16vectorINSJ_12basic_stringIcNSJ_11char_traitsIcEENSJ_9allocatorIcEEEENSO_ISQ_EEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSU_:
10309|   114k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   114k|  using Selector = key_selector<Keys...>;
10309|   114k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   114k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEXtlNS6_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEEEJRKZN8fastgltf6Parser5parseERNSC_8internal10JsonObjectENSC_8CategoryEE3$_0RNSt3__16vectorINSL_12basic_stringIcNSL_11char_traitsIcEENSL_9allocatorIcEEEENSQ_ISS_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSW_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10308|   114k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   114k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   114k|  return this->template for_each<Selector>(
10308|   114k|      [&](std::size_t i, value v) -> error_code {
10308|   114k|        return key_selector_for_each_detail::dispatch_value(
10308|   114k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   114k|      });
10309|   114k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEXtlNS6_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEEEZNS2_8for_eachISB_JRKZN8fastgltf6Parser5parseERNSD_8internal10JsonObjectENSD_8CategoryEE3$_0RNSt3__16vectorINSM_12basic_stringIcNSM_11char_traitsIcEENSM_9allocatorIcEEEENSR_IST_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSX_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_EUlmNS1_5valueEE_Qaa17key_selector_typeISX_Esr3stdE14is_invocable_vIRT0_mS12_EEESZ_OS14_:
10296|   114k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   114k|  value_iterator it = iter;
10297|   114k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   114k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   114k|  std::array<std::uint64_t, seen_words> seen{};
10298|   564k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 456k, False: 108k]
  ------------------
10298|   456k|    raw_json_string key;
10298|   456k|    error_code error;
10298|   456k|    std::size_t idx;
10298|   456k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   456k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 19, False: 456k]
  ------------------
10299|   456k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 30, False: 456k]
  ------------------
10299|   456k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   456k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 122k, False: 333k]
  ------------------
10300|   122k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   122k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   122k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 120k, False: 2.53k]
  ------------------
10300|   120k|        seen_word |= seen_bit;
10300|   120k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   120k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   120k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 402, False: 120k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   120k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 5.99k, False: 114k]
  ------------------
10302|   120k|      }
10302|   122k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   450k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 450k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   450k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 43, False: 450k]
  ------------------
10303|   450k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 177, False: 449k]
  ------------------
10303|   450k|  }
10303|   114k|  return {SUCCESS, matched};
10303|   114k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEXtlNS4_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   456k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   456k|        const char* p = rjs.raw();
96024|   456k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   456k|            std::uint8_t ki = window.window_to_key[
96030|   456k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   456k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 190k, False: 266k]
  ------------------
96032|   266k|            return key_selector_detail::match_window_candidate(
96033|   266k|                p, ki, window, std::make_index_sequence<N>{});
96034|   456k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   456k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm18EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   266k|                       std::index_sequence<Is...>) noexcept {
95865|   266k|  std::size_t result = N;
95866|   266k|  auto try_match = [&](auto Ic) {
95867|   266k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   266k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   266k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   266k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   266k|      result = i;
95872|   266k|    }
95873|   266k|  };
95874|   266k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   266k|  return result;
95876|   266k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm18EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   266k|  auto try_match = [&](auto Ic) {
95867|   266k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   266k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 139k, False: 126k]
  |  Branch (95868:20): [True: 117k, False: 22.4k]
  ------------------
95869|   117k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 116k, False: 454]
  ------------------
95870|   117k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   116k|      result = i;
95872|   116k|    }
95873|   266k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm18EEEbPKcS5_m:
95612|   850k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   850k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   850k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|   850k|    } else if constexpr (MaxKeyLen <= 32) {
95644|   850k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|   850k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|   850k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|   850k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|   850k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|   850k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|   850k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|   850k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|   850k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|   850k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|   850k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   850k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm18EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   266k|  auto try_match = [&](auto Ic) {
95867|   266k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   266k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 126k, False: 139k]
  |  Branch (95868:20): [True: 8.63k, False: 117k]
  ------------------
95869|  8.63k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 6.22k, False: 2.41k]
  ------------------
95870|  8.63k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.22k|      result = i;
95872|  6.22k|    }
95873|   266k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEXtlNS4_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEE4sizeEv:
95952|   576k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc97ELc115ELc115ELc101ELc116EEEEXtlNS6_ILm19EEEtlA19_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115ELc82ELc101ELc113ELc117ELc105ELc114ELc101ELc100EEEEEEEJRKZN8fastgltf6Parser5parseERNSC_8internal10JsonObjectENSC_8CategoryEE3$_0RNSt3__16vectorINSL_12basic_stringIcNSL_11char_traitsIcEENSL_9allocatorIcEEEENSQ_ISS_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSW_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_ENKUlmNS1_5valueEE_clEmS11_:
10308|   120k|      [&](std::size_t i, value v) -> error_code {
10308|   120k|        return key_selector_for_each_detail::dispatch_value(
10308|   120k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   120k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser5parseERNS6_8internal10JsonObjectENS6_8CategoryEE3$_0RNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSJ_ISL_EEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   120k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   120k|  error_code err = SUCCESS;
10304|   120k|  auto try_one = [&](auto Ic) {
10305|   120k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   120k|    if (idx == I) {
10305|   120k|      auto&& h = std::get<I>(handlers);
10305|   120k|      using H = std::remove_reference_t<decltype(h)>;
10305|   120k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   120k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   120k|          err = h(v);
10306|   120k|        } else {
10306|   120k|          h(v);
10306|   120k|        }
10306|   120k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   120k|        err = v.get(h);
10306|   120k|      }
10306|   120k|    }
10306|   120k|  };
10306|   120k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   120k|  return err;
10307|   120k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser5parseERNS6_8internal10JsonObjectENS6_8CategoryEE3$_0RNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSJ_ISL_EEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm0EEEEEDaSR_:
10304|   120k|  auto try_one = [&](auto Ic) {
10305|   120k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   120k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 114k, False: 6.03k]
  ------------------
10305|   114k|      auto&& h = std::get<I>(handlers);
10305|   114k|      using H = std::remove_reference_t<decltype(h)>;
10305|   114k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   114k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   114k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   114k|    }
10306|   120k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS7_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS7_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlSC_tlSD_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEJRNSt3__18optionalINSE_17basic_string_viewIcNSE_11char_traitsIcEEEEEESL_RNSE_12basic_stringIcSI_NSE_9allocatorIcEEEESQ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSR_:
10349|   114k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   114k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 30, False: 114k]
  ------------------
10350|   114k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   114k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS5_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS5_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlSA_tlSB_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEJRNSt3__18optionalINSC_17basic_string_viewIcNSC_11char_traitsIcEEEEEESJ_RNSC_12basic_stringIcSG_NSC_9allocatorIcEEEESO_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10309|   114k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   114k|  using Selector = key_selector<Keys...>;
10309|   114k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   114k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlSB_tlSC_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEEEJRNSt3__18optionalINSE_17basic_string_viewIcNSE_11char_traitsIcEEEEEESL_RNSE_12basic_stringIcSI_NSE_9allocatorIcEEEESQ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_:
10308|   114k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   114k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   114k|  return this->template for_each<Selector>(
10308|   114k|      [&](std::size_t i, value v) -> error_code {
10308|   114k|        return key_selector_for_each_detail::dispatch_value(
10308|   114k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   114k|      });
10309|   114k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlSB_tlSC_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEEEZNS2_8for_eachISD_JRNSt3__18optionalINSF_17basic_string_viewIcNSF_11char_traitsIcEEEEEESM_RNSF_12basic_stringIcSJ_NSF_9allocatorIcEEEESR_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_EUlmNS1_5valueEE_Qaa17key_selector_typeISS_Esr3stdE14is_invocable_vIRT0_mSX_EEESU_OSZ_:
10296|   114k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   114k|  value_iterator it = iter;
10297|   114k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   114k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   114k|  std::array<std::uint64_t, seen_words> seen{};
10298|   305k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 191k, False: 114k]
  ------------------
10298|   191k|    raw_json_string key;
10298|   191k|    error_code error;
10298|   191k|    std::size_t idx;
10298|   191k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   191k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 18, False: 191k]
  ------------------
10299|   191k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 24, False: 191k]
  ------------------
10299|   191k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   191k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 175k, False: 16.2k]
  ------------------
10300|   175k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   175k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   175k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 174k, False: 1.20k]
  ------------------
10300|   174k|        seen_word |= seen_bit;
10300|   174k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   174k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   174k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 149, False: 174k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   174k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 24, False: 174k]
  ------------------
10302|   174k|      }
10302|   175k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   191k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 191k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   191k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 65, False: 191k]
  ------------------
10303|   191k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 85, False: 191k]
  ------------------
10303|   191k|  }
10303|   114k|  return {SUCCESS, matched};
10303|   114k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlS9_tlSA_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   191k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   191k|        const char* p = rjs.raw();
96024|   191k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   191k|            std::uint8_t ki = window.window_to_key[
96030|   191k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   191k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 3.02k, False: 188k]
  ------------------
96032|   188k|            return key_selector_detail::match_window_candidate(
96033|   188k|                p, ki, window, std::make_index_sequence<N>{});
96034|   191k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   191k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm10EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   526k|                       std::index_sequence<Is...>) noexcept {
95865|   526k|  std::size_t result = N;
95866|   526k|  auto try_match = [&](auto Ic) {
95867|   526k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   526k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   526k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   526k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   526k|      result = i;
95872|   526k|    }
95873|   526k|  };
95874|   526k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   526k|  return result;
95876|   526k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm10EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   526k|  auto try_match = [&](auto Ic) {
95867|   526k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   526k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 258k, False: 268k]
  |  Branch (95868:20): [True: 256k, False: 1.83k]
  ------------------
95869|   256k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 255k, False: 996]
  ------------------
95870|   256k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   255k|      result = i;
95872|   255k|    }
95873|   526k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm10EEEbPKcS5_m:
95612|  3.85M|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  3.85M|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  3.85M|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|  3.85M|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|  3.85M|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|  3.85M|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|  3.85M|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|  3.85M|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|  3.85M|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  3.85M|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm10EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   526k|  auto try_match = [&](auto Ic) {
95867|   526k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   526k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 91.6k, False: 435k]
  |  Branch (95868:20): [True: 82.9k, False: 8.64k]
  ------------------
95869|  82.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 79.1k, False: 3.83k]
  ------------------
95870|  82.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  79.1k|      result = i;
95872|  79.1k|    }
95873|   526k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm10EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   526k|  auto try_match = [&](auto Ic) {
95867|   526k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   526k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 107k, False: 419k]
  |  Branch (95868:20): [True: 102k, False: 5.33k]
  ------------------
95869|   102k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 98.5k, False: 3.66k]
  ------------------
95870|   102k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  98.5k|      result = i;
95872|  98.5k|    }
95873|   526k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm10EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   526k|  auto try_match = [&](auto Ic) {
95867|   526k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   526k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 69.3k, False: 457k]
  |  Branch (95868:20): [True: 58.0k, False: 11.3k]
  ------------------
95869|  58.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 53.4k, False: 4.63k]
  ------------------
95870|  58.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  53.4k|      result = i;
95872|  53.4k|    }
95873|   526k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlS9_tlSA_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEE4sizeEv:
95952|   365k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm11EEEtlA11_cLc109ELc105ELc110ELc86ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm10EEEtlA10_cLc99ELc111ELc112ELc121ELc114ELc105ELc103ELc104ELc116EEEEXtlSB_tlSC_Lc103ELc101ELc110ELc101ELc114ELc97ELc116ELc111ELc114EEEEEEEJRNSt3__18optionalINSE_17basic_string_viewIcNSE_11char_traitsIcEEEEEESL_RNSE_12basic_stringIcSI_NSE_9allocatorIcEEEESQ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_ENKUlmNS1_5valueEE_clEmSW_:
10308|   174k|      [&](std::size_t i, value v) -> error_code {
10308|   174k|        return key_selector_for_each_detail::dispatch_value(
10308|   174k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   174k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RNS4_12basic_stringIcS9_NS4_9allocatorIcEEEESH_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   174k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   174k|  error_code err = SUCCESS;
10304|   174k|  auto try_one = [&](auto Ic) {
10305|   174k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   174k|    if (idx == I) {
10305|   174k|      auto&& h = std::get<I>(handlers);
10305|   174k|      using H = std::remove_reference_t<decltype(h)>;
10305|   174k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   174k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   174k|          err = h(v);
10306|   174k|        } else {
10306|   174k|          h(v);
10306|   174k|        }
10306|   174k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   174k|        err = v.get(h);
10306|   174k|      }
10306|   174k|    }
10306|   174k|  };
10306|   174k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   174k|  return err;
10307|   174k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RNS4_12basic_stringIcS9_NS4_9allocatorIcEEEESH_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm0EEEEEDaSK_:
10304|   174k|  auto try_one = [&](auto Ic) {
10305|   174k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   174k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 114k, False: 60.0k]
  ------------------
10305|   114k|      auto&& h = std::get<I>(handlers);
10305|   114k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   114k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   114k|        err = v.get(h);
10306|   114k|      }
10306|   114k|    }
10306|   174k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEEEENS_10error_codeERT_:
89907|   532k| {
89908|   532k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   532k|  if constexpr (custom_deserializable<T, value>) {
89910|   532k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   532k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|   532k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   532k|    return tag_invoke(*this, object, output);
89263|   532k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|   532k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|   532k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|   532k|  static_assert(
97645|   532k|      deserializable<value_type, ValT>,
97646|   532k|      "The specified type inside the optional must itself be deserializable");
97647|   532k|  static_assert(
97648|   532k|      std::is_default_constructible_v<value_type>,
97649|   532k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|   532k|  bool is_null_value;
97653|   532k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|   532k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 5, False: 532k]
  |  |  ------------------
  ------------------
97654|   532k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 2, False: 532k]
  ------------------
97655|      2|    out.reset(); // Set to nullopt
97656|      2|    return SUCCESS;
97657|      2|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|   532k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 532k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|   532k|    out.emplace();
97665|   532k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|   532k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|   532k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 143, False: 532k]
  |  |  ------------------
  ------------------
97667|   532k|    guard.armed = false;
97668|   532k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|   532k|  return SUCCESS;
97676|   532k|}
parser.cpp:_ZN8simdjson8fallback12_GLOBAL__N_111atomparsing8str4ncmpEPKhPKc:
20245|  1.82M|simdjson_inline uint32_t str4ncmp(const uint8_t *src, const char* atom) {
20246|  1.82M|  uint32_t srcval; // we want to avoid unaligned 32-bit loads (undefined in C/C++)
20247|  1.82M|  static_assert(sizeof(uint32_t) <= SIMDJSON_PADDING, "SIMDJSON_PADDING must be larger than 4 bytes");
20248|  1.82M|  std::memcpy(&srcval, src, sizeof(uint32_t));
20249|  1.82M|  return srcval ^ string_to_uint32(atom);
20250|  1.82M|}
parser.cpp:_ZN8simdjson8fallback12_GLOBAL__N_111atomparsing16string_to_uint32EPKc:
20236|  1.82M|simdjson_inline uint32_t string_to_uint32(const char* str) { uint32_t val; std::memcpy(&val, str, sizeof(uint32_t)); return val; }
parser.cpp:_ZN8simdjson8fallback12_GLOBAL__N_113jsoncharutils27is_structural_or_whitespaceEh:
20127|     38|simdjson_inline uint32_t is_structural_or_whitespace(uint8_t c) {
20128|     38|  return internal::structural_or_whitespace[c];
20129|     38|}
_ZN8simdjson7details11reset_guardINSt3__18optionalINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEEED2Ev:
97461|   532k|  ~reset_guard() {
97462|   532k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 143, False: 532k]
  ------------------
97463|   532k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RNS4_12basic_stringIcS9_NS4_9allocatorIcEEEESH_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm1EEEEEDaSK_:
10304|   174k|  auto try_one = [&](auto Ic) {
10305|   174k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   174k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 96, False: 174k]
  ------------------
10305|     96|      auto&& h = std::get<I>(handlers);
10305|     96|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     96|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     96|        err = v.get(h);
10306|     96|      }
10306|     96|    }
10306|   174k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RNS4_12basic_stringIcS9_NS4_9allocatorIcEEEESH_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm2EEEEEDaSK_:
10304|   174k|  auto try_one = [&](auto Ic) {
10305|   174k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   174k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.8k, False: 163k]
  ------------------
10305|  10.8k|      auto&& h = std::get<I>(handlers);
10305|  10.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  10.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.8k|        err = v.get(h);
10306|  10.8k|      }
10306|  10.8k|    }
10306|   174k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS_10error_codeERT_:
89907|  1.43M| {
89908|  1.43M|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  1.43M|  if constexpr (custom_deserializable<T, value>) {
89910|  1.43M|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  1.43M|  }
_ZNK8simdjson15deserialize_tagclINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|  1.43M|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  1.43M|    return tag_invoke(*this, object, output);
89263|  1.43M|  }
_ZN8simdjson10tag_invokeITkNS_8concepts30constructible_from_string_viewENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97397|  1.43M|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(std::is_nothrow_constructible_v<T, std::string_view>) {
97398|  1.43M|  if constexpr (std::is_same_v<T, std::string>) {
97399|       |    // get_string(std::string&) has a faster path for short strings.
97400|  1.43M|    return val.get_string(out);
97401|  1.43M|  }
97402|      0|  std::string_view str;
97403|  1.43M|  SIMDJSON_TRY(val.get_string().get(str));
  ------------------
  |  | 2642|  1.43M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 1.43M]
  |  |  ------------------
  ------------------
97404|  1.43M|  if constexpr (requires { out.assign(str.data(), str.size()); }) {
97405|       |    // Copy straight into out (e.g., std::string): building a temporary and
97406|       |    // move-assigning it is markedly slower.
97407|  1.43M|    out.assign(str.data(), str.size());
97408|       |  } else {
97409|       |    out = T{str};
97410|       |  }
97411|  1.43M|  return SUCCESS;
97412|  1.43M|}
_ZN8simdjson8fallback8ondemand5value10get_stringINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS_10error_codeERT_b:
98881|  1.78M|simdjson_warn_unused simdjson_inline error_code value::get_string(string_type& receiver, bool allow_replacement) noexcept {
98882|  1.78M|  return iter.get_string(receiver, allow_replacement);
98883|  1.78M|}
_ZN8simdjson8fallback8ondemand14value_iterator10get_stringINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS_10error_codeERT_b:
10518|  1.78M|simdjson_warn_unused simdjson_inline error_code value_iterator::get_string(string_type& receiver, bool allow_replacement) noexcept {
10518|  1.78M|  raw_json_string raw;
10519|  1.78M|  SIMDJSON_TRY( get_raw_json_string().get(raw) );
  ------------------
  |  | 2642|  1.78M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 595, False: 1.78M]
  |  |  ------------------
  ------------------
10519|  1.78M|  return _json_iter->unescape(raw, receiver, allow_replacement);
10519|  1.78M|}
_ZN8simdjson8fallback8ondemand13json_iterator8unescapeINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS_10error_codeENS1_15raw_json_stringERT_b:
10239|  2.10M|simdjson_warn_unused simdjson_inline error_code json_iterator::unescape(raw_json_string in, string_type& receiver, bool allow_replacement) noexcept {
10239|       |// The inline capacity of std::string must be known at compile time, hence constexpr std::string.
10239|       |#if SIMDJSON_SUPPORTS_RESIZE_AND_OVERWRITE && SIMDJSON_SUPPORTS_CONSTEXPR_STRING
10239|       |  if constexpr (std::is_same_v<string_type, std::string>) {
10239|       |    // Short strings without escapes go into the string's inline (SSO) buffer with two overlapping
10239|       |    // copies of fixed size. A memcpy of the exact length is much slower here, because its branches
10240|       |    // on the length mispredict. Like parse_string, this reads past the closing quote into the padding.
10240|       |    constexpr size_t sso_capacity = std::string().capacity(); // 22 with libc++, 15 with libstdc++ and MSVC
10240|       |    constexpr size_t chunk = sso_capacity >= 16 ? 16 : 8;
10240|       |    if constexpr (sso_capacity >= chunk && sso_capacity <= 2 * chunk) {
10240|       |      const uint8_t *const start = reinterpret_cast<const uint8_t *>(in.raw());
10240|       |      uint8_t scratch[backslash_and_quote::BYTES_PROCESSED];
10240|       |      for (size_t offset = 0; offset <= sso_capacity; offset += backslash_and_quote::BYTES_PROCESSED) {
10240|       |        auto bs_quote = backslash_and_quote{}.copy_and_find(start + offset, scratch);
10240|       |        if (bs_quote.has_quote_first()) {
10240|       |          const size_t length = offset + size_t(bs_quote.quote_index());
10241|       |          if (length > sso_capacity) { break; }
10241|       |          receiver.resize_and_overwrite(sso_capacity, [&](char *dst, size_t) noexcept {
10241|       |            std::memcpy(dst, start, chunk);
10241|       |            std::memcpy(dst + sso_capacity - chunk, start + sso_capacity - chunk, chunk);
10241|       |            return length;
10241|       |          });
10241|       |          return SUCCESS;
10241|       |        }
10241|       |        if (bs_quote.has_backslash()) { break; }
10241|       |      }
10242|       |    }
10242|       |  }
10242|       |#endif // SIMDJSON_SUPPORTS_RESIZE_AND_OVERWRITE && SIMDJSON_SUPPORTS_CONSTEXPR_STRING
10242|       |
10242|       |  // Anything else: unescape into the string buffer, copy it out, then give the buffer space back.
10242|  2.10M|  auto saved_string_buf_loc = _string_buf_loc;
10242|  2.10M|  std::string_view content;
10242|  2.10M|  SIMDJSON_TRY( unescape(in, allow_replacement).get(content) );
  ------------------
  |  | 2642|  2.10M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1.49k, False: 2.09M]
  |  |  ------------------
  ------------------
10242|  2.09M|  internal::assign_utf8(receiver, content);
10242|  2.09M|  _string_buf_loc = saved_string_buf_loc;
10243|  2.09M|  return SUCCESS;
10243|  2.10M|}
_ZN8simdjson8internal11assign_utf8INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEvRT_NS2_17basic_string_viewIcS5_EE:
 3641|  2.09M|simdjson_inline void assign_utf8(string_type &receiver, std::string_view content) noexcept {
 3642|  2.09M|  receiver = content;
 3643|  2.09M|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RNS4_12basic_stringIcS9_NS4_9allocatorIcEEEESH_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm3EEEEEDaSK_:
10304|   174k|  auto try_one = [&](auto Ic) {
10305|   174k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   174k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 49.0k, False: 125k]
  ------------------
10305|  49.0k|      auto&& h = std::get<I>(handlers);
10305|  49.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  49.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  49.0k|        err = v.get(h);
10306|  49.0k|      }
10306|  49.0k|    }
10306|   174k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser5parseERNS6_8internal10JsonObjectENS6_8CategoryEE3$_0RNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSJ_ISL_EEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm1EEEEEDaSR_:
10304|   120k|  auto try_one = [&](auto Ic) {
10305|   120k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   120k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 6.03k, False: 114k]
  ------------------
10305|  6.03k|      auto&& h = std::get<I>(handlers);
10305|  6.03k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  6.03k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  6.03k|        err = v.get(h);
10306|  6.03k|      }
10306|  6.03k|    }
10306|   120k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS9_ISB_EEEEEENS_10error_codeERT_:
89907|  35.3k| {
89908|  35.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  35.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  35.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  35.3k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSF_RSC_:
89261|  35.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  35.3k|    return tag_invoke(*this, object, output);
89263|  35.3k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|  35.3k|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|  35.3k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|  35.3k|  static_assert(
97478|  35.3k|      deserializable<value_type, ValT>,
97479|  35.3k|      "The specified type inside the container must itself be deserializable");
97480|  35.3k|  static_assert(
97481|  35.3k|      std::is_default_constructible_v<value_type>,
97482|  35.3k|      "The specified type inside the container must be default constructible.");
97483|  35.3k|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|  35.3k|  } else {
97487|  35.3k|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|  35.3k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 12, False: 35.3k]
  |  |  ------------------
  ------------------
97488|  35.3k|  }
97489|       |
97490|  35.3k|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|  35.3k|    struct scratch_space {
97499|  35.3k|      std::vector<value_type> elements{};
97500|  35.3k|      bool busy{false};
97501|  35.3k|    };
97502|  35.3k|    static thread_local scratch_space scratch;
97503|  35.3k|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 35.3k, False: 12]
  |  Branch (97503:26): [True: 35.3k, False: 0]
  ------------------
97504|  35.3k|      struct release_scratch {
97505|  35.3k|        scratch_space &s;
97506|  35.3k|        T &out;
97507|  35.3k|        size_t parsed{0};
97508|  35.3k|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|  35.3k|        simdjson_never_inline void keep_parsed() noexcept {
97512|  35.3k|          s.elements.resize(parsed);
97513|  35.3k|          out.swap(s.elements);
97514|  35.3k|        }
97515|  35.3k|        ~release_scratch() {
97516|  35.3k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|  35.3k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  35.3k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|  35.3k|          s.busy = false;
97521|  35.3k|        }
97522|  35.3k|      } release{scratch, out};
97523|  35.3k|      scratch.busy = true;
97524|   341k|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 341k, False: 35.3k]
  ------------------
97525|   341k|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|   341k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 26, False: 341k]
  |  |  ------------------
  ------------------
97526|   341k|        release.parsed++;
97527|   341k|      }
97528|  35.3k|      out.reserve(release.parsed);
97529|  35.3k|      release.complete = true;
97530|   341k|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 341k, False: 35.3k]
  ------------------
97531|  35.3k|      return SUCCESS;
97532|  35.3k|    }
97533|  35.3k|  }
97534|  35.3k|  if constexpr (details::deserialize_in_place<T>) {
97535|  35.3k|    for (auto v : arr) {
  ------------------
  |  Branch (97535:17): [True: 0, False: 35.3k]
  ------------------
97536|      0|      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|      0|      details::pop_back_guard<T> guard{out};
97540|      0|      SIMDJSON_TRY(v.get<value_type>(slot));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97541|      0|      guard.armed = false;
97542|      0|    }
97543|       |  } else {
97544|       |    for (auto v : arr) {
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|       |      value_type temp;
97548|       |      if (auto const err = v.get<value_type>(temp); err) {
97549|       |        return err;
97550|       |      }
97551|       |      concepts::emplace_one(out, std::move(temp));
97552|       |    }
97553|       |  }
97554|  35.3k|  return SUCCESS;
97555|  35.3k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEENS_10error_codeERT_:
99449|   341k|{
99450|   341k|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 10, False: 341k]
  ------------------
99451|   341k|  return first.get<T>(out);
99452|   341k|}
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|  35.3k|        ~release_scratch() {
97516|  35.3k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|  35.3k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 26, False: 35.3k]
  |  |  ------------------
  ------------------
97517|  35.3k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  35.3k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 5, False: 35.3k]
  ------------------
97520|  35.3k|          s.busy = false;
97521|  35.3k|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS7_IS9_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|     26|        simdjson_never_inline void keep_parsed() noexcept {
97512|     26|          s.elements.resize(parsed);
97513|     26|          out.swap(s.elements);
97514|     26|        }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE10get_stringINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEENS_10error_codeERT_b:
99406|   349k|simdjson_inline error_code simdjson_result<fallback::ondemand::value>::get_string(string_type& receiver, bool allow_replacement) noexcept {
99407|   349k|  if (error()) { return error(); }
  ------------------
  |  Branch (99407:7): [True: 43, False: 349k]
  ------------------
99408|   349k|  return first.get_string(receiver, allow_replacement);
99409|   349k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS7_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS8_tlS9_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS7_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS7_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS7_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSG_tlSH_Lc109ELc105ELc110EEEEXtlNS7_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSE_tlSF_Lc110ELc97ELc109ELc101EEEEXtlSI_tlSJ_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSK_15flagged_storageImEEEERmRNSt3__18optionalINSK_13ComponentTypeEEERbSP_RNSS_INSK_12AccessorTypeEEERNSK_21AccessorBoundsNumbersES11_RNSL_INSK_14SparseAccessorENSK_13boxed_storageIS12_NSR_9allocatorIS12_EEEEEERNSR_12basic_stringIcNSR_11char_traitsIcEENS14_IcEEEERKZNSK_10readExtrasERKNSK_20ParserInternalConfigEmNSK_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1N_:
10349|   324k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   324k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 47, False: 324k]
  ------------------
10350|   324k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   324k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS6_tlS7_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS5_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS6_tlS7_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS5_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS5_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSE_tlSF_Lc109ELc105ELc110EEEEXtlNS5_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSC_tlSD_Lc110ELc97ELc109ELc101EEEEXtlSG_tlSH_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSI_15flagged_storageImEEEERmRNSt3__18optionalINSI_13ComponentTypeEEERbSN_RNSQ_INSI_12AccessorTypeEEERNSI_21AccessorBoundsNumbersESZ_RNSJ_INSI_14SparseAccessorENSI_13boxed_storageIS10_NSP_9allocatorIS10_EEEEEERNSP_12basic_stringIcNSP_11char_traitsIcEENS12_IcEEEERKZNSI_10readExtrasERKNSI_20ParserInternalConfigEmNSI_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1L_:
10309|   324k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   324k|  using Selector = key_selector<Keys...>;
10309|   324k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   324k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSF_tlSG_Lc109ELc105ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSD_tlSE_Lc110ELc97ELc109ELc101EEEEXtlSH_tlSI_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSK_15flagged_storageImEEEERmRNSt3__18optionalINSK_13ComponentTypeEEERbSP_RNSS_INSK_12AccessorTypeEEERNSK_21AccessorBoundsNumbersES11_RNSL_INSK_14SparseAccessorENSK_13boxed_storageIS12_NSR_9allocatorIS12_EEEEEERNSR_12basic_stringIcNSR_11char_traitsIcEENS14_IcEEEERKZNSK_10readExtrasERKNSK_20ParserInternalConfigEmNSK_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1N_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1O_:
10308|   324k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   324k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   324k|  return this->template for_each<Selector>(
10308|   324k|      [&](std::size_t i, value v) -> error_code {
10308|   324k|        return key_selector_for_each_detail::dispatch_value(
10308|   324k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   324k|      });
10309|   324k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSF_tlSG_Lc109ELc105ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSD_tlSE_Lc110ELc97ELc109ELc101EEEEXtlSH_tlSI_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISJ_JRN8fastgltf14basic_optionalImNSL_15flagged_storageImEEEERmRNSt3__18optionalINSL_13ComponentTypeEEERbSQ_RNST_INSL_12AccessorTypeEEERNSL_21AccessorBoundsNumbersES12_RNSM_INSL_14SparseAccessorENSL_13boxed_storageIS13_NSS_9allocatorIS13_EEEEEERNSS_12basic_stringIcNSS_11char_traitsIcEENS15_IcEEEERKZNSL_10readExtrasERKNSL_20ParserInternalConfigEmNSL_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1O_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1P_EUlmS1K_E_Qaa17key_selector_typeIS1O_Esr3stdE14is_invocable_vIRT0_mS1K_EEES1Q_OS1U_:
10296|   324k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   324k|  value_iterator it = iter;
10297|   324k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   324k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   324k|  std::array<std::uint64_t, seen_words> seen{};
10298|  2.23M|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 1.90M, False: 324k]
  ------------------
10298|  1.90M|    raw_json_string key;
10298|  1.90M|    error_code error;
10298|  1.90M|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|  1.90M|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|  1.90M|      std::size_t key_len;
10299|  1.90M|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 45, False: 1.90M]
  ------------------
10299|  1.90M|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 31, False: 1.90M]
  ------------------
10300|  1.90M|      idx = Selector::match_raw(key.raw(), key_len);
10300|  1.90M|    }
10300|  1.90M|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 1.78M, False: 128k]
  ------------------
10300|  1.78M|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  1.78M|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  1.78M|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 1.73M, False: 47.6k]
  ------------------
10300|  1.73M|        seen_word |= seen_bit;
10300|  1.73M|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  1.73M|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  1.73M|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 2.24k, False: 1.73M]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  1.73M|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 1.73M]
  ------------------
10302|  1.73M|      }
10302|  1.78M|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  1.90M|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 1.90M]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  1.90M|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 27, False: 1.90M]
  ------------------
10303|  1.90M|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 101, False: 1.90M]
  ------------------
10303|  1.90M|  }
10303|   324k|  return {SUCCESS, matched};
10303|   324k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS4_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS5_tlS6_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS4_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS4_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSD_tlSE_Lc109ELc105ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSB_tlSC_Lc110ELc97ELc109ELc101EEEEXtlSF_tlSG_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawEPKcm:
95964|  1.90M|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|  1.90M|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 2.22k, False: 1.90M]
  |  Branch (95965:25): [True: 49.1k, False: 1.85M]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|  1.85M|        std::size_t slot;
95981|  1.85M|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 1.85M]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|  1.85M|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|  1.85M|            std::size_t h = len;
95996|  3.71M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 1.85M, False: 1.85M]
  ------------------
95997|  1.85M|                std::uint8_t pos = phf.positions[i];
95998|  1.85M|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 1.85M]
  ------------------
95999|  1.85M|                                  ? (len - std::size_t{1})
96000|  1.85M|                                  : static_cast<std::size_t>(pos);
96001|  1.85M|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 1.85M, False: 1.57k]
  ------------------
96002|  1.85M|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|  1.85M|                }
96004|  1.85M|            }
96005|  1.85M|            slot = h & (table_size - 1);
96006|  1.85M|        }
96007|       |
96008|  1.85M|        std::uint8_t ki = phf.slot_to_key[slot];
96009|  1.85M|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 4.63k, False: 1.85M]
  ------------------
96010|  1.85M|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 14.2k, False: 1.83M]
  ------------------
96011|  1.83M|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 58.4k, False: 1.78M]
  ------------------
96012|  1.83M|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|  1.78M|        return ki;
96014|  1.83M|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm13EEEbPKcS5_m:
95612|  2.14M|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  2.14M|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  2.14M|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|  2.14M|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|  2.14M|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|  2.14M|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|  2.14M|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|  2.14M|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|  2.14M|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  2.14M|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS4_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS5_tlS6_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS4_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS4_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSD_tlSE_Lc109ELc105ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSB_tlSC_Lc110ELc97ELc109ELc101EEEEXtlSF_tlSG_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|  3.64M|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc110ELc111ELc114ELc109ELc97ELc108ELc105ELc122ELc101ELc100EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc109ELc97ELc120EEEEXtlSF_tlSG_Lc109ELc105ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc97ELc114ELc115ELc101EEEEXtlSD_tlSE_Lc110ELc97ELc109ELc101EEEEXtlSH_tlSI_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSK_15flagged_storageImEEEERmRNSt3__18optionalINSK_13ComponentTypeEEERbSP_RNSS_INSK_12AccessorTypeEEERNSK_21AccessorBoundsNumbersES11_RNSL_INSK_14SparseAccessorENSK_13boxed_storageIS12_NSR_9allocatorIS12_EEEEEERNSR_12basic_stringIcNSR_11char_traitsIcEENS14_IcEEEERKZNSK_10readExtrasERKNSK_20ParserInternalConfigEmNSK_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1N_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1O_ENKUlmS1J_E_clEmS1J_:
10308|  1.73M|      [&](std::size_t i, value v) -> error_code {
10308|  1.73M|        return key_selector_for_each_detail::dispatch_value(
10308|  1.73M|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  1.73M|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  1.73M|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  1.73M|  error_code err = SUCCESS;
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
10305|  1.73M|      auto&& h = std::get<I>(handlers);
10305|  1.73M|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.73M|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.73M|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.73M|          err = h(v);
10306|  1.73M|        } else {
10306|  1.73M|          h(v);
10306|  1.73M|        }
10306|  1.73M|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  1.73M|        err = v.get(h);
10306|  1.73M|      }
10306|  1.73M|    }
10306|  1.73M|  };
10306|  1.73M|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  1.73M|  return err;
10307|  1.73M|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm0EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 218k, False: 1.51M]
  ------------------
10305|   218k|      auto&& h = std::get<I>(handlers);
10305|   218k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   218k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   218k|        err = v.get(h);
10306|   218k|      }
10306|   218k|    }
10306|  1.73M|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14basic_optionalImNS4_15flagged_storageImEEEEEENS_10error_codeERT_:
89907|  3.20M| {
89908|  3.20M|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  3.20M|  if constexpr (custom_deserializable<T, value>) {
89910|  3.20M|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  3.20M|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14basic_optionalImNS2_15flagged_storageImEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  3.20M|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  3.20M|    return tag_invoke(*this, object, output);
89263|  3.20M|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm1EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 94.5k, False: 1.63M]
  ------------------
10305|  94.5k|      auto&& h = std::get<I>(handlers);
10305|  94.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  94.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  94.5k|        err = v.get(h);
10306|  94.5k|      }
10306|  94.5k|    }
10306|  1.73M|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm2EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 320k, False: 1.41M]
  ------------------
10305|   320k|      auto&& h = std::get<I>(handlers);
10305|   320k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   320k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   320k|        err = v.get(h);
10306|   320k|      }
10306|   320k|    }
10306|  1.73M|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf13ComponentTypeEEEEENS_10error_codeERT_:
89907|   350k| {
89908|   350k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   350k|  if constexpr (custom_deserializable<T, value>) {
89910|   350k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   350k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf13ComponentTypeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|   350k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   350k|    return tag_invoke(*this, object, output);
89263|   350k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf13ComponentTypeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|   350k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|   350k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|   350k|  static_assert(
97645|   350k|      deserializable<value_type, ValT>,
97646|   350k|      "The specified type inside the optional must itself be deserializable");
97647|   350k|  static_assert(
97648|   350k|      std::is_default_constructible_v<value_type>,
97649|   350k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|   350k|  bool is_null_value;
97653|   350k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|   350k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 350k]
  |  |  ------------------
  ------------------
97654|   350k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 350k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|   350k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 350k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|   350k|    out.emplace();
97665|   350k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|   350k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|   350k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 165, False: 350k]
  |  |  ------------------
  ------------------
97667|   350k|    guard.armed = false;
97668|   350k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|   350k|  return SUCCESS;
97676|   350k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf13ComponentTypeEEENS_10error_codeERT_:
89907|   350k| {
89908|   350k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   350k|  if constexpr (custom_deserializable<T, value>) {
89910|   350k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   350k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf13ComponentTypeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|   350k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   350k|    return tag_invoke(*this, object, output);
89263|   350k|  }
_ZN8simdjson15simdjson_resultItEC2ENS_10error_codeE:
 3886|    145|    : internal::simdjson_result_base<T>(error) {}
_ZN8simdjson8internal20simdjson_result_baseItEC2ENS_10error_codeE:
 3817|    145|    : simdjson_result_base(T{}, error) {}
_ZN8simdjson8internal20simdjson_result_baseItEC2EOtNS_10error_codeE:
 3814|   350k|    : std::pair<T, error_code>(std::forward<T>(value), error) {}
_ZN8simdjson15simdjson_resultItEC2EOt:
 3889|   350k|    : internal::simdjson_result_base<T>(std::forward<T>(value)) {}
_ZN8simdjson8internal20simdjson_result_baseItEC2EOt:
 3820|   350k|    : simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf13ComponentTypeEEEED2Ev:
97461|   350k|  ~reset_guard() {
97462|   350k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 165, False: 350k]
  ------------------
97463|   350k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm3EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 11.7k, False: 1.72M]
  ------------------
10305|  11.7k|      auto&& h = std::get<I>(handlers);
10305|  11.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  11.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  11.7k|        err = v.get(h);
10306|  11.7k|      }
10306|  11.7k|    }
10306|  1.73M|  };
parser.cpp:_ZN8simdjson8fallback12_GLOBAL__N_113jsoncharutils31is_not_structural_or_whitespaceEh:
20123|  5.19M|simdjson_inline uint32_t is_not_structural_or_whitespace(uint8_t c) {
20124|  5.19M|  return internal::structural_or_whitespace_negated[c];
20125|  5.19M|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm4EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 320k, False: 1.41M]
  ------------------
10305|   320k|      auto&& h = std::get<I>(handlers);
10305|   320k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   320k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   320k|        err = v.get(h);
10306|   320k|      }
10306|   320k|    }
10306|  1.73M|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm5EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 320k, False: 1.41M]
  ------------------
10305|   320k|      auto&& h = std::get<I>(handlers);
10305|   320k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   320k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   320k|        err = v.get(h);
10306|   320k|      }
10306|   320k|    }
10306|  1.73M|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf12AccessorTypeEEEEENS_10error_codeERT_:
89907|   320k| {
89908|   320k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   320k|  if constexpr (custom_deserializable<T, value>) {
89910|   320k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   320k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf12AccessorTypeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|   320k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   320k|    return tag_invoke(*this, object, output);
89263|   320k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf12AccessorTypeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|   320k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|   320k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|   320k|  static_assert(
97645|   320k|      deserializable<value_type, ValT>,
97646|   320k|      "The specified type inside the optional must itself be deserializable");
97647|   320k|  static_assert(
97648|   320k|      std::is_default_constructible_v<value_type>,
97649|   320k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|   320k|  bool is_null_value;
97653|   320k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|   320k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 4, False: 320k]
  |  |  ------------------
  ------------------
97654|   320k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 320k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|   320k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 320k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|   320k|    out.emplace();
97665|   320k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|   320k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|   320k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 56, False: 320k]
  |  |  ------------------
  ------------------
97667|   320k|    guard.armed = false;
97668|   320k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|   320k|  return SUCCESS;
97676|   320k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf12AccessorTypeEEENS_10error_codeERT_:
89907|   320k| {
89908|   320k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   320k|  if constexpr (custom_deserializable<T, value>) {
89910|   320k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   320k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf12AccessorTypeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|   320k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   320k|    return tag_invoke(*this, object, output);
89263|   320k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc83ELc67ELc65ELc76ELc65ELc82EEEEXtlNS4_ILm5EEEtlA5_cLc86ELc69ELc67ELc50EEEEXtlS7_tlS8_Lc86ELc69ELc67ELc51EEEEXtlS7_tlS8_Lc86ELc69ELc67ELc52EEEEXtlS7_tlS8_Lc77ELc65ELc84ELc50EEEEXtlS7_tlS8_Lc77ELc65ELc84ELc51EEEEXtlS7_tlS8_Lc77ELc65ELc84ELc52EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   320k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   320k|        const char* p = rjs.raw();
96024|   320k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   320k|            std::uint8_t ki = window.window_to_key[
96030|   320k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   320k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 15, False: 320k]
  ------------------
96032|   320k|            return key_selector_detail::match_window_candidate(
96033|   320k|                p, ki, window, std::make_index_sequence<N>{});
96034|   320k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   320k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   320k|                       std::index_sequence<Is...>) noexcept {
95865|   320k|  std::size_t result = N;
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   320k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   320k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   320k|      result = i;
95872|   320k|    }
95873|   320k|  };
95874|   320k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   320k|  return result;
95876|   320k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 92.0k, False: 228k]
  |  Branch (95868:20): [True: 92.0k, False: 2]
  ------------------
95869|  92.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 92.0k, False: 1]
  ------------------
95870|  92.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  92.0k|      result = i;
95872|  92.0k|    }
95873|   320k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm6EEEbPKcS5_m:
95612|   460k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   460k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   460k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   460k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   460k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   460k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   460k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   460k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   460k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   460k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 31.7k, False: 288k]
  |  Branch (95868:20): [True: 31.7k, False: 2]
  ------------------
95869|  31.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 31.7k, False: 1]
  ------------------
95870|  31.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  31.7k|      result = i;
95872|  31.7k|    }
95873|   320k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 149k, False: 171k]
  |  Branch (95868:20): [True: 149k, False: 1]
  ------------------
95869|   149k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 149k, False: 2]
  ------------------
95870|   149k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   149k|      result = i;
95872|   149k|    }
95873|   320k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 40.8k, False: 279k]
  |  Branch (95868:20): [True: 40.8k, False: 1]
  ------------------
95869|  40.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 40.8k, False: 1]
  ------------------
95870|  40.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  40.8k|      result = i;
95872|  40.8k|    }
95873|   320k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 423, False: 320k]
  |  Branch (95868:20): [True: 422, False: 1]
  ------------------
95869|    422|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 421, False: 1]
  ------------------
95870|    422|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    421|      result = i;
95872|    421|    }
95873|   320k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 4.51k, False: 316k]
  |  Branch (95868:20): [True: 4.51k, False: 1]
  ------------------
95869|  4.51k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.51k, False: 1]
  ------------------
95870|  4.51k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.51k|      result = i;
95872|  4.51k|    }
95873|   320k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm6EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm6EEEEEDaSD_:
95866|   320k|  auto try_match = [&](auto Ic) {
95867|   320k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   320k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2.08k, False: 318k]
  |  Branch (95868:20): [True: 2.08k, False: 1]
  ------------------
95869|  2.08k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 2.08k, False: 1]
  ------------------
95870|  2.08k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  2.08k|      result = i;
95872|  2.08k|    }
95873|   320k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf12AccessorTypeEEEED2Ev:
97461|   320k|  ~reset_guard() {
97462|   320k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 56, False: 320k]
  ------------------
97463|   320k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm6EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 182k, False: 1.55M]
  ------------------
10305|   182k|      auto&& h = std::get<I>(handlers);
10305|   182k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   182k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   182k|        err = v.get(h);
10306|   182k|      }
10306|   182k|    }
10306|  1.73M|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf21AccessorBoundsNumbersEEENS_10error_codeERT_:
89907|   362k| {
89908|   362k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   362k|  if constexpr (custom_deserializable<T, value>) {
89910|   362k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   362k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf21AccessorBoundsNumbersEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|   362k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   362k|    return tag_invoke(*this, object, output);
89263|   362k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6numberEEC2ENS_10error_codeE:
 3886|  1.44k|    : internal::simdjson_result_base<T>(error) {}
_ZN8simdjson8internal20simdjson_result_baseINS_8fallback8ondemand6numberEEC2ENS_10error_codeE:
 3817|  1.44k|    : simdjson_result_base(T{}, error) {}
_ZN8simdjson8internal20simdjson_result_baseINS_8fallback8ondemand6numberEEC2EOS4_NS_10error_codeE:
 3814|   950k|    : std::pair<T, error_code>(std::forward<T>(value), error) {}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_129parse_decimal_after_separatorEPKhRS4_RmRl:
21322|   682k|simdjson_warn_unused simdjson_inline error_code parse_decimal_after_separator(simdjson_unused const uint8_t *const src, const uint8_t *&p, uint64_t &i, int64_t &exponent) {
21323|       |  // we continue with the fiction that we have an integer. If the
21324|       |  // floating point number is representable as x * 10^z for some integer
21325|       |  // z that fits in 53 bits, then we will be able to convert back the
21326|       |  // the integer into a float in a lossless manner.
21327|   682k|  const uint8_t *const first_after_period = p;
21328|   682k|  parse_fraction_digits(p, i);
21329|   682k|  exponent = first_after_period - p;
21330|       |  // Decimal without digits (123.) is illegal
21331|   682k|  if (exponent == 0) {
  ------------------
  |  Branch (21331:7): [True: 34, False: 682k]
  ------------------
21332|     34|    return INVALID_NUMBER(src);
  ------------------
  |  |20672|     34|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
21333|     34|  }
21334|   682k|  return SUCCESS;
21335|   682k|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_121parse_fraction_digitsERPKhRm:
21272|  3.84M|simdjson_inline void parse_fraction_digits(const uint8_t *&p, uint64_t &i) {
21273|  3.84M|#ifdef SIMDJSON_SWAR_NUMBER_PARSING
21274|  3.84M|#if SIMDJSON_SWAR_NUMBER_PARSING
21275|  7.61M|  while (is_made_of_eight_digits_fast(p)) {
  ------------------
  |  Branch (21275:10): [True: 3.77M, False: 3.84M]
  ------------------
21276|  3.77M|    i = i * 100000000 + parse_eight_digits_unrolled(p);
21277|  3.77M|    p += 8;
21278|  3.77M|  }
21279|       |  // A 4 to 7 digit remainder is the common case once the blocks of eight are
21280|       |  // gone: 15 fraction digits leave 7, and 17 leave 1 after two blocks.
21281|  3.84M|  if (is_made_of_four_digits_fast(p)) {
  ------------------
  |  Branch (21281:7): [True: 375k, False: 3.47M]
  ------------------
21282|   375k|    i = i * 10000 + parse_four_digits_unrolled(p);
21283|   375k|    p += 4;
21284|   375k|  }
21285|  3.84M|#endif // SIMDJSON_SWAR_NUMBER_PARSING
21286|  3.84M|#endif // #ifdef SIMDJSON_SWAR_NUMBER_PARSING
21287|  7.84M|  while (parse_digit(*p, i)) { p++; }
  ------------------
  |  Branch (21287:10): [True: 4.00M, False: 3.84M]
  ------------------
21288|  3.84M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_114parse_exponentEPKhRS4_Rl:
21337|  42.1k|simdjson_warn_unused simdjson_inline error_code parse_exponent(simdjson_unused const uint8_t *const src, const uint8_t *&p, int64_t &exponent) {
21338|       |  // Exp Sign: -123.456e[-]78
21339|  42.1k|  bool neg_exp = ('-' == *p);
21340|  42.1k|  if (neg_exp || '+' == *p) { p++; } // Skip + as well
  ------------------
  |  Branch (21340:7): [True: 36.9k, False: 5.25k]
  |  Branch (21340:18): [True: 2.89k, False: 2.36k]
  ------------------
21341|       |
21342|       |  // Exponent: -123.456e-[78]
21343|  42.1k|  auto start_exp = p;
21344|  42.1k|  int64_t exp_number = 0;
21345|   144k|  while (parse_digit(*p, exp_number)) { ++p; }
  ------------------
  |  Branch (21345:10): [True: 102k, False: 42.1k]
  ------------------
21346|       |  // It is possible for parse_digit to overflow.
21347|       |  // In particular, it could overflow to INT64_MIN, and we cannot do - INT64_MIN.
21348|       |  // Thus we *must* check for possible overflow before we negate exp_number.
21349|       |
21350|       |  // Performance notes: it may seem like combining the two "simdjson_unlikely checks" below into
21351|       |  // a single simdjson_unlikely path would be faster. The reasoning is sound, but the compiler may
21352|       |  // not oblige and may, in fact, generate two distinct paths in any case. It might be
21353|       |  // possible to do uint64_t(p - start_exp - 1) >= 18 but it could end up trading off
21354|       |  // instructions for a simdjson_likely branch, an unconclusive gain.
21355|       |
21356|       |  // If there were no digits, it's an error.
21357|  42.1k|  if (simdjson_unlikely(p == start_exp)) {
  ------------------
  |  |  767|  42.1k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 40, False: 42.1k]
  |  |  ------------------
  ------------------
21358|     40|    return INVALID_NUMBER(src);
  ------------------
  |  |20672|     40|#define INVALID_NUMBER(SRC) (NUMBER_ERROR)
  ------------------
21359|     40|  }
21360|       |  // We have a valid positive exponent in exp_number at this point, except that
21361|       |  // it may have overflowed.
21362|       |
21363|       |  // If there were more than 18 digits, we may have overflowed the integer. We have to do
21364|       |  // something!!!!
21365|  42.1k|  if (simdjson_unlikely(p > start_exp+18)) {
  ------------------
  |  |  767|  42.1k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 187, False: 41.9k]
  |  |  ------------------
  ------------------
21366|       |    // Skip leading zeroes: 1e000000000000000000001 is technically valid and does not overflow
21367|  2.70k|    while (*start_exp == '0') { start_exp++; }
  ------------------
  |  Branch (21367:12): [True: 2.52k, False: 187]
  ------------------
21368|       |    // 19 digits could overflow int64_t and is kind of absurd anyway. We don't
21369|       |    // support exponents smaller than -999,999,999,999,999,999 and bigger
21370|       |    // than 999,999,999,999,999,999.
21371|       |    // We can truncate.
21372|       |    // Note that 999999999999999999 is assuredly too large. The maximal ieee64 value before
21373|       |    // infinity is ~1.8e308. The smallest subnormal is ~5e-324. So, actually, we could
21374|       |    // truncate at 324.
21375|       |    // Note that there is no reason to fail per se at this point in time.
21376|       |    // E.g., 0e999999999999999999999 is a fine number.
21377|    187|    if (p > start_exp+18) { exp_number = 999999999999999999; }
  ------------------
  |  Branch (21377:9): [True: 97, False: 90]
  ------------------
21378|    187|  }
21379|       |  // At this point, we know that exp_number is a sane, positive, signed integer.
21380|       |  // It is <= 999,999,999,999,999,999. As long as 'exponent' is in
21381|       |  // [-8223372036854775808, 8223372036854775808], we won't overflow. Because 'exponent'
21382|       |  // is bounded in magnitude by the size of the JSON input, we are fine in this universe.
21383|       |  // To sum it up: the next line should never overflow.
21384|  42.1k|  exponent += (neg_exp ? -exp_number : exp_number);
  ------------------
  |  Branch (21384:16): [True: 36.9k, False: 5.22k]
  ------------------
21385|  42.1k|  return SUCCESS;
21386|  42.1k|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_111parse_digitIlEEbhRT_:
21248|   144k|simdjson_inline bool parse_digit(const uint8_t c, I &i) {
21249|   144k|  const uint8_t digit = static_cast<uint8_t>(c - '0');
21250|   144k|  if (digit > 9) {
  ------------------
  |  Branch (21250:7): [True: 42.1k, False: 102k]
  ------------------
21251|  42.1k|    return false;
21252|  42.1k|  }
21253|       |  // PERF NOTE: multiplication by 10 is cheaper than arbitrary integer multiplication
21254|   102k|  i = 10 * i + digit; // might overflow, we will handle the overflow later
21255|   102k|  return true;
21256|   144k|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_118significant_digitsEPKhm:
21405|  40.3k|simdjson_inline size_t significant_digits(const uint8_t * start_digits, size_t digit_count) {
21406|       |  // It is possible that the integer had an overflow.
21407|       |  // We have to handle the case where we have 0.0000somenumber.
21408|  40.3k|  const uint8_t *start = start_digits;
21409|   164k|  while ((*start == '0') || (*start == '.')) { ++start; }
  ------------------
  |  Branch (21409:10): [True: 100k, False: 63.6k]
  |  Branch (21409:29): [True: 23.3k, False: 40.3k]
  ------------------
21410|       |  // we over-decrement by one when there is a '.'
21411|  40.3k|  return digit_count - size_t(start - start_digits);
21412|  40.3k|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_116compute_float_64ElmbRd:
20711|   674k|simdjson_inline bool compute_float_64(int64_t power, uint64_t i, bool negative, double &d) {
20712|       |  // we start with a fast path
20713|       |  // It was described in
20714|       |  // Clinger WD. How to read floating point numbers accurately.
20715|       |  // ACM SIGPLAN Notices. 1990
20716|       |#ifndef FLT_EVAL_METHOD
20717|       |#error "FLT_EVAL_METHOD should be defined, please include cfloat."
20718|       |#endif
20719|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
20720|       |  // We cannot be certain that x/y is rounded to nearest.
20721|       |  if (0 <= power && power <= 22 && i <= 9007199254740991)
20722|       |#else
20723|   674k|  if (-22 <= power && power <= 22 && i <= 9007199254740991)
  ------------------
  |  Branch (20723:7): [True: 665k, False: 9.12k]
  |  Branch (20723:23): [True: 663k, False: 1.77k]
  |  Branch (20723:38): [True: 548k, False: 115k]
  ------------------
20724|   548k|#endif
20725|   548k|  {
20726|       |    // convert the integer into a double. This is lossless since
20727|       |    // 0 <= i <= 2^53 - 1.
20728|   548k|    d = double(i);
20729|       |    //
20730|       |    // The general idea is as follows.
20731|       |    // If 0 <= s < 2^53 and if 10^0 <= p <= 10^22 then
20732|       |    // 1) Both s and p can be represented exactly as 64-bit floating-point
20733|       |    // values
20734|       |    // (binary64).
20735|       |    // 2) Because s and p can be represented exactly as floating-point values,
20736|       |    // then s * p
20737|       |    // and s / p will produce correctly rounded values.
20738|       |    //
20739|   548k|    if (power < 0) {
  ------------------
  |  Branch (20739:9): [True: 546k, False: 1.67k]
  ------------------
20740|   546k|      d = d / simdjson::internal::power_of_ten[-power];
20741|   546k|    } else {
20742|  1.67k|      d = d * simdjson::internal::power_of_ten[power];
20743|  1.67k|    }
20744|   548k|    if (negative) {
  ------------------
  |  Branch (20744:9): [True: 89.0k, False: 459k]
  ------------------
20745|  89.0k|      d = -d;
20746|  89.0k|    }
20747|   548k|    return true;
20748|   548k|  }
20749|       |  // When 22 < power && power <  22 + 16, we could
20750|       |  // hope for another, secondary fast path.  It was
20751|       |  // described by David M. Gay in  "Correctly rounded
20752|       |  // binary-decimal and decimal-binary conversions." (1990)
20753|       |  // If you need to compute i * 10^(22 + x) for x < 16,
20754|       |  // first compute i * 10^x, if you know that result is exact
20755|       |  // (e.g., when i * 10^x < 2^53),
20756|       |  // then you can still proceed and do (i * 10^x) * 10^22.
20757|       |  // Is this worth your time?
20758|       |  // You need  22 < power *and* power <  22 + 16 *and* (i * 10^(x-22) < 2^53)
20759|       |  // for this second fast path to work.
20760|       |  // If you you have 22 < power *and* power <  22 + 16, and then you
20761|       |  // optimistically compute "i * 10^(x-22)", there is still a chance that you
20762|       |  // have wasted your time if i * 10^(x-22) >= 2^53. It makes the use cases of
20763|       |  // this optimization maybe less common than we would like. Source:
20764|       |  // http://www.exploringbinary.com/fast-path-decimal-to-floating-point-conversion/
20765|       |  // also used in RapidJSON: https://rapidjson.org/strtod_8h_source.html
20766|       |
20767|       |  // The fast path has now failed, so we are failing back on the slower path.
20768|       |
20769|       |  // In the slow path, we need to adjust i so that it is > 1<<63 which is always
20770|       |  // possible, except if i == 0, so we handle i == 0 separately.
20771|   126k|  if(i == 0) {
  ------------------
  |  Branch (20771:6): [True: 39, False: 126k]
  ------------------
20772|     39|    d = negative ? -0.0 : 0.0;
  ------------------
  |  Branch (20772:9): [True: 1, False: 38]
  ------------------
20773|     39|    return true;
20774|     39|  }
20775|       |
20776|       |
20777|       |  // The exponent is 1024 + 63 + power
20778|       |  //     + floor(log(5**power)/log(2)).
20779|       |  // The 1024 comes from the ieee64 standard.
20780|       |  // The 63 comes from the fact that we use a 64-bit word.
20781|       |  //
20782|       |  // Computing floor(log(5**power)/log(2)) could be
20783|       |  // slow. Instead we use a fast function.
20784|       |  //
20785|       |  // For power in (-400,350), we have that
20786|       |  // (((152170 + 65536) * power ) >> 16);
20787|       |  // is equal to
20788|       |  //  floor(log(5**power)/log(2)) + power when power >= 0
20789|       |  // and it is equal to
20790|       |  //  ceil(log(5**-power)/log(2)) + power when power < 0
20791|       |  //
20792|       |  // The 65536 is (1<<16) and corresponds to
20793|       |  // (65536 * power) >> 16 ---> power
20794|       |  //
20795|       |  // ((152170 * power ) >> 16) is equal to
20796|       |  // floor(log(5**power)/log(2))
20797|       |  //
20798|       |  // Note that this is not magic: 152170/(1<<16) is
20799|       |  // approximately equal to log(5)/log(2).
20800|       |  // The 1<<16 value is a power of two; we could use a
20801|       |  // larger power of 2 if we wanted to.
20802|       |  //
20803|   126k|  int64_t exponent = (((152170 + 65536) * power) >> 16) + 1024 + 63;
20804|       |
20805|       |
20806|       |  // We want the most significant bit of i to be 1. Shift if needed.
20807|   126k|  int lz = leading_zeroes(i);
20808|   126k|  i <<= lz;
20809|       |
20810|       |
20811|       |  // We are going to need to do some 64-bit arithmetic to get a precise product.
20812|       |  // We use a table lookup approach.
20813|       |  // It is safe because
20814|       |  // power >= smallest_power
20815|       |  // and power <= largest_power
20816|       |  // We recover the mantissa of the power, it has a leading 1. It is always
20817|       |  // rounded down.
20818|       |  //
20819|       |  // We want the most significant 64 bits of the product. We know
20820|       |  // this will be non-zero because the most significant bit of i is
20821|       |  // 1.
20822|   126k|  const uint32_t index = 2 * uint32_t(power - simdjson::internal::smallest_power);
20823|       |  // Optimization: It may be that materializing the index as a variable might confuse some compilers and prevent effective complex-addressing loads. (Done for code clarity.)
20824|       |  //
20825|       |  // The full_multiplication function computes the 128-bit product of two 64-bit words
20826|       |  // with a returned value of type value128 with a "low component" corresponding to the
20827|       |  // 64-bit least significant bits of the product and with a "high component" corresponding
20828|       |  // to the 64-bit most significant bits of the product.
20829|       |#if SIMDJSON_STATIC_REFLECTION
20830|       |  simdjson::internal::value128 firstproduct = full_multiplication(i, simdjson::internal::powers_template<>::power_of_five_128[index]);
20831|       |#else
20832|   126k|  simdjson::internal::value128 firstproduct = full_multiplication(i, simdjson::internal::power_of_five_128[index]);
20833|   126k|#endif
20834|       |
20835|       |  // Both i and power_of_five_128[index] have their most significant bit set to 1 which
20836|       |  // implies that the either the most or the second most significant bit of the product
20837|       |  // is 1. We pack values in this manner for efficiency reasons: it maximizes the use
20838|       |  // we make of the product. It also makes it easy to reason about the product: there
20839|       |  // is 0 or 1 leading zero in the product.
20840|       |
20841|       |  // Unless the least significant 9 bits of the high (64-bit) part of the full
20842|       |  // product are all 1s, then we know that the most significant 55 bits are
20843|       |  // exact and no further work is needed. Having 55 bits is necessary because
20844|       |  // we need 53 bits for the mantissa but we have to have one rounding bit and
20845|       |  // we can waste a bit if the most significant bit of the product is zero.
20846|   126k|  if((firstproduct.high & 0x1FF) == 0x1FF) {
  ------------------
  |  Branch (20846:6): [True: 1.25k, False: 125k]
  ------------------
20847|       |    // We want to compute i * 5^q, but only care about the top 55 bits at most.
20848|       |    // Consider the scenario where q>=0. Then 5^q may not fit in 64-bits. Doing
20849|       |    // the full computation is wasteful. So we do what is called a "truncated
20850|       |    // multiplication".
20851|       |    // We take the most significant 64-bits, and we put them in
20852|       |    // power_of_five_128[index]. Usually, that's good enough to approximate i * 5^q
20853|       |    // to the desired approximation using one multiplication. Sometimes it does not suffice.
20854|       |    // Then we store the next most significant 64 bits in power_of_five_128[index + 1], and
20855|       |    // then we get a better approximation to i * 5^q.
20856|       |    //
20857|       |    // That's for when q>=0. The logic for q<0 is somewhat similar but it is somewhat
20858|       |    // more complicated.
20859|       |    //
20860|       |    // There is an extra layer of complexity in that we need more than 55 bits of
20861|       |    // accuracy in the round-to-even scenario.
20862|       |    //
20863|       |    // The full_multiplication function computes the 128-bit product of two 64-bit words
20864|       |    // with a returned value of type value128 with a "low component" corresponding to the
20865|       |    // 64-bit least significant bits of the product and with a "high component" corresponding
20866|       |    // to the 64-bit most significant bits of the product.
20867|       |#if SIMDJSON_STATIC_REFLECTION
20868|       |    simdjson::internal::value128 secondproduct = full_multiplication(i, simdjson::internal::powers_template<>::power_of_five_128[index + 1]);
20869|       |#else
20870|  1.25k|    simdjson::internal::value128 secondproduct = full_multiplication(i, simdjson::internal::power_of_five_128[index + 1]);
20871|  1.25k|#endif
20872|  1.25k|    firstproduct.low += secondproduct.high;
20873|  1.25k|    if(secondproduct.high > firstproduct.low) { firstproduct.high++; }
  ------------------
  |  Branch (20873:8): [True: 634, False: 621]
  ------------------
20874|       |    // As it has been proven by Noble Mushtak and Daniel Lemire in "Fast Number Parsing Without
20875|       |    // Fallback" (https://arxiv.org/abs/2212.06644), at this point we are sure that the product
20876|       |    // is sufficiently accurate, and more computation is not needed.
20877|  1.25k|  }
20878|   126k|  uint64_t lower = firstproduct.low;
20879|   126k|  uint64_t upper = firstproduct.high;
20880|       |  // The final mantissa should be 53 bits with a leading 1.
20881|       |  // We shift it so that it occupies 54 bits with a leading 1.
20882|       |  ///////
20883|   126k|  uint64_t upperbit = upper >> 63;
20884|   126k|  uint64_t mantissa = upper >> (upperbit + 9);
20885|   126k|  lz += int(1 ^ upperbit);
20886|       |
20887|       |  // Here we have mantissa < (1<<54).
20888|   126k|  int64_t real_exponent = exponent - lz;
20889|   126k|  if (simdjson_unlikely(real_exponent <= 0)) { // we have a subnormal?
  ------------------
  |  |  767|   126k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 3.03k, False: 123k]
  |  |  ------------------
  ------------------
20890|       |    // Here have that real_exponent <= 0 so -real_exponent >= 0
20891|  3.03k|    if(-real_exponent + 1 >= 64) { // if we have more than 64 bits below the minimum exponent, you have a zero for sure.
  ------------------
  |  Branch (20891:8): [True: 28, False: 3.00k]
  ------------------
20892|     28|      d = negative ? -0.0 : 0.0;
  ------------------
  |  Branch (20892:11): [True: 2, False: 26]
  ------------------
20893|     28|      return true;
20894|     28|    }
20895|       |    // next line is safe because -real_exponent + 1 < 0
20896|  3.00k|    mantissa >>= -real_exponent + 1;
20897|       |    // Thankfully, we can't have both "round-to-even" and subnormals because
20898|       |    // "round-to-even" only occurs for powers close to 0.
20899|  3.00k|    mantissa += (mantissa & 1); // round up
20900|  3.00k|    mantissa >>= 1;
20901|       |    // There is a weird scenario where we don't have a subnormal but just.
20902|       |    // Suppose we start with 2.2250738585072013e-308, we end up
20903|       |    // with 0x3fffffffffffff x 2^-1023-53 which is technically subnormal
20904|       |    // whereas 0x40000000000000 x 2^-1023-53  is normal. Now, we need to round
20905|       |    // up 0x3fffffffffffff x 2^-1023-53  and once we do, we are no longer
20906|       |    // subnormal, but we can only know this after rounding.
20907|       |    // So we only declare a subnormal if we are smaller than the threshold.
20908|  3.00k|    real_exponent = (mantissa < (uint64_t(1) << 52)) ? 0 : 1;
  ------------------
  |  Branch (20908:21): [True: 3.00k, False: 0]
  ------------------
20909|  3.00k|    d = to_double(mantissa, real_exponent, negative);
20910|  3.00k|    return true;
20911|  3.03k|  }
20912|       |  // We have to round to even. The "to even" part
20913|       |  // is only a problem when we are right in between two floats
20914|       |  // which we guard against.
20915|       |  // If we have lots of trailing zeros, we may fall right between two
20916|       |  // floating-point values.
20917|       |  //
20918|       |  // The round-to-even cases take the form of a number 2m+1 which is in (2^53,2^54]
20919|       |  // times a power of two. That is, it is right between a number with binary significand
20920|       |  // m and another number with binary significand m+1; and it must be the case
20921|       |  // that it cannot be represented by a float itself.
20922|       |  //
20923|       |  // We must have that w * 10 ^q == (2m+1) * 2^p for some power of two 2^p.
20924|       |  // Recall that 10^q = 5^q * 2^q.
20925|       |  // When q >= 0, we must have that (2m+1) is divible by 5^q, so 5^q <= 2^54. We have that
20926|       |  //  5^23 <=  2^54 and it is the last power of five to qualify, so q <= 23.
20927|       |  // When q<0, we have  w  >=  (2m+1) x 5^{-q}.  We must have that w<2^{64} so
20928|       |  // (2m+1) x 5^{-q} < 2^{64}. We have that 2m+1>2^{53}. Hence, we must have
20929|       |  // 2^{53} x 5^{-q} < 2^{64}.
20930|       |  // Hence we have 5^{-q} < 2^{11}$ or q>= -4.
20931|       |  //
20932|       |  // We require lower <= 1 and not lower == 0 because we could not prove that
20933|       |  // that lower == 0 is implied; but we could prove that lower <= 1 is a necessary and sufficient test.
20934|   123k|  if (simdjson_unlikely((lower <= 1) && (power >= -4) && (power <= 23) && ((mantissa & 3) == 1))) {
  ------------------
  |  |  767|   378k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 1.53k, False: 121k]
  |  |  |  Branch (767:52): [True: 3.22k, False: 120k]
  |  |  |  Branch (767:52): [True: 2.72k, False: 502]
  |  |  |  Branch (767:52): [True: 2.28k, False: 437]
  |  |  |  Branch (767:52): [True: 1.53k, False: 746]
  |  |  ------------------
  ------------------
20935|  1.53k|    if((mantissa  << (upperbit + 64 - 53 - 2)) ==  upper) {
  ------------------
  |  Branch (20935:8): [True: 220, False: 1.31k]
  ------------------
20936|    220|      mantissa &= ~1;             // flip it so that we do not round up
20937|    220|    }
20938|  1.53k|  }
20939|       |
20940|   123k|  mantissa += mantissa & 1;
20941|   123k|  mantissa >>= 1;
20942|       |
20943|       |  // Here we have mantissa < (1<<53), unless there was an overflow
20944|   123k|  if (mantissa >= (1ULL << 53)) {
  ------------------
  |  Branch (20944:7): [True: 52, False: 123k]
  ------------------
20945|       |    //////////
20946|       |    // This will happen when parsing values such as 7.2057594037927933e+16
20947|       |    ////////
20948|     52|    mantissa = (1ULL << 52);
20949|     52|    real_exponent++;
20950|     52|  }
20951|   123k|  mantissa &= ~(1ULL << 52);
20952|       |  // we have to check that real_exponent is in range, otherwise we bail out
20953|   123k|  if (simdjson_unlikely(real_exponent > 2046)) {
  ------------------
  |  |  767|   123k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 84, False: 123k]
  |  |  ------------------
  ------------------
20954|       |    // We have an infinite value!!! We could actually throw an error here if we could.
20955|     84|    return false;
20956|     84|  }
20957|   123k|  d = to_double(mantissa, real_exponent, negative);
20958|   123k|  return true;
20959|   123k|}
parser.cpp:_ZN8simdjson8fallback12_GLOBAL__N_114leading_zeroesEm:
19880|  1.51M|simdjson_inline int leading_zeroes(uint64_t input_num) {
19881|       |#ifdef _MSC_VER
19882|       |  unsigned long leading_zero = 0;
19883|       |  // Search the mask data from most significant bit (MSB)
19884|       |  // to least significant bit (LSB) for a set bit (1).
19885|       |  if (_BitScanReverse64(&leading_zero, input_num))
19886|       |    return (int)(63 - leading_zero);
19887|       |  else
19888|       |    return 64;
19889|       |#else
19890|  1.51M|  return __builtin_clzll(input_num);
19891|  1.51M|#endif// _MSC_VER
19892|  1.51M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_19to_doubleEmmb:
20684|   126k|simdjson_inline double to_double(uint64_t mantissa, uint64_t real_exponent, bool negative) {
20685|   126k|    double d;
20686|   126k|    mantissa &= ~(1ULL << 52);
20687|   126k|    mantissa |= real_exponent << 52;
20688|   126k|    mantissa |= ((static_cast<uint64_t>(negative)) << 63);
20689|   126k|    std::memcpy(&d, &mantissa, sizeof(d));
20690|   126k|    return d;
20691|   126k|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_120parse_float_fallbackEPKhPd:
21181|  18.5k|static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
21182|  18.5k|  *outDouble = simdjson::internal::from_chars(reinterpret_cast<const char *>(ptr));
21183|       |  // We do not accept infinite values.
21184|       |
21185|       |  // Detecting finite values in a portable manner is ridiculously hard, ideally
21186|       |  // we would want to do:
21187|       |  // return !std::isfinite(*outDouble);
21188|       |  // but that mysteriously fails under legacy/old libc++ libraries, see
21189|       |  // https://github.com/simdjson/simdjson/issues/1286
21190|       |  //
21191|       |  // Therefore, fall back to this solution (the extra parens are there
21192|       |  // to handle that max may be a macro on windows).
21193|  18.5k|  return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest());
  ------------------
  |  Branch (21193:12): [True: 174, False: 18.3k]
  |  Branch (21193:65): [True: 5, False: 18.3k]
  ------------------
21194|  18.5k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6numberEEC2EOS3_:
 3889|   949k|    : internal::simdjson_result_base<T>(std::forward<T>(value)) {}
_ZN8simdjson8internal20simdjson_result_baseINS_8fallback8ondemand6numberEEC2EOS4_:
 3820|   949k|    : simdjson_result_base(std::forward<T>(value), SUCCESS) {}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm7EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 179k, False: 1.55M]
  ------------------
10305|   179k|      auto&& h = std::get<I>(handlers);
10305|   179k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   179k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   179k|        err = v.get(h);
10306|   179k|      }
10306|   179k|    }
10306|  1.73M|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm8EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 30.3k, False: 1.70M]
  ------------------
10305|  30.3k|      auto&& h = std::get<I>(handlers);
10305|  30.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  30.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  30.3k|        err = v.get(h);
10306|  30.3k|      }
10306|  30.3k|    }
10306|  1.73M|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14basic_optionalINS4_14SparseAccessorENS4_13boxed_storageIS6_NSt3__19allocatorIS6_EEEEEEEENS_10error_codeERT_:
89907|  30.3k| {
89908|  30.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  30.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  30.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  30.3k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14basic_optionalINS2_14SparseAccessorENS2_13boxed_storageIS4_NSt3__19allocatorIS4_EEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSE_RSB_:
89261|  30.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  30.3k|    return tag_invoke(*this, object, output);
89263|  30.3k|  }
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14SparseAccessorEEENS_10error_codeERT_:
89907|  30.3k| {
89908|  30.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  30.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  30.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  30.3k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14SparseAccessorEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  30.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  30.3k|    return tag_invoke(*this, object, output);
89263|  30.3k|  }
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS7_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS7_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERKZNS_L10tag_invokeINS2_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSE_14SparseAccessorEEUlSL_E_RKZNSK_ISL_EESM_SN_SP_SR_EUlSL_E0_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSY_:
10349|  30.3k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  30.3k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 5, False: 30.3k]
  ------------------
10350|  30.3k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  30.3k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS5_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS5_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSC_14SparseAccessorEEUlSJ_E_RKZNSI_ISJ_EESK_SL_SN_SP_EUlSJ_E0_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_:
10309|  30.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  30.3k|  using Selector = key_selector<Keys...>;
10309|  30.3k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  30.3k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSE_14SparseAccessorEEUlSL_E_RKZNSK_ISL_EESM_SN_SP_SR_EUlSL_E0_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_:
10308|  30.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  30.3k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  30.3k|  return this->template for_each<Selector>(
10308|  30.3k|      [&](std::size_t i, value v) -> error_code {
10308|  30.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  30.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  30.3k|      });
10309|  30.3k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSF_14SparseAccessorEEUlSM_E_RKZNSL_ISM_EESN_SO_SQ_SS_EUlSM_E0_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_EUlmSM_E_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSM_EEES10_OS14_:
10296|  30.3k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  30.3k|  value_iterator it = iter;
10297|  30.3k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  30.3k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  30.3k|  std::array<std::uint64_t, seen_words> seen{};
10298|  95.7k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 95.4k, False: 296]
  ------------------
10298|  95.4k|    raw_json_string key;
10298|  95.4k|    error_code error;
10298|  95.4k|    std::size_t idx;
10298|  95.4k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  95.4k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 36, False: 95.3k]
  ------------------
10299|  95.3k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 8, False: 95.3k]
  ------------------
10299|  95.3k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  95.4k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 90.6k, False: 4.72k]
  ------------------
10300|  90.6k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  90.6k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  90.6k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 90.3k, False: 376]
  ------------------
10300|  90.3k|        seen_word |= seen_bit;
10300|  90.3k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  90.3k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  90.3k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 180, False: 90.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  90.3k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 29.9k, False: 60.3k]
  ------------------
10302|  90.3k|      }
10302|  90.6k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  65.4k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 65.4k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  65.4k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 16, False: 65.4k]
  ------------------
10303|  65.4k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 115, False: 65.3k]
  ------------------
10303|  65.4k|  }
10303|  30.2k|  return {SUCCESS, matched};
10303|  30.3k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS4_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS4_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  95.3k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  95.3k|        const char* p = rjs.raw();
96024|  95.3k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  95.3k|            std::uint8_t ki = window.window_to_key[
96030|  95.3k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  95.3k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.04k, False: 93.3k]
  ------------------
96032|  93.3k|            return key_selector_detail::match_window_candidate(
96033|  93.3k|                p, ki, window, std::make_index_sequence<N>{});
96034|  95.3k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  95.3k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm7EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  93.3k|                       std::index_sequence<Is...>) noexcept {
95865|  93.3k|  std::size_t result = N;
95866|  93.3k|  auto try_match = [&](auto Ic) {
95867|  93.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  93.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  93.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  93.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  93.3k|      result = i;
95872|  93.3k|    }
95873|  93.3k|  };
95874|  93.3k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  93.3k|  return result;
95876|  93.3k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm7EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  93.3k|  auto try_match = [&](auto Ic) {
95867|  93.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  93.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 31.7k, False: 61.5k]
  |  Branch (95868:20): [True: 30.5k, False: 1.22k]
  ------------------
95869|  30.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 30.3k, False: 222]
  ------------------
95870|  30.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  30.3k|      result = i;
95872|  30.3k|    }
95873|  93.3k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm7EEEbPKcS5_m:
95612|   247k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   247k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   247k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   247k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   247k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   247k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   247k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   247k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   247k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   247k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm7EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  93.3k|  auto try_match = [&](auto Ic) {
95867|  93.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  93.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 30.8k, False: 62.4k]
  |  Branch (95868:20): [True: 30.4k, False: 428]
  ------------------
95869|  30.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 30.2k, False: 251]
  ------------------
95870|  30.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  30.2k|      result = i;
95872|  30.2k|    }
95873|  93.3k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm7EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  93.3k|  auto try_match = [&](auto Ic) {
95867|  93.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  93.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 30.6k, False: 62.6k]
  |  Branch (95868:20): [True: 30.3k, False: 291]
  ------------------
95869|  30.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 30.1k, False: 219]
  ------------------
95870|  30.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  30.1k|      result = i;
95872|  30.1k|    }
95873|  93.3k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS4_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS4_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEE4sizeEv:
95952|   185k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc118ELc97ELc108ELc117ELc101ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSE_14SparseAccessorEEUlSL_E_RKZNSK_ISL_EESM_SN_SP_SR_EUlSL_E0_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_ENKUlmSL_E_clEmSL_:
10308|  90.3k|      [&](std::size_t i, value v) -> error_code {
10308|  90.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  90.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  90.3k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_14SparseAccessorEEUlSD_E_RKZNSC_ISD_EESE_SF_SH_SJ_EUlSD_E0_EEEJLm0ELm1ELm2EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  90.3k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  90.3k|  error_code err = SUCCESS;
10304|  90.3k|  auto try_one = [&](auto Ic) {
10305|  90.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  90.3k|    if (idx == I) {
10305|  90.3k|      auto&& h = std::get<I>(handlers);
10305|  90.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  90.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  90.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  90.3k|          err = h(v);
10306|  90.3k|        } else {
10306|  90.3k|          h(v);
10306|  90.3k|        }
10306|  90.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  90.3k|        err = v.get(h);
10306|  90.3k|      }
10306|  90.3k|    }
10306|  90.3k|  };
10306|  90.3k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  90.3k|  return err;
10307|  90.3k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_14SparseAccessorEEUlSD_E_RKZNSC_ISD_EESE_SF_SH_SJ_EUlSD_E0_EEEJLm0ELm1ELm2EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm0EEEEEDaSG_:
10304|  90.3k|  auto try_one = [&](auto Ic) {
10305|  90.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  90.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 30.0k, False: 60.2k]
  ------------------
10305|  30.0k|      auto&& h = std::get<I>(handlers);
10305|  30.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  30.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  30.0k|        err = v.get(h);
10306|  30.0k|      }
10306|  30.0k|    }
10306|  90.3k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_14SparseAccessorEEUlSD_E_RKZNSC_ISD_EESE_SF_SH_SJ_EUlSD_E0_EEEJLm0ELm1ELm2EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm1EEEEEDaSG_:
10304|  90.3k|  auto try_one = [&](auto Ic) {
10305|  90.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  90.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 30.1k, False: 60.1k]
  ------------------
10305|  30.1k|      auto&& h = std::get<I>(handlers);
10305|  30.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  30.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  30.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  30.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  30.1k|    }
10306|  90.3k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS7_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmRNSt3__18optionalINSC_13ComponentTypeEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSO_:
10349|  30.1k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  30.1k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 30.1k]
  ------------------
10350|  30.1k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  30.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS6_tlS7_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS5_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERmRNSt3__18optionalINSA_13ComponentTypeEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_:
10309|  30.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  30.1k|  using Selector = key_selector<Keys...>;
10309|  30.1k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  30.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmRNSt3__18optionalINSC_13ComponentTypeEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|  30.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  30.1k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  30.1k|  return this->template for_each<Selector>(
10308|  30.1k|      [&](std::size_t i, value v) -> error_code {
10308|  30.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  30.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  30.1k|      });
10309|  30.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEEEZNS2_8for_eachISB_JRN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERmRNSt3__18optionalINSD_13ComponentTypeEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmNS1_5valueEE_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSU_EEESR_OSW_:
10296|  30.1k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  30.1k|  value_iterator it = iter;
10297|  30.1k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  30.1k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  30.1k|  std::array<std::uint64_t, seen_words> seen{};
10298|   193k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 184k, False: 9.52k]
  ------------------
10298|   184k|    raw_json_string key;
10298|   184k|    error_code error;
10298|   184k|    std::size_t idx;
10298|   184k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   184k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 37, False: 184k]
  ------------------
10299|   184k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 7, False: 184k]
  ------------------
10299|   184k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   184k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 110k, False: 74.0k]
  ------------------
10300|   110k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   110k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   110k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 80.6k, False: 29.5k]
  ------------------
10300|  80.6k|        seen_word |= seen_bit;
10300|  80.6k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  80.6k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  80.6k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 21, False: 80.5k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  80.6k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 20.5k, False: 60.0k]
  ------------------
10302|  80.6k|      }
10302|   110k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   163k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 163k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   163k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 10, False: 163k]
  ------------------
10303|   163k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 23, False: 163k]
  ------------------
10303|   163k|  }
10303|  30.1k|  return {SUCCESS, matched};
10303|  30.1k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS4_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   184k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   184k|        const char* p = rjs.raw();
96024|   184k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   184k|            std::uint8_t ki = window.window_to_key[
96030|   184k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   184k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 42.3k, False: 141k]
  ------------------
96032|   141k|            return key_selector_detail::match_window_candidate(
96033|   141k|                p, ki, window, std::make_index_sequence<N>{});
96034|   184k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   184k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm13EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   337k|                       std::index_sequence<Is...>) noexcept {
95865|   337k|  std::size_t result = N;
95866|   337k|  auto try_match = [&](auto Ic) {
95867|   337k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   337k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   337k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   337k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   337k|      result = i;
95872|   337k|    }
95873|   337k|  };
95874|   337k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   337k|  return result;
95876|   337k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm13EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   337k|  auto try_match = [&](auto Ic) {
95867|   337k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   337k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 139k, False: 198k]
  |  Branch (95868:20): [True: 123k, False: 16.3k]
  ------------------
95869|   123k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 122k, False: 988]
  ------------------
95870|   123k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   122k|      result = i;
95872|   122k|    }
95873|   337k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm13EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   337k|  auto try_match = [&](auto Ic) {
95867|   337k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   337k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 87.6k, False: 249k]
  |  Branch (95868:20): [True: 81.8k, False: 5.79k]
  ------------------
95869|  81.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 74.9k, False: 6.91k]
  ------------------
95870|  81.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  74.9k|      result = i;
95872|  74.9k|    }
95873|   337k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm13EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   337k|  auto try_match = [&](auto Ic) {
95867|   337k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   337k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 110k, False: 227k]
  |  Branch (95868:20): [True: 105k, False: 4.86k]
  ------------------
95869|   105k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 104k, False: 673]
  ------------------
95870|   105k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   104k|      result = i;
95872|   104k|    }
95873|   337k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS4_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEE4sizeEv:
95952|   264k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc99ELc111ELc109ELc112ELc111ELc110ELc101ELc110ELc116ELc84ELc121ELc112ELc101EEEEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmRNSt3__18optionalINSC_13ComponentTypeEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_ENKUlmNS1_5valueEE_clEmST_:
10308|  80.6k|      [&](std::size_t i, value v) -> error_code {
10308|  80.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  80.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  80.6k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  80.6k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  80.6k|  error_code err = SUCCESS;
10304|  80.6k|  auto try_one = [&](auto Ic) {
10305|  80.6k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  80.6k|    if (idx == I) {
10305|  80.6k|      auto&& h = std::get<I>(handlers);
10305|  80.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  80.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  80.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  80.6k|          err = h(v);
10306|  80.6k|        } else {
10306|  80.6k|          h(v);
10306|  80.6k|        }
10306|  80.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  80.6k|        err = v.get(h);
10306|  80.6k|      }
10306|  80.6k|    }
10306|  80.6k|  };
10306|  80.6k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  80.6k|  return err;
10307|  80.6k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm0EEEEEDaSJ_:
10304|  80.6k|  auto try_one = [&](auto Ic) {
10305|  80.6k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  80.6k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 30.0k, False: 50.6k]
  ------------------
10305|  30.0k|      auto&& h = std::get<I>(handlers);
10305|  30.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  30.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  30.0k|        err = v.get(h);
10306|  30.0k|      }
10306|  30.0k|    }
10306|  80.6k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm1EEEEEDaSJ_:
10304|  80.6k|  auto try_one = [&](auto Ic) {
10305|  80.6k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  80.6k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 20.6k, False: 59.9k]
  ------------------
10305|  20.6k|      auto&& h = std::get<I>(handlers);
10305|  20.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  20.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.6k|        err = v.get(h);
10306|  20.6k|      }
10306|  20.6k|    }
10306|  80.6k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm2EEEEEDaSJ_:
10304|  80.6k|  auto try_one = [&](auto Ic) {
10305|  80.6k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  80.6k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 29.9k, False: 50.6k]
  ------------------
10305|  29.9k|      auto&& h = std::get<I>(handlers);
10305|  29.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  29.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.9k|        err = v.get(h);
10306|  29.9k|      }
10306|  29.9k|    }
10306|  80.6k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_14SparseAccessorEEUlSD_E_RKZNSC_ISD_EESE_SF_SH_SJ_EUlSD_E0_EEEJLm0ELm1ELm2EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm2EEEEEDaSG_:
10304|  90.3k|  auto try_one = [&](auto Ic) {
10305|  90.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  90.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 30.0k, False: 60.2k]
  ------------------
10305|  30.0k|      auto&& h = std::get<I>(handlers);
10305|  30.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|  30.0k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  30.0k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  30.0k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  30.0k|    }
10306|  90.3k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERmEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSH_:
10349|  30.0k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  30.0k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 4, False: 30.0k]
  ------------------
10350|  30.0k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  30.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS6_tlS7_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEJRN8fastgltf14basic_optionalImNS8_15flagged_storageImEEEERmEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSF_:
10309|  30.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  30.0k|  using Selector = key_selector<Keys...>;
10309|  30.0k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  30.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERmEQaaaa17key_selector_typeIT_EeqsZT0_clsrSH_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_:
10308|  30.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  30.0k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  30.0k|  return this->template for_each<Selector>(
10308|  30.0k|      [&](std::size_t i, value v) -> error_code {
10308|  30.0k|        return key_selector_for_each_detail::dispatch_value(
10308|  30.0k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  30.0k|      });
10309|  30.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalImNSB_15flagged_storageImEEEERmEQaaaa17key_selector_typeIT_EeqsZT0_clsrSI_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_EUlmNS1_5valueEE_Qaa17key_selector_typeISI_Esr3stdE14is_invocable_vIRT0_mSN_EEESK_OSP_:
10296|  30.0k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  30.0k|  value_iterator it = iter;
10297|  30.0k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  30.0k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  30.0k|  std::array<std::uint64_t, seen_words> seen{};
10298|   109k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 94.0k, False: 14.9k]
  ------------------
10298|  94.0k|    raw_json_string key;
10298|  94.0k|    error_code error;
10298|  94.0k|    std::size_t idx;
10298|  94.0k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  94.0k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 24, False: 94.0k]
  ------------------
10299|  94.0k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 8, False: 94.0k]
  ------------------
10299|  94.0k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  94.0k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 49.3k, False: 44.7k]
  ------------------
10300|  49.3k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  49.3k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  49.3k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 45.1k, False: 4.19k]
  ------------------
10300|  45.1k|        seen_word |= seen_bit;
10300|  45.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  45.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  45.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 14, False: 45.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  45.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 15.1k, False: 30.0k]
  ------------------
10302|  45.1k|      }
10302|  49.3k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  78.9k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 78.9k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  78.9k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 5, False: 78.9k]
  ------------------
10303|  78.9k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 23, False: 78.9k]
  ------------------
10303|  78.9k|  }
10303|  30.0k|  return {SUCCESS, matched};
10303|  30.0k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  94.0k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  94.0k|        const char* p = rjs.raw();
96024|  94.0k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  94.0k|            std::uint8_t ki = window.window_to_key[
96030|  94.0k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  94.0k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 25.7k, False: 68.3k]
  ------------------
96032|  68.3k|            return key_selector_detail::match_window_candidate(
96033|  68.3k|                p, ki, window, std::make_index_sequence<N>{});
96034|  94.0k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  94.0k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm10EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  97.3k|                       std::index_sequence<Is...>) noexcept {
95865|  97.3k|  std::size_t result = N;
95866|  97.3k|  auto try_match = [&](auto Ic) {
95867|  97.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  97.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  97.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  97.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  97.3k|      result = i;
95872|  97.3k|    }
95873|  97.3k|  };
95874|  97.3k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  97.3k|  return result;
95876|  97.3k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm10EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  97.3k|  auto try_match = [&](auto Ic) {
95867|  97.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  97.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 51.9k, False: 45.3k]
  |  Branch (95868:20): [True: 45.8k, False: 6.12k]
  ------------------
95869|  45.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 45.0k, False: 788]
  ------------------
95870|  45.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  45.0k|      result = i;
95872|  45.0k|    }
95873|  97.3k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm10EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  97.3k|  auto try_match = [&](auto Ic) {
95867|  97.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  97.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 45.3k, False: 51.9k]
  |  Branch (95868:20): [True: 36.2k, False: 9.09k]
  ------------------
95869|  36.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 27.2k, False: 9.00k]
  ------------------
95870|  36.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  27.2k|      result = i;
95872|  27.2k|    }
95873|  97.3k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEE4sizeEv:
95952|   139k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERmEQaaaa17key_selector_typeIT_EeqsZT0_clsrSH_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_ENKUlmNS1_5valueEE_clEmSM_:
10308|  45.1k|      [&](std::size_t i, value v) -> error_code {
10308|  45.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  45.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  45.1k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  45.1k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  45.1k|  error_code err = SUCCESS;
10304|  45.1k|  auto try_one = [&](auto Ic) {
10305|  45.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  45.1k|    if (idx == I) {
10305|  45.1k|      auto&& h = std::get<I>(handlers);
10305|  45.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  45.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  45.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  45.1k|          err = h(v);
10306|  45.1k|        } else {
10306|  45.1k|          h(v);
10306|  45.1k|        }
10306|  45.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.1k|        err = v.get(h);
10306|  45.1k|      }
10306|  45.1k|    }
10306|  45.1k|  };
10306|  45.1k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  45.1k|  return err;
10307|  45.1k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSF_E_clINS4_17integral_constantImLm0EEEEEDaSF_:
10304|  45.1k|  auto try_one = [&](auto Ic) {
10305|  45.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  45.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 29.9k, False: 15.1k]
  ------------------
10305|  29.9k|      auto&& h = std::get<I>(handlers);
10305|  29.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  29.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.9k|        err = v.get(h);
10306|  29.9k|      }
10306|  29.9k|    }
10306|  45.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSF_E_clINS4_17integral_constantImLm1EEEEEDaSF_:
10304|  45.1k|  auto try_one = [&](auto Ic) {
10305|  45.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  45.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.1k, False: 29.9k]
  ------------------
10305|  15.1k|      auto&& h = std::get<I>(handlers);
10305|  15.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.1k|        err = v.get(h);
10306|  15.1k|      }
10306|  15.1k|    }
10306|  45.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm9EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 53.6k, False: 1.67M]
  ------------------
10305|  53.6k|      auto&& h = std::get<I>(handlers);
10305|  53.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  53.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  53.6k|        err = v.get(h);
10306|  53.6k|      }
10306|  53.6k|    }
10306|  1.73M|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRNS4_8optionalINS6_13ComponentTypeEEERbSB_RNSD_INS6_12AccessorTypeEEERNS6_21AccessorBoundsNumbersESM_RNS7_INS6_14SparseAccessorENS6_13boxed_storageISN_NS4_9allocatorISN_EEEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSP_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmRT_S14_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1A_E_clINS4_17integral_constantImLm10EEEEEDaS1A_:
10304|  1.73M|  auto try_one = [&](auto Ic) {
10305|  1.73M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.73M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 387, False: 1.73M]
  ------------------
10305|    387|      auto&& h = std::get<I>(handlers);
10305|    387|      using H = std::remove_reference_t<decltype(h)>;
10305|    387|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    387|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    387|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    387|    }
10306|  1.73M|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS8_tlS9_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorIN8fastgltf16AnimationChannelENSE_9allocatorISH_EEEERNSF_INSG_16AnimationSamplerENSI_ISM_EEEERNSE_12basic_stringIcNSE_11char_traitsIcEENSI_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS14_:
10349|  49.7k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  49.7k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 28, False: 49.7k]
  ------------------
10350|  49.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  49.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS6_tlS7_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorIN8fastgltf16AnimationChannelENSC_9allocatorISF_EEEERNSD_INSE_16AnimationSamplerENSG_ISK_EEEERNSC_12basic_stringIcNSC_11char_traitsIcEENSG_IcEEEERKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS12_:
10309|  49.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  49.7k|  using Selector = key_selector<Keys...>;
10309|  49.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  49.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS7_tlS8_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorIN8fastgltf16AnimationChannelENSE_9allocatorISH_EEEERNSF_INSG_16AnimationSamplerENSI_ISM_EEEERNSE_12basic_stringIcNSE_11char_traitsIcEENSI_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS14_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS15_:
10308|  49.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  49.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  49.7k|  return this->template for_each<Selector>(
10308|  49.7k|      [&](std::size_t i, value v) -> error_code {
10308|  49.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  49.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  49.7k|      });
10309|  49.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS7_tlS8_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISD_JRNSt3__16vectorIN8fastgltf16AnimationChannelENSF_9allocatorISI_EEEERNSG_INSH_16AnimationSamplerENSJ_ISN_EEEERNSF_12basic_stringIcNSF_11char_traitsIcEENSJ_IcEEEERKZNSH_10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS15_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS16_EUlmS11_E_Qaa17key_selector_typeIS15_Esr3stdE14is_invocable_vIRT0_mS11_EEES17_OS1B_:
10296|  49.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  49.7k|  value_iterator it = iter;
10297|  49.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  49.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  49.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   205k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 156k, False: 49.1k]
  ------------------
10298|   156k|    raw_json_string key;
10298|   156k|    error_code error;
10298|   156k|    std::size_t idx;
10298|   156k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   156k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 36, False: 156k]
  ------------------
10299|   156k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 48, False: 156k]
  ------------------
10299|   156k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   156k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 147k, False: 9.00k]
  ------------------
10300|   147k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   147k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   147k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 145k, False: 1.51k]
  ------------------
10300|   145k|        seen_word |= seen_bit;
10300|   145k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   145k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   145k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 510, False: 145k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   145k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 556, False: 145k]
  ------------------
10302|   145k|      }
10302|   147k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   155k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 155k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   155k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 20, False: 155k]
  ------------------
10303|   155k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 53, False: 155k]
  ------------------
10303|   155k|  }
10303|  49.6k|  return {SUCCESS, matched};
10303|  49.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS5_tlS6_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   156k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   156k|        const char* p = rjs.raw();
96024|   156k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   156k|            std::uint8_t ki = window.window_to_key[
96030|   156k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   156k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 3.04k, False: 153k]
  ------------------
96032|   153k|            return key_selector_detail::match_window_candidate(
96033|   153k|                p, ki, window, std::make_index_sequence<N>{});
96034|   156k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   156k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm8EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   829k|                       std::index_sequence<Is...>) noexcept {
95865|   829k|  std::size_t result = N;
95866|   829k|  auto try_match = [&](auto Ic) {
95867|   829k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   829k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   829k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   829k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   829k|      result = i;
95872|   829k|    }
95873|   829k|  };
95874|   829k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   829k|  return result;
95876|   829k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm8EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   829k|  auto try_match = [&](auto Ic) {
95867|   829k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   829k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 355k, False: 474k]
  |  Branch (95868:20): [True: 349k, False: 5.86k]
  ------------------
95869|   349k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 347k, False: 2.11k]
  ------------------
95870|   349k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   347k|      result = i;
95872|   347k|    }
95873|   829k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm8EEEbPKcS5_m:
95612|  1.02M|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  1.02M|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  1.02M|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|  1.02M|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|  1.02M|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|  1.02M|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|  1.02M|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|  1.02M|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|  1.02M|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  1.02M|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm8EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   829k|  auto try_match = [&](auto Ic) {
95867|   829k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   829k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 174k, False: 655k]
  |  Branch (95868:20): [True: 155k, False: 18.5k]
  ------------------
95869|   155k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 147k, False: 7.82k]
  ------------------
95870|   155k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   147k|      result = i;
95872|   147k|    }
95873|   829k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm8EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   829k|  auto try_match = [&](auto Ic) {
95867|   829k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   829k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 176k, False: 653k]
  |  Branch (95868:20): [True: 167k, False: 9.17k]
  ------------------
95869|   167k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 157k, False: 9.49k]
  ------------------
95870|   167k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   157k|      result = i;
95872|   157k|    }
95873|   829k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm8EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   829k|  auto try_match = [&](auto Ic) {
95867|   829k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   829k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 123k, False: 705k]
  |  Branch (95868:20): [True: 112k, False: 11.4k]
  ------------------
95869|   112k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 103k, False: 8.94k]
  ------------------
95870|   112k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   103k|      result = i;
95872|   103k|    }
95873|   829k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS5_tlS6_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   301k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc99ELc104ELc97ELc110ELc110ELc101ELc108ELc115EEEEXtlS7_tlS8_Lc115ELc97ELc109ELc112ELc108ELc101ELc114ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorIN8fastgltf16AnimationChannelENSE_9allocatorISH_EEEERNSF_INSG_16AnimationSamplerENSI_ISM_EEEERNSE_12basic_stringIcNSE_11char_traitsIcEENSI_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS14_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS15_ENKUlmS10_E_clEmS10_:
10308|   145k|      [&](std::size_t i, value v) -> error_code {
10308|   145k|        return key_selector_for_each_detail::dispatch_value(
10308|   145k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   145k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf16AnimationChannelENS4_9allocatorIS8_EEEERNS6_INS7_16AnimationSamplerENS9_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS9_IcEEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   145k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   145k|  error_code err = SUCCESS;
10304|   145k|  auto try_one = [&](auto Ic) {
10305|   145k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   145k|    if (idx == I) {
10305|   145k|      auto&& h = std::get<I>(handlers);
10305|   145k|      using H = std::remove_reference_t<decltype(h)>;
10305|   145k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   145k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   145k|          err = h(v);
10306|   145k|        } else {
10306|   145k|          h(v);
10306|   145k|        }
10306|   145k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   145k|        err = v.get(h);
10306|   145k|      }
10306|   145k|    }
10306|   145k|  };
10306|   145k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   145k|  return err;
10307|   145k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf16AnimationChannelENS4_9allocatorIS8_EEEERNS6_INS7_16AnimationSamplerENS9_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS9_IcEEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm0EEEEEDaSX_:
10304|   145k|  auto try_one = [&](auto Ic) {
10305|   145k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   145k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 49.3k, False: 96.4k]
  ------------------
10305|  49.3k|      auto&& h = std::get<I>(handlers);
10305|  49.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  49.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  49.3k|        err = v.get(h);
10306|  49.3k|      }
10306|  49.3k|    }
10306|   145k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorIN8fastgltf16AnimationChannelENS4_9allocatorIS7_EEEEEENS_10error_codeERT_:
89907|  49.3k| {
89908|  49.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  49.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  49.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  49.3k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorIN8fastgltf16AnimationChannelENS2_9allocatorIS5_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|  49.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  49.3k|    return tag_invoke(*this, object, output);
89263|  49.3k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf16AnimationChannelENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|  49.3k|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|  49.3k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|  49.3k|  static_assert(
97478|  49.3k|      deserializable<value_type, ValT>,
97479|  49.3k|      "The specified type inside the container must itself be deserializable");
97480|  49.3k|  static_assert(
97481|  49.3k|      std::is_default_constructible_v<value_type>,
97482|  49.3k|      "The specified type inside the container must be default constructible.");
97483|  49.3k|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|  49.3k|  } else {
97487|  49.3k|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|  49.3k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 49.3k]
  |  |  ------------------
  ------------------
97488|  49.3k|  }
97489|       |
97490|  49.3k|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|  49.3k|    struct scratch_space {
97499|  49.3k|      std::vector<value_type> elements{};
97500|  49.3k|      bool busy{false};
97501|  49.3k|    };
97502|  49.3k|    static thread_local scratch_space scratch;
97503|  49.3k|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 49.3k, False: 2]
  |  Branch (97503:26): [True: 49.3k, False: 0]
  ------------------
97504|  49.3k|      struct release_scratch {
97505|  49.3k|        scratch_space &s;
97506|  49.3k|        T &out;
97507|  49.3k|        size_t parsed{0};
97508|  49.3k|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|  49.3k|        simdjson_never_inline void keep_parsed() noexcept {
97512|  49.3k|          s.elements.resize(parsed);
97513|  49.3k|          out.swap(s.elements);
97514|  49.3k|        }
97515|  49.3k|        ~release_scratch() {
97516|  49.3k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|  49.3k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  49.3k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|  49.3k|          s.busy = false;
97521|  49.3k|        }
97522|  49.3k|      } release{scratch, out};
97523|  49.3k|      scratch.busy = true;
97524|  69.8k|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 69.8k, False: 48.9k]
  ------------------
97525|  69.8k|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|  69.8k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 304, False: 69.5k]
  |  |  ------------------
  ------------------
97526|  69.5k|        release.parsed++;
97527|  69.5k|      }
97528|  48.9k|      out.reserve(release.parsed);
97529|  48.9k|      release.complete = true;
97530|  66.9k|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 66.9k, False: 48.9k]
  ------------------
97531|  48.9k|      return SUCCESS;
97532|  49.3k|    }
97533|  49.3k|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|  49.3k|  } else {
97544|  49.3k|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 49.3k]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|  49.3k|  }
97554|  49.3k|  return SUCCESS;
97555|  49.3k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIN8fastgltf16AnimationChannelEEENS_10error_codeERT_:
99449|  69.8k|{
99450|  69.8k|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 37, False: 69.7k]
  ------------------
99451|  69.7k|  return first.get<T>(out);
99452|  69.8k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf16AnimationChannelEEENS_10error_codeERT_:
89907|  69.7k| {
89908|  69.7k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  69.7k|  if constexpr (custom_deserializable<T, value>) {
89910|  69.7k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  69.7k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf16AnimationChannelEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  69.7k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  69.7k|    return tag_invoke(*this, object, output);
89263|  69.7k|  }
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS7_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERKZNS_L10tag_invokeINS2_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSC_16AnimationChannelEEUlSJ_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOST_:
10349|  69.7k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  69.7k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 28, False: 69.7k]
  ------------------
10350|  69.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  69.7k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS5_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSA_16AnimationChannelEEUlSH_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_:
10309|  69.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  69.7k|  using Selector = key_selector<Keys...>;
10309|  69.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  69.7k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS6_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSC_16AnimationChannelEEUlSJ_E_EQaaaa17key_selector_typeISM_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_:
10308|  69.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  69.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  69.7k|  return this->template for_each<Selector>(
10308|  69.7k|      [&](std::size_t i, value v) -> error_code {
10308|  69.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  69.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  69.7k|      });
10309|  69.7k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS6_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEEEZNS2_8for_eachISB_JRN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSD_16AnimationChannelEEUlSK_E_EQaaaa17key_selector_typeISN_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSU_EUlmSK_E_Qaa17key_selector_typeISN_Esr3stdE14is_invocable_vIRT0_mSK_EEESV_OSZ_:
10296|  69.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  69.7k|  value_iterator it = iter;
10297|  69.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  69.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  69.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   148k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 148k, False: 195]
  ------------------
10298|   148k|    raw_json_string key;
10298|   148k|    error_code error;
10298|   148k|    std::size_t idx;
10298|   148k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   148k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 18, False: 148k]
  ------------------
10299|   148k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 20, False: 148k]
  ------------------
10299|   148k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   148k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 144k, False: 4.56k]
  ------------------
10300|   144k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   144k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   144k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 139k, False: 4.92k]
  ------------------
10300|   139k|        seen_word |= seen_bit;
10300|   139k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   139k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   139k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 61, False: 139k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   139k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 69.5k, False: 69.6k]
  ------------------
10302|   139k|      }
10302|   144k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  79.1k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 79.1k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  79.1k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 11, False: 79.1k]
  ------------------
10303|  79.1k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 28, False: 79.1k]
  ------------------
10303|  79.1k|  }
10303|  69.7k|  return {SUCCESS, matched};
10303|  69.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS4_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   148k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   148k|        const char* p = rjs.raw();
96024|   148k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   148k|            std::uint8_t ki = window.window_to_key[
96030|   148k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   148k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 1.34k, False: 147k]
  ------------------
96032|   147k|            return key_selector_detail::match_window_candidate(
96033|   147k|                p, ki, window, std::make_index_sequence<N>{});
96034|   148k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   148k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm7EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   147k|                       std::index_sequence<Is...>) noexcept {
95865|   147k|  std::size_t result = N;
95866|   147k|  auto try_match = [&](auto Ic) {
95867|   147k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   147k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   147k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   147k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   147k|      result = i;
95872|   147k|    }
95873|   147k|  };
95874|   147k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   147k|  return result;
95876|   147k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm7EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   147k|  auto try_match = [&](auto Ic) {
95867|   147k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   147k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 76.2k, False: 71.1k]
  |  Branch (95868:20): [True: 74.8k, False: 1.40k]
  ------------------
95869|  74.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 74.4k, False: 344]
  ------------------
95870|  74.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  74.4k|      result = i;
95872|  74.4k|    }
95873|   147k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm7EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   147k|  auto try_match = [&](auto Ic) {
95867|   147k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   147k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 71.1k, False: 76.2k]
  |  Branch (95868:20): [True: 70.0k, False: 1.06k]
  ------------------
95869|  70.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 69.6k, False: 368]
  ------------------
95870|  70.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  69.6k|      result = i;
95872|  69.6k|    }
95873|   147k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS4_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEE4sizeEv:
95952|   287k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS6_ILm7EEEtlA7_cLc116ELc97ELc114ELc103ELc101ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSC_16AnimationChannelEEUlSJ_E_EQaaaa17key_selector_typeISM_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_ENKUlmSJ_E_clEmSJ_:
10308|   139k|      [&](std::size_t i, value v) -> error_code {
10308|   139k|        return key_selector_for_each_detail::dispatch_value(
10308|   139k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   139k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_16AnimationChannelEEUlSD_E_EEEJLm0ELm1EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   139k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   139k|  error_code err = SUCCESS;
10304|   139k|  auto try_one = [&](auto Ic) {
10305|   139k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   139k|    if (idx == I) {
10305|   139k|      auto&& h = std::get<I>(handlers);
10305|   139k|      using H = std::remove_reference_t<decltype(h)>;
10305|   139k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   139k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   139k|          err = h(v);
10306|   139k|        } else {
10306|   139k|          h(v);
10306|   139k|        }
10306|   139k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   139k|        err = v.get(h);
10306|   139k|      }
10306|   139k|    }
10306|   139k|  };
10306|   139k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   139k|  return err;
10307|   139k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_16AnimationChannelEEUlSD_E_EEEJLm0ELm1EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm0EEEEEDaSG_:
10304|   139k|  auto try_one = [&](auto Ic) {
10305|   139k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   139k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 69.5k, False: 69.6k]
  ------------------
10305|  69.5k|      auto&& h = std::get<I>(handlers);
10305|  69.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  69.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  69.5k|        err = v.get(h);
10306|  69.5k|      }
10306|  69.5k|    }
10306|   139k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_16AnimationChannelEEUlSD_E_EEEJLm0ELm1EEEESE_mSH_SD_NS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm1EEEEEDaSG_:
10304|   139k|  auto try_one = [&](auto Ic) {
10305|   139k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   139k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 69.6k, False: 69.5k]
  ------------------
10305|  69.6k|      auto&& h = std::get<I>(handlers);
10305|  69.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  69.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  69.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  69.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  69.6k|    }
10306|   139k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS8_tlS9_Lc112ELc97ELc116ELc104EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSO_:
10349|  69.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  69.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 5, False: 69.6k]
  ------------------
10350|  69.6k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  69.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS6_tlS7_Lc112ELc97ELc116ELc104EEEEEJRN8fastgltf14basic_optionalImNS8_15flagged_storageImEEEERNSt3__18optionalINSE_17basic_string_viewIcNSE_11char_traitsIcEEEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_:
10309|  69.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  69.6k|  using Selector = key_selector<Keys...>;
10309|  69.6k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  69.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc112ELc97ELc116ELc104EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|  69.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  69.6k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  69.6k|  return this->template for_each<Selector>(
10308|  69.6k|      [&](std::size_t i, value v) -> error_code {
10308|  69.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  69.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  69.6k|      });
10309|  69.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc112ELc97ELc116ELc104EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalImNSB_15flagged_storageImEEEERNSt3__18optionalINSH_17basic_string_viewIcNSH_11char_traitsIcEEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmNS1_5valueEE_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSU_EEESR_OSW_:
10296|  69.6k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  69.6k|  value_iterator it = iter;
10297|  69.6k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  69.6k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  69.6k|  std::array<std::uint64_t, seen_words> seen{};
10298|   145k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 139k, False: 5.44k]
  ------------------
10298|   139k|    raw_json_string key;
10298|   139k|    error_code error;
10298|   139k|    std::size_t idx;
10298|   139k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   139k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 10, False: 139k]
  ------------------
10299|   139k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 17, False: 139k]
  ------------------
10299|   139k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   139k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 134k, False: 5.42k]
  ------------------
10300|   134k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   134k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   134k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 133k, False: 552]
  ------------------
10300|   133k|        seen_word |= seen_bit;
10300|   133k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   133k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   133k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 2, False: 133k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   133k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 64.1k, False: 69.5k]
  ------------------
10302|   133k|      }
10302|   134k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  75.5k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 75.5k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  75.5k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 6, False: 75.5k]
  ------------------
10303|  75.5k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 18, False: 75.5k]
  ------------------
10303|  75.5k|  }
10303|  69.6k|  return {SUCCESS, matched};
10303|  69.6k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS5_tlS6_Lc112ELc97ELc116ELc104EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   139k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   139k|        const char* p = rjs.raw();
96024|   139k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   139k|            std::uint8_t ki = window.window_to_key[
96030|   139k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   139k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.28k, False: 137k]
  ------------------
96032|   137k|            return key_selector_detail::match_window_candidate(
96033|   137k|                p, ki, window, std::make_index_sequence<N>{});
96034|   139k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   139k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm4EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   137k|                       std::index_sequence<Is...>) noexcept {
95865|   137k|  std::size_t result = N;
95866|   137k|  auto try_match = [&](auto Ic) {
95867|   137k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   137k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   137k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   137k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   137k|      result = i;
95872|   137k|    }
95873|   137k|  };
95874|   137k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   137k|  return result;
95876|   137k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm4EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   137k|  auto try_match = [&](auto Ic) {
95867|   137k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   137k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 66.9k, False: 70.5k]
  |  Branch (95868:20): [True: 65.2k, False: 1.67k]
  ------------------
95869|  65.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 64.3k, False: 922]
  ------------------
95870|  65.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  64.3k|      result = i;
95872|  64.3k|    }
95873|   137k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm4EEEbPKcS5_m:
95612|   156k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   156k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   156k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   156k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   156k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   156k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   156k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   156k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   156k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   156k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm4EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   137k|  auto try_match = [&](auto Ic) {
95867|   137k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   137k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 70.5k, False: 66.9k]
  |  Branch (95868:20): [True: 70.1k, False: 390]
  ------------------
95869|  70.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 69.9k, False: 126]
  ------------------
95870|  70.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  69.9k|      result = i;
95872|  69.9k|    }
95873|   137k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS5_tlS6_Lc112ELc97ELc116ELc104EEEEEE4sizeEv:
95952|   273k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc112ELc97ELc116ELc104EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_ENKUlmNS1_5valueEE_clEmST_:
10308|   133k|      [&](std::size_t i, value v) -> error_code {
10308|   133k|        return key_selector_for_each_detail::dispatch_value(
10308|   133k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   133k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   133k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   133k|  error_code err = SUCCESS;
10304|   133k|  auto try_one = [&](auto Ic) {
10305|   133k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   133k|    if (idx == I) {
10305|   133k|      auto&& h = std::get<I>(handlers);
10305|   133k|      using H = std::remove_reference_t<decltype(h)>;
10305|   133k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   133k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   133k|          err = h(v);
10306|   133k|        } else {
10306|   133k|          h(v);
10306|   133k|        }
10306|   133k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   133k|        err = v.get(h);
10306|   133k|      }
10306|   133k|    }
10306|   133k|  };
10306|   133k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   133k|  return err;
10307|   133k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm0EEEEEDaSL_:
10304|   133k|  auto try_one = [&](auto Ic) {
10305|   133k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   133k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 64.1k, False: 69.5k]
  ------------------
10305|  64.1k|      auto&& h = std::get<I>(handlers);
10305|  64.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  64.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  64.1k|        err = v.get(h);
10306|  64.1k|      }
10306|  64.1k|    }
10306|   133k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm1EEEEEDaSL_:
10304|   133k|  auto try_one = [&](auto Ic) {
10305|   133k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   133k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 69.5k, False: 64.1k]
  ------------------
10305|  69.5k|      auto&& h = std::get<I>(handlers);
10305|  69.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  69.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  69.5k|        err = v.get(h);
10306|  69.5k|      }
10306|  69.5k|    }
10306|   133k|  };
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf16AnimationChannelENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|  49.3k|        ~release_scratch() {
97516|  49.3k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|  49.3k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 304, False: 48.9k]
  |  |  ------------------
  ------------------
97517|  49.3k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  49.3k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 0, False: 49.3k]
  ------------------
97520|  49.3k|          s.busy = false;
97521|  49.3k|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf16AnimationChannelENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|    304|        simdjson_never_inline void keep_parsed() noexcept {
97512|    304|          s.elements.resize(parsed);
97513|    304|          out.swap(s.elements);
97514|    304|        }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf16AnimationChannelENS4_9allocatorIS8_EEEERNS6_INS7_16AnimationSamplerENS9_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS9_IcEEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm1EEEEEDaSX_:
10304|   145k|  auto try_one = [&](auto Ic) {
10305|   145k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   145k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 49.2k, False: 96.5k]
  ------------------
10305|  49.2k|      auto&& h = std::get<I>(handlers);
10305|  49.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  49.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  49.2k|        err = v.get(h);
10306|  49.2k|      }
10306|  49.2k|    }
10306|   145k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorIN8fastgltf16AnimationSamplerENS4_9allocatorIS7_EEEEEENS_10error_codeERT_:
89907|  49.2k| {
89908|  49.2k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  49.2k|  if constexpr (custom_deserializable<T, value>) {
89910|  49.2k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  49.2k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorIN8fastgltf16AnimationSamplerENS2_9allocatorIS5_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|  49.2k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  49.2k|    return tag_invoke(*this, object, output);
89263|  49.2k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf16AnimationSamplerENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|  49.2k|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|  49.2k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|  49.2k|  static_assert(
97478|  49.2k|      deserializable<value_type, ValT>,
97479|  49.2k|      "The specified type inside the container must itself be deserializable");
97480|  49.2k|  static_assert(
97481|  49.2k|      std::is_default_constructible_v<value_type>,
97482|  49.2k|      "The specified type inside the container must be default constructible.");
97483|  49.2k|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|  49.2k|  } else {
97487|  49.2k|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|  49.2k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 49.1k]
  |  |  ------------------
  ------------------
97488|  49.1k|  }
97489|       |
97490|  49.2k|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|  49.2k|    struct scratch_space {
97499|  49.2k|      std::vector<value_type> elements{};
97500|  49.2k|      bool busy{false};
97501|  49.2k|    };
97502|  49.2k|    static thread_local scratch_space scratch;
97503|  49.2k|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 49.1k, False: 3]
  |  Branch (97503:26): [True: 49.1k, False: 0]
  ------------------
97504|  49.1k|      struct release_scratch {
97505|  49.1k|        scratch_space &s;
97506|  49.1k|        T &out;
97507|  49.1k|        size_t parsed{0};
97508|  49.1k|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|  49.1k|        simdjson_never_inline void keep_parsed() noexcept {
97512|  49.1k|          s.elements.resize(parsed);
97513|  49.1k|          out.swap(s.elements);
97514|  49.1k|        }
97515|  49.1k|        ~release_scratch() {
97516|  49.1k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|  49.1k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  49.1k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|  49.1k|          s.busy = false;
97521|  49.1k|        }
97522|  49.1k|      } release{scratch, out};
97523|  49.1k|      scratch.busy = true;
97524|  73.9k|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 73.9k, False: 49.0k]
  ------------------
97525|  73.9k|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|  73.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 198, False: 73.7k]
  |  |  ------------------
  ------------------
97526|  73.7k|        release.parsed++;
97527|  73.7k|      }
97528|  49.0k|      out.reserve(release.parsed);
97529|  49.0k|      release.complete = true;
97530|  73.4k|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 73.4k, False: 49.0k]
  ------------------
97531|  49.0k|      return SUCCESS;
97532|  49.1k|    }
97533|  49.2k|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|  49.2k|  } else {
97544|  49.2k|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 49.2k]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|  49.2k|  }
97554|  49.2k|  return SUCCESS;
97555|  49.2k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIN8fastgltf16AnimationSamplerEEENS_10error_codeERT_:
99449|  73.9k|{
99450|  73.9k|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 10, False: 73.9k]
  ------------------
99451|  73.9k|  return first.get<T>(out);
99452|  73.9k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf16AnimationSamplerEEENS_10error_codeERT_:
89907|  73.9k| {
89908|  73.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  73.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  73.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  73.9k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf16AnimationSamplerEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  73.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  73.9k|    return tag_invoke(*this, object, output);
89263|  73.9k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS7_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERNSE_22AnimationInterpolationESJ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSM_:
10349|  73.9k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  73.9k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 24, False: 73.9k]
  ------------------
10350|  73.9k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  73.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS5_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERNSC_22AnimationInterpolationESH_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSK_:
10309|  73.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  73.9k|  using Selector = key_selector<Keys...>;
10309|  73.9k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  73.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERNSE_22AnimationInterpolationESJ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10308|  73.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  73.9k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  73.9k|  return this->template for_each<Selector>(
10308|  73.9k|      [&](std::size_t i, value v) -> error_code {
10308|  73.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  73.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  73.9k|      });
10309|  73.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERNSF_22AnimationInterpolationESK_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_EUlmNS1_5valueEE_Qaa17key_selector_typeISN_Esr3stdE14is_invocable_vIRT0_mSS_EEESP_OSU_:
10296|  73.9k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  73.9k|  value_iterator it = iter;
10297|  73.9k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  73.9k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  73.9k|  std::array<std::uint64_t, seen_words> seen{};
10298|   230k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 200k, False: 30.6k]
  ------------------
10298|   200k|    raw_json_string key;
10298|   200k|    error_code error;
10298|   200k|    std::size_t idx;
10298|   200k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   200k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 17, False: 200k]
  ------------------
10299|   200k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 41, False: 199k]
  ------------------
10299|   199k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   200k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 191k, False: 8.12k]
  ------------------
10300|   191k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   191k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   191k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 190k, False: 981]
  ------------------
10300|   190k|        seen_word |= seen_bit;
10300|   190k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   190k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   190k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 22, False: 190k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   190k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 43.2k, False: 147k]
  ------------------
10302|   190k|      }
10302|   191k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   156k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 156k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   156k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 11, False: 156k]
  ------------------
10303|   156k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 24, False: 156k]
  ------------------
10303|   156k|  }
10303|  73.9k|  return {SUCCESS, matched};
10303|  73.9k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS4_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   199k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   199k|        const char* p = rjs.raw();
96024|   199k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   199k|            std::uint8_t ki = window.window_to_key[
96030|   199k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   199k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 4.14k, False: 195k]
  ------------------
96032|   195k|            return key_selector_detail::match_window_candidate(
96033|   195k|                p, ki, window, std::make_index_sequence<N>{});
96034|   199k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   199k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS4_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEE4sizeEv:
95952|   390k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc112ELc117ELc116EEEEXtlNS6_ILm14EEEtlA14_cLc105ELc110ELc116ELc101ELc114ELc112ELc111ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc111ELc117ELc116ELc112ELc117ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERNSE_22AnimationInterpolationESJ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_ENKUlmNS1_5valueEE_clEmSR_:
10308|   190k|      [&](std::size_t i, value v) -> error_code {
10308|   190k|        return key_selector_for_each_detail::dispatch_value(
10308|   190k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   190k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS6_22AnimationInterpolationESB_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   190k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   190k|  error_code err = SUCCESS;
10304|   190k|  auto try_one = [&](auto Ic) {
10305|   190k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   190k|    if (idx == I) {
10305|   190k|      auto&& h = std::get<I>(handlers);
10305|   190k|      using H = std::remove_reference_t<decltype(h)>;
10305|   190k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   190k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   190k|          err = h(v);
10306|   190k|        } else {
10306|   190k|          h(v);
10306|   190k|        }
10306|   190k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   190k|        err = v.get(h);
10306|   190k|      }
10306|   190k|    }
10306|   190k|  };
10306|   190k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   190k|  return err;
10307|   190k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS6_22AnimationInterpolationESB_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm0EEEEEDaSG_:
10304|   190k|  auto try_one = [&](auto Ic) {
10305|   190k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   190k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 73.8k, False: 117k]
  ------------------
10305|  73.8k|      auto&& h = std::get<I>(handlers);
10305|  73.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  73.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  73.8k|        err = v.get(h);
10306|  73.8k|      }
10306|  73.8k|    }
10306|   190k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS6_22AnimationInterpolationESB_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm1EEEEEDaSG_:
10304|   190k|  auto try_one = [&](auto Ic) {
10305|   190k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   190k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 43.2k, False: 147k]
  ------------------
10305|  43.2k|      auto&& h = std::get<I>(handlers);
10305|  43.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  43.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  43.2k|        err = v.get(h);
10306|  43.2k|      }
10306|  43.2k|    }
10306|   190k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf22AnimationInterpolationEEENS_10error_codeERT_:
89907|  43.2k| {
89908|  43.2k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  43.2k|  if constexpr (custom_deserializable<T, value>) {
89910|  43.2k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  43.2k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf22AnimationInterpolationEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  43.2k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  43.2k|    return tag_invoke(*this, object, output);
89263|  43.2k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc76ELc73ELc78ELc69ELc65ELc82EEEEXtlNS4_ILm5EEEtlA5_cLc83ELc84ELc69ELc80EEEEXtlNS4_ILm12EEEtlA12_cLc67ELc85ELc66ELc73ELc67ELc83ELc80ELc76ELc73ELc78ELc69EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  43.2k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  43.2k|        const char* p = rjs.raw();
96024|  43.2k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  43.2k|            std::uint8_t ki = window.window_to_key[
96030|  43.2k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  43.2k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 1, False: 43.2k]
  ------------------
96032|  43.2k|            return key_selector_detail::match_window_candidate(
96033|  43.2k|                p, ki, window, std::make_index_sequence<N>{});
96034|  43.2k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  43.2k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm11EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   150k|                       std::index_sequence<Is...>) noexcept {
95865|   150k|  std::size_t result = N;
95866|   150k|  auto try_match = [&](auto Ic) {
95867|   150k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   150k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   150k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   150k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   150k|      result = i;
95872|   150k|    }
95873|   150k|  };
95874|   150k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   150k|  return result;
95876|   150k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm11EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   150k|  auto try_match = [&](auto Ic) {
95867|   150k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   150k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 36.2k, False: 114k]
  |  Branch (95868:20): [True: 35.0k, False: 1.17k]
  ------------------
95869|  35.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 34.3k, False: 639]
  ------------------
95870|  35.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  34.3k|      result = i;
95872|  34.3k|    }
95873|   150k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm11EEEbPKcS5_m:
95612|   691k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   691k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   691k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   691k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   691k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   691k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   691k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   691k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   691k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   691k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm11EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   150k|  auto try_match = [&](auto Ic) {
95867|   150k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   150k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 53.0k, False: 97.4k]
  |  Branch (95868:20): [True: 52.1k, False: 856]
  ------------------
95869|  52.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 49.2k, False: 2.94k]
  ------------------
95870|  52.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  49.2k|      result = i;
95872|  49.2k|    }
95873|   150k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm11EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   150k|  auto try_match = [&](auto Ic) {
95867|   150k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   150k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 61.2k, False: 89.2k]
  |  Branch (95868:20): [True: 60.7k, False: 583]
  ------------------
95869|  60.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 60.4k, False: 210]
  ------------------
95870|  60.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  60.4k|      result = i;
95872|  60.4k|    }
95873|   150k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS6_22AnimationInterpolationESB_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSG_E_clINS4_17integral_constantImLm2EEEEEDaSG_:
10304|   190k|  auto try_one = [&](auto Ic) {
10305|   190k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   190k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 73.8k, False: 117k]
  ------------------
10305|  73.8k|      auto&& h = std::get<I>(handlers);
10305|  73.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  73.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  73.8k|        err = v.get(h);
10306|  73.8k|      }
10306|  73.8k|    }
10306|   190k|  };
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf16AnimationSamplerENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|  49.1k|        ~release_scratch() {
97516|  49.1k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|  49.1k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 198, False: 49.0k]
  |  |  ------------------
  ------------------
97517|  49.1k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  49.1k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 0, False: 49.1k]
  ------------------
97520|  49.1k|          s.busy = false;
97521|  49.1k|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf16AnimationSamplerENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|    198|        simdjson_never_inline void keep_parsed() noexcept {
97512|    198|          s.elements.resize(parsed);
97513|    198|          out.swap(s.elements);
97514|    198|        }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf16AnimationChannelENS4_9allocatorIS8_EEEERNS6_INS7_16AnimationSamplerENS9_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS9_IcEEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm2EEEEEDaSX_:
10304|   145k|  auto try_one = [&](auto Ic) {
10305|   145k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   145k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 46.7k, False: 99.0k]
  ------------------
10305|  46.7k|      auto&& h = std::get<I>(handlers);
10305|  46.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  46.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  46.7k|        err = v.get(h);
10306|  46.7k|      }
10306|  46.7k|    }
10306|   145k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf16AnimationChannelENS4_9allocatorIS8_EEEERNS6_INS7_16AnimationSamplerENS9_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS9_IcEEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm3EEEEEDaSX_:
10304|   145k|  auto try_one = [&](auto Ic) {
10305|   145k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   145k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 571, False: 145k]
  ------------------
10305|    571|      auto&& h = std::get<I>(handlers);
10305|    571|      using H = std::remove_reference_t<decltype(h)>;
10305|    571|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    571|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    571|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    571|    }
10306|   145k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS7_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSO_15flagged_storageImEEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS17_:
10349|  76.8k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  76.8k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 64, False: 76.7k]
  ------------------
10350|  76.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  76.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS5_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSE_17basic_string_viewIcNSE_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSM_15flagged_storageImEEEERNSE_12basic_stringIcSI_NSE_9allocatorIcEEEERKZNSM_10readExtrasERKNSM_20ParserInternalConfigEmNSM_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS15_:
10309|  76.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  76.7k|  using Selector = key_selector<Keys...>;
10309|  76.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  76.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSO_15flagged_storageImEEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS17_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS18_:
10308|  76.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  76.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  76.7k|  return this->template for_each<Selector>(
10308|  76.7k|      [&](std::size_t i, value v) -> error_code {
10308|  76.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  76.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  76.7k|      });
10309|  76.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRNSt3__18optionalINSH_17basic_string_viewIcNSH_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSP_15flagged_storageImEEEERNSH_12basic_stringIcSL_NSH_9allocatorIcEEEERKZNSP_10readExtrasERKNSP_20ParserInternalConfigEmNSP_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS18_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS19_EUlmS14_E_Qaa17key_selector_typeIS18_Esr3stdE14is_invocable_vIRT0_mS14_EEES1A_OS1E_:
10296|  76.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  76.7k|  value_iterator it = iter;
10297|  76.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  76.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  76.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   292k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 218k, False: 73.4k]
  ------------------
10298|   218k|    raw_json_string key;
10298|   218k|    error_code error;
10298|   218k|    std::size_t idx;
10298|   218k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   218k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 21, False: 218k]
  ------------------
10299|   218k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 28, False: 218k]
  ------------------
10299|   218k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   218k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 179k, False: 39.6k]
  ------------------
10300|   179k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   179k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   179k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 170k, False: 8.45k]
  ------------------
10300|   170k|        seen_word |= seen_bit;
10300|   170k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   170k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   170k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 14, False: 170k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   170k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3.28k, False: 167k]
  ------------------
10302|   170k|      }
10302|   179k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   215k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 215k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   215k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 29, False: 215k]
  ------------------
10303|   215k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 30, False: 215k]
  ------------------
10303|   215k|  }
10303|  76.7k|  return {SUCCESS, matched};
10303|  76.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   218k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   218k|        const char* p = rjs.raw();
96024|   218k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   218k|            std::uint8_t ki = window.window_to_key[
96030|   218k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   218k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 16.4k, False: 202k]
  ------------------
96032|   202k|            return key_selector_detail::match_window_candidate(
96033|   202k|                p, ki, window, std::make_index_sequence<N>{});
96034|   218k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   218k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   389k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSO_15flagged_storageImEEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS17_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS18_ENKUlmS13_E_clEmS13_:
10308|   170k|      [&](std::size_t i, value v) -> error_code {
10308|   170k|        return key_selector_for_each_detail::dispatch_value(
10308|   170k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   170k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   170k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   170k|  error_code err = SUCCESS;
10304|   170k|  auto try_one = [&](auto Ic) {
10305|   170k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   170k|    if (idx == I) {
10305|   170k|      auto&& h = std::get<I>(handlers);
10305|   170k|      using H = std::remove_reference_t<decltype(h)>;
10305|   170k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   170k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   170k|          err = h(v);
10306|   170k|        } else {
10306|   170k|          h(v);
10306|   170k|        }
10306|   170k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   170k|        err = v.get(h);
10306|   170k|      }
10306|   170k|    }
10306|   170k|  };
10306|   170k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   170k|  return err;
10307|   170k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm0EEEEEDaSY_:
10304|   170k|  auto try_one = [&](auto Ic) {
10305|   170k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   170k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 65.9k, False: 104k]
  ------------------
10305|  65.9k|      auto&& h = std::get<I>(handlers);
10305|  65.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  65.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  65.9k|        err = v.get(h);
10306|  65.9k|      }
10306|  65.9k|    }
10306|   170k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm1EEEEEDaSY_:
10304|   170k|  auto try_one = [&](auto Ic) {
10305|   170k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   170k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 76.6k, False: 94.3k]
  ------------------
10305|  76.6k|      auto&& h = std::get<I>(handlers);
10305|  76.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  76.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  76.6k|        err = v.get(h);
10306|  76.6k|      }
10306|  76.6k|    }
10306|   170k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm2EEEEEDaSY_:
10304|   170k|  auto try_one = [&](auto Ic) {
10305|   170k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   170k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 24.9k, False: 145k]
  ------------------
10305|  24.9k|      auto&& h = std::get<I>(handlers);
10305|  24.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  24.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  24.9k|        err = v.get(h);
10306|  24.9k|      }
10306|  24.9k|    }
10306|   170k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm3EEEEEDaSY_:
10304|   170k|  auto try_one = [&](auto Ic) {
10305|   170k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   170k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.37k, False: 167k]
  ------------------
10305|  3.37k|      auto&& h = std::get<I>(handlers);
10305|  3.37k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.37k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.37k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.37k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  3.37k|    }
10306|   170k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS7_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlSA_tlSB_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlSA_tlSB_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS8_tlS9_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlSA_tlSB_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmSJ_SJ_RNSF_INSE_12BufferTargetENSG_ISL_EEEERNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIcEEEERKZNSE_6Parser16parseBufferViewsERNSE_8internal9JsonArrayERNSE_5AssetEE3$_1RKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1E_:
10349|   262k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   262k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 37, False: 262k]
  ------------------
10350|   262k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   262k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS5_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS6_tlS7_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS6_tlS7_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmSH_SH_RNSD_INSC_12BufferTargetENSE_ISJ_EEEERNSt3__112basic_stringIcNSN_11char_traitsIcEENSN_9allocatorIcEEEERKZNSC_6Parser16parseBufferViewsERNSC_8internal9JsonArrayERNSC_5AssetEE3$_1RKZNSC_10readExtrasERKNSC_20ParserInternalConfigEmNSC_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_:
10309|   262k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   262k|  using Selector = key_selector<Keys...>;
10309|   262k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   262k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS7_tlS8_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmSJ_SJ_RNSF_INSE_12BufferTargetENSG_ISL_EEEERNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIcEEEERKZNSE_6Parser16parseBufferViewsERNSE_8internal9JsonArrayERNSE_5AssetEE3$_1RKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1E_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1F_:
10308|   262k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   262k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   262k|  return this->template for_each<Selector>(
10308|   262k|      [&](std::size_t i, value v) -> error_code {
10308|   262k|        return key_selector_for_each_detail::dispatch_value(
10308|   262k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   262k|      });
10309|   262k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS7_tlS8_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERmSK_SK_RNSG_INSF_12BufferTargetENSH_ISM_EEEERNSt3__112basic_stringIcNSQ_11char_traitsIcEENSQ_9allocatorIcEEEERKZNSF_6Parser16parseBufferViewsERNSF_8internal9JsonArrayERNSF_5AssetEE3$_1RKZNSF_10readExtrasERKNSF_20ParserInternalConfigEmNSF_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1F_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1G_EUlmS1B_E_Qaa17key_selector_typeIS1F_Esr3stdE14is_invocable_vIRT0_mS1B_EEES1H_OS1L_:
10296|   262k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   262k|  value_iterator it = iter;
10297|   262k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   262k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   262k|  std::array<std::uint64_t, seen_words> seen{};
10298|  1.34M|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 1.07M, False: 261k]
  ------------------
10298|  1.07M|    raw_json_string key;
10298|  1.07M|    error_code error;
10298|  1.07M|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|  1.07M|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|  1.07M|      std::size_t key_len;
10299|  1.07M|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 28, False: 1.07M]
  ------------------
10299|  1.07M|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 39, False: 1.07M]
  ------------------
10300|  1.07M|      idx = Selector::match_raw(key.raw(), key_len);
10300|  1.07M|    }
10300|  1.07M|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 992k, False: 86.9k]
  ------------------
10300|   992k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   992k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   992k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 971k, False: 20.7k]
  ------------------
10300|   971k|        seen_word |= seen_bit;
10300|   971k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   971k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   971k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 601, False: 971k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   971k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 841, False: 970k]
  ------------------
10302|   971k|      }
10302|   992k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  1.07M|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 1.07M]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  1.07M|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 14, False: 1.07M]
  ------------------
10303|  1.07M|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 72, False: 1.07M]
  ------------------
10303|  1.07M|  }
10303|   262k|  return {SUCCESS, matched};
10303|   262k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS5_tlS6_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawEPKcm:
95964|  1.07M|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|  1.07M|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 7.00k, False: 1.07M]
  |  Branch (95965:25): [True: 34.9k, False: 1.03M]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|  1.03M|        std::size_t slot;
95981|  1.03M|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 1.03M]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|  1.03M|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|  1.03M|            std::size_t h = len;
95996|  2.07M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 1.03M, False: 1.03M]
  ------------------
95997|  1.03M|                std::uint8_t pos = phf.positions[i];
95998|  1.03M|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 1.03M]
  ------------------
95999|  1.03M|                                  ? (len - std::size_t{1})
96000|  1.03M|                                  : static_cast<std::size_t>(pos);
96001|  1.03M|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 1.00M, False: 27.9k]
  ------------------
96002|  1.00M|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|  1.00M|                }
96004|  1.03M|            }
96005|  1.03M|            slot = h & (table_size - 1);
96006|  1.03M|        }
96007|       |
96008|  1.03M|        std::uint8_t ki = phf.slot_to_key[slot];
96009|  1.03M|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 0, False: 1.03M]
  ------------------
96010|  1.03M|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 19.0k, False: 1.01M]
  ------------------
96011|  1.01M|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 25.8k, False: 992k]
  ------------------
96012|  1.01M|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   992k|        return ki;
96014|  1.01M|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS5_tlS6_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|  2.05M|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlS7_tlS8_Lc116ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmSJ_SJ_RNSF_INSE_12BufferTargetENSG_ISL_EEEERNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIcEEEERKZNSE_6Parser16parseBufferViewsERNSE_8internal9JsonArrayERNSE_5AssetEE3$_1RKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1E_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1F_ENKUlmS1A_E_clEmS1A_:
10308|   971k|      [&](std::size_t i, value v) -> error_code {
10308|   971k|        return key_selector_for_each_detail::dispatch_value(
10308|   971k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   971k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   971k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   971k|  error_code err = SUCCESS;
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
10305|   971k|      auto&& h = std::get<I>(handlers);
10305|   971k|      using H = std::remove_reference_t<decltype(h)>;
10305|   971k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   971k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   971k|          err = h(v);
10306|   971k|        } else {
10306|   971k|          h(v);
10306|   971k|        }
10306|   971k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   971k|        err = v.get(h);
10306|   971k|      }
10306|   971k|    }
10306|   971k|  };
10306|   971k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   971k|  return err;
10307|   971k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm0EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 261k, False: 709k]
  ------------------
10305|   261k|      auto&& h = std::get<I>(handlers);
10305|   261k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   261k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   261k|        err = v.get(h);
10306|   261k|      }
10306|   261k|    }
10306|   971k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm1EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 209k, False: 762k]
  ------------------
10305|   209k|      auto&& h = std::get<I>(handlers);
10305|   209k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   209k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   209k|        err = v.get(h);
10306|   209k|      }
10306|   209k|    }
10306|   971k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm2EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 261k, False: 710k]
  ------------------
10305|   261k|      auto&& h = std::get<I>(handlers);
10305|   261k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   261k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   261k|        err = v.get(h);
10306|   261k|      }
10306|   261k|    }
10306|   971k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm3EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 31.9k, False: 939k]
  ------------------
10305|  31.9k|      auto&& h = std::get<I>(handlers);
10305|  31.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  31.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  31.9k|        err = v.get(h);
10306|  31.9k|      }
10306|  31.9k|    }
10306|   971k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm4EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 138k, False: 832k]
  ------------------
10305|   138k|      auto&& h = std::get<I>(handlers);
10305|   138k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   138k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   138k|        err = v.get(h);
10306|   138k|      }
10306|   138k|    }
10306|   971k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14basic_optionalINS4_12BufferTargetENS4_15flagged_storageIS6_EEEEEENS_10error_codeERT_:
89907|   138k| {
89908|   138k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   138k|  if constexpr (custom_deserializable<T, value>) {
89910|   138k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   138k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14basic_optionalINS2_12BufferTargetENS2_15flagged_storageIS4_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSB_RS8_:
89261|   138k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   138k|    return tag_invoke(*this, object, output);
89263|   138k|  }
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf12BufferTargetEEENS_10error_codeERT_:
89907|   138k| {
89908|   138k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   138k|  if constexpr (custom_deserializable<T, value>) {
89910|   138k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   138k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf12BufferTargetEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|   138k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   138k|    return tag_invoke(*this, object, output);
89263|   138k|  }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm5EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.3k, False: 956k]
  ------------------
10305|  15.3k|      auto&& h = std::get<I>(handlers);
10305|  15.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.3k|        err = v.get(h);
10306|  15.3k|      }
10306|  15.3k|    }
10306|   971k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm6EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 51.2k, False: 920k]
  ------------------
10305|  51.2k|      auto&& h = std::get<I>(handlers);
10305|  51.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  51.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  51.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  51.2k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  51.2k|    }
10306|   971k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS8_tlS9_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEJZZN8fastgltf6Parser16parseBufferViewsERNSA_8internal9JsonArrayERNSA_5AssetEENK3$_0clENSA_10ExtensionsERNSt3__18optionalINSA_20CompressedBufferViewEEEEUlNS2_5valueEE_SP_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSQ_:
10349|  51.2k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  51.2k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 4, False: 51.2k]
  ------------------
10350|  51.2k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  51.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS6_tlS7_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEJZZN8fastgltf6Parser16parseBufferViewsERNS8_8internal9JsonArrayERNS8_5AssetEENK3$_0clENS8_10ExtensionsERNSt3__18optionalINS8_20CompressedBufferViewEEEEUlNS1_5valueEE_SN_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_:
10309|  51.2k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  51.2k|  using Selector = key_selector<Keys...>;
10309|  51.2k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  51.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEEJZZN8fastgltf6Parser16parseBufferViewsERNSA_8internal9JsonArrayERNSA_5AssetEENK3$_0clENSA_10ExtensionsERNSt3__18optionalINSA_20CompressedBufferViewEEEEUlNS1_5valueEE_SP_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_:
10308|  51.2k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  51.2k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  51.2k|  return this->template for_each<Selector>(
10308|  51.2k|      [&](std::size_t i, value v) -> error_code {
10308|  51.2k|        return key_selector_for_each_detail::dispatch_value(
10308|  51.2k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  51.2k|      });
10309|  51.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEEZNS2_8for_eachIS9_JZZN8fastgltf6Parser16parseBufferViewsERNSB_8internal9JsonArrayERNSB_5AssetEENK3$_0clENSB_10ExtensionsERNSt3__18optionalINSB_20CompressedBufferViewEEEEUlNS1_5valueEE_SQ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_EUlmSP_E_Qaa17key_selector_typeISR_Esr3stdE14is_invocable_vIRT0_mSP_EEEST_OSX_:
10296|  51.2k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  51.2k|  value_iterator it = iter;
10297|  51.2k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  51.2k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  51.2k|  std::array<std::uint64_t, seen_words> seen{};
10298|   110k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 59.5k, False: 50.9k]
  ------------------
10298|  59.5k|    raw_json_string key;
10298|  59.5k|    error_code error;
10298|  59.5k|    std::size_t idx;
10298|  59.5k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  59.5k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 7, False: 59.5k]
  ------------------
10299|  59.5k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 9, False: 59.5k]
  ------------------
10299|  59.5k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  59.5k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 45.9k, False: 13.6k]
  ------------------
10300|  45.9k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  45.9k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  45.9k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 45.7k, False: 209]
  ------------------
10300|  45.7k|        seen_word |= seen_bit;
10300|  45.7k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  45.7k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  45.7k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 312, False: 45.4k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  45.7k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 284, False: 45.4k]
  ------------------
10302|  45.7k|      }
10302|  45.9k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  59.2k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 59.2k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  59.2k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 14, False: 59.2k]
  ------------------
10303|  59.2k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 15, False: 59.2k]
  ------------------
10303|  59.2k|  }
10303|  51.2k|  return {SUCCESS, matched};
10303|  51.2k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS5_tlS6_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  59.5k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  59.5k|        const char* p = rjs.raw();
96024|  59.5k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  59.5k|            std::uint8_t ki = window.window_to_key[
96030|  59.5k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  59.5k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 6.21k, False: 53.3k]
  ------------------
96032|  53.3k|            return key_selector_detail::match_window_candidate(
96033|  53.3k|                p, ki, window, std::make_index_sequence<N>{});
96034|  59.5k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  59.5k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm23EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  53.3k|                       std::index_sequence<Is...>) noexcept {
95865|  53.3k|  std::size_t result = N;
95866|  53.3k|  auto try_match = [&](auto Ic) {
95867|  53.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  53.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  53.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  53.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  53.3k|      result = i;
95872|  53.3k|    }
95873|  53.3k|  };
95874|  53.3k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  53.3k|  return result;
95876|  53.3k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm23EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  53.3k|  auto try_match = [&](auto Ic) {
95867|  53.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  53.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 14.9k, False: 38.3k]
  |  Branch (95868:20): [True: 13.4k, False: 1.56k]
  ------------------
95869|  13.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.8k, False: 2.56k]
  ------------------
95870|  13.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.8k|      result = i;
95872|  10.8k|    }
95873|  53.3k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm23EEEbPKcS5_m:
95612|  50.8k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  50.8k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  50.8k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|  50.8k|    } else if constexpr (MaxKeyLen <= 32) {
95644|  50.8k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|  50.8k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|  50.8k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|  50.8k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|  50.8k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|  50.8k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|  50.8k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|  50.8k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|  50.8k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|  50.8k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|  50.8k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  50.8k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm23EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  53.3k|  auto try_match = [&](auto Ic) {
95867|  53.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  53.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 38.3k, False: 14.9k]
  |  Branch (95868:20): [True: 37.3k, False: 947]
  ------------------
95869|  37.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 35.0k, False: 2.32k]
  ------------------
95870|  37.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  35.0k|      result = i;
95872|  35.0k|    }
95873|  53.3k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS5_tlS6_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEE4sizeEv:
95952|   104k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc111ELc112ELc116ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEEEEJZZN8fastgltf6Parser16parseBufferViewsERNSA_8internal9JsonArrayERNSA_5AssetEENK3$_0clENSA_10ExtensionsERNSt3__18optionalINSA_20CompressedBufferViewEEEEUlNS1_5valueEE_SP_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_ENKUlmSO_E_clEmSO_:
10308|  45.7k|      [&](std::size_t i, value v) -> error_code {
10308|  45.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  45.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  45.7k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS6_10ExtensionsERNS4_8optionalINS6_20CompressedBufferViewEEEEUlNS1_5valueEE_SL_EEEJLm0ELm1EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  45.7k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  45.7k|  error_code err = SUCCESS;
10304|  45.7k|  auto try_one = [&](auto Ic) {
10305|  45.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  45.7k|    if (idx == I) {
10305|  45.7k|      auto&& h = std::get<I>(handlers);
10305|  45.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|  45.7k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  45.7k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  45.7k|          err = h(v);
10306|  45.7k|        } else {
10306|  45.7k|          h(v);
10306|  45.7k|        }
10306|  45.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.7k|        err = v.get(h);
10306|  45.7k|      }
10306|  45.7k|    }
10306|  45.7k|  };
10306|  45.7k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  45.7k|  return err;
10307|  45.7k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS6_10ExtensionsERNS4_8optionalINS6_20CompressedBufferViewEEEEUlNS1_5valueEE_SL_EEEJLm0ELm1EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm0EEEEEDaSO_:
10304|  45.7k|  auto try_one = [&](auto Ic) {
10305|  45.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  45.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.6k, False: 35.0k]
  ------------------
10305|  10.6k|      auto&& h = std::get<I>(handlers);
10305|  10.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  10.6k|    }
10306|  45.7k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf20CompressedBufferViewEEENS_10error_codeERT_:
89907|  45.7k| {
89908|  45.7k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  45.7k|  if constexpr (custom_deserializable<T, value>) {
89910|  45.7k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  45.7k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf20CompressedBufferViewEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  45.7k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  45.7k|    return tag_invoke(*this, object, output);
89263|  45.7k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS7_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlSA_tlSB_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlSA_tlSB_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS7_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS7_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS8_tlS9_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEERmSL_SL_SL_RNSt3__18optionalINSG_22MeshoptCompressionModeEEERNSG_24MeshoptCompressionFilterEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSU_:
10349|  45.7k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  45.7k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 12, False: 45.7k]
  ------------------
10350|  45.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  45.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS5_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS8_tlS9_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS5_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS5_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS6_tlS7_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmSJ_SJ_SJ_RNSt3__18optionalINSE_22MeshoptCompressionModeEEERNSE_24MeshoptCompressionFilterEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_:
10309|  45.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  45.7k|  using Selector = key_selector<Keys...>;
10309|  45.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  45.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEERmSL_SL_SL_RNSt3__18optionalINSG_22MeshoptCompressionModeEEERNSG_24MeshoptCompressionFilterEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10308|  45.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  45.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  45.7k|  return this->template for_each<Selector>(
10308|  45.7k|      [&](std::size_t i, value v) -> error_code {
10308|  45.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  45.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  45.7k|      });
10309|  45.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEEEZNS2_8for_eachISF_JRN8fastgltf14basic_optionalImNSH_15flagged_storageImEEEERmSM_SM_SM_RNSt3__18optionalINSH_22MeshoptCompressionModeEEERNSH_24MeshoptCompressionFilterEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSV_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_EUlmNS1_5valueEE_Qaa17key_selector_typeISV_Esr3stdE14is_invocable_vIRT0_mS10_EEESX_OS12_:
10296|  45.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  45.7k|  value_iterator it = iter;
10297|  45.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  45.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  45.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   386k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 349k, False: 36.8k]
  ------------------
10298|   349k|    raw_json_string key;
10298|   349k|    error_code error;
10298|   349k|    std::size_t idx;
10298|   349k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   349k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 58, False: 349k]
  ------------------
10299|   349k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 39, False: 349k]
  ------------------
10299|   349k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   349k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 287k, False: 61.9k]
  ------------------
10300|   287k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   287k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   287k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 270k, False: 16.5k]
  ------------------
10300|   270k|        seen_word |= seen_bit;
10300|   270k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   270k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   270k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 53, False: 270k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   270k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 8.77k, False: 262k]
  ------------------
10302|   270k|      }
10302|   287k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   340k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 340k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   340k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 26, False: 340k]
  ------------------
10303|   340k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 52, False: 340k]
  ------------------
10303|   340k|  }
10303|  45.6k|  return {SUCCESS, matched};
10303|  45.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS4_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS5_tlS6_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   349k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   349k|        const char* p = rjs.raw();
96024|   349k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   349k|            std::uint8_t ki = window.window_to_key[
96030|   349k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   349k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 30.5k, False: 318k]
  ------------------
96032|   318k|            return key_selector_detail::match_window_candidate(
96033|   318k|                p, ki, window, std::make_index_sequence<N>{});
96034|   349k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   349k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   318k|                       std::index_sequence<Is...>) noexcept {
95865|   318k|  std::size_t result = N;
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   318k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   318k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   318k|      result = i;
95872|   318k|    }
95873|   318k|  };
95874|   318k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   318k|  return result;
95876|   318k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 50.8k, False: 267k]
  |  Branch (95868:20): [True: 46.3k, False: 4.58k]
  ------------------
95869|  46.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 45.9k, False: 389]
  ------------------
95870|  46.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  45.9k|      result = i;
95872|  45.9k|    }
95873|   318k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 47.9k, False: 270k]
  |  Branch (95868:20): [True: 42.8k, False: 5.08k]
  ------------------
95869|  42.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 38.4k, False: 4.40k]
  ------------------
95870|  42.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  38.4k|      result = i;
95872|  38.4k|    }
95873|   318k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 55.5k, False: 263k]
  |  Branch (95868:20): [True: 52.6k, False: 2.91k]
  ------------------
95869|  52.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 50.5k, False: 2.08k]
  ------------------
95870|  52.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  50.5k|      result = i;
95872|  50.5k|    }
95873|   318k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 50.4k, False: 268k]
  |  Branch (95868:20): [True: 49.4k, False: 937]
  ------------------
95869|  49.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 48.1k, False: 1.33k]
  ------------------
95870|  49.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  48.1k|      result = i;
95872|  48.1k|    }
95873|   318k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 48.2k, False: 270k]
  |  Branch (95868:20): [True: 47.8k, False: 411]
  ------------------
95869|  47.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 47.5k, False: 320]
  ------------------
95870|  47.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  47.5k|      result = i;
95872|  47.5k|    }
95873|   318k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 53.5k, False: 265k]
  |  Branch (95868:20): [True: 52.1k, False: 1.40k]
  ------------------
95869|  52.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 46.9k, False: 5.18k]
  ------------------
95870|  52.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  46.9k|      result = i;
95872|  46.9k|    }
95873|   318k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm7ELm10EJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm6EEEEEDaSD_:
95866|   318k|  auto try_match = [&](auto Ic) {
95867|   318k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   318k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.1k, False: 306k]
  |  Branch (95868:20): [True: 11.7k, False: 427]
  ------------------
95869|  11.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 9.87k, False: 1.83k]
  ------------------
95870|  11.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  9.87k|      result = i;
95872|  9.87k|    }
95873|   318k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS4_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS5_tlS6_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEE4sizeEv:
95952|   620k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc98ELc117ELc102ELc102ELc101ELc114EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc121ELc116ELc101ELc79ELc102ELc102ELc115ELc101ELc116EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc76ELc101ELc110ELc103ELc116ELc104EEEEXtlS9_tlSA_Lc98ELc121ELc116ELc101ELc83ELc116ELc114ELc105ELc100ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc117ELc110ELc116EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc102ELc105ELc108ELc116ELc101ELc114EEEEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEERmSL_SL_SL_RNSt3__18optionalINSG_22MeshoptCompressionModeEEERNSG_24MeshoptCompressionFilterEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_ENKUlmNS1_5valueEE_clEmSZ_:
10308|   270k|      [&](std::size_t i, value v) -> error_code {
10308|   270k|        return key_selector_for_each_detail::dispatch_value(
10308|   270k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   270k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   270k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   270k|  error_code err = SUCCESS;
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
10305|   270k|      auto&& h = std::get<I>(handlers);
10305|   270k|      using H = std::remove_reference_t<decltype(h)>;
10305|   270k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   270k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   270k|          err = h(v);
10306|   270k|        } else {
10306|   270k|          h(v);
10306|   270k|        }
10306|   270k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   270k|        err = v.get(h);
10306|   270k|      }
10306|   270k|    }
10306|   270k|  };
10306|   270k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   270k|  return err;
10307|   270k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm0EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 45.4k, False: 225k]
  ------------------
10305|  45.4k|      auto&& h = std::get<I>(handlers);
10305|  45.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  45.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.4k|        err = v.get(h);
10306|  45.4k|      }
10306|  45.4k|    }
10306|   270k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm1EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 33.9k, False: 236k]
  ------------------
10305|  33.9k|      auto&& h = std::get<I>(handlers);
10305|  33.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  33.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  33.9k|        err = v.get(h);
10306|  33.9k|      }
10306|  33.9k|    }
10306|   270k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm2EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 45.4k, False: 225k]
  ------------------
10305|  45.4k|      auto&& h = std::get<I>(handlers);
10305|  45.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  45.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.4k|        err = v.get(h);
10306|  45.4k|      }
10306|  45.4k|    }
10306|   270k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm3EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 45.4k, False: 225k]
  ------------------
10305|  45.4k|      auto&& h = std::get<I>(handlers);
10305|  45.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  45.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.4k|        err = v.get(h);
10306|  45.4k|      }
10306|  45.4k|    }
10306|   270k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm4EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 45.4k, False: 225k]
  ------------------
10305|  45.4k|      auto&& h = std::get<I>(handlers);
10305|  45.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  45.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.4k|        err = v.get(h);
10306|  45.4k|      }
10306|  45.4k|    }
10306|   270k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm5EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 45.4k, False: 225k]
  ------------------
10305|  45.4k|      auto&& h = std::get<I>(handlers);
10305|  45.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  45.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.4k|        err = v.get(h);
10306|  45.4k|      }
10306|  45.4k|    }
10306|   270k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf22MeshoptCompressionModeEEEEENS_10error_codeERT_:
89907|  45.4k| {
89908|  45.4k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  45.4k|  if constexpr (custom_deserializable<T, value>) {
89910|  45.4k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  45.4k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf22MeshoptCompressionModeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  45.4k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  45.4k|    return tag_invoke(*this, object, output);
89263|  45.4k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf22MeshoptCompressionModeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  45.4k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  45.4k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  45.4k|  static_assert(
97645|  45.4k|      deserializable<value_type, ValT>,
97646|  45.4k|      "The specified type inside the optional must itself be deserializable");
97647|  45.4k|  static_assert(
97648|  45.4k|      std::is_default_constructible_v<value_type>,
97649|  45.4k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  45.4k|  bool is_null_value;
97653|  45.4k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  45.4k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 45.4k]
  |  |  ------------------
  ------------------
97654|  45.4k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 45.4k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  45.4k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 45.4k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  45.4k|    out.emplace();
97665|  45.4k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  45.4k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  45.4k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 10, False: 45.4k]
  |  |  ------------------
  ------------------
97667|  45.4k|    guard.armed = false;
97668|  45.4k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  45.4k|  return SUCCESS;
97676|  45.4k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf22MeshoptCompressionModeEEENS_10error_codeERT_:
89907|  45.4k| {
89908|  45.4k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  45.4k|  if constexpr (custom_deserializable<T, value>) {
89910|  45.4k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  45.4k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf22MeshoptCompressionModeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  45.4k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  45.4k|    return tag_invoke(*this, object, output);
89263|  45.4k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc65ELc84ELc84ELc82ELc73ELc66ELc85ELc84ELc69ELc83EEEEXtlNS4_ILm10EEEtlA10_cLc84ELc82ELc73ELc65ELc78ELc71ELc76ELc69ELc83EEEEXtlNS4_ILm8EEEtlA8_cLc73ELc78ELc68ELc73ELc67ELc69ELc83EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  45.4k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  45.4k|        const char* p = rjs.raw();
96024|  45.4k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  45.4k|            std::uint8_t ki = window.window_to_key[
96030|  45.4k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  45.4k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 1, False: 45.4k]
  ------------------
96032|  45.4k|            return key_selector_detail::match_window_candidate(
96033|  45.4k|                p, ki, window, std::make_index_sequence<N>{});
96034|  45.4k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  45.4k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm10EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  61.2k|                       std::index_sequence<Is...>) noexcept {
95865|  61.2k|  std::size_t result = N;
95866|  61.2k|  auto try_match = [&](auto Ic) {
95867|  61.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  61.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  61.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  61.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  61.2k|      result = i;
95872|  61.2k|    }
95873|  61.2k|  };
95874|  61.2k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  61.2k|  return result;
95876|  61.2k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm10EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  61.2k|  auto try_match = [&](auto Ic) {
95867|  61.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  61.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 40.6k, False: 20.5k]
  |  Branch (95868:20): [True: 37.9k, False: 2.77k]
  ------------------
95869|  37.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 37.6k, False: 264]
  ------------------
95870|  37.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  37.6k|      result = i;
95872|  37.6k|    }
95873|  61.2k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm10EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  61.2k|  auto try_match = [&](auto Ic) {
95867|  61.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  61.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 18.8k, False: 42.4k]
  |  Branch (95868:20): [True: 18.3k, False: 415]
  ------------------
95869|  18.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 18.0k, False: 331]
  ------------------
95870|  18.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  18.0k|      result = i;
95872|  18.0k|    }
95873|  61.2k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm10EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  61.2k|  auto try_match = [&](auto Ic) {
95867|  61.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  61.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.71k, False: 59.5k]
  |  Branch (95868:20): [True: 1.03k, False: 680]
  ------------------
95869|  1.03k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 775, False: 264]
  ------------------
95870|  1.03k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    775|      result = i;
95872|    775|    }
95873|  61.2k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf22MeshoptCompressionModeEEEED2Ev:
97461|  45.4k|  ~reset_guard() {
97462|  45.4k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 10, False: 45.4k]
  ------------------
97463|  45.4k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_SB_RNS4_8optionalINS6_22MeshoptCompressionModeEEERNS6_24MeshoptCompressionFilterEEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm6EEEEEDaSL_:
10304|   270k|  auto try_one = [&](auto Ic) {
10305|   270k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   270k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 9.65k, False: 261k]
  ------------------
10305|  9.65k|      auto&& h = std::get<I>(handlers);
10305|  9.65k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  9.65k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  9.65k|        err = v.get(h);
10306|  9.65k|      }
10306|  9.65k|    }
10306|   270k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf24MeshoptCompressionFilterEEENS_10error_codeERT_:
89907|  9.65k| {
89908|  9.65k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  9.65k|  if constexpr (custom_deserializable<T, value>) {
89910|  9.65k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  9.65k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf24MeshoptCompressionFilterEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  9.65k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  9.65k|    return tag_invoke(*this, object, output);
89263|  9.65k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc78ELc79ELc78ELc69EEEEXtlNS4_ILm11EEEtlA11_cLc79ELc67ELc84ELc65ELc72ELc69ELc68ELc82ELc65ELc76EEEEXtlS7_tlS8_Lc81ELc85ELc65ELc84ELc69ELc82ELc78ELc73ELc79ELc78EEEEXtlNS4_ILm12EEEtlA12_cLc69ELc88ELc80ELc79ELc78ELc69ELc78ELc84ELc73ELc65ELc76EEEEXtlNS4_ILm6EEEtlA6_cLc67ELc79ELc76ELc79ELc82EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  9.65k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  9.65k|        const char* p = rjs.raw();
96024|  9.65k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  9.65k|            std::uint8_t ki = window.window_to_key[
96030|  9.65k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  9.65k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 1, False: 9.65k]
  ------------------
96032|  9.65k|            return key_selector_detail::match_window_candidate(
96033|  9.65k|                p, ki, window, std::make_index_sequence<N>{});
96034|  9.65k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  9.65k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm11EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  9.65k|                       std::index_sequence<Is...>) noexcept {
95865|  9.65k|  std::size_t result = N;
95866|  9.65k|  auto try_match = [&](auto Ic) {
95867|  9.65k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  9.65k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  9.65k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  9.65k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  9.65k|      result = i;
95872|  9.65k|    }
95873|  9.65k|  };
95874|  9.65k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  9.65k|  return result;
95876|  9.65k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm11EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  9.65k|  auto try_match = [&](auto Ic) {
95867|  9.65k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  9.65k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2, False: 9.65k]
  |  Branch (95868:20): [True: 1, False: 1]
  ------------------
95869|      1|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 1]
  ------------------
95870|      1|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  9.65k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm11EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  9.65k|  auto try_match = [&](auto Ic) {
95867|  9.65k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  9.65k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 6.24k, False: 3.40k]
  |  Branch (95868:20): [True: 6.24k, False: 1]
  ------------------
95869|  6.24k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 6.24k, False: 1]
  ------------------
95870|  6.24k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.24k|      result = i;
95872|  6.24k|    }
95873|  9.65k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm11EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  9.65k|  auto try_match = [&](auto Ic) {
95867|  9.65k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  9.65k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 331, False: 9.32k]
  |  Branch (95868:20): [True: 330, False: 1]
  ------------------
95869|    330|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 329, False: 1]
  ------------------
95870|    330|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    329|      result = i;
95872|    329|    }
95873|  9.65k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm11EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  9.65k|  auto try_match = [&](auto Ic) {
95867|  9.65k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  9.65k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.78k, False: 7.87k]
  |  Branch (95868:20): [True: 1.78k, False: 1]
  ------------------
95869|  1.78k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 1.77k, False: 1]
  ------------------
95870|  1.78k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  1.77k|      result = i;
95872|  1.77k|    }
95873|  9.65k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm11EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|  9.65k|  auto try_match = [&](auto Ic) {
95867|  9.65k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  9.65k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.29k, False: 8.36k]
  |  Branch (95868:20): [True: 1.29k, False: 1]
  ------------------
95869|  1.29k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 1.29k, False: 1]
  ------------------
95870|  1.29k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  1.29k|      result = i;
95872|  1.29k|    }
95873|  9.65k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS6_10ExtensionsERNS4_8optionalINS6_20CompressedBufferViewEEEEUlNS1_5valueEE_SL_EEEJLm0ELm1EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm1EEEEEDaSO_:
10304|  45.7k|  auto try_one = [&](auto Ic) {
10305|  45.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  45.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 35.0k, False: 10.6k]
  ------------------
10305|  35.0k|      auto&& h = std::get<I>(handlers);
10305|  35.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|  35.0k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  35.0k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  35.0k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  35.0k|    }
10306|  45.7k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmSB_SB_RNS7_INS6_12BufferTargetENS8_ISD_EEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser16parseBufferViewsERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S11_NS4_16integer_sequenceImJXspT0_EEEEENKUlS17_E_clINS4_17integral_constantImLm7EEEEEDaS17_:
10304|   971k|  auto try_one = [&](auto Ic) {
10305|   971k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   971k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1.27k, False: 970k]
  ------------------
10305|  1.27k|      auto&& h = std::get<I>(handlers);
10305|  1.27k|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.27k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.27k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.27k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  1.27k|    }
10306|   971k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS7_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS7_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS8_tlS9_Lc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEERNSH_IN8fastgltf6Camera11PerspectiveEEERNSH_INSP_12OrthographicEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS19_:
10349|  38.4k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  38.4k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 43, False: 38.3k]
  ------------------
10350|  38.3k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  38.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS5_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS5_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS6_tlS7_Lc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSE_17basic_string_viewIcNSE_11char_traitsIcEEEEEERNSF_IN8fastgltf6Camera11PerspectiveEEERNSF_INSN_12OrthographicEEERNSE_12basic_stringIcSI_NSE_9allocatorIcEEEERKZNSM_10readExtrasERKNSM_20ParserInternalConfigEmNSM_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_:
10309|  38.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  38.3k|  using Selector = key_selector<Keys...>;
10309|  38.3k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  38.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS6_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEERNSH_IN8fastgltf6Camera11PerspectiveEEERNSH_INSP_12OrthographicEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS19_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1A_:
10308|  38.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  38.3k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  38.3k|  return this->template for_each<Selector>(
10308|  38.3k|      [&](std::size_t i, value v) -> error_code {
10308|  38.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  38.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  38.3k|      });
10309|  38.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS6_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRNSt3__18optionalINSH_17basic_string_viewIcNSH_11char_traitsIcEEEEEERNSI_IN8fastgltf6Camera11PerspectiveEEERNSI_INSQ_12OrthographicEEERNSH_12basic_stringIcSL_NSH_9allocatorIcEEEERKZNSP_10readExtrasERKNSP_20ParserInternalConfigEmNSP_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_EUlmS16_E_Qaa17key_selector_typeIS1A_Esr3stdE14is_invocable_vIRT0_mS16_EEES1C_OS1G_:
10296|  38.3k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  38.3k|  value_iterator it = iter;
10297|  38.3k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  38.3k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  38.3k|  std::array<std::uint64_t, seen_words> seen{};
10298|   164k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 128k, False: 35.8k]
  ------------------
10298|   128k|    raw_json_string key;
10298|   128k|    error_code error;
10298|   128k|    std::size_t idx;
10298|   128k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   128k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 23, False: 128k]
  ------------------
10299|   128k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 19, False: 128k]
  ------------------
10299|   128k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   128k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 104k, False: 23.7k]
  ------------------
10300|   104k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   104k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   104k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 98.3k, False: 6.62k]
  ------------------
10300|  98.3k|        seen_word |= seen_bit;
10300|  98.3k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  98.3k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  98.3k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 679, False: 97.6k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  98.3k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 2.45k, False: 95.9k]
  ------------------
10302|  98.3k|      }
10302|   104k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   126k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 126k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   126k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 38, False: 126k]
  ------------------
10303|   126k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 38, False: 126k]
  ------------------
10303|   126k|  }
10303|  38.2k|  return {SUCCESS, matched};
10303|  38.3k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS4_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS5_tlS6_Lc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   128k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   128k|        const char* p = rjs.raw();
96024|   128k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   128k|            std::uint8_t ki = window.window_to_key[
96030|   128k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   128k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 11.0k, False: 117k]
  ------------------
96032|   117k|            return key_selector_detail::match_window_candidate(
96033|   117k|                p, ki, window, std::make_index_sequence<N>{});
96034|   128k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   128k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm12EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   117k|                       std::index_sequence<Is...>) noexcept {
95865|   117k|  std::size_t result = N;
95866|   117k|  auto try_match = [&](auto Ic) {
95867|   117k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   117k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   117k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   117k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   117k|      result = i;
95872|   117k|    }
95873|   117k|  };
95874|   117k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   117k|  return result;
95876|   117k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm12EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   117k|  auto try_match = [&](auto Ic) {
95867|   117k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   117k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 44.2k, False: 73.4k]
  |  Branch (95868:20): [True: 41.6k, False: 2.56k]
  ------------------
95869|  41.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 41.0k, False: 613]
  ------------------
95870|  41.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  41.0k|      result = i;
95872|  41.0k|    }
95873|   117k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm12EEEbPKcS5_m:
95612|   160k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   160k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   160k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   160k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   160k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   160k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   160k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   160k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   160k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   160k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm12EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   117k|  auto try_match = [&](auto Ic) {
95867|   117k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   117k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 18.8k, False: 98.8k]
  |  Branch (95868:20): [True: 18.4k, False: 344]
  ------------------
95869|  18.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 18.1k, False: 306]
  ------------------
95870|  18.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  18.1k|      result = i;
95872|  18.1k|    }
95873|   117k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm12EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   117k|  auto try_match = [&](auto Ic) {
95867|   117k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   117k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 24.1k, False: 93.4k]
  |  Branch (95868:20): [True: 23.3k, False: 766]
  ------------------
95869|  23.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 23.1k, False: 238]
  ------------------
95870|  23.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  23.1k|      result = i;
95872|  23.1k|    }
95873|   117k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm12EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   117k|  auto try_match = [&](auto Ic) {
95867|   117k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   117k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 24.6k, False: 92.9k]
  |  Branch (95868:20): [True: 23.2k, False: 1.48k]
  ------------------
95869|  23.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 17.9k, False: 5.21k]
  ------------------
95870|  23.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  17.9k|      result = i;
95872|  17.9k|    }
95873|   117k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm12EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   117k|  auto try_match = [&](auto Ic) {
95867|   117k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   117k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 5.74k, False: 111k]
  |  Branch (95868:20): [True: 5.25k, False: 492]
  ------------------
95869|  5.25k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.61k, False: 636]
  ------------------
95870|  5.25k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.61k|      result = i;
95872|  4.61k|    }
95873|   117k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS4_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS5_tlS6_Lc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   226k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc112ELc101ELc114ELc115ELc112ELc101ELc99ELc116ELc105ELc118ELc101EEEEXtlNS6_ILm13EEEtlA13_cLc111ELc114ELc116ELc104ELc111ELc103ELc114ELc97ELc112ELc104ELc105ELc99EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEERNSH_IN8fastgltf6Camera11PerspectiveEEERNSH_INSP_12OrthographicEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS19_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1A_ENKUlmS15_E_clEmS15_:
10308|  98.3k|      [&](std::size_t i, value v) -> error_code {
10308|  98.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  98.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  98.3k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf6Camera11PerspectiveEEERNS6_INSE_12OrthographicEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SU_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  98.3k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  98.3k|  error_code err = SUCCESS;
10304|  98.3k|  auto try_one = [&](auto Ic) {
10305|  98.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  98.3k|    if (idx == I) {
10305|  98.3k|      auto&& h = std::get<I>(handlers);
10305|  98.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  98.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  98.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  98.3k|          err = h(v);
10306|  98.3k|        } else {
10306|  98.3k|          h(v);
10306|  98.3k|        }
10306|  98.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  98.3k|        err = v.get(h);
10306|  98.3k|      }
10306|  98.3k|    }
10306|  98.3k|  };
10306|  98.3k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  98.3k|  return err;
10307|  98.3k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf6Camera11PerspectiveEEERNS6_INSE_12OrthographicEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SU_NS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm0EEEEEDaS10_:
10304|  98.3k|  auto try_one = [&](auto Ic) {
10305|  98.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  98.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 37.5k, False: 60.7k]
  ------------------
10305|  37.5k|      auto&& h = std::get<I>(handlers);
10305|  37.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  37.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  37.5k|        err = v.get(h);
10306|  37.5k|      }
10306|  37.5k|    }
10306|  98.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf6Camera11PerspectiveEEERNS6_INSE_12OrthographicEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SU_NS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm1EEEEEDaS10_:
10304|  98.3k|  auto try_one = [&](auto Ic) {
10305|  98.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  98.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.9k, False: 80.4k]
  ------------------
10305|  17.9k|      auto&& h = std::get<I>(handlers);
10305|  17.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.9k|        err = v.get(h);
10306|  17.9k|      }
10306|  17.9k|    }
10306|  98.3k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf6Camera11PerspectiveEEEEENS_10error_codeERT_:
89907|  17.9k| {
89908|  17.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  17.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  17.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  17.9k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf6Camera11PerspectiveEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSB_RS8_:
89261|  17.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  17.9k|    return tag_invoke(*this, object, output);
89263|  17.9k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf6Camera11PerspectiveEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  17.9k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  17.9k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  17.9k|  static_assert(
97645|  17.9k|      deserializable<value_type, ValT>,
97646|  17.9k|      "The specified type inside the optional must itself be deserializable");
97647|  17.9k|  static_assert(
97648|  17.9k|      std::is_default_constructible_v<value_type>,
97649|  17.9k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  17.9k|  bool is_null_value;
97653|  17.9k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  17.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 7, False: 17.9k]
  |  |  ------------------
  ------------------
97654|  17.9k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 17.9k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  17.9k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 17.9k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  17.9k|    out.emplace();
97665|  17.9k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  17.9k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  17.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 478, False: 17.4k]
  |  |  ------------------
  ------------------
97667|  17.4k|    guard.armed = false;
97668|  17.4k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  17.4k|  return SUCCESS;
97676|  17.9k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf6Camera11PerspectiveEEENS_10error_codeERT_:
89907|  17.9k| {
89908|  17.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  17.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  17.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  17.9k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf6Camera11PerspectiveEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS8_RS5_:
89261|  17.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  17.9k|    return tag_invoke(*this, object, output);
89263|  17.9k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS7_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlSA_tlSB_Lc122ELc102ELc97ELc114EEEEXtlNS7_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEJRN8fastgltf14basic_optionalIfNSE_15flagged_storageIfEEEESJ_SJ_SJ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSK_:
10349|  17.9k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  17.9k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 29, False: 17.8k]
  ------------------
10350|  17.8k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  17.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS5_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlS8_tlS9_Lc122ELc102ELc97ELc114EEEEXtlNS5_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEJRN8fastgltf14basic_optionalIfNSC_15flagged_storageIfEEEESH_SH_SH_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_:
10309|  17.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  17.8k|  using Selector = key_selector<Keys...>;
10309|  17.8k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  17.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS6_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlS9_tlSA_Lc122ELc102ELc97ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEJRN8fastgltf14basic_optionalIfNSE_15flagged_storageIfEEEESJ_SJ_SJ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_:
10308|  17.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  17.8k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  17.8k|  return this->template for_each<Selector>(
10308|  17.8k|      [&](std::size_t i, value v) -> error_code {
10308|  17.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  17.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  17.8k|      });
10309|  17.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS6_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlS9_tlSA_Lc122ELc102ELc97ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalIfNSF_15flagged_storageIfEEEESK_SK_SK_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_EUlmNS1_5valueEE_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSQ_EEESN_OSS_:
10296|  17.8k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  17.8k|  value_iterator it = iter;
10297|  17.8k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  17.8k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  17.8k|  std::array<std::uint64_t, seen_words> seen{};
10298|  73.7k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 57.9k, False: 15.7k]
  ------------------
10298|  57.9k|    raw_json_string key;
10298|  57.9k|    error_code error;
10298|  57.9k|    std::size_t idx;
10298|  57.9k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  57.9k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 81, False: 57.8k]
  ------------------
10299|  57.8k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 12, False: 57.8k]
  ------------------
10299|  57.8k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  57.9k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 46.7k, False: 11.1k]
  ------------------
10300|  46.7k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  46.7k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  46.7k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 44.5k, False: 2.25k]
  ------------------
10300|  44.5k|        seen_word |= seen_bit;
10300|  44.5k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  44.5k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  44.5k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 86, False: 44.4k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  44.5k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.97k, False: 42.5k]
  ------------------
10302|  44.5k|      }
10302|  46.7k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  55.9k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 55.9k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  55.9k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 15, False: 55.9k]
  ------------------
10303|  55.9k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 124, False: 55.8k]
  ------------------
10303|  55.9k|  }
10303|  17.7k|  return {SUCCESS, matched};
10303|  17.8k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS4_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlS7_tlS8_Lc122ELc102ELc97ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  57.8k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  57.8k|        const char* p = rjs.raw();
96024|  57.8k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  57.8k|            std::uint8_t ki = window.window_to_key[
96030|  57.8k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  57.8k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 7.73k, False: 50.1k]
  ------------------
96032|  50.1k|            return key_selector_detail::match_window_candidate(
96033|  50.1k|                p, ki, window, std::make_index_sequence<N>{});
96034|  57.8k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  57.8k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm11EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  50.1k|                       std::index_sequence<Is...>) noexcept {
95865|  50.1k|  std::size_t result = N;
95866|  50.1k|  auto try_match = [&](auto Ic) {
95867|  50.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  50.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  50.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  50.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  50.1k|      result = i;
95872|  50.1k|    }
95873|  50.1k|  };
95874|  50.1k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  50.1k|  return result;
95876|  50.1k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm11EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  50.1k|  auto try_match = [&](auto Ic) {
95867|  50.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  50.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 3.89k, False: 46.2k]
  |  Branch (95868:20): [True: 3.53k, False: 360]
  ------------------
95869|  3.53k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 3.19k, False: 348]
  ------------------
95870|  3.53k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  3.19k|      result = i;
95872|  3.19k|    }
95873|  50.1k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm11EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  50.1k|  auto try_match = [&](auto Ic) {
95867|  50.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  50.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 19.3k, False: 30.7k]
  |  Branch (95868:20): [True: 18.9k, False: 423]
  ------------------
95869|  18.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 18.6k, False: 236]
  ------------------
95870|  18.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  18.6k|      result = i;
95872|  18.6k|    }
95873|  50.1k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm11EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  50.1k|  auto try_match = [&](auto Ic) {
95867|  50.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  50.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.53k, False: 42.5k]
  |  Branch (95868:20): [True: 6.88k, False: 653]
  ------------------
95869|  6.88k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 6.75k, False: 131]
  ------------------
95870|  6.88k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.75k|      result = i;
95872|  6.75k|    }
95873|  50.1k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm11EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  50.1k|  auto try_match = [&](auto Ic) {
95867|  50.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  50.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 19.3k, False: 30.7k]
  |  Branch (95868:20): [True: 18.4k, False: 915]
  ------------------
95869|  18.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 18.1k, False: 288]
  ------------------
95870|  18.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  18.1k|      result = i;
95872|  18.1k|    }
95873|  50.1k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS4_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlS7_tlS8_Lc122ELc102ELc97ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEE4sizeEv:
95952|   102k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc97ELc115ELc112ELc101ELc99ELc116ELc82ELc97ELc116ELc105ELc111EEEEXtlNS6_ILm5EEEtlA5_cLc121ELc102ELc111ELc118EEEEXtlS9_tlSA_Lc122ELc102ELc97ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEJRN8fastgltf14basic_optionalIfNSE_15flagged_storageIfEEEESJ_SJ_SJ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_ENKUlmNS1_5valueEE_clEmSP_:
10308|  44.5k|      [&](std::size_t i, value v) -> error_code {
10308|  44.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  44.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  44.5k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_SB_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   136k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   136k|  error_code err = SUCCESS;
10304|   136k|  auto try_one = [&](auto Ic) {
10305|   136k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   136k|    if (idx == I) {
10305|   136k|      auto&& h = std::get<I>(handlers);
10305|   136k|      using H = std::remove_reference_t<decltype(h)>;
10305|   136k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   136k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   136k|          err = h(v);
10306|   136k|        } else {
10306|   136k|          h(v);
10306|   136k|        }
10306|   136k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   136k|        err = v.get(h);
10306|   136k|      }
10306|   136k|    }
10306|   136k|  };
10306|   136k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   136k|  return err;
10307|   136k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_SB_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|   136k|  auto try_one = [&](auto Ic) {
10305|   136k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   136k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 26.0k, False: 110k]
  ------------------
10305|  26.0k|      auto&& h = std::get<I>(handlers);
10305|  26.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  26.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  26.0k|        err = v.get(h);
10306|  26.0k|      }
10306|  26.0k|    }
10306|   136k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14basic_optionalIfNS4_15flagged_storageIfEEEEEENS_10error_codeERT_:
89907|   174k| {
89908|   174k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   174k|  if constexpr (custom_deserializable<T, value>) {
89910|   174k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   174k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14basic_optionalIfNS2_15flagged_storageIfEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|   174k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   174k|    return tag_invoke(*this, object, output);
89263|   174k|  }
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_111parse_floatEPKh:
21975|  4.13M|simdjson_unused simdjson_inline simdjson_result<float> parse_float(const uint8_t * src) noexcept {
21976|       |  //
21977|       |  // Check for minus sign
21978|       |  //
21979|  4.13M|  bool negative = (*src == '-');
21980|  4.13M|  src += uint8_t(negative);
21981|       |
21982|       |  //
21983|       |  // Parse the integer part.
21984|       |  //
21985|  4.13M|  uint64_t i = 0;
21986|  4.13M|  const uint8_t *p = src;
21987|  4.13M|  bool leading_zero;
21988|  4.13M|  parse_float_integer_digits(p, i, leading_zero);
21989|       |  // no integer digits, or 0123 (zero must be solo)
21990|  4.13M|  if ( p == src ) {
  ------------------
  |  Branch (21990:8): [True: 500, False: 4.13M]
  ------------------
21991|       |
21992|       |#if SIMDJSON_ENABLE_NAN_INF
21993|       |    // If there are no leading digits, the number may be nan or infinity.
21994|       |    // Attempt to compute those, and return on success.
21995|       |    float f;
21996|       |    if (compute_nan_inf(p, negative, f)) { return f; }
21997|       |#endif
21998|       |
21999|    500|    return INCORRECT_TYPE;
22000|    500|  }
22001|  4.13M|  if ( (leading_zero && p != src+1)) { return NUMBER_ERROR; }
  ------------------
  |  Branch (22001:9): [True: 2.06M, False: 2.07M]
  |  Branch (22001:25): [True: 167, False: 2.06M]
  ------------------
22002|       |
22003|       |  //
22004|       |  // Parse the decimal part.
22005|       |  //
22006|  4.13M|  int64_t exponent = 0;
22007|  4.13M|  bool overflow;
22008|  4.13M|  if (simdjson_likely(*p == '.')) {
  ------------------
  |  |  764|  4.13M|  #define simdjson_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (764:30): [True: 3.16M, False: 973k]
  |  |  ------------------
  ------------------
22009|  3.16M|    p++;
22010|  3.16M|    const uint8_t *start_decimal_digits = p;
22011|  3.16M|    parse_fraction_digits(p, i);
22012|  3.16M|    if (p == start_decimal_digits) { return NUMBER_ERROR; } // no decimal digits
  ------------------
  |  Branch (22012:9): [True: 434, False: 3.16M]
  ------------------
22013|  3.16M|    exponent = -(p - start_decimal_digits);
22014|       |
22015|       |    // Overflow check. More than 19 digits (minus the decimal) may be overflow.
22016|  3.16M|    overflow = p-src-1 > 19;
22017|  3.16M|    if (simdjson_unlikely(overflow && leading_zero)) {
  ------------------
  |  |  767|  3.32M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 97.1k, False: 3.06M]
  |  |  |  Branch (767:52): [True: 156k, False: 3.00M]
  |  |  |  Branch (767:52): [True: 97.1k, False: 58.9k]
  |  |  ------------------
  ------------------
22018|       |      // Skip leading 0.00000 and see if it still overflows
22019|  97.1k|      const uint8_t *start_digits = src + 2;
22020|  4.02M|      while (*start_digits == '0') { start_digits++; }
  ------------------
  |  Branch (22020:14): [True: 3.92M, False: 97.1k]
  ------------------
22021|  97.1k|      overflow = p-start_digits > 19;
22022|  97.1k|    }
22023|  3.16M|  } else {
22024|   973k|    overflow = p-src > 19;
22025|   973k|  }
22026|       |
22027|       |  //
22028|       |  // Parse the exponent
22029|       |  //
22030|  4.13M|  if (*p == 'e' || *p == 'E') {
  ------------------
  |  Branch (22030:7): [True: 136k, False: 4.00M]
  |  Branch (22030:20): [True: 71.5k, False: 3.92M]
  ------------------
22031|   207k|    p++;
22032|   207k|    bool exp_neg = *p == '-';
22033|   207k|    p += exp_neg || *p == '+';
  ------------------
  |  Branch (22033:10): [True: 97.2k, False: 110k]
  |  Branch (22033:21): [True: 58.3k, False: 52.2k]
  ------------------
22034|       |
22035|   207k|    uint64_t exp = 0;
22036|   207k|    const uint8_t *start_exp_digits = p;
22037|  1.46M|    while (parse_digit(*p, exp)) { p++; }
  ------------------
  |  Branch (22037:12): [True: 1.26M, False: 207k]
  ------------------
22038|       |    // no exp digits
22039|   207k|    if (p-start_exp_digits == 0) { return NUMBER_ERROR; }
  ------------------
  |  Branch (22039:9): [True: 186, False: 207k]
  ------------------
22040|       |    // 20+ exp digits (e.g., 0e9999999999999999999999) are valid, but exp may
22041|       |    // have wrapped around: leave such numbers to the fallback parser.
22042|   207k|    overflow = overflow || p-start_exp_digits > 19;
  ------------------
  |  Branch (22042:16): [True: 31.1k, False: 176k]
  |  Branch (22042:28): [True: 8.63k, False: 167k]
  ------------------
22043|       |
22044|   207k|    exponent += exp_neg ? 0-exp : exp;
  ------------------
  |  Branch (22044:17): [True: 97.2k, False: 110k]
  ------------------
22045|   207k|  }
22046|       |
22047|  4.13M|  if (jsoncharutils::is_not_structural_or_whitespace(*p)) { return NUMBER_ERROR; }
  ------------------
  |  Branch (22047:7): [True: 812, False: 4.13M]
  ------------------
22048|       |
22049|  4.13M|  overflow = overflow || exponent < simdjson::internal::smallest_power || exponent > simdjson::internal::largest_power;
  ------------------
  |  Branch (22049:14): [True: 123k, False: 4.01M]
  |  Branch (22049:26): [True: 7.00k, False: 4.00M]
  |  Branch (22049:75): [True: 3.89k, False: 4.00M]
  ------------------
22050|       |
22051|       |  //
22052|       |  // Assemble (or slow-parse) the float
22053|       |  //
22054|  4.13M|  float d;
22055|  4.13M|  if (simdjson_likely(!overflow)) {
  ------------------
  |  |  764|  4.13M|  #define simdjson_likely(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (764:30): [True: 4.00M, False: 134k]
  |  |  ------------------
  ------------------
22056|  4.00M|    if (compute_float_32(exponent, i, negative, d)) { return d; }
  ------------------
  |  Branch (22056:9): [True: 4.00M, False: 437]
  ------------------
22057|  4.00M|  }
22058|   134k|  if (!parse_float_fallback(src - uint8_t(negative), &d)) {
  ------------------
  |  Branch (22058:7): [True: 1.46k, False: 133k]
  ------------------
22059|  1.46k|    return NUMBER_ERROR;
22060|  1.46k|  }
22061|   133k|  return d;
22062|   134k|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_126parse_float_integer_digitsERPKhRmRb:
21292|  4.13M|                                                bool &leading_zero) {
21293|  4.13M|  if (!parse_digit(*p, i)) { leading_zero = true; return; }
  ------------------
  |  Branch (21293:7): [True: 500, False: 4.13M]
  ------------------
21294|  4.13M|  p++;
21295|  4.13M|  leading_zero = (i == 0);
21296|  7.96M|  while (parse_digit(*p, i)) { p++; }
  ------------------
  |  Branch (21296:10): [True: 3.82M, False: 4.13M]
  ------------------
21297|  4.13M|}
_ZN8simdjson15simdjson_resultIfEC2ENS_10error_codeE:
 3886|  3.56k|    : internal::simdjson_result_base<T>(error) {}
_ZN8simdjson8internal20simdjson_result_baseIfEC2ENS_10error_codeE:
 3817|  3.56k|    : simdjson_result_base(T{}, error) {}
_ZN8simdjson8internal20simdjson_result_baseIfEC2EOfNS_10error_codeE:
 3814|  4.13M|    : std::pair<T, error_code>(std::forward<T>(value), error) {}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_116compute_float_32ElmbRf:
20986|  4.00M|simdjson_inline bool compute_float_32(int64_t power, uint64_t i, bool negative, float &d) {
20987|       |  // Powers of ten that are exactly representable as binary32 values: 10^k is
20988|       |  // exact as long as k <= 10 (5^10 = 9765625 < 2**24 while 5^11 > 2**24).
20989|  4.00M|  static constexpr float power_of_ten_float[] = {
20990|  4.00M|      1e0f, 1e1f, 1e2f, 1e3f, 1e4f, 1e5f,
20991|  4.00M|      1e6f, 1e7f, 1e8f, 1e9f, 1e10f};
20992|       |  // The range of powers of ten that a non-zero, finite binary32 value can be
20993|       |  // built from. Anything smaller rounds to zero, anything larger is infinite.
20994|       |  // These are the smallest_power_of_ten()/largest_power_of_ten() constants that
20995|       |  // fast_float uses for binary32.
20996|  4.00M|  constexpr int smallest_power_binary32 = -65;
20997|  4.00M|  constexpr int largest_power_binary32 = 38;
20998|       |
20999|       |  // We start with the fast path described in
21000|       |  // Clinger WD. How to read floating point numbers accurately.
21001|       |  // ACM SIGPLAN Notices. 1990
21002|       |#ifndef FLT_EVAL_METHOD
21003|       |#error "FLT_EVAL_METHOD should be defined, please include cfloat."
21004|       |#endif
21005|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
21006|       |  // We cannot be certain that x/y is rounded to nearest.
21007|       |  if (0 <= power && power <= 10 && i <= 16777215)
21008|       |#else
21009|  4.00M|  if (-10 <= power && power <= 10 && i <= 16777215)
  ------------------
  |  Branch (21009:7): [True: 2.81M, False: 1.18M]
  |  Branch (21009:23): [True: 2.78M, False: 31.2k]
  |  Branch (21009:38): [True: 2.59M, False: 193k]
  ------------------
21010|  2.59M|#endif
21011|  2.59M|  {
21012|       |    // Convert the integer into a float. This is lossless since
21013|       |    // 0 <= i <= 2^24 - 1.
21014|  2.59M|    d = float(i);
21015|       |    // Both d and the power of ten are exactly representable as binary32
21016|       |    // values, so the product (or quotient) is correctly rounded.
21017|  2.59M|    if (power < 0) {
  ------------------
  |  Branch (21017:9): [True: 1.73M, False: 856k]
  ------------------
21018|  1.73M|      d = d / power_of_ten_float[-power];
21019|  1.73M|    } else {
21020|   856k|      d = d * power_of_ten_float[power];
21021|   856k|    }
21022|  2.59M|    if (negative) {
  ------------------
  |  Branch (21022:9): [True: 54.5k, False: 2.54M]
  ------------------
21023|  54.5k|      d = -d;
21024|  54.5k|    }
21025|  2.59M|    return true;
21026|  2.59M|  }
21027|       |
21028|       |  // The fast path has failed, so we fall back on the Eisel-Lemire algorithm.
21029|       |  // It needs i > 0 (so that the leading bit of i can be normalized), so we
21030|       |  // handle i == 0 separately. We also handle the powers of ten that are so
21031|       |  // small (or so large) that the answer is zero (or infinite) whatever the
21032|       |  // mantissa is.
21033|  1.40M|  if (i == 0 || power < smallest_power_binary32) {
  ------------------
  |  Branch (21033:7): [True: 12.4k, False: 1.39M]
  |  Branch (21033:17): [True: 10.8k, False: 1.38M]
  ------------------
21034|  23.3k|    d = negative ? -0.0f : 0.0f;
  ------------------
  |  Branch (21034:9): [True: 695, False: 22.6k]
  ------------------
21035|  23.3k|    return true;
21036|  23.3k|  }
21037|  1.38M|  if (power > largest_power_binary32) {
  ------------------
  |  Branch (21037:7): [True: 240, False: 1.38M]
  ------------------
21038|       |    // We have, for sure, an infinite value.
21039|    240|    return false;
21040|    240|  }
21041|       |
21042|       |  // The exponent is 128 + 63 + power + floor(log(5**power)/log(2)).
21043|       |  // The 128 comes from the ieee32 standard (the minimal exponent is -127).
21044|       |  // The 63 comes from the fact that we use a 64-bit word.
21045|       |  // See compute_float_64 for a discussion of the magical 152170 + 65536.
21046|  1.38M|  int64_t exponent = (((152170 + 65536) * power) >> 16) + 128 + 63;
21047|       |
21048|       |  // We want the most significant bit of i to be 1. Shift if needed.
21049|  1.38M|  int lz = leading_zeroes(i);
21050|  1.38M|  i <<= lz;
21051|       |
21052|       |  // We want the most significant 64 bits of the product i * 5**power. It is
21053|       |  // safe to index the table because
21054|       |  // smallest_power <= smallest_power_binary32 <= power
21055|       |  //               <= largest_power_binary32 <= largest_power.
21056|  1.38M|  const uint32_t index = 2 * uint32_t(power - simdjson::internal::smallest_power);
21057|       |#if SIMDJSON_STATIC_REFLECTION
21058|       |  simdjson::internal::value128 firstproduct = full_multiplication(i, simdjson::internal::powers_template<>::power_of_five_128[index]);
21059|       |#else
21060|  1.38M|  simdjson::internal::value128 firstproduct = full_multiplication(i, simdjson::internal::power_of_five_128[index]);
21061|  1.38M|#endif
21062|       |
21063|       |  // Unless the least significant 38 bits of the high (64-bit) part of the full
21064|       |  // product are all 1s, then we know that the most significant 26 bits are
21065|       |  // exact and no further work is needed. Having 26 bits is necessary because
21066|       |  // we need 24 bits for the mantissa but we have to have one rounding bit and
21067|       |  // we can waste a bit if the most significant bit of the product is zero.
21068|       |  // (For binary64, the same reasoning gives 55 bits and a 9-bit mask.)
21069|  1.38M|  if((firstproduct.high & 0x3FFFFFFFFF) == 0x3FFFFFFFFF) {
  ------------------
  |  Branch (21069:6): [True: 63.5k, False: 1.32M]
  ------------------
21070|       |    // The truncated multiplication was not accurate enough; use the next 64
21071|       |    // bits of the power of five to refine it. See compute_float_64 for a
21072|       |    // detailed discussion.
21073|       |#if SIMDJSON_STATIC_REFLECTION
21074|       |    simdjson::internal::value128 secondproduct = full_multiplication(i, simdjson::internal::powers_template<>::power_of_five_128[index + 1]);
21075|       |#else
21076|  63.5k|    simdjson::internal::value128 secondproduct = full_multiplication(i, simdjson::internal::power_of_five_128[index + 1]);
21077|  63.5k|#endif
21078|  63.5k|    firstproduct.low += secondproduct.high;
21079|  63.5k|    if(secondproduct.high > firstproduct.low) { firstproduct.high++; }
  ------------------
  |  Branch (21079:8): [True: 56.9k, False: 6.57k]
  ------------------
21080|  63.5k|  }
21081|  1.38M|  uint64_t lower = firstproduct.low;
21082|  1.38M|  uint64_t upper = firstproduct.high;
21083|       |  // The final mantissa should be 24 bits with a leading 1.
21084|       |  // We shift it so that it occupies 25 bits with a leading 1.
21085|       |  ///////
21086|  1.38M|  uint64_t upperbit = upper >> 63;
21087|  1.38M|  uint64_t mantissa = upper >> (upperbit + 38); // 38 == 64 - 23 - 3
21088|  1.38M|  lz += int(1 ^ upperbit);
21089|       |
21090|       |  // Here we have mantissa < (1<<25).
21091|  1.38M|  int64_t real_exponent = exponent - lz;
21092|  1.38M|  if (simdjson_unlikely(real_exponent <= 0)) { // we have a subnormal?
  ------------------
  |  |  767|  1.38M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 22.2k, False: 1.36M]
  |  |  ------------------
  ------------------
21093|       |    // Here we have that real_exponent <= 0 so -real_exponent >= 0
21094|  22.2k|    if(-real_exponent + 1 >= 64) { // if we have more than 64 bits below the minimum exponent, you have a zero for sure.
  ------------------
  |  Branch (21094:8): [True: 5.79k, False: 16.4k]
  ------------------
21095|  5.79k|      d = negative ? -0.0f : 0.0f;
  ------------------
  |  Branch (21095:11): [True: 454, False: 5.33k]
  ------------------
21096|  5.79k|      return true;
21097|  5.79k|    }
21098|       |    // next line is safe because -real_exponent + 1 < 64
21099|  16.4k|    mantissa >>= -real_exponent + 1;
21100|       |    // Thankfully, we can't have both "round-to-even" and subnormals because
21101|       |    // "round-to-even" only occurs for powers close to 0.
21102|  16.4k|    mantissa += (mantissa & 1); // round up
21103|  16.4k|    mantissa >>= 1;
21104|       |    // As in compute_float_64, rounding up may take us out of the subnormal
21105|       |    // range, so we can only decide after rounding.
21106|  16.4k|    real_exponent = (mantissa < (uint64_t(1) << 23)) ? 0 : 1;
  ------------------
  |  Branch (21106:21): [True: 16.4k, False: 0]
  ------------------
21107|  16.4k|    d = to_float(uint32_t(mantissa), uint32_t(real_exponent), negative);
21108|  16.4k|    return true;
21109|  22.2k|  }
21110|       |  // We have to round to even. The "to even" part is only a problem when we are
21111|       |  // right in between two floats, which we guard against. The bounds on the
21112|       |  // power of ten are those of fast_float's
21113|       |  // min_exponent_round_to_even()/max_exponent_round_to_even() for binary32:
21114|       |  // when q >= 0, (2m+1) must be divisible by 5^q with 5^q <= 2^25, so q <= 10;
21115|       |  // when q < 0, we need 2^24 x 5^{-q} < 2^{64}, so q >= -17.
21116|  1.36M|  if (simdjson_unlikely((lower <= 1) && (power >= -17) && (power <= 10) && ((mantissa & 3) == 1))) {
  ------------------
  |  |  767|  4.53M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 33.2k, False: 1.32M]
  |  |  |  Branch (767:52): [True: 156k, False: 1.20M]
  |  |  |  Branch (767:52): [True: 151k, False: 4.47k]
  |  |  |  Branch (767:52): [True: 140k, False: 11.2k]
  |  |  |  Branch (767:52): [True: 33.2k, False: 107k]
  |  |  ------------------
  ------------------
21117|  33.2k|    if((mantissa << (upperbit + 38)) == upper) {
  ------------------
  |  Branch (21117:8): [True: 6.79k, False: 26.4k]
  ------------------
21118|  6.79k|      mantissa &= ~uint64_t(1);   // flip it so that we do not round up
21119|  6.79k|    }
21120|  33.2k|  }
21121|       |
21122|  1.36M|  mantissa += mantissa & 1;
21123|  1.36M|  mantissa >>= 1;
21124|       |
21125|       |  // Here we have mantissa < (1<<24), unless there was an overflow
21126|  1.36M|  if (mantissa >= (uint64_t(1) << 24)) {
  ------------------
  |  Branch (21126:7): [True: 9.93k, False: 1.35M]
  ------------------
21127|  9.93k|    mantissa = (uint64_t(1) << 23);
21128|  9.93k|    real_exponent++;
21129|  9.93k|  }
21130|  1.36M|  mantissa &= ~(uint64_t(1) << 23);
21131|       |  // we have to check that real_exponent is in range, otherwise we bail out
21132|  1.36M|  if (simdjson_unlikely(real_exponent > 254)) {
  ------------------
  |  |  767|  1.36M|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 197, False: 1.36M]
  |  |  ------------------
  ------------------
21133|       |    // We have an infinite value!!! We could actually throw an error here if we could.
21134|    197|    return false;
21135|    197|  }
21136|  1.36M|  d = to_float(uint32_t(mantissa), uint32_t(real_exponent), negative);
21137|  1.36M|  return true;
21138|  1.36M|}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_18to_floatEjjb:
20696|  1.37M|simdjson_inline float to_float(uint32_t mantissa, uint32_t real_exponent, bool negative) {
20697|  1.37M|    float f;
20698|  1.37M|    mantissa &= ~(uint32_t(1) << 23);
20699|  1.37M|    mantissa |= real_exponent << 23;
20700|  1.37M|    mantissa |= ((static_cast<uint32_t>(negative)) << 31);
20701|  1.37M|    std::memcpy(&f, &mantissa, sizeof(f));
20702|  1.37M|    return f;
20703|  1.37M|}
_ZN8simdjson15simdjson_resultIfEC2EOf:
 3889|  4.13M|    : internal::simdjson_result_base<T>(std::forward<T>(value)) {}
_ZN8simdjson8internal20simdjson_result_baseIfEC2EOf:
 3820|  4.13M|    : simdjson_result_base(std::forward<T>(value), SUCCESS) {}
parser.cpp:_ZN8simdjson8fallback13numberparsing12_GLOBAL__N_120parse_float_fallbackEPKhPf:
21199|   134k|static bool parse_float_fallback(const uint8_t *ptr, float *outFloat) {
21200|   134k|  *outFloat = simdjson::internal::from_chars_float(reinterpret_cast<const char *>(ptr));
21201|       |  // We do not accept infinite values. See the binary64 version above for why we
21202|       |  // do not use std::isfinite.
21203|   134k|  return !(*outFloat > (std::numeric_limits<float>::max)() || *outFloat < std::numeric_limits<float>::lowest());
  ------------------
  |  Branch (21203:12): [True: 1.37k, False: 133k]
  |  Branch (21203:63): [True: 89, False: 133k]
  ------------------
21204|   134k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_SB_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|   136k|  auto try_one = [&](auto Ic) {
10305|   136k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   136k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 40.7k, False: 95.5k]
  ------------------
10305|  40.7k|      auto&& h = std::get<I>(handlers);
10305|  40.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  40.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  40.7k|        err = v.get(h);
10306|  40.7k|      }
10306|  40.7k|    }
10306|   136k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_SB_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm2EEEEEDaSE_:
10304|   136k|  auto try_one = [&](auto Ic) {
10305|   136k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   136k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 29.1k, False: 107k]
  ------------------
10305|  29.1k|      auto&& h = std::get<I>(handlers);
10305|  29.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  29.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.1k|        err = v.get(h);
10306|  29.1k|      }
10306|  29.1k|    }
10306|   136k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_SB_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm3EEEEEDaSE_:
10304|   136k|  auto try_one = [&](auto Ic) {
10305|   136k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   136k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 40.3k, False: 95.9k]
  ------------------
10305|  40.3k|      auto&& h = std::get<I>(handlers);
10305|  40.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  40.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  40.3k|        err = v.get(h);
10306|  40.3k|      }
10306|  40.3k|    }
10306|   136k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf6Camera11PerspectiveEEEED2Ev:
97461|  17.9k|  ~reset_guard() {
97462|  17.9k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 478, False: 17.4k]
  ------------------
97463|  17.9k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf6Camera11PerspectiveEEERNS6_INSE_12OrthographicEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SU_NS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm2EEEEEDaS10_:
10304|  98.3k|  auto try_one = [&](auto Ic) {
10305|  98.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  98.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 23.0k, False: 75.2k]
  ------------------
10305|  23.0k|      auto&& h = std::get<I>(handlers);
10305|  23.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  23.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  23.0k|        err = v.get(h);
10306|  23.0k|      }
10306|  23.0k|    }
10306|  98.3k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf6Camera12OrthographicEEEEENS_10error_codeERT_:
89907|  23.0k| {
89908|  23.0k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  23.0k|  if constexpr (custom_deserializable<T, value>) {
89910|  23.0k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  23.0k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf6Camera12OrthographicEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSB_RS8_:
89261|  23.0k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  23.0k|    return tag_invoke(*this, object, output);
89263|  23.0k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf6Camera12OrthographicEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  23.0k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  23.0k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  23.0k|  static_assert(
97645|  23.0k|      deserializable<value_type, ValT>,
97646|  23.0k|      "The specified type inside the optional must itself be deserializable");
97647|  23.0k|  static_assert(
97648|  23.0k|      std::is_default_constructible_v<value_type>,
97649|  23.0k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  23.0k|  bool is_null_value;
97653|  23.0k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  23.0k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 23.0k]
  |  |  ------------------
  ------------------
97654|  23.0k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 23.0k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  23.0k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 23.0k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  23.0k|    out.emplace();
97665|  23.0k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  23.0k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  23.0k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 190, False: 22.8k]
  |  |  ------------------
  ------------------
97667|  22.8k|    guard.armed = false;
97668|  22.8k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  22.8k|  return SUCCESS;
97676|  23.0k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf6Camera12OrthographicEEENS_10error_codeERT_:
89907|  23.0k| {
89908|  23.0k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  23.0k|  if constexpr (custom_deserializable<T, value>) {
89910|  23.0k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  23.0k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf6Camera12OrthographicEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS8_RS5_:
89261|  23.0k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  23.0k|    return tag_invoke(*this, object, output);
89263|  23.0k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS8_tlS9_Lc121ELc109ELc97ELc103EEEEXtlS8_tlS9_Lc122ELc102ELc97ELc114EEEEXtlNS7_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEJRN8fastgltf14basic_optionalIfNSC_15flagged_storageIfEEEESH_SH_SH_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSI_:
10349|  23.0k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  23.0k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 16, False: 23.0k]
  ------------------
10350|  23.0k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  23.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS6_tlS7_Lc121ELc109ELc97ELc103EEEEXtlS6_tlS7_Lc122ELc102ELc97ELc114EEEEXtlNS5_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEJRN8fastgltf14basic_optionalIfNSA_15flagged_storageIfEEEESF_SF_SF_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_:
10309|  23.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  23.0k|  using Selector = key_selector<Keys...>;
10309|  23.0k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  23.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS7_tlS8_Lc121ELc109ELc97ELc103EEEEXtlS7_tlS8_Lc122ELc102ELc97ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEJRN8fastgltf14basic_optionalIfNSC_15flagged_storageIfEEEESH_SH_SH_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSI_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_:
10308|  23.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  23.0k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  23.0k|  return this->template for_each<Selector>(
10308|  23.0k|      [&](std::size_t i, value v) -> error_code {
10308|  23.0k|        return key_selector_for_each_detail::dispatch_value(
10308|  23.0k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  23.0k|      });
10309|  23.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS7_tlS8_Lc121ELc109ELc97ELc103EEEEXtlS7_tlS8_Lc122ELc102ELc97ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEZNS2_8for_eachISB_JRN8fastgltf14basic_optionalIfNSD_15flagged_storageIfEEEESI_SI_SI_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSJ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSK_EUlmNS1_5valueEE_Qaa17key_selector_typeISJ_Esr3stdE14is_invocable_vIRT0_mSO_EEESL_OSQ_:
10296|  23.0k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  23.0k|  value_iterator it = iter;
10297|  23.0k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  23.0k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  23.0k|  std::array<std::uint64_t, seen_words> seen{};
10298|   100k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 100k, False: 138]
  ------------------
10298|   100k|    raw_json_string key;
10298|   100k|    error_code error;
10298|   100k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   100k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   100k|      std::size_t key_len;
10299|   100k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 43, False: 100k]
  ------------------
10299|   100k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 15, False: 100k]
  ------------------
10300|   100k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   100k|    }
10300|   100k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 95.4k, False: 4.76k]
  ------------------
10300|  95.4k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  95.4k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  95.4k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 91.8k, False: 3.63k]
  ------------------
10300|  91.8k|        seen_word |= seen_bit;
10300|  91.8k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  91.8k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  91.8k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 26, False: 91.7k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  91.8k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 22.8k, False: 68.9k]
  ------------------
10302|  91.8k|      }
10302|  95.4k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  77.3k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 77.3k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  77.3k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 14, False: 77.2k]
  ------------------
10303|  77.2k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 22, False: 77.2k]
  ------------------
10303|  77.2k|  }
10303|  23.0k|  return {SUCCESS, matched};
10303|  23.0k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS5_tlS6_Lc121ELc109ELc97ELc103EEEEXtlS5_tlS6_Lc122ELc102ELc97ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEE9match_rawEPKcm:
95964|   100k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   100k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 385, False: 99.7k]
  |  Branch (95965:25): [True: 611, False: 99.1k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|  99.1k|        std::size_t slot;
95981|  99.1k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 99.1k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|  99.1k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|  99.1k|            std::size_t h = len;
95996|   198k|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 99.1k, False: 99.1k]
  ------------------
95997|  99.1k|                std::uint8_t pos = phf.positions[i];
95998|  99.1k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 99.1k]
  ------------------
95999|  99.1k|                                  ? (len - std::size_t{1})
96000|  99.1k|                                  : static_cast<std::size_t>(pos);
96001|  99.1k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 99.1k, False: 0]
  ------------------
96002|  99.1k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|  99.1k|                }
96004|  99.1k|            }
96005|  99.1k|            slot = h & (table_size - 1);
96006|  99.1k|        }
96007|       |
96008|  99.1k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|  99.1k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 0, False: 99.1k]
  ------------------
96010|  99.1k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 2.28k, False: 96.8k]
  ------------------
96011|  96.8k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 1.42k, False: 95.4k]
  ------------------
96012|  96.8k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|  95.4k|        return ki;
96014|  96.8k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm5EEEbPKcS5_m:
95612|   123k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   123k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   123k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   123k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   123k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   123k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   123k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   123k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   123k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   123k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS5_tlS6_Lc121ELc109ELc97ELc103EEEEXtlS5_tlS6_Lc122ELc102ELc97ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEE4sizeEv:
95952|   191k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc120ELc109ELc97ELc103EEEEXtlS7_tlS8_Lc121ELc109ELc97ELc103EEEEXtlS7_tlS8_Lc122ELc102ELc97ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc122ELc110ELc101ELc97ELc114EEEEEEEJRN8fastgltf14basic_optionalIfNSC_15flagged_storageIfEEEESH_SH_SH_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSI_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_ENKUlmNS1_5valueEE_clEmSN_:
10308|  91.8k|      [&](std::size_t i, value v) -> error_code {
10308|  91.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  91.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  91.8k|      });
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf6Camera12OrthographicEEEED2Ev:
97461|  23.0k|  ~reset_guard() {
97462|  23.0k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 190, False: 22.8k]
  ------------------
97463|  23.0k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf6Camera11PerspectiveEEERNS6_INSE_12OrthographicEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SU_NS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm3EEEEEDaS10_:
10304|  98.3k|  auto try_one = [&](auto Ic) {
10305|  98.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  98.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 16.6k, False: 81.7k]
  ------------------
10305|  16.6k|      auto&& h = std::get<I>(handlers);
10305|  16.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  16.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  16.6k|        err = v.get(h);
10306|  16.6k|      }
10306|  16.6k|    }
10306|  98.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf6Camera11PerspectiveEEERNS6_INSE_12OrthographicEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SU_NS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm4EEEEEDaS10_:
10304|  98.3k|  auto try_one = [&](auto Ic) {
10305|  98.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  98.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.10k, False: 95.2k]
  ------------------
10305|  3.10k|      auto&& h = std::get<I>(handlers);
10305|  3.10k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.10k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.10k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.10k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  3.10k|    }
10306|  98.3k|  };
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlS6_tlS7_Lc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEXtlNS5_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEJRKZN8fastgltf6Parser15parseExtensionsERNSC_8internal10JsonObjectERNSC_5AssetEE3$_4RKZNSD_15parseExtensionsESG_SI_E3$_1RKZNSD_15parseExtensionsESG_SI_E3$_3RKZNSD_15parseExtensionsESG_SI_E3$_2EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10309|  81.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  81.4k|  using Selector = key_selector<Keys...>;
10309|  81.4k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  81.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEXtlNS6_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEEEJRKZN8fastgltf6Parser15parseExtensionsERNSE_8internal10JsonObjectERNSE_5AssetEE3$_4RKZNSF_15parseExtensionsESI_SK_E3$_1RKZNSF_15parseExtensionsESI_SK_E3$_3RKZNSF_15parseExtensionsESI_SK_E3$_2EQaaaa17key_selector_typeIT_EeqsZT0_clsrSX_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_:
10308|  81.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  81.4k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  81.4k|  return this->template for_each<Selector>(
10308|  81.4k|      [&](std::size_t i, value v) -> error_code {
10308|  81.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  81.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  81.4k|      });
10309|  81.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEXtlNS6_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEEEZNS2_8for_eachISD_JRKZN8fastgltf6Parser15parseExtensionsERNSF_8internal10JsonObjectERNSF_5AssetEE3$_4RKZNSG_15parseExtensionsESJ_SL_E3$_1RKZNSG_15parseExtensionsESJ_SL_E3$_3RKZNSG_15parseExtensionsESJ_SL_E3$_2EQaaaa17key_selector_typeIT_EeqsZT0_clsrSY_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_EUlmNS1_5valueEE_Qaa17key_selector_typeISY_Esr3stdE14is_invocable_vIRT0_mS13_EEES10_OS15_:
10296|  81.4k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  81.4k|  value_iterator it = iter;
10297|  81.4k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  81.4k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  81.4k|  std::array<std::uint64_t, seen_words> seen{};
10298|   138k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 57.2k, False: 81.0k]
  ------------------
10298|  57.2k|    raw_json_string key;
10298|  57.2k|    error_code error;
10298|  57.2k|    std::size_t idx;
10298|  57.2k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  57.2k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 44, False: 57.2k]
  ------------------
10299|  57.2k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 59, False: 57.1k]
  ------------------
10299|  57.1k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  57.2k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 38.9k, False: 18.3k]
  ------------------
10300|  38.9k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  38.9k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  38.9k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 38.4k, False: 486]
  ------------------
10300|  38.4k|        seen_word |= seen_bit;
10300|  38.4k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  38.4k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  38.4k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 3.65k, False: 34.7k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  38.4k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1, False: 38.4k]
  ------------------
10302|  38.4k|      }
10302|  38.9k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  57.2k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 57.2k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  57.2k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 36, False: 57.2k]
  ------------------
10303|  57.2k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 306, False: 56.9k]
  ------------------
10303|  57.2k|  }
10303|  81.0k|  return {SUCCESS, matched};
10303|  81.4k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS4_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEXtlNS4_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  57.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  57.1k|        const char* p = rjs.raw();
96024|  57.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  57.1k|            std::uint8_t ki = window.window_to_key[
96030|  57.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  57.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 8.37k, False: 48.7k]
  ------------------
96032|  48.7k|            return key_selector_detail::match_window_candidate(
96033|  48.7k|                p, ki, window, std::make_index_sequence<N>{});
96034|  57.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  57.1k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm24EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  48.7k|                       std::index_sequence<Is...>) noexcept {
95865|  48.7k|  std::size_t result = N;
95866|  48.7k|  auto try_match = [&](auto Ic) {
95867|  48.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  48.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  48.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  48.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  48.7k|      result = i;
95872|  48.7k|    }
95873|  48.7k|  };
95874|  48.7k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  48.7k|  return result;
95876|  48.7k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm24EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  48.7k|  auto try_match = [&](auto Ic) {
95867|  48.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  48.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 6.23k, False: 42.5k]
  |  Branch (95868:20): [True: 5.40k, False: 831]
  ------------------
95869|  5.40k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.86k, False: 541]
  ------------------
95870|  5.40k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.86k|      result = i;
95872|  4.86k|    }
95873|  48.7k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm24EEEbPKcS5_m:
95612|   857k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   857k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   857k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|   857k|    } else if constexpr (MaxKeyLen <= 32) {
95644|   857k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|   857k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|   857k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|   857k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|   857k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|   857k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|   857k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|   857k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|   857k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|   857k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|   857k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   857k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm24EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  48.7k|  auto try_match = [&](auto Ic) {
95867|  48.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  48.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.19k, False: 41.5k]
  |  Branch (95868:20): [True: 5.15k, False: 2.03k]
  ------------------
95869|  5.15k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.51k, False: 640]
  ------------------
95870|  5.15k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.51k|      result = i;
95872|  4.51k|    }
95873|  48.7k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm24EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  48.7k|  auto try_match = [&](auto Ic) {
95867|  48.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  48.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 15.2k, False: 33.5k]
  |  Branch (95868:20): [True: 14.0k, False: 1.21k]
  ------------------
95869|  14.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 13.6k, False: 414]
  ------------------
95870|  14.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  13.6k|      result = i;
95872|  13.6k|    }
95873|  48.7k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm24EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  48.7k|  auto try_match = [&](auto Ic) {
95867|  48.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  48.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 20.0k, False: 28.7k]
  |  Branch (95868:20): [True: 17.1k, False: 2.91k]
  ------------------
95869|  17.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 15.8k, False: 1.29k]
  ------------------
95870|  17.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  15.8k|      result = i;
95872|  15.8k|    }
95873|  48.7k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS4_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEXtlNS4_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEE4sizeEv:
95952|  91.9k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc105ELc109ELc112ELc108ELc105ELc99ELc105ELc116ELc95ELc115ELc104ELc97ELc112ELc101ELc115EEEEXtlNS6_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEEEEJRKZN8fastgltf6Parser15parseExtensionsERNSE_8internal10JsonObjectERNSE_5AssetEE3$_4RKZNSF_15parseExtensionsESI_SK_E3$_1RKZNSF_15parseExtensionsESI_SK_E3$_3RKZNSF_15parseExtensionsESI_SK_E3$_2EQaaaa17key_selector_typeIT_EeqsZT0_clsrSX_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_ENKUlmNS1_5valueEE_clEmS12_:
10308|  38.4k|      [&](std::size_t i, value v) -> error_code {
10308|  38.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  38.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  38.4k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEE3$_4RKZNS7_15parseExtensionsESA_SC_E3$_1RKZNS7_15parseExtensionsESA_SC_E3$_3RKZNS7_15parseExtensionsESA_SC_E3$_2EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  38.4k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  38.4k|  error_code err = SUCCESS;
10304|  38.4k|  auto try_one = [&](auto Ic) {
10305|  38.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.4k|    if (idx == I) {
10305|  38.4k|      auto&& h = std::get<I>(handlers);
10305|  38.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|  38.4k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  38.4k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  38.4k|          err = h(v);
10306|  38.4k|        } else {
10306|  38.4k|          h(v);
10306|  38.4k|        }
10306|  38.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  38.4k|        err = v.get(h);
10306|  38.4k|      }
10306|  38.4k|    }
10306|  38.4k|  };
10306|  38.4k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  38.4k|  return err;
10307|  38.4k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEE3$_4RKZNS7_15parseExtensionsESA_SC_E3$_1RKZNS7_15parseExtensionsESA_SC_E3$_3RKZNS7_15parseExtensionsESA_SC_E3$_2EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm0EEEEEDaSR_:
10304|  38.4k|  auto try_one = [&](auto Ic) {
10305|  38.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 4.83k, False: 33.5k]
  ------------------
10305|  4.83k|      auto&& h = std::get<I>(handlers);
10305|  4.83k|      using H = std::remove_reference_t<decltype(h)>;
10305|  4.83k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  4.83k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  4.83k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  4.83k|    }
10306|  38.4k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|  4.83k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  4.83k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 8, False: 4.83k]
  ------------------
10350|  4.83k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  4.83k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEJZZN8fastgltf6Parser15parseExtensionsERNS8_8internal10JsonObjectERNS8_5AssetEENK3$_0clEMS9_FNS8_5ErrorERNSA_9JsonArrayESE_EEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|  4.83k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  4.83k|  using Selector = key_selector<Keys...>;
10309|  4.83k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  4.83k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_:
10308|  4.83k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  4.83k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  4.83k|  return this->template for_each<Selector>(
10308|  4.83k|      [&](std::size_t i, value v) -> error_code {
10308|  4.83k|        return key_selector_for_each_detail::dispatch_value(
10308|  4.83k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  4.83k|      });
10309|  4.83k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEEEZNS2_8for_eachIS9_JZZN8fastgltf6Parser15parseExtensionsERNSB_8internal10JsonObjectERNSB_5AssetEENK3$_0clEMSC_FNSB_5ErrorERNSD_9JsonArrayESH_EEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_EUlmSO_E_Qaa17key_selector_typeISQ_Esr3stdE14is_invocable_vIRT0_mSO_EEESS_OSW_:
10296|  4.83k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  4.83k|  value_iterator it = iter;
10297|  4.83k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  4.83k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  4.83k|  std::array<std::uint64_t, seen_words> seen{};
10298|  7.38k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 5.80k, False: 1.58k]
  ------------------
10298|  5.80k|    raw_json_string key;
10298|  5.80k|    error_code error;
10298|  5.80k|    std::size_t idx;
10298|  5.80k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  5.80k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 3, False: 5.79k]
  ------------------
10299|  5.79k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 10, False: 5.78k]
  ------------------
10299|  5.78k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  5.80k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 3.71k, False: 2.09k]
  ------------------
10300|  3.71k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  3.71k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  3.71k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 3.71k, False: 0]
  ------------------
10300|  3.71k|        seen_word |= seen_bit;
10300|  3.71k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  3.71k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  3.71k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 482, False: 3.22k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  3.71k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3.22k, False: 482]
  ------------------
10302|  3.71k|      }
10302|  3.71k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  2.57k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 2.57k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  2.57k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 11, False: 2.56k]
  ------------------
10303|  2.56k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 7, False: 2.55k]
  ------------------
10303|  2.56k|  }
10303|  4.81k|  return {SUCCESS, matched};
10303|  4.83k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  5.78k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  5.78k|        const char* p = rjs.raw();
96024|  5.78k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  5.78k|            std::uint8_t ki = window.window_to_key[
96030|  5.78k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  5.78k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 874, False: 4.91k]
  ------------------
96032|  4.91k|            return key_selector_detail::match_window_candidate(
96033|  4.91k|                p, ki, window, std::make_index_sequence<N>{});
96034|  5.78k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  5.78k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm6EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  55.2k|                       std::index_sequence<Is...>) noexcept {
95865|  55.2k|  std::size_t result = N;
95866|  55.2k|  auto try_match = [&](auto Ic) {
95867|  55.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  55.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  55.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  55.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  55.2k|      result = i;
95872|  55.2k|    }
95873|  55.2k|  };
95874|  55.2k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  55.2k|  return result;
95876|  55.2k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm6EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  55.2k|  auto try_match = [&](auto Ic) {
95867|  55.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  55.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 55.2k, False: 0]
  |  Branch (95868:20): [True: 49.5k, False: 5.74k]
  ------------------
95869|  49.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 48.0k, False: 1.44k]
  ------------------
95870|  49.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  48.0k|      result = i;
95872|  48.0k|    }
95873|  55.2k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEE4sizeEv:
95952|  9.01k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc103ELc104ELc116ELc115EEEEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_ENKUlmSN_E_clEmSN_:
10308|  3.71k|      [&](std::size_t i, value v) -> error_code {
10308|  3.71k|        return key_selector_for_each_detail::dispatch_value(
10308|  3.71k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  3.71k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_0clEMS7_FNS6_5ErrorERNS8_9JsonArrayESC_EEUlNS1_5valueEE_EEEJLm0EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  16.8k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  16.8k|  error_code err = SUCCESS;
10304|  16.8k|  auto try_one = [&](auto Ic) {
10305|  16.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  16.8k|    if (idx == I) {
10305|  16.8k|      auto&& h = std::get<I>(handlers);
10305|  16.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  16.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  16.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  16.8k|          err = h(v);
10306|  16.8k|        } else {
10306|  16.8k|          h(v);
10306|  16.8k|        }
10306|  16.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  16.8k|        err = v.get(h);
10306|  16.8k|      }
10306|  16.8k|    }
10306|  16.8k|  };
10306|  16.8k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  16.8k|  return err;
10307|  16.8k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_0clEMS7_FNS6_5ErrorERNS8_9JsonArrayESC_EEUlNS1_5valueEE_EEEJLm0EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm0EEEEEDaSO_:
10304|  16.8k|  auto try_one = [&](auto Ic) {
10305|  16.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  16.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 16.8k, False: 0]
  ------------------
10305|  16.8k|      auto&& h = std::get<I>(handlers);
10305|  16.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  16.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  16.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  16.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  16.8k|    }
10306|  16.8k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEE3$_4RKZNS7_15parseExtensionsESA_SC_E3$_1RKZNS7_15parseExtensionsESA_SC_E3$_3RKZNS7_15parseExtensionsESA_SC_E3$_2EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm1EEEEEDaSR_:
10304|  38.4k|  auto try_one = [&](auto Ic) {
10305|  38.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 4.51k, False: 33.8k]
  ------------------
10305|  4.51k|      auto&& h = std::get<I>(handlers);
10305|  4.51k|      using H = std::remove_reference_t<decltype(h)>;
10305|  4.51k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  4.51k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  4.51k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  4.51k|    }
10306|  38.4k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEJRKZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_1clENS2_5valueEEUlSI_E0_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSM_:
10349|  4.51k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  4.51k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 4.51k]
  ------------------
10350|  4.51k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  4.51k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEJRKZZN8fastgltf6Parser15parseExtensionsERNS8_8internal10JsonObjectERNS8_5AssetEENK3$_1clENS1_5valueEEUlSG_E0_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSK_:
10309|  4.51k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  4.51k|  using Selector = key_selector<Keys...>;
10309|  4.51k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  4.51k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEJRKZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_1clENS1_5valueEEUlSI_E0_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10308|  4.51k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  4.51k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  4.51k|  return this->template for_each<Selector>(
10308|  4.51k|      [&](std::size_t i, value v) -> error_code {
10308|  4.51k|        return key_selector_for_each_detail::dispatch_value(
10308|  4.51k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  4.51k|      });
10309|  4.51k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEZNS2_8for_eachIS9_JRKZZN8fastgltf6Parser15parseExtensionsERNSB_8internal10JsonObjectERNSB_5AssetEENK3$_1clENS1_5valueEEUlSJ_E0_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_EUlmSJ_E_Qaa17key_selector_typeISN_Esr3stdE14is_invocable_vIRT0_mSJ_EEESP_OST_:
10296|  4.51k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  4.51k|  value_iterator it = iter;
10297|  4.51k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  4.51k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  4.51k|  std::array<std::uint64_t, seen_words> seen{};
10298|  7.25k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 6.61k, False: 636]
  ------------------
10298|  6.61k|    raw_json_string key;
10298|  6.61k|    error_code error;
10298|  6.61k|    std::size_t idx;
10298|  6.61k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  6.61k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 7, False: 6.60k]
  ------------------
10299|  6.60k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 5, False: 6.60k]
  ------------------
10299|  6.60k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  6.61k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 3.96k, False: 2.65k]
  ------------------
10300|  3.96k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  3.96k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  3.96k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 3.96k, False: 0]
  ------------------
10300|  3.96k|        seen_word |= seen_bit;
10300|  3.96k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  3.96k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  3.96k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 106, False: 3.85k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  3.96k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3.85k, False: 106]
  ------------------
10302|  3.96k|      }
10302|  3.96k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  2.76k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 2.76k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  2.76k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 8, False: 2.75k]
  ------------------
10303|  2.75k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 11, False: 2.74k]
  ------------------
10303|  2.75k|  }
10303|  4.49k|  return {SUCCESS, matched};
10303|  4.51k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  6.60k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  6.60k|        const char* p = rjs.raw();
96024|  6.60k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  6.60k|            std::uint8_t ki = window.window_to_key[
96030|  6.60k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  6.60k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.11k, False: 4.49k]
  ------------------
96032|  4.49k|            return key_selector_detail::match_window_candidate(
96033|  4.49k|                p, ki, window, std::make_index_sequence<N>{});
96034|  6.60k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  6.60k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm8EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  7.36k|                       std::index_sequence<Is...>) noexcept {
95865|  7.36k|  std::size_t result = N;
95866|  7.36k|  auto try_match = [&](auto Ic) {
95867|  7.36k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  7.36k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  7.36k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  7.36k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  7.36k|      result = i;
95872|  7.36k|    }
95873|  7.36k|  };
95874|  7.36k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  7.36k|  return result;
95876|  7.36k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm8EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  7.36k|  auto try_match = [&](auto Ic) {
95867|  7.36k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  7.36k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.36k, False: 0]
  |  Branch (95868:20): [True: 6.84k, False: 516]
  ------------------
95869|  6.84k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 6.33k, False: 511]
  ------------------
95870|  6.84k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.33k|      result = i;
95872|  6.33k|    }
95873|  7.36k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEE4sizeEv:
95952|  10.4k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEJRKZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_1clENS1_5valueEEUlSI_E0_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_ENKUlmSI_E_clEmSI_:
10308|  3.96k|      [&](std::size_t i, value v) -> error_code {
10308|  3.96k|        return key_selector_for_each_detail::dispatch_value(
10308|  3.96k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  3.96k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_1clENS1_5valueEEUlSE_E0_EEEJLm0EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  3.96k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  3.96k|  error_code err = SUCCESS;
10304|  3.96k|  auto try_one = [&](auto Ic) {
10305|  3.96k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  3.96k|    if (idx == I) {
10305|  3.96k|      auto&& h = std::get<I>(handlers);
10305|  3.96k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.96k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.96k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.96k|          err = h(v);
10306|  3.96k|        } else {
10306|  3.96k|          h(v);
10306|  3.96k|        }
10306|  3.96k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  3.96k|        err = v.get(h);
10306|  3.96k|      }
10306|  3.96k|    }
10306|  3.96k|  };
10306|  3.96k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  3.96k|  return err;
10307|  3.96k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_1clENS1_5valueEEUlSE_E0_EEEJLm0EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm0EEEEEDaSK_:
10304|  3.96k|  auto try_one = [&](auto Ic) {
10305|  3.96k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  3.96k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.96k, False: 0]
  ------------------
10305|  3.96k|      auto&& h = std::get<I>(handlers);
10305|  3.96k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.96k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.96k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.96k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  3.96k|    }
10306|  3.96k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEJRNSt3__18optionalINSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSK_:
10349|  21.0k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  21.0k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 10, False: 21.0k]
  ------------------
10350|  21.0k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  21.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEJRNSt3__18optionalINS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_:
10309|  21.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  21.0k|  using Selector = key_selector<Keys...>;
10309|  21.0k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  21.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEEEJRNSt3__18optionalINSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_:
10308|  21.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  21.0k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  21.0k|  return this->template for_each<Selector>(
10308|  21.0k|      [&](std::size_t i, value v) -> error_code {
10308|  21.0k|        return key_selector_for_each_detail::dispatch_value(
10308|  21.0k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  21.0k|      });
10309|  21.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEEEZNS2_8for_eachIS9_JRNSt3__18optionalINSB_12basic_stringIcNSB_11char_traitsIcEENSB_9allocatorIcEEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_EUlmNS1_5valueEE_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSQ_EEESN_OSS_:
10296|  21.0k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  21.0k|  value_iterator it = iter;
10297|  21.0k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  21.0k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  21.0k|  std::array<std::uint64_t, seen_words> seen{};
10298|  24.8k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 24.8k, False: 59]
  ------------------
10298|  24.8k|    raw_json_string key;
10298|  24.8k|    error_code error;
10298|  24.8k|    std::size_t idx;
10298|  24.8k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  24.8k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 7, False: 24.8k]
  ------------------
10299|  24.8k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 13, False: 24.7k]
  ------------------
10299|  24.7k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  24.8k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 20.9k, False: 3.82k]
  ------------------
10300|  20.9k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  20.9k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  20.9k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 20.9k, False: 0]
  ------------------
10300|  20.9k|        seen_word |= seen_bit;
10300|  20.9k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  20.9k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  20.9k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 16, False: 20.9k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  20.9k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 20.9k, False: 16]
  ------------------
10302|  20.9k|      }
10302|  20.9k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  3.83k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 3.83k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  3.83k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 2, False: 3.83k]
  ------------------
10303|  3.83k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 9, False: 3.82k]
  ------------------
10303|  3.83k|  }
10303|  21.0k|  return {SUCCESS, matched};
10303|  21.0k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  24.7k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  24.7k|        const char* p = rjs.raw();
96024|  24.7k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  24.7k|            std::uint8_t ki = window.window_to_key[
96030|  24.7k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  24.7k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.98k, False: 21.8k]
  ------------------
96032|  21.8k|            return key_selector_detail::match_window_candidate(
96033|  21.8k|                p, ki, window, std::make_index_sequence<N>{});
96034|  24.7k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  24.7k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm4EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  22.2k|                       std::index_sequence<Is...>) noexcept {
95865|  22.2k|  std::size_t result = N;
95866|  22.2k|  auto try_match = [&](auto Ic) {
95867|  22.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  22.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  22.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  22.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  22.2k|      result = i;
95872|  22.2k|    }
95873|  22.2k|  };
95874|  22.2k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  22.2k|  return result;
95876|  22.2k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm4EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  22.2k|  auto try_match = [&](auto Ic) {
95867|  22.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  22.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 22.2k, False: 0]
  |  Branch (95868:20): [True: 21.4k, False: 836]
  ------------------
95869|  21.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 21.0k, False: 409]
  ------------------
95870|  21.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  21.0k|      result = i;
95872|  21.0k|    }
95873|  22.2k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEE4sizeEv:
95952|  45.7k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEEEEJRNSt3__18optionalINSA_12basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_ENKUlmNS1_5valueEE_clEmSP_:
10308|  20.9k|      [&](std::size_t i, value v) -> error_code {
10308|  20.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  20.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  20.9k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  20.9k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  20.9k|  error_code err = SUCCESS;
10304|  20.9k|  auto try_one = [&](auto Ic) {
10305|  20.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  20.9k|    if (idx == I) {
10305|  20.9k|      auto&& h = std::get<I>(handlers);
10305|  20.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|  20.9k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  20.9k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  20.9k|          err = h(v);
10306|  20.9k|        } else {
10306|  20.9k|          h(v);
10306|  20.9k|        }
10306|  20.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.9k|        err = v.get(h);
10306|  20.9k|      }
10306|  20.9k|    }
10306|  20.9k|  };
10306|  20.9k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  20.9k|  return err;
10307|  20.9k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|  20.9k|  auto try_one = [&](auto Ic) {
10305|  20.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  20.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 20.9k, False: 0]
  ------------------
10305|  20.9k|      auto&& h = std::get<I>(handlers);
10305|  20.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  20.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.9k|        err = v.get(h);
10306|  20.9k|      }
10306|  20.9k|    }
10306|  20.9k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEENS_10error_codeERT_:
89907|  20.9k| {
89908|  20.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  20.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  20.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  20.9k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSE_RSB_:
89261|  20.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  20.9k|    return tag_invoke(*this, object, output);
89263|  20.9k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  20.9k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  20.9k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  20.9k|  static_assert(
97645|  20.9k|      deserializable<value_type, ValT>,
97646|  20.9k|      "The specified type inside the optional must itself be deserializable");
97647|  20.9k|  static_assert(
97648|  20.9k|      std::is_default_constructible_v<value_type>,
97649|  20.9k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  20.9k|  bool is_null_value;
97653|  20.9k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  20.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 20.9k]
  |  |  ------------------
  ------------------
97654|  20.9k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 20.9k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  20.9k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 20.9k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  20.9k|    out.emplace();
97665|  20.9k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  20.9k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  20.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 13, False: 20.9k]
  |  |  ------------------
  ------------------
97667|  20.9k|    guard.armed = false;
97668|  20.9k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  20.9k|  return SUCCESS;
97676|  20.9k|}
_ZN8simdjson7details11reset_guardINSt3__18optionalINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEED2Ev:
97461|  20.9k|  ~reset_guard() {
97462|  20.9k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 13, False: 20.9k]
  ------------------
97463|  20.9k|  }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEE3$_4RKZNS7_15parseExtensionsESA_SC_E3$_1RKZNS7_15parseExtensionsESA_SC_E3$_3RKZNS7_15parseExtensionsESA_SC_E3$_2EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm2EEEEEDaSR_:
10304|  38.4k|  auto try_one = [&](auto Ic) {
10305|  38.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 13.6k, False: 24.7k]
  ------------------
10305|  13.6k|      auto&& h = std::get<I>(handlers);
10305|  13.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  13.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  13.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  13.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  13.6k|    }
10306|  38.4k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|  13.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  13.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 13.6k]
  ------------------
10350|  13.6k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  13.6k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEJZZN8fastgltf6Parser15parseExtensionsERNS8_8internal10JsonObjectERNS8_5AssetEENK3$_0clEMS9_FNS8_5ErrorERNSA_9JsonArrayESE_EEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|  13.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  13.6k|  using Selector = key_selector<Keys...>;
10309|  13.6k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  13.6k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_:
10308|  13.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  13.6k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  13.6k|  return this->template for_each<Selector>(
10308|  13.6k|      [&](std::size_t i, value v) -> error_code {
10308|  13.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  13.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  13.6k|      });
10309|  13.6k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEEEZNS2_8for_eachIS9_JZZN8fastgltf6Parser15parseExtensionsERNSB_8internal10JsonObjectERNSB_5AssetEENK3$_0clEMSC_FNSB_5ErrorERNSD_9JsonArrayESH_EEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_EUlmSO_E_Qaa17key_selector_typeISQ_Esr3stdE14is_invocable_vIRT0_mSO_EEESS_OSW_:
10296|  13.6k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  13.6k|  value_iterator it = iter;
10297|  13.6k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  13.6k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  13.6k|  std::array<std::uint64_t, seen_words> seen{};
10298|  24.8k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 22.7k, False: 2.13k]
  ------------------
10298|  22.7k|    raw_json_string key;
10298|  22.7k|    error_code error;
10298|  22.7k|    std::size_t idx;
10298|  22.7k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  22.7k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 11, False: 22.7k]
  ------------------
10299|  22.7k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 11, False: 22.7k]
  ------------------
10299|  22.7k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  22.7k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 13.1k, False: 9.60k]
  ------------------
10300|  13.1k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  13.1k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  13.1k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 13.1k, False: 0]
  ------------------
10300|  13.1k|        seen_word |= seen_bit;
10300|  13.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  13.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  13.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 1.64k, False: 11.4k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  13.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 11.4k, False: 1.64k]
  ------------------
10302|  13.1k|      }
10302|  13.1k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  11.2k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 11.2k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  11.2k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 14, False: 11.2k]
  ------------------
10303|  11.2k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 8, False: 11.2k]
  ------------------
10303|  11.2k|  }
10303|  13.6k|  return {SUCCESS, matched};
10303|  13.6k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  22.7k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  22.7k|        const char* p = rjs.raw();
96024|  22.7k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  22.7k|            std::uint8_t ki = window.window_to_key[
96030|  22.7k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  22.7k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 4.83k, False: 17.8k]
  ------------------
96032|  17.8k|            return key_selector_detail::match_window_candidate(
96033|  17.8k|                p, ki, window, std::make_index_sequence<N>{});
96034|  22.7k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  22.7k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEE4sizeEv:
95952|  34.1k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc104ELc97ELc112ELc101ELc115EEEEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_ENKUlmSN_E_clEmSN_:
10308|  13.1k|      [&](std::size_t i, value v) -> error_code {
10308|  13.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  13.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  13.1k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEE3$_4RKZNS7_15parseExtensionsESA_SC_E3$_1RKZNS7_15parseExtensionsESA_SC_E3$_3RKZNS7_15parseExtensionsESA_SC_E3$_2EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm3EEEEEDaSR_:
10304|  38.4k|  auto try_one = [&](auto Ic) {
10305|  38.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.4k, False: 22.9k]
  ------------------
10305|  15.4k|      auto&& h = std::get<I>(handlers);
10305|  15.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|  15.4k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  15.4k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  15.4k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  15.4k|    }
10306|  38.4k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS8_tlS9_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS7_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEJZZN8fastgltf6Parser15parseExtensionsERNSC_8internal10JsonObjectERNSC_5AssetEENK3$_0clEMSD_FNSC_5ErrorERNSE_9JsonArrayESI_EEUlNS2_5valueEE_SQ_SQ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSR_:
10349|  15.4k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  15.4k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 7, False: 15.4k]
  ------------------
10350|  15.4k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  15.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS6_tlS7_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS5_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEJZZN8fastgltf6Parser15parseExtensionsERNSA_8internal10JsonObjectERNSA_5AssetEENK3$_0clEMSB_FNSA_5ErrorERNSC_9JsonArrayESG_EEUlNS1_5valueEE_SO_SO_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10309|  15.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  15.4k|  using Selector = key_selector<Keys...>;
10309|  15.4k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  15.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS7_tlS8_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS6_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEEEJZZN8fastgltf6Parser15parseExtensionsERNSC_8internal10JsonObjectERNSC_5AssetEENK3$_0clEMSD_FNSC_5ErrorERNSE_9JsonArrayESI_EEUlNS1_5valueEE_SQ_SQ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_:
10308|  15.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  15.4k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  15.4k|  return this->template for_each<Selector>(
10308|  15.4k|      [&](std::size_t i, value v) -> error_code {
10308|  15.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  15.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  15.4k|      });
10309|  15.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS7_tlS8_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS6_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEEEZNS2_8for_eachISB_JZZN8fastgltf6Parser15parseExtensionsERNSD_8internal10JsonObjectERNSD_5AssetEENK3$_0clEMSE_FNSD_5ErrorERNSF_9JsonArrayESJ_EEUlNS1_5valueEE_SR_SR_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_EUlmSQ_E_Qaa17key_selector_typeISS_Esr3stdE14is_invocable_vIRT0_mSQ_EEESU_OSY_:
10296|  15.4k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  15.4k|  value_iterator it = iter;
10297|  15.4k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  15.4k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  15.4k|  std::array<std::uint64_t, seen_words> seen{};
10298|  34.6k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 19.3k, False: 15.3k]
  ------------------
10298|  19.3k|    raw_json_string key;
10298|  19.3k|    error_code error;
10298|  19.3k|    std::size_t idx;
10298|  19.3k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  19.3k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 11, False: 19.3k]
  ------------------
10299|  19.3k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 14, False: 19.3k]
  ------------------
10299|  19.3k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  19.3k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 14.5k, False: 4.74k]
  ------------------
10300|  14.5k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  14.5k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  14.5k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 14.2k, False: 345]
  ------------------
10300|  14.2k|        seen_word |= seen_bit;
10300|  14.2k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  14.2k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  14.2k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 1.12k, False: 13.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  14.2k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3, False: 14.2k]
  ------------------
10302|  14.2k|      }
10302|  14.5k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  19.3k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 19.3k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  19.3k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 18, False: 19.3k]
  ------------------
10303|  19.3k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 76, False: 19.2k]
  ------------------
10303|  19.3k|  }
10303|  15.3k|  return {SUCCESS, matched};
10303|  15.4k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS5_tlS6_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS4_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  19.3k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  19.3k|        const char* p = rjs.raw();
96024|  19.3k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  19.3k|            std::uint8_t ki = window.window_to_key[
96030|  19.3k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  19.3k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.27k, False: 17.0k]
  ------------------
96032|  17.0k|            return key_selector_detail::match_window_candidate(
96033|  17.0k|                p, ki, window, std::make_index_sequence<N>{});
96034|  19.3k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  19.3k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm16EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  17.0k|                       std::index_sequence<Is...>) noexcept {
95865|  17.0k|  std::size_t result = N;
95866|  17.0k|  auto try_match = [&](auto Ic) {
95867|  17.0k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  17.0k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  17.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  17.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  17.0k|      result = i;
95872|  17.0k|    }
95873|  17.0k|  };
95874|  17.0k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  17.0k|  return result;
95876|  17.0k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm16EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  17.0k|  auto try_match = [&](auto Ic) {
95867|  17.0k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  17.0k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 6.40k, False: 10.6k]
  |  Branch (95868:20): [True: 5.75k, False: 642]
  ------------------
95869|  5.75k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 5.34k, False: 414]
  ------------------
95870|  5.75k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  5.34k|      result = i;
95872|  5.34k|    }
95873|  17.0k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm16EEEbPKcS5_m:
95612|  20.0k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  20.0k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  20.0k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|  20.0k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|  20.0k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|  20.0k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|  20.0k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|  20.0k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|  20.0k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  20.0k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm16EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  17.0k|  auto try_match = [&](auto Ic) {
95867|  17.0k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  17.0k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 8.53k, False: 8.49k]
  |  Branch (95868:20): [True: 8.25k, False: 278]
  ------------------
95869|  8.25k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 7.93k, False: 328]
  ------------------
95870|  8.25k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  7.93k|      result = i;
95872|  7.93k|    }
95873|  17.0k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm16EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  17.0k|  auto try_match = [&](auto Ic) {
95867|  17.0k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  17.0k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2.09k, False: 14.9k]
  |  Branch (95868:20): [True: 1.61k, False: 486]
  ------------------
95869|  1.61k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 1.31k, False: 293]
  ------------------
95870|  1.61k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  1.31k|      result = i;
95872|  1.31k|    }
95873|  17.0k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS5_tlS6_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS4_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEE4sizeEv:
95952|  32.4k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115EEEEXtlS7_tlS8_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114ELc115EEEEXtlNS6_ILm14EEEtlA14_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc74ELc111ELc105ELc110ELc116ELc115EEEEEEEJZZN8fastgltf6Parser15parseExtensionsERNSC_8internal10JsonObjectERNSC_5AssetEENK3$_0clEMSD_FNSC_5ErrorERNSE_9JsonArrayESI_EEUlNS1_5valueEE_SQ_SQ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_ENKUlmSP_E_clEmSP_:
10308|  14.2k|      [&](std::size_t i, value v) -> error_code {
10308|  14.2k|        return key_selector_for_each_detail::dispatch_value(
10308|  14.2k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  14.2k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_0clEMS7_FNS6_5ErrorERNS8_9JsonArrayESC_EEUlNS1_5valueEE_SL_SL_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  14.2k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  14.2k|  error_code err = SUCCESS;
10304|  14.2k|  auto try_one = [&](auto Ic) {
10305|  14.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  14.2k|    if (idx == I) {
10305|  14.2k|      auto&& h = std::get<I>(handlers);
10305|  14.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  14.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  14.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  14.2k|          err = h(v);
10306|  14.2k|        } else {
10306|  14.2k|          h(v);
10306|  14.2k|        }
10306|  14.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  14.2k|        err = v.get(h);
10306|  14.2k|      }
10306|  14.2k|    }
10306|  14.2k|  };
10306|  14.2k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  14.2k|  return err;
10307|  14.2k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_0clEMS7_FNS6_5ErrorERNS8_9JsonArrayESC_EEUlNS1_5valueEE_SL_SL_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm0EEEEEDaSO_:
10304|  14.2k|  auto try_one = [&](auto Ic) {
10305|  14.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  14.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 5.00k, False: 9.24k]
  ------------------
10305|  5.00k|      auto&& h = std::get<I>(handlers);
10305|  5.00k|      using H = std::remove_reference_t<decltype(h)>;
10305|  5.00k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  5.00k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  5.00k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  5.00k|    }
10306|  14.2k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_0clEMS7_FNS6_5ErrorERNS8_9JsonArrayESC_EEUlNS1_5valueEE_SL_SL_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm1EEEEEDaSO_:
10304|  14.2k|  auto try_one = [&](auto Ic) {
10305|  14.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  14.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 7.92k, False: 6.31k]
  ------------------
10305|  7.92k|      auto&& h = std::get<I>(handlers);
10305|  7.92k|      using H = std::remove_reference_t<decltype(h)>;
10305|  7.92k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  7.92k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  7.92k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  7.92k|    }
10306|  14.2k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf6Parser15parseExtensionsERNS6_8internal10JsonObjectERNS6_5AssetEENK3$_0clEMS7_FNS6_5ErrorERNS8_9JsonArrayESC_EEUlNS1_5valueEE_SL_SL_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SJ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm2EEEEEDaSO_:
10304|  14.2k|  auto try_one = [&](auto Ic) {
10305|  14.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  14.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1.31k, False: 12.9k]
  ------------------
10305|  1.31k|      auto&& h = std::get<I>(handlers);
10305|  1.31k|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.31k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.31k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.31k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  1.31k|    }
10306|  14.2k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS7_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS7_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSI_17basic_string_viewIcNSI_11char_traitsIcEEEEEESP_RN8fastgltf14basic_optionalImNSQ_15flagged_storageImEEEERNSI_12basic_stringIcSM_NSI_9allocatorIcEEEERKZNSQ_10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS19_:
10349|   132k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   132k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 42, False: 132k]
  ------------------
10350|   132k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   132k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS5_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS5_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSG_17basic_string_viewIcNSG_11char_traitsIcEEEEEESN_RN8fastgltf14basic_optionalImNSO_15flagged_storageImEEEERNSG_12basic_stringIcSK_NSG_9allocatorIcEEEERKZNSO_10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_:
10309|   132k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   132k|  using Selector = key_selector<Keys...>;
10309|   132k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   132k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSI_17basic_string_viewIcNSI_11char_traitsIcEEEEEESP_RN8fastgltf14basic_optionalImNSQ_15flagged_storageImEEEERNSI_12basic_stringIcSM_NSI_9allocatorIcEEEERKZNSQ_10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS19_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1A_:
10308|   132k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   132k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   132k|  return this->template for_each<Selector>(
10308|   132k|      [&](std::size_t i, value v) -> error_code {
10308|   132k|        return key_selector_for_each_detail::dispatch_value(
10308|   132k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   132k|      });
10309|   132k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISH_JRNSt3__18optionalINSJ_17basic_string_viewIcNSJ_11char_traitsIcEEEEEESQ_RN8fastgltf14basic_optionalImNSR_15flagged_storageImEEEERNSJ_12basic_stringIcSN_NSJ_9allocatorIcEEEERKZNSR_10readExtrasERKNSR_20ParserInternalConfigEmNSR_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_EUlmS16_E_Qaa17key_selector_typeIS1A_Esr3stdE14is_invocable_vIRT0_mS16_EEES1C_OS1G_:
10296|   132k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   132k|  value_iterator it = iter;
10297|   132k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   132k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   132k|  std::array<std::uint64_t, seen_words> seen{};
10298|   358k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 226k, False: 132k]
  ------------------
10298|   226k|    raw_json_string key;
10298|   226k|    error_code error;
10298|   226k|    std::size_t idx;
10298|   226k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   226k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 14, False: 226k]
  ------------------
10299|   226k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 64, False: 226k]
  ------------------
10299|   226k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   226k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 206k, False: 19.9k]
  ------------------
10300|   206k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   206k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   206k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 198k, False: 7.87k]
  ------------------
10300|   198k|        seen_word |= seen_bit;
10300|   198k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   198k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   198k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 7, False: 198k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   198k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1, False: 198k]
  ------------------
10302|   198k|      }
10302|   206k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   226k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 226k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   226k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 21, False: 226k]
  ------------------
10303|   226k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 32, False: 226k]
  ------------------
10303|   226k|  }
10303|   132k|  return {SUCCESS, matched};
10303|   132k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   226k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   226k|        const char* p = rjs.raw();
96024|   226k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   226k|            std::uint8_t ki = window.window_to_key[
96030|   226k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   226k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 5.27k, False: 221k]
  ------------------
96032|   221k|            return key_selector_detail::match_window_candidate(
96033|   221k|                p, ki, window, std::make_index_sequence<N>{});
96034|   226k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   226k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm10EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  1.61M|                       std::index_sequence<Is...>) noexcept {
95865|  1.61M|  std::size_t result = N;
95866|  1.61M|  auto try_match = [&](auto Ic) {
95867|  1.61M|    constexpr std::size_t i = decltype(Ic)::value;
95868|  1.61M|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  1.61M|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  1.61M|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  1.61M|      result = i;
95872|  1.61M|    }
95873|  1.61M|  };
95874|  1.61M|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  1.61M|  return result;
95876|  1.61M|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm10EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  1.61M|  auto try_match = [&](auto Ic) {
95867|  1.61M|    constexpr std::size_t i = decltype(Ic)::value;
95868|  1.61M|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 855k, False: 755k]
  |  Branch (95868:20): [True: 851k, False: 4.10k]
  ------------------
95869|   851k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 848k, False: 2.63k]
  ------------------
95870|   851k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   848k|      result = i;
95872|   848k|    }
95873|  1.61M|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm10EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  1.61M|  auto try_match = [&](auto Ic) {
95867|  1.61M|    constexpr std::size_t i = decltype(Ic)::value;
95868|  1.61M|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 252k, False: 1.35M]
  |  Branch (95868:20): [True: 243k, False: 8.78k]
  ------------------
95869|   243k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 232k, False: 10.7k]
  ------------------
95870|   243k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   232k|      result = i;
95872|   232k|    }
95873|  1.61M|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm10EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  1.61M|  auto try_match = [&](auto Ic) {
95867|  1.61M|    constexpr std::size_t i = decltype(Ic)::value;
95868|  1.61M|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 126k, False: 1.48M]
  |  Branch (95868:20): [True: 115k, False: 10.5k]
  ------------------
95869|   115k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 106k, False: 9.47k]
  ------------------
95870|   115k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   106k|      result = i;
95872|   106k|    }
95873|  1.61M|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm10EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  1.61M|  auto try_match = [&](auto Ic) {
95867|  1.61M|    constexpr std::size_t i = decltype(Ic)::value;
95868|  1.61M|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 134k, False: 1.47M]
  |  Branch (95868:20): [True: 128k, False: 5.82k]
  ------------------
95869|   128k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 123k, False: 4.66k]
  ------------------
95870|   128k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   123k|      result = i;
95872|   123k|    }
95873|  1.61M|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm10EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|  1.61M|  auto try_match = [&](auto Ic) {
95867|  1.61M|    constexpr std::size_t i = decltype(Ic)::value;
95868|  1.61M|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 242k, False: 1.36M]
  |  Branch (95868:20): [True: 232k, False: 10.1k]
  ------------------
95869|   232k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 225k, False: 7.00k]
  ------------------
95870|   232k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   225k|      result = i;
95872|   225k|    }
95873|  1.61M|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS4_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   425k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc117ELc114ELc105EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc105ELc109ELc101ELc84ELc121ELc112ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSI_17basic_string_viewIcNSI_11char_traitsIcEEEEEESP_RN8fastgltf14basic_optionalImNSQ_15flagged_storageImEEEERNSI_12basic_stringIcSM_NSI_9allocatorIcEEEERKZNSQ_10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS19_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1A_ENKUlmS15_E_clEmS15_:
10308|   198k|      [&](std::size_t i, value v) -> error_code {
10308|   198k|        return key_selector_for_each_detail::dispatch_value(
10308|   198k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   198k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   198k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   198k|  error_code err = SUCCESS;
10304|   198k|  auto try_one = [&](auto Ic) {
10305|   198k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   198k|    if (idx == I) {
10305|   198k|      auto&& h = std::get<I>(handlers);
10305|   198k|      using H = std::remove_reference_t<decltype(h)>;
10305|   198k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   198k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   198k|          err = h(v);
10306|   198k|        } else {
10306|   198k|          h(v);
10306|   198k|        }
10306|   198k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   198k|        err = v.get(h);
10306|   198k|      }
10306|   198k|    }
10306|   198k|  };
10306|   198k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   198k|  return err;
10307|   198k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm0EEEEEDaSY_:
10304|   198k|  auto try_one = [&](auto Ic) {
10305|   198k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   198k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 127k, False: 71.1k]
  ------------------
10305|   127k|      auto&& h = std::get<I>(handlers);
10305|   127k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   127k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   127k|        err = v.get(h);
10306|   127k|      }
10306|   127k|    }
10306|   198k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm1EEEEEDaSY_:
10304|   198k|  auto try_one = [&](auto Ic) {
10305|   198k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   198k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 24.7k, False: 174k]
  ------------------
10305|  24.7k|      auto&& h = std::get<I>(handlers);
10305|  24.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  24.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  24.7k|        err = v.get(h);
10306|  24.7k|      }
10306|  24.7k|    }
10306|   198k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm2EEEEEDaSY_:
10304|   198k|  auto try_one = [&](auto Ic) {
10305|   198k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   198k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 4.50k, False: 194k]
  ------------------
10305|  4.50k|      auto&& h = std::get<I>(handlers);
10305|  4.50k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  4.50k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  4.50k|        err = v.get(h);
10306|  4.50k|      }
10306|  4.50k|    }
10306|   198k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm3EEEEEDaSY_:
10304|   198k|  auto try_one = [&](auto Ic) {
10305|   198k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   198k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 41.6k, False: 157k]
  ------------------
10305|  41.6k|      auto&& h = std::get<I>(handlers);
10305|  41.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  41.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  41.6k|        err = v.get(h);
10306|  41.6k|      }
10306|  41.6k|    }
10306|   198k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEESC_RN8fastgltf14basic_optionalImNSD_15flagged_storageImEEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SS_NS4_16integer_sequenceImJXspT0_EEEEENKUlSY_E_clINS4_17integral_constantImLm4EEEEEDaSY_:
10304|   198k|  auto try_one = [&](auto Ic) {
10305|   198k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   198k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 206, False: 198k]
  ------------------
10305|    206|      auto&& h = std::get<I>(handlers);
10305|    206|      using H = std::remove_reference_t<decltype(h)>;
10305|    206|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    206|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    206|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    206|    }
10306|   198k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS7_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS7_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlSA_tlSB_Lc114ELc97ELc110ELc103ELc101EEEEXtlS8_tlS9_Lc115ELc112ELc111ELc116EEEEXtlS8_tlS9_Lc110ELc97ELc109ELc101EEEEEJRNSt3__18optionalIN8fastgltf9LightTypeEEERNSG_4math3vecIfLm3EEERfRNSG_14basic_optionalIfNSG_15flagged_storageIfEEEERKZNSG_6Parser11parseLightsERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RNSE_12basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1A_:
10349|  48.5k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  48.5k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 32, False: 48.4k]
  ------------------
10350|  48.4k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  48.5k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS5_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS5_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlS8_tlS9_Lc114ELc97ELc110ELc103ELc101EEEEXtlS6_tlS7_Lc115ELc112ELc111ELc116EEEEXtlS6_tlS7_Lc110ELc97ELc109ELc101EEEEEJRNSt3__18optionalIN8fastgltf9LightTypeEEERNSE_4math3vecIfLm3EEERfRNSE_14basic_optionalIfNSE_15flagged_storageIfEEEERKZNSE_6Parser11parseLightsERNSE_8internal9JsonArrayERNSE_5AssetEE3$_0RNSC_12basic_stringIcNSC_11char_traitsIcEENSC_9allocatorIcEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS18_:
10309|  48.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  48.4k|  using Selector = key_selector<Keys...>;
10309|  48.4k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  48.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS6_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlS9_tlSA_Lc114ELc97ELc110ELc103ELc101EEEEXtlS7_tlS8_Lc115ELc112ELc111ELc116EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEEEEJRNSt3__18optionalIN8fastgltf9LightTypeEEERNSG_4math3vecIfLm3EEERfRNSG_14basic_optionalIfNSG_15flagged_storageIfEEEERKZNSG_6Parser11parseLightsERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RNSE_12basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_:
10308|  48.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  48.4k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  48.4k|  return this->template for_each<Selector>(
10308|  48.4k|      [&](std::size_t i, value v) -> error_code {
10308|  48.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  48.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  48.4k|      });
10309|  48.4k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS6_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlS9_tlSA_Lc114ELc97ELc110ELc103ELc101EEEEXtlS7_tlS8_Lc115ELc112ELc111ELc116EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEEEEZNS2_8for_eachISD_JRNSt3__18optionalIN8fastgltf9LightTypeEEERNSH_4math3vecIfLm3EEERfRNSH_14basic_optionalIfNSH_15flagged_storageIfEEEERKZNSH_6Parser11parseLightsERNSH_8internal9JsonArrayERNSH_5AssetEE3$_0RNSF_12basic_stringIcNSF_11char_traitsIcEENSF_9allocatorIcEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrS1B_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_EUlmNS1_5valueEE_Qaa17key_selector_typeIS1B_Esr3stdE14is_invocable_vIRT0_mS1G_EEES1D_OS1I_:
10296|  48.4k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  48.4k|  value_iterator it = iter;
10297|  48.4k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  48.4k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  48.4k|  std::array<std::uint64_t, seen_words> seen{};
10298|   246k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 199k, False: 47.0k]
  ------------------
10298|   199k|    raw_json_string key;
10298|   199k|    error_code error;
10298|   199k|    std::size_t idx;
10298|   199k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   199k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 51, False: 199k]
  ------------------
10299|   199k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 66, False: 199k]
  ------------------
10299|   199k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   199k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 164k, False: 34.9k]
  ------------------
10300|   164k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   164k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   164k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 151k, False: 12.8k]
  ------------------
10300|   151k|        seen_word |= seen_bit;
10300|   151k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   151k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   151k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 127, False: 151k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   151k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.37k, False: 150k]
  ------------------
10302|   151k|      }
10302|   164k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   198k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 198k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   198k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 23, False: 198k]
  ------------------
10303|   198k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 66, False: 198k]
  ------------------
10303|   198k|  }
10303|  48.4k|  return {SUCCESS, matched};
10303|  48.4k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS4_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlS7_tlS8_Lc114ELc97ELc110ELc103ELc101EEEEXtlS5_tlS6_Lc115ELc112ELc111ELc116EEEEXtlS5_tlS6_Lc110ELc97ELc109ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   199k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   199k|        const char* p = rjs.raw();
96024|   199k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   199k|            std::uint8_t ki = window.window_to_key[
96030|   199k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   199k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 11.0k, False: 188k]
  ------------------
96032|   188k|            return key_selector_detail::match_window_candidate(
96033|   188k|                p, ki, window, std::make_index_sequence<N>{});
96034|   199k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   199k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   188k|                       std::index_sequence<Is...>) noexcept {
95865|   188k|  std::size_t result = N;
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   188k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   188k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   188k|      result = i;
95872|   188k|    }
95873|   188k|  };
95874|   188k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   188k|  return result;
95876|   188k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 53.1k, False: 135k]
  |  Branch (95868:20): [True: 51.5k, False: 1.61k]
  ------------------
95869|  51.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 51.2k, False: 367]
  ------------------
95870|  51.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  51.2k|      result = i;
95872|  51.2k|    }
95873|   188k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm9EEEbPKcS5_m:
95612|   266k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   266k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   266k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   266k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   266k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   266k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   266k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   266k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   266k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   266k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 21.9k, False: 166k]
  |  Branch (95868:20): [True: 19.0k, False: 2.83k]
  ------------------
95869|  19.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 18.2k, False: 838]
  ------------------
95870|  19.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  18.2k|      result = i;
95872|  18.2k|    }
95873|   188k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 30.1k, False: 158k]
  |  Branch (95868:20): [True: 25.1k, False: 4.94k]
  ------------------
95869|  25.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 22.7k, False: 2.42k]
  ------------------
95870|  25.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  22.7k|      result = i;
95872|  22.7k|    }
95873|   188k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 25.8k, False: 162k]
  |  Branch (95868:20): [True: 22.8k, False: 3.04k]
  ------------------
95869|  22.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 21.8k, False: 999]
  ------------------
95870|  22.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  21.8k|      result = i;
95872|  21.8k|    }
95873|   188k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 17.0k, False: 171k]
  |  Branch (95868:20): [True: 16.0k, False: 967]
  ------------------
95869|  16.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 15.7k, False: 261]
  ------------------
95870|  16.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  15.7k|      result = i;
95872|  15.7k|    }
95873|   188k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm9EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|   188k|  auto try_match = [&](auto Ic) {
95867|   188k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   188k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 40.3k, False: 148k]
  |  Branch (95868:20): [True: 36.2k, False: 4.06k]
  ------------------
95869|  36.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 34.8k, False: 1.40k]
  ------------------
95870|  36.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  34.8k|      result = i;
95872|  34.8k|    }
95873|   188k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS4_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlS7_tlS8_Lc114ELc97ELc110ELc103ELc101EEEEXtlS5_tlS6_Lc115ELc112ELc111ELc116EEEEXtlS5_tlS6_Lc110ELc97ELc109ELc101EEEEEE4sizeEv:
95952|   351k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc99ELc111ELc108ELc111ELc114EEEEXtlNS6_ILm10EEEtlA10_cLc105ELc110ELc116ELc101ELc110ELc115ELc105ELc116ELc121EEEEXtlS9_tlSA_Lc114ELc97ELc110ELc103ELc101EEEEXtlS7_tlS8_Lc115ELc112ELc111ELc116EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEEEEJRNSt3__18optionalIN8fastgltf9LightTypeEEERNSG_4math3vecIfLm3EEERfRNSG_14basic_optionalIfNSG_15flagged_storageIfEEEERKZNSG_6Parser11parseLightsERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RNSE_12basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_ENKUlmNS1_5valueEE_clEmS1F_:
10308|   151k|      [&](std::size_t i, value v) -> error_code {
10308|   151k|        return key_selector_for_each_detail::dispatch_value(
10308|   151k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   151k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   151k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   151k|  error_code err = SUCCESS;
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
10305|   151k|      auto&& h = std::get<I>(handlers);
10305|   151k|      using H = std::remove_reference_t<decltype(h)>;
10305|   151k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   151k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   151k|          err = h(v);
10306|   151k|        } else {
10306|   151k|          h(v);
10306|   151k|        }
10306|   151k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   151k|        err = v.get(h);
10306|   151k|      }
10306|   151k|    }
10306|   151k|  };
10306|   151k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   151k|  return err;
10307|   151k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS13_E_clINS4_17integral_constantImLm0EEEEEDaS13_:
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 48.1k, False: 103k]
  ------------------
10305|  48.1k|      auto&& h = std::get<I>(handlers);
10305|  48.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  48.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  48.1k|        err = v.get(h);
10306|  48.1k|      }
10306|  48.1k|    }
10306|   151k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf9LightTypeEEEEENS_10error_codeERT_:
89907|  48.1k| {
89908|  48.1k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  48.1k|  if constexpr (custom_deserializable<T, value>) {
89910|  48.1k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  48.1k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf9LightTypeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  48.1k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  48.1k|    return tag_invoke(*this, object, output);
89263|  48.1k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf9LightTypeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  48.1k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  48.1k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  48.1k|  static_assert(
97645|  48.1k|      deserializable<value_type, ValT>,
97646|  48.1k|      "The specified type inside the optional must itself be deserializable");
97647|  48.1k|  static_assert(
97648|  48.1k|      std::is_default_constructible_v<value_type>,
97649|  48.1k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  48.1k|  bool is_null_value;
97653|  48.1k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  48.1k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 48.1k]
  |  |  ------------------
  ------------------
97654|  48.1k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 48.1k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  48.1k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 48.1k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  48.1k|    out.emplace();
97665|  48.1k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  48.1k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  48.1k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 50, False: 48.0k]
  |  |  ------------------
  ------------------
97667|  48.0k|    guard.armed = false;
97668|  48.0k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  48.0k|  return SUCCESS;
97676|  48.1k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf9LightTypeEEENS_10error_codeERT_:
89907|  48.1k| {
89908|  48.1k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  48.1k|  if constexpr (custom_deserializable<T, value>) {
89910|  48.1k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  48.1k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf9LightTypeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  48.1k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  48.1k|    return tag_invoke(*this, object, output);
89263|  48.1k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc100ELc105ELc114ELc101ELc99ELc116ELc105ELc111ELc110ELc97ELc108EEEEXtlNS4_ILm5EEEtlA5_cLc115ELc112ELc111ELc116EEEEXtlNS4_ILm6EEEtlA6_cLc112ELc111ELc105ELc110ELc116EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  48.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  48.1k|        const char* p = rjs.raw();
96024|  48.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  48.1k|            std::uint8_t ki = window.window_to_key[
96030|  48.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  48.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 9, False: 48.1k]
  ------------------
96032|  48.1k|            return key_selector_detail::match_window_candidate(
96033|  48.1k|                p, ki, window, std::make_index_sequence<N>{});
96034|  48.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  48.1k|    }
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf9LightTypeEEEED2Ev:
97461|  48.1k|  ~reset_guard() {
97462|  48.1k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 50, False: 48.0k]
  ------------------
97463|  48.1k|  }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS13_E_clINS4_17integral_constantImLm1EEEEEDaS13_:
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 18.2k, False: 133k]
  ------------------
10305|  18.2k|      auto&& h = std::get<I>(handlers);
10305|  18.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  18.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  18.2k|        err = v.get(h);
10306|  18.2k|      }
10306|  18.2k|    }
10306|   151k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf4math3vecIfLm3EEEEENS_10error_codeERT_:
89907|   244k| {
89908|   244k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   244k|  if constexpr (custom_deserializable<T, value>) {
89910|   244k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   244k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf4math3vecIfLm3EEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS9_RS6_:
89261|   244k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   244k|    return tag_invoke(*this, object, output);
89263|   244k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIfEENS_10error_codeERT_:
99449|  2.47M|{
99450|  2.47M|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 426, False: 2.47M]
  ------------------
99451|  2.47M|  return first.get<T>(out);
99452|  2.47M|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS13_E_clINS4_17integral_constantImLm2EEEEEDaS13_:
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 21.4k, False: 130k]
  ------------------
10305|  21.4k|      auto&& h = std::get<I>(handlers);
10305|  21.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  21.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  21.4k|        err = v.get(h);
10306|  21.4k|      }
10306|  21.4k|    }
10306|   151k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS13_E_clINS4_17integral_constantImLm3EEEEEDaS13_:
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 19.8k, False: 131k]
  ------------------
10305|  19.8k|      auto&& h = std::get<I>(handlers);
10305|  19.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  19.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  19.8k|        err = v.get(h);
10306|  19.8k|      }
10306|  19.8k|    }
10306|   151k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS13_E_clINS4_17integral_constantImLm4EEEEEDaS13_:
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 14.7k, False: 137k]
  ------------------
10305|  14.7k|      auto&& h = std::get<I>(handlers);
10305|  14.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|  14.7k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  14.7k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  14.7k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  14.7k|    }
10306|   151k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS8_tlS9_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEJRN8fastgltf14basic_optionalIfNSA_15flagged_storageIfEEEESF_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSG_:
10349|  14.7k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  14.7k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 14.7k]
  ------------------
10350|  14.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  14.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS6_tlS7_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEJRN8fastgltf14basic_optionalIfNS8_15flagged_storageIfEEEESD_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSE_:
10309|  14.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  14.7k|  using Selector = key_selector<Keys...>;
10309|  14.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  14.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS7_tlS8_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEEEJRN8fastgltf14basic_optionalIfNSA_15flagged_storageIfEEEESF_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_:
10308|  14.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  14.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  14.7k|  return this->template for_each<Selector>(
10308|  14.7k|      [&](std::size_t i, value v) -> error_code {
10308|  14.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  14.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  14.7k|      });
10309|  14.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS7_tlS8_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalIfNSB_15flagged_storageIfEEEESG_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSH_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_EUlmNS1_5valueEE_Qaa17key_selector_typeISH_Esr3stdE14is_invocable_vIRT0_mSM_EEESJ_OSO_:
10296|  14.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  14.7k|  value_iterator it = iter;
10297|  14.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  14.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  14.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|  39.2k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 31.5k, False: 7.74k]
  ------------------
10298|  31.5k|    raw_json_string key;
10298|  31.5k|    error_code error;
10298|  31.5k|    std::size_t idx;
10298|  31.5k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  31.5k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 12, False: 31.5k]
  ------------------
10299|  31.5k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 12, False: 31.5k]
  ------------------
10299|  31.5k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  31.5k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 18.0k, False: 13.5k]
  ------------------
10300|  18.0k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  18.0k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  18.0k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 17.8k, False: 196]
  ------------------
10300|  17.8k|        seen_word |= seen_bit;
10300|  17.8k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  17.8k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  17.8k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 1, False: 17.8k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  17.8k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 6.95k, False: 10.8k]
  ------------------
10302|  17.8k|      }
10302|  18.0k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  24.5k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 24.5k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  24.5k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 13, False: 24.5k]
  ------------------
10303|  24.5k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 17, False: 24.5k]
  ------------------
10303|  24.5k|  }
10303|  14.6k|  return {SUCCESS, matched};
10303|  14.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS5_tlS6_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  31.5k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  31.5k|        const char* p = rjs.raw();
96024|  31.5k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  31.5k|            std::uint8_t ki = window.window_to_key[
96030|  31.5k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  31.5k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.77k, False: 28.7k]
  ------------------
96032|  28.7k|            return key_selector_detail::match_window_candidate(
96033|  28.7k|                p, ki, window, std::make_index_sequence<N>{});
96034|  31.5k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  31.5k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm14EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  28.7k|                       std::index_sequence<Is...>) noexcept {
95865|  28.7k|  std::size_t result = N;
95866|  28.7k|  auto try_match = [&](auto Ic) {
95867|  28.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  28.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  28.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  28.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  28.7k|      result = i;
95872|  28.7k|    }
95873|  28.7k|  };
95874|  28.7k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  28.7k|  return result;
95876|  28.7k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm14EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  28.7k|  auto try_match = [&](auto Ic) {
95867|  28.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  28.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 14.2k, False: 14.4k]
  |  Branch (95868:20): [True: 9.56k, False: 4.70k]
  ------------------
95869|  9.56k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 7.22k, False: 2.34k]
  ------------------
95870|  9.56k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  7.22k|      result = i;
95872|  7.22k|    }
95873|  28.7k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm14EEEbPKcS5_m:
95612|  24.4k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  24.4k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  24.4k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|  24.4k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|  24.4k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|  24.4k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|  24.4k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|  24.4k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|  24.4k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  24.4k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm14EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  28.7k|  auto try_match = [&](auto Ic) {
95867|  28.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  28.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 14.4k, False: 14.2k]
  |  Branch (95868:20): [True: 12.4k, False: 2.01k]
  ------------------
95869|  12.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.8k, False: 1.64k]
  ------------------
95870|  12.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.8k|      result = i;
95872|  10.8k|    }
95873|  28.7k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS5_tlS6_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEE4sizeEv:
95952|  49.3k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc105ELc110ELc110ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEXtlS7_tlS8_Lc111ELc117ELc116ELc101ELc114ELc67ELc111ELc110ELc101ELc65ELc110ELc103ELc108ELc101EEEEEEEJRN8fastgltf14basic_optionalIfNSA_15flagged_storageIfEEEESF_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_ENKUlmNS1_5valueEE_clEmSL_:
10308|  17.8k|      [&](std::size_t i, value v) -> error_code {
10308|  17.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  17.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  17.8k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_EEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  17.8k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  17.8k|  error_code err = SUCCESS;
10304|  17.8k|  auto try_one = [&](auto Ic) {
10305|  17.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  17.8k|    if (idx == I) {
10305|  17.8k|      auto&& h = std::get<I>(handlers);
10305|  17.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  17.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  17.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  17.8k|          err = h(v);
10306|  17.8k|        } else {
10306|  17.8k|          h(v);
10306|  17.8k|        }
10306|  17.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.8k|        err = v.get(h);
10306|  17.8k|      }
10306|  17.8k|    }
10306|  17.8k|  };
10306|  17.8k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  17.8k|  return err;
10307|  17.8k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_EEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|  17.8k|  auto try_one = [&](auto Ic) {
10305|  17.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  17.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 7.21k, False: 10.6k]
  ------------------
10305|  7.21k|      auto&& h = std::get<I>(handlers);
10305|  7.21k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  7.21k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  7.21k|        err = v.get(h);
10306|  7.21k|      }
10306|  7.21k|    }
10306|  17.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_EEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|  17.8k|  auto try_one = [&](auto Ic) {
10305|  17.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  17.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.6k, False: 7.21k]
  ------------------
10305|  10.6k|      auto&& h = std::get<I>(handlers);
10305|  10.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  10.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.6k|        err = v.get(h);
10306|  10.6k|      }
10306|  10.6k|    }
10306|  17.8k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9LightTypeEEERNS7_4math3vecIfLm3EEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEERKZNS7_6Parser11parseLightsERNS7_8internal9JsonArrayERNS7_5AssetEE3$_0RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS13_E_clINS4_17integral_constantImLm5EEEEEDaS13_:
10304|   151k|  auto try_one = [&](auto Ic) {
10305|   151k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   151k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 29.4k, False: 122k]
  ------------------
10305|  29.4k|      auto&& h = std::get<I>(handlers);
10305|  29.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  29.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.4k|        err = v.get(h);
10306|  29.4k|      }
10306|  29.4k|    }
10306|   151k|  };
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEXtlNS5_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEXtlS6_tlS7_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS5_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS5_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEXtlNS5_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEXtlNS5_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEXtlNS5_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlSK_tlSL_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEXtlNS5_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEXtlNS5_ILm37EEEtlA37_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS5_ILm40EEEtlA40_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS5_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEJRKZN8fastgltf6Parser23parseMaterialExtensionsERNSY_8internal10JsonObjectERNSY_8MaterialEE4$_16RKZNSZ_23parseMaterialExtensionsES12_S14_E4$_15RKZNSZ_23parseMaterialExtensionsES12_S14_E4$_14RKZNSZ_23parseMaterialExtensionsES12_S14_E4$_13RKZNSZ_23parseMaterialExtensionsES12_S14_E4$_12RKZNSZ_23parseMaterialExtensionsES12_S14_E4$_11RKZNSZ_23parseMaterialExtensionsES12_S14_E4$_10RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_9RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_8RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_7RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_6RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_5RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_4RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_3RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_2RKZNSZ_23parseMaterialExtensionsES12_S14_E3$_1EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2H_:
10309|   775k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   775k|  using Selector = key_selector<Keys...>;
10309|   775k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   775k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEXtlNS6_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEXtlNS6_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEXtlNS6_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlSL_tlSM_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEXtlNS6_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEXtlNS6_ILm37EEEtlA37_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS6_ILm40EEEtlA40_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS6_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEEEJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS10_8internal10JsonObjectERNS10_8MaterialEE4$_16RKZNS11_23parseMaterialExtensionsES14_S16_E4$_15RKZNS11_23parseMaterialExtensionsES14_S16_E4$_14RKZNS11_23parseMaterialExtensionsES14_S16_E4$_13RKZNS11_23parseMaterialExtensionsES14_S16_E4$_12RKZNS11_23parseMaterialExtensionsES14_S16_E4$_11RKZNS11_23parseMaterialExtensionsES14_S16_E4$_10RKZNS11_23parseMaterialExtensionsES14_S16_E3$_9RKZNS11_23parseMaterialExtensionsES14_S16_E3$_8RKZNS11_23parseMaterialExtensionsES14_S16_E3$_7RKZNS11_23parseMaterialExtensionsES14_S16_E3$_6RKZNS11_23parseMaterialExtensionsES14_S16_E3$_5RKZNS11_23parseMaterialExtensionsES14_S16_E3$_4RKZNS11_23parseMaterialExtensionsES14_S16_E3$_3RKZNS11_23parseMaterialExtensionsES14_S16_E3$_2RKZNS11_23parseMaterialExtensionsES14_S16_E3$_1EQaaaa17key_selector_typeIT_EeqsZT0_clsrS2J_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2K_:
10308|   775k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   775k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   775k|  return this->template for_each<Selector>(
10308|   775k|      [&](std::size_t i, value v) -> error_code {
10308|   775k|        return key_selector_for_each_detail::dispatch_value(
10308|   775k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   775k|      });
10309|   775k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEXtlNS6_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEXtlNS6_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEXtlNS6_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlSL_tlSM_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEXtlNS6_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEXtlNS6_ILm37EEEtlA37_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS6_ILm40EEEtlA40_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS6_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEEEZNS2_8for_eachISZ_JRKZN8fastgltf6Parser23parseMaterialExtensionsERNS11_8internal10JsonObjectERNS11_8MaterialEE4$_16RKZNS12_23parseMaterialExtensionsES15_S17_E4$_15RKZNS12_23parseMaterialExtensionsES15_S17_E4$_14RKZNS12_23parseMaterialExtensionsES15_S17_E4$_13RKZNS12_23parseMaterialExtensionsES15_S17_E4$_12RKZNS12_23parseMaterialExtensionsES15_S17_E4$_11RKZNS12_23parseMaterialExtensionsES15_S17_E4$_10RKZNS12_23parseMaterialExtensionsES15_S17_E3$_9RKZNS12_23parseMaterialExtensionsES15_S17_E3$_8RKZNS12_23parseMaterialExtensionsES15_S17_E3$_7RKZNS12_23parseMaterialExtensionsES15_S17_E3$_6RKZNS12_23parseMaterialExtensionsES15_S17_E3$_5RKZNS12_23parseMaterialExtensionsES15_S17_E3$_4RKZNS12_23parseMaterialExtensionsES15_S17_E3$_3RKZNS12_23parseMaterialExtensionsES15_S17_E3$_2RKZNS12_23parseMaterialExtensionsES15_S17_E3$_1EQaaaa17key_selector_typeIT_EeqsZT0_clsrS2K_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2L_EUlmNS1_5valueEE_Qaa17key_selector_typeIS2K_Esr3stdE14is_invocable_vIRT0_mS2P_EEES2M_OS2R_:
10296|   775k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   775k|  value_iterator it = iter;
10297|   775k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   775k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   775k|  std::array<std::uint64_t, seen_words> seen{};
10298|  1.51M|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 744k, False: 774k]
  ------------------
10298|   744k|    raw_json_string key;
10298|   744k|    error_code error;
10298|   744k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   744k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   744k|      std::size_t key_len;
10299|   744k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 132, False: 744k]
  ------------------
10299|   744k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 26, False: 744k]
  ------------------
10300|   744k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   744k|    }
10300|   744k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 612k, False: 132k]
  ------------------
10300|   612k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   612k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   612k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 601k, False: 10.4k]
  ------------------
10300|   601k|        seen_word |= seen_bit;
10300|   601k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   601k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   601k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 2.68k, False: 598k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   601k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 601k]
  ------------------
10302|   601k|      }
10302|   612k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   744k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 744k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   744k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 28, False: 744k]
  ------------------
10303|   744k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 622, False: 744k]
  ------------------
10303|   744k|  }
10303|   774k|  return {SUCCESS, matched};
10303|   775k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEXtlNS4_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS4_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEXtlNS4_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEXtlNS4_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEXtlNS4_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEXtlNS4_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlSJ_tlSK_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEXtlNS4_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEXtlNS4_ILm37EEEtlA37_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS4_ILm40EEEtlA40_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS4_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEE9match_rawEPKcm:
95964|   744k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   744k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 661, False: 744k]
  |  Branch (95965:25): [True: 30.6k, False: 713k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   713k|        std::size_t slot;
95981|   713k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 713k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   713k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   713k|            std::size_t h = len;
95996|  1.42M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 713k, False: 713k]
  ------------------
95997|   713k|                std::uint8_t pos = phf.positions[i];
95998|   713k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 713k]
  ------------------
95999|   713k|                                  ? (len - std::size_t{1})
96000|   713k|                                  : static_cast<std::size_t>(pos);
96001|   713k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 669k, False: 43.6k]
  ------------------
96002|   669k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|   669k|                }
96004|   713k|            }
96005|   713k|            slot = h & (table_size - 1);
96006|   713k|        }
96007|       |
96008|   713k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   713k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 0, False: 713k]
  ------------------
96010|   713k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 62.0k, False: 651k]
  ------------------
96011|   651k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 39.3k, False: 612k]
  ------------------
96012|   651k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   612k|        return ki;
96014|   651k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm39EEEbPKcS5_m:
95612|   651k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   651k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   651k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|   651k|    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|   651k|        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|   651k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|   651k|        int eq = 0xFFFF;
95707|  2.60M|        for (std::size_t b = 0; b < num_blocks; ++b) {
  ------------------
  |  Branch (95707:33): [True: 1.95M, False: 651k]
  ------------------
95708|  1.95M|            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|  1.95M|            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|  1.95M|            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|  1.95M|            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|  1.95M|            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|  1.95M|        }
95714|   651k|        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   651k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEXtlNS4_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS4_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEXtlNS4_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEXtlNS4_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlNS4_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEXtlNS4_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEXtlNS4_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlSJ_tlSK_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEXtlNS4_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEXtlNS4_ILm37EEEtlA37_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS4_ILm40EEEtlA40_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS4_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEE4sizeEv:
95952|  1.34M|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121EEEEXtlNS6_ILm24EEEtlA24_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm32EEEtlA32_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc95ELc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm18EEEtlA18_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101EEEEXtlNS6_ILm30EEEtlA30_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm35EEEtlA35_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc100ELc105ELc102ELc102ELc117ELc115ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlNS6_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc104ELc101ELc101ELc110EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114EEEEXtlNS6_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110EEEEXtlSL_tlSM_Lc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc117ELc110ELc108ELc105ELc116EEEEXtlNS6_ILm21EEEtlA21_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc111ELc108ELc117ELc109ELc101EEEEXtlNS6_ILm37EEEtlA37_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS6_ILm40EEEtlA40_cLc77ELc83ELc70ELc84ELc95ELc112ELc97ELc99ELc107ELc105ELc110ELc103ELc95ELc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99EEEEXtlNS6_ILm36EEEtlA36_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc112ELc98ELc114ELc83ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115EEEEEEEJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS10_8internal10JsonObjectERNS10_8MaterialEE4$_16RKZNS11_23parseMaterialExtensionsES14_S16_E4$_15RKZNS11_23parseMaterialExtensionsES14_S16_E4$_14RKZNS11_23parseMaterialExtensionsES14_S16_E4$_13RKZNS11_23parseMaterialExtensionsES14_S16_E4$_12RKZNS11_23parseMaterialExtensionsES14_S16_E4$_11RKZNS11_23parseMaterialExtensionsES14_S16_E4$_10RKZNS11_23parseMaterialExtensionsES14_S16_E3$_9RKZNS11_23parseMaterialExtensionsES14_S16_E3$_8RKZNS11_23parseMaterialExtensionsES14_S16_E3$_7RKZNS11_23parseMaterialExtensionsES14_S16_E3$_6RKZNS11_23parseMaterialExtensionsES14_S16_E3$_5RKZNS11_23parseMaterialExtensionsES14_S16_E3$_4RKZNS11_23parseMaterialExtensionsES14_S16_E3$_3RKZNS11_23parseMaterialExtensionsES14_S16_E3$_2RKZNS11_23parseMaterialExtensionsES14_S16_E3$_1EQaaaa17key_selector_typeIT_EeqsZT0_clsrS2J_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2K_ENKUlmNS1_5valueEE_clEmS2O_:
10308|   601k|      [&](std::size_t i, value v) -> error_code {
10308|   601k|        return key_selector_for_each_detail::dispatch_value(
10308|   601k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   601k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   601k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   601k|  error_code err = SUCCESS;
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
10305|   601k|      auto&& h = std::get<I>(handlers);
10305|   601k|      using H = std::remove_reference_t<decltype(h)>;
10305|   601k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   601k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   601k|          err = h(v);
10306|   601k|        } else {
10306|   601k|          h(v);
10306|   601k|        }
10306|   601k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   601k|        err = v.get(h);
10306|   601k|      }
10306|   601k|    }
10306|   601k|  };
10306|   601k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   601k|  return err;
10307|   601k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm0EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 96.6k, False: 504k]
  ------------------
10305|  96.6k|      auto&& h = std::get<I>(handlers);
10305|  96.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  96.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  96.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  96.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  96.6k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS8_tlS9_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfSC_ZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|  96.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  96.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 96.5k]
  ------------------
10350|  96.5k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  96.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS6_tlS7_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfSA_ZN8fastgltf15readTextureInfoINSB_14basic_optionalINSB_11TextureInfoENSB_15flagged_storageISE_EEEEEEDaRT_NSB_10ExtensionsEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|  96.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  96.5k|  using Selector = key_selector<Keys...>;
10309|  96.5k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  96.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfSC_ZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|  96.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  96.5k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  96.5k|  return this->template for_each<Selector>(
10308|  96.5k|      [&](std::size_t i, value v) -> error_code {
10308|  96.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  96.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  96.5k|      });
10309|  96.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISB_JRfSD_ZN8fastgltf15readTextureInfoINSE_14basic_optionalINSE_11TextureInfoENSE_15flagged_storageISH_EEEEEEDaRT_NSE_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISL_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmSO_E_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSO_EEESR_OSV_:
10296|  96.5k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  96.5k|  value_iterator it = iter;
10297|  96.5k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  96.5k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  96.5k|  std::array<std::uint64_t, seen_words> seen{};
10298|   297k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 206k, False: 90.8k]
  ------------------
10298|   206k|    raw_json_string key;
10298|   206k|    error_code error;
10298|   206k|    std::size_t idx;
10298|   206k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   206k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 82, False: 206k]
  ------------------
10299|   206k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 16, False: 206k]
  ------------------
10299|   206k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   206k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 115k, False: 91.7k]
  ------------------
10300|   115k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   115k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   115k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 113k, False: 1.86k]
  ------------------
10300|   113k|        seen_word |= seen_bit;
10300|   113k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   113k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   113k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 157, False: 113k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   113k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 5.59k, False: 107k]
  ------------------
10302|   113k|      }
10302|   115k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   201k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 201k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   201k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 6, False: 201k]
  ------------------
10303|   201k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 164, False: 201k]
  ------------------
10303|   201k|  }
10303|  96.4k|  return {SUCCESS, matched};
10303|  96.5k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS5_tlS6_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   206k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   206k|        const char* p = rjs.raw();
96024|   206k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   206k|            std::uint8_t ki = window.window_to_key[
96030|   206k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   206k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 53.4k, False: 153k]
  ------------------
96032|   153k|            return key_selector_detail::match_window_candidate(
96033|   153k|                p, ki, window, std::make_index_sequence<N>{});
96034|   206k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   206k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm18EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   153k|                       std::index_sequence<Is...>) noexcept {
95865|   153k|  std::size_t result = N;
95866|   153k|  auto try_match = [&](auto Ic) {
95867|   153k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   153k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   153k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   153k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   153k|      result = i;
95872|   153k|    }
95873|   153k|  };
95874|   153k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   153k|  return result;
95876|   153k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm18EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   153k|  auto try_match = [&](auto Ic) {
95867|   153k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   153k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 59.0k, False: 94.2k]
  |  Branch (95868:20): [True: 54.7k, False: 4.35k]
  ------------------
95869|  54.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 47.1k, False: 7.59k]
  ------------------
95870|  54.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  47.1k|      result = i;
95872|  47.1k|    }
95873|   153k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm18EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   153k|  auto try_match = [&](auto Ic) {
95867|   153k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   153k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 40.1k, False: 113k]
  |  Branch (95868:20): [True: 30.6k, False: 9.59k]
  ------------------
95869|  30.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 24.9k, False: 5.60k]
  ------------------
95870|  30.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  24.9k|      result = i;
95872|  24.9k|    }
95873|   153k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm18EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   153k|  auto try_match = [&](auto Ic) {
95867|   153k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   153k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 54.0k, False: 99.2k]
  |  Branch (95868:20): [True: 46.3k, False: 7.64k]
  ------------------
95869|  46.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 42.9k, False: 3.40k]
  ------------------
95870|  46.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  42.9k|      result = i;
95872|  42.9k|    }
95873|   153k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS5_tlS6_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|   319k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlS7_tlS8_Lc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc82ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm18EEEtlA18_cLc97ELc110ELc105ELc115ELc111ELc116ELc114ELc111ELc112ELc121ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfSC_ZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_ENKUlmSN_E_clEmSN_:
10308|   113k|      [&](std::size_t i, value v) -> error_code {
10308|   113k|        return key_selector_for_each_detail::dispatch_value(
10308|   113k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   113k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_OZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   113k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   113k|  error_code err = SUCCESS;
10304|   113k|  auto try_one = [&](auto Ic) {
10305|   113k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   113k|    if (idx == I) {
10305|   113k|      auto&& h = std::get<I>(handlers);
10305|   113k|      using H = std::remove_reference_t<decltype(h)>;
10305|   113k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   113k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   113k|          err = h(v);
10306|   113k|        } else {
10306|   113k|          h(v);
10306|   113k|        }
10306|   113k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   113k|        err = v.get(h);
10306|   113k|      }
10306|   113k|    }
10306|   113k|  };
10306|   113k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   113k|  return err;
10307|   113k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_OZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|   113k|  auto try_one = [&](auto Ic) {
10305|   113k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   113k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 46.7k, False: 66.5k]
  ------------------
10305|  46.7k|      auto&& h = std::get<I>(handlers);
10305|  46.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  46.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  46.7k|        err = v.get(h);
10306|  46.7k|      }
10306|  46.7k|    }
10306|   113k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_OZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|   113k|  auto try_one = [&](auto Ic) {
10305|   113k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   113k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 24.3k, False: 88.8k]
  ------------------
10305|  24.3k|      auto&& h = std::get<I>(handlers);
10305|  24.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  24.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  24.3k|        err = v.get(h);
10306|  24.3k|      }
10306|  24.3k|    }
10306|   113k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_OZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm2EEEEEDaSE_:
10304|   113k|  auto try_one = [&](auto Ic) {
10305|   113k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   113k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 42.1k, False: 71.0k]
  ------------------
10305|  42.1k|      auto&& h = std::get<I>(handlers);
10305|  42.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  42.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  42.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  42.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  42.1k|    }
10306|   113k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS7_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS8_tlS9_Lc115ELc99ELc97ELc108ELc101EEEEXtlSA_tlSB_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS7_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_11TextureInfoEEENS_10error_codeENS2_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS11_:
10349|   441k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   441k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 24, False: 441k]
  ------------------
10350|   441k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   441k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS5_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS6_tlS7_Lc115ELc99ELc97ELc108ELc101EEEEXtlS8_tlS9_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmRKZNSC_16parseTextureInfoINSC_11TextureInfoEEENS_10error_codeENS1_5valueERT_NSC_10ExtensionsEEUlSM_E_RKZNSJ_ISK_EESL_SM_SO_SP_EUlSM_E0_RKZNSJ_ISK_EESL_SM_SO_SP_EUlSM_E1_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_:
10309|   441k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   441k|  using Selector = key_selector<Keys...>;
10309|   441k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   441k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_11TextureInfoEEENS_10error_codeENS1_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_:
10308|   441k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   441k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   441k|  return this->template for_each<Selector>(
10308|   441k|      [&](std::size_t i, value v) -> error_code {
10308|   441k|        return key_selector_for_each_detail::dispatch_value(
10308|   441k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   441k|      });
10309|   441k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERmRKZNSF_16parseTextureInfoINSF_11TextureInfoEEENS_10error_codeENS1_5valueERT_NSF_10ExtensionsEEUlSP_E_RKZNSM_ISN_EESO_SP_SR_SS_EUlSP_E0_RKZNSM_ISN_EESO_SP_SR_SS_EUlSP_E1_EQaaaa17key_selector_typeISQ_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS12_EUlmSP_E_Qaa17key_selector_typeISQ_Esr3stdE14is_invocable_vIRT0_mSP_EEES13_OS17_:
10296|   441k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   441k|  value_iterator it = iter;
10297|   441k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   441k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   441k|  std::array<std::uint64_t, seen_words> seen{};
10298|  1.17M|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 737k, False: 441k]
  ------------------
10298|   737k|    raw_json_string key;
10298|   737k|    error_code error;
10298|   737k|    std::size_t idx;
10298|   737k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   737k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 43, False: 737k]
  ------------------
10299|   737k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 30, False: 737k]
  ------------------
10299|   737k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   737k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 695k, False: 42.1k]
  ------------------
10300|   695k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   695k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   695k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 689k, False: 5.98k]
  ------------------
10300|   689k|        seen_word |= seen_bit;
10300|   689k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   689k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   689k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 112, False: 689k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   689k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 689k]
  ------------------
10302|   689k|      }
10302|   695k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   737k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 737k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   737k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 24, False: 737k]
  ------------------
10303|   737k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 58, False: 737k]
  ------------------
10303|   737k|  }
10303|   441k|  return {SUCCESS, matched};
10303|   441k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS4_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS5_tlS6_Lc115ELc99ELc97ELc108ELc101EEEEXtlS7_tlS8_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  1.29M|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  1.29M|        const char* p = rjs.raw();
96024|  1.29M|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  1.29M|            std::uint8_t ki = window.window_to_key[
96030|  1.29M|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  1.29M|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 41.8k, False: 1.24M]
  ------------------
96032|  1.24M|            return key_selector_detail::match_window_candidate(
96033|  1.24M|                p, ki, window, std::make_index_sequence<N>{});
96034|  1.29M|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  1.29M|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS4_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS5_tlS6_Lc115ELc99ELc97ELc108ELc101EEEEXtlS7_tlS8_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEE4sizeEv:
95952|  2.48M|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_11TextureInfoEEENS_10error_codeENS1_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_ENKUlmSO_E_clEmSO_:
10308|   689k|      [&](std::size_t i, value v) -> error_code {
10308|   689k|        return key_selector_for_each_detail::dispatch_value(
10308|   689k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   689k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_11TextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   689k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   689k|  error_code err = SUCCESS;
10304|   689k|  auto try_one = [&](auto Ic) {
10305|   689k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   689k|    if (idx == I) {
10305|   689k|      auto&& h = std::get<I>(handlers);
10305|   689k|      using H = std::remove_reference_t<decltype(h)>;
10305|   689k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   689k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   689k|          err = h(v);
10306|   689k|        } else {
10306|   689k|          h(v);
10306|   689k|        }
10306|   689k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   689k|        err = v.get(h);
10306|   689k|      }
10306|   689k|    }
10306|   689k|  };
10306|   689k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   689k|  return err;
10307|   689k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_11TextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|   689k|  auto try_one = [&](auto Ic) {
10305|   689k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   689k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 441k, False: 248k]
  ------------------
10305|   441k|      auto&& h = std::get<I>(handlers);
10305|   441k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   441k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   441k|        err = v.get(h);
10306|   441k|      }
10306|   441k|    }
10306|   689k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_11TextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|   689k|  auto try_one = [&](auto Ic) {
10305|   689k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   689k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 90.3k, False: 599k]
  ------------------
10305|  90.3k|      auto&& h = std::get<I>(handlers);
10305|  90.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  90.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  90.3k|        err = v.get(h);
10306|  90.3k|      }
10306|  90.3k|    }
10306|   689k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_11TextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|   689k|  auto try_one = [&](auto Ic) {
10305|   689k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   689k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 319, False: 689k]
  ------------------
10305|    319|      auto&& h = std::get<I>(handlers);
10305|    319|      using H = std::remove_reference_t<decltype(h)>;
10305|    319|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    319|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    319|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    319|    }
10306|   689k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_11TextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|   689k|  auto try_one = [&](auto Ic) {
10305|   689k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   689k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 141, False: 689k]
  ------------------
10305|    141|      auto&& h = std::get<I>(handlers);
10305|    141|      using H = std::remove_reference_t<decltype(h)>;
10305|    141|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    141|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    141|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    141|    }
10306|   689k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_11TextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm4EEEEEDaSH_:
10304|   689k|  auto try_one = [&](auto Ic) {
10305|   689k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   689k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 157k, False: 532k]
  ------------------
10305|   157k|      auto&& h = std::get<I>(handlers);
10305|   157k|      using H = std::remove_reference_t<decltype(h)>;
10305|   157k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   157k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   157k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   157k|    }
10306|   689k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEJRN8fastgltf14basic_optionalINSA_16TextureTransformENSA_13boxed_storageISC_NSt3__19allocatorISC_EEEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSK_:
10349|   223k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   223k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 13, False: 223k]
  ------------------
10350|   223k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   223k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEJRN8fastgltf14basic_optionalINS8_16TextureTransformENS8_13boxed_storageISA_NSt3__19allocatorISA_EEEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_:
10309|   223k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   223k|  using Selector = key_selector<Keys...>;
10309|   223k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   223k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEEEJRN8fastgltf14basic_optionalINSA_16TextureTransformENSA_13boxed_storageISC_NSt3__19allocatorISC_EEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_:
10308|   223k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   223k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   223k|  return this->template for_each<Selector>(
10308|   223k|      [&](std::size_t i, value v) -> error_code {
10308|   223k|        return key_selector_for_each_detail::dispatch_value(
10308|   223k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   223k|      });
10309|   223k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalINSB_16TextureTransformENSB_13boxed_storageISD_NSt3__19allocatorISD_EEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_EUlmNS1_5valueEE_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSQ_EEESN_OSS_:
10296|   223k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   223k|  value_iterator it = iter;
10297|   223k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   223k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   223k|  std::array<std::uint64_t, seen_words> seen{};
10298|   248k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 228k, False: 20.6k]
  ------------------
10298|   228k|    raw_json_string key;
10298|   228k|    error_code error;
10298|   228k|    std::size_t idx;
10298|   228k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   228k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 26, False: 228k]
  ------------------
10299|   228k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 18, False: 228k]
  ------------------
10299|   228k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   228k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 203k, False: 24.7k]
  ------------------
10300|   203k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   203k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   203k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 203k, False: 0]
  ------------------
10300|   203k|        seen_word |= seen_bit;
10300|   203k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   203k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   203k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 414, False: 203k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   203k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 203k, False: 414]
  ------------------
10302|   203k|      }
10302|   203k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  25.1k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 25.1k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  25.1k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 15, False: 25.1k]
  ------------------
10303|  25.1k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 34, False: 25.1k]
  ------------------
10303|  25.1k|  }
10303|   223k|  return {SUCCESS, matched};
10303|   223k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   228k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   228k|        const char* p = rjs.raw();
96024|   228k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   228k|            std::uint8_t ki = window.window_to_key[
96030|   228k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   228k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 10.4k, False: 217k]
  ------------------
96032|   217k|            return key_selector_detail::match_window_candidate(
96033|   217k|                p, ki, window, std::make_index_sequence<N>{});
96034|   228k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   228k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm21EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   217k|                       std::index_sequence<Is...>) noexcept {
95865|   217k|  std::size_t result = N;
95866|   217k|  auto try_match = [&](auto Ic) {
95867|   217k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   217k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   217k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   217k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   217k|      result = i;
95872|   217k|    }
95873|   217k|  };
95874|   217k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   217k|  return result;
95876|   217k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm21EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   217k|  auto try_match = [&](auto Ic) {
95867|   217k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   217k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 217k, False: 0]
  |  Branch (95868:20): [True: 209k, False: 8.70k]
  ------------------
95869|   209k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 203k, False: 5.52k]
  ------------------
95870|   209k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   203k|      result = i;
95872|   203k|    }
95873|   217k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm21EEEbPKcS5_m:
95612|   318k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   318k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   318k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|   318k|    } else if constexpr (MaxKeyLen <= 32) {
95644|   318k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|   318k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|   318k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|   318k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|   318k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|   318k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|   318k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|   318k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|   318k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|   318k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|   318k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   318k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEE4sizeEv:
95952|   431k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc116ELc114ELc97ELc110ELc115ELc102ELc111ELc114ELc109EEEEEEEJRN8fastgltf14basic_optionalINSA_16TextureTransformENSA_13boxed_storageISC_NSt3__19allocatorISC_EEEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_ENKUlmNS1_5valueEE_clEmSP_:
10308|   203k|      [&](std::size_t i, value v) -> error_code {
10308|   203k|        return key_selector_for_each_detail::dispatch_value(
10308|   203k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   203k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_16TextureTransformENS6_13boxed_storageIS8_NS4_9allocatorIS8_EEEEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   203k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   203k|  error_code err = SUCCESS;
10304|   203k|  auto try_one = [&](auto Ic) {
10305|   203k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   203k|    if (idx == I) {
10305|   203k|      auto&& h = std::get<I>(handlers);
10305|   203k|      using H = std::remove_reference_t<decltype(h)>;
10305|   203k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   203k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   203k|          err = h(v);
10306|   203k|        } else {
10306|   203k|          h(v);
10306|   203k|        }
10306|   203k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   203k|        err = v.get(h);
10306|   203k|      }
10306|   203k|    }
10306|   203k|  };
10306|   203k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   203k|  return err;
10307|   203k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_16TextureTransformENS6_13boxed_storageIS8_NS4_9allocatorIS8_EEEEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|   203k|  auto try_one = [&](auto Ic) {
10305|   203k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   203k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 203k, False: 0]
  ------------------
10305|   203k|      auto&& h = std::get<I>(handlers);
10305|   203k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   203k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   203k|        err = v.get(h);
10306|   203k|      }
10306|   203k|    }
10306|   203k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14basic_optionalINS4_16TextureTransformENS4_13boxed_storageIS6_NSt3__19allocatorIS6_EEEEEEEENS_10error_codeERT_:
89907|   203k| {
89908|   203k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   203k|  if constexpr (custom_deserializable<T, value>) {
89910|   203k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   203k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14basic_optionalINS2_16TextureTransformENS2_13boxed_storageIS4_NSt3__19allocatorIS4_EEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSE_RSB_:
89261|   203k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   203k|    return tag_invoke(*this, object, output);
89263|   203k|  }
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf16TextureTransformEEENS_10error_codeERT_:
89907|   203k| {
89908|   203k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   203k|  if constexpr (custom_deserializable<T, value>) {
89910|   203k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   203k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf16TextureTransformEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|   203k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   203k|    return tag_invoke(*this, object, output);
89263|   203k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS8_tlS9_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS7_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERfRNSE_4math3vecIfLm2EEESO_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|   203k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   203k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 203k]
  ------------------
10350|   203k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   203k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS6_tlS7_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS5_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERfRNSC_4math3vecIfLm2EEESM_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|   203k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   203k|  using Selector = key_selector<Keys...>;
10309|   203k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   203k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERfRNSE_4math3vecIfLm2EEESO_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_:
10308|   203k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   203k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   203k|  return this->template for_each<Selector>(
10308|   203k|      [&](std::size_t i, value v) -> error_code {
10308|   203k|        return key_selector_for_each_detail::dispatch_value(
10308|   203k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   203k|      });
10309|   203k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERfRNSF_4math3vecIfLm2EEESP_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_EUlmNS1_5valueEE_Qaa17key_selector_typeISQ_Esr3stdE14is_invocable_vIRT0_mSV_EEESS_OSX_:
10296|   203k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   203k|  value_iterator it = iter;
10297|   203k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   203k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   203k|  std::array<std::uint64_t, seen_words> seen{};
10298|   584k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 387k, False: 197k]
  ------------------
10298|   387k|    raw_json_string key;
10298|   387k|    error_code error;
10298|   387k|    std::size_t idx;
10298|   387k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   387k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 42, False: 387k]
  ------------------
10299|   387k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 15, False: 387k]
  ------------------
10299|   387k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   387k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 314k, False: 72.1k]
  ------------------
10300|   314k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   314k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   314k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 313k, False: 1.37k]
  ------------------
10300|   313k|        seen_word |= seen_bit;
10300|   313k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   313k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   313k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 274, False: 313k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   313k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 5.87k, False: 307k]
  ------------------
10302|   313k|      }
10302|   314k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   381k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 381k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   381k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 15, False: 381k]
  ------------------
10303|   381k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 62, False: 381k]
  ------------------
10303|   381k|  }
10303|   203k|  return {SUCCESS, matched};
10303|   203k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS5_tlS6_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS4_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   387k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   387k|        const char* p = rjs.raw();
96024|   387k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   387k|            std::uint8_t ki = window.window_to_key[
96030|   387k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   387k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 26.4k, False: 360k]
  ------------------
96032|   360k|            return key_selector_detail::match_window_candidate(
96033|   360k|                p, ki, window, std::make_index_sequence<N>{});
96034|   387k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   387k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS5_tlS6_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS4_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEE4sizeEv:
95952|   700k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc111ELc102ELc102ELc115ELc101ELc116EEEEXtlNS6_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERfRNSE_4math3vecIfLm2EEESO_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_ENKUlmNS1_5valueEE_clEmSU_:
10308|   313k|      [&](std::size_t i, value v) -> error_code {
10308|   313k|        return key_selector_for_each_detail::dispatch_value(
10308|   313k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   313k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERfRNS6_4math3vecIfLm2EEESG_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   313k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   313k|  error_code err = SUCCESS;
10304|   313k|  auto try_one = [&](auto Ic) {
10305|   313k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   313k|    if (idx == I) {
10305|   313k|      auto&& h = std::get<I>(handlers);
10305|   313k|      using H = std::remove_reference_t<decltype(h)>;
10305|   313k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   313k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   313k|          err = h(v);
10306|   313k|        } else {
10306|   313k|          h(v);
10306|   313k|        }
10306|   313k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   313k|        err = v.get(h);
10306|   313k|      }
10306|   313k|    }
10306|   313k|  };
10306|   313k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   313k|  return err;
10307|   313k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERfRNS6_4math3vecIfLm2EEESG_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm0EEEEEDaSJ_:
10304|   313k|  auto try_one = [&](auto Ic) {
10305|   313k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   313k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 75.3k, False: 238k]
  ------------------
10305|  75.3k|      auto&& h = std::get<I>(handlers);
10305|  75.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  75.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  75.3k|        err = v.get(h);
10306|  75.3k|      }
10306|  75.3k|    }
10306|   313k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERfRNS6_4math3vecIfLm2EEESG_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm1EEEEEDaSJ_:
10304|   313k|  auto try_one = [&](auto Ic) {
10305|   313k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   313k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 58.7k, False: 254k]
  ------------------
10305|  58.7k|      auto&& h = std::get<I>(handlers);
10305|  58.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  58.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  58.7k|        err = v.get(h);
10306|  58.7k|      }
10306|  58.7k|    }
10306|   313k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERfRNS6_4math3vecIfLm2EEESG_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm2EEEEEDaSJ_:
10304|   313k|  auto try_one = [&](auto Ic) {
10305|   313k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   313k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 89.3k, False: 224k]
  ------------------
10305|  89.3k|      auto&& h = std::get<I>(handlers);
10305|  89.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  89.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  89.3k|        err = v.get(h);
10306|  89.3k|      }
10306|  89.3k|    }
10306|   313k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf4math3vecIfLm2EEEEENS_10error_codeERT_:
89907|   179k| {
89908|   179k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   179k|  if constexpr (custom_deserializable<T, value>) {
89910|   179k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   179k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf4math3vecIfLm2EEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS9_RS6_:
89261|   179k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   179k|    return tag_invoke(*this, object, output);
89263|   179k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERfRNS6_4math3vecIfLm2EEESG_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm3EEEEEDaSJ_:
10304|   313k|  auto try_one = [&](auto Ic) {
10305|   313k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   313k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 90.0k, False: 223k]
  ------------------
10305|  90.0k|      auto&& h = std::get<I>(handlers);
10305|  90.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  90.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  90.0k|        err = v.get(h);
10306|  90.0k|      }
10306|  90.0k|    }
10306|   313k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm1EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 109k, False: 492k]
  ------------------
10305|   109k|      auto&& h = std::get<I>(handlers);
10305|   109k|      using H = std::remove_reference_t<decltype(h)>;
10305|   109k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   109k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   109k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   109k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSJ_14basic_optionalINSJ_11TextureInfoENSJ_15flagged_storageISM_EEEEEEDaRT_NSJ_10ExtensionsEEUlNS2_5valueEE_SI_SU_ZNSK_INSL_INSJ_17NormalTextureInfoENSN_ISV_EEEEEEDaSR_SS_EUlST_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSZ_:
10349|   109k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   109k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 109k]
  ------------------
10350|   109k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   109k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_SG_SS_ZNSI_INSJ_INSH_17NormalTextureInfoENSL_IST_EEEEEEDaSP_SQ_EUlSR_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10309|   109k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   109k|  using Selector = key_selector<Keys...>;
10309|   109k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   109k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSJ_14basic_optionalINSJ_11TextureInfoENSJ_15flagged_storageISM_EEEEEEDaRT_NSJ_10ExtensionsEEUlNS1_5valueEE_SI_SU_ZNSK_INSL_INSJ_17NormalTextureInfoENSN_ISV_EEEEEEDaSR_SS_EUlST_E_EQaaaa17key_selector_typeISQ_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_:
10308|   109k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   109k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   109k|  return this->template for_each<Selector>(
10308|   109k|      [&](std::size_t i, value v) -> error_code {
10308|   109k|        return key_selector_for_each_detail::dispatch_value(
10308|   109k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   109k|      });
10309|   109k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISH_JRfZN8fastgltf15readTextureInfoINSK_14basic_optionalINSK_11TextureInfoENSK_15flagged_storageISN_EEEEEEDaRT_NSK_10ExtensionsEEUlNS1_5valueEE_SJ_SV_ZNSL_INSM_INSK_17NormalTextureInfoENSO_ISW_EEEEEEDaSS_ST_EUlSU_E_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_EUlmSU_E_Qaa17key_selector_typeISR_Esr3stdE14is_invocable_vIRT0_mSU_EEES11_OS15_:
10296|   109k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   109k|  value_iterator it = iter;
10297|   109k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   109k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   109k|  std::array<std::uint64_t, seen_words> seen{};
10298|   427k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 319k, False: 108k]
  ------------------
10298|   319k|    raw_json_string key;
10298|   319k|    error_code error;
10298|   319k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   319k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   319k|      std::size_t key_len;
10299|   319k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 34, False: 319k]
  ------------------
10299|   319k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 16, False: 319k]
  ------------------
10300|   319k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   319k|    }
10300|   319k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 193k, False: 125k]
  ------------------
10300|   193k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   193k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   193k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 191k, False: 1.93k]
  ------------------
10300|   191k|        seen_word |= seen_bit;
10300|   191k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   191k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   191k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 130, False: 191k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   191k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 741, False: 191k]
  ------------------
10302|   191k|      }
10302|   193k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   318k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 318k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   318k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 9, False: 318k]
  ------------------
10303|   318k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 68, False: 318k]
  ------------------
10303|   318k|  }
10303|   108k|  return {SUCCESS, matched};
10303|   109k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawEPKcm:
95964|   319k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   319k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 6.84k, False: 312k]
  |  Branch (95965:25): [True: 38.4k, False: 273k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   273k|        std::size_t slot;
95981|   273k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 273k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   273k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   273k|            std::size_t h = len;
95996|   547k|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 273k, False: 273k]
  ------------------
95997|   273k|                std::uint8_t pos = phf.positions[i];
95998|   273k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 273k]
  ------------------
95999|   273k|                                  ? (len - std::size_t{1})
96000|   273k|                                  : static_cast<std::size_t>(pos);
96001|   273k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 252k, False: 21.6k]
  ------------------
96002|   252k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|   252k|                }
96004|   273k|            }
96005|   273k|            slot = h & (table_size - 1);
96006|   273k|        }
96007|       |
96008|   273k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   273k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 21.4k, False: 252k]
  ------------------
96010|   252k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 41.1k, False: 211k]
  ------------------
96011|   211k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 17.4k, False: 193k]
  ------------------
96012|   211k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   193k|        return ki;
96014|   211k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm25EEEbPKcS5_m:
95612|   235k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   235k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   235k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|   235k|    } else if constexpr (MaxKeyLen <= 32) {
95644|   235k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|   235k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|   235k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|   235k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|   235k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|   235k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|   235k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|   235k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|   235k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|   235k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|   235k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   235k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|   510k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm25EEEtlA25_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm23EEEtlA23_cLc99ELc108ELc101ELc97ELc114ELc99ELc111ELc97ELc116ELc78ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSJ_14basic_optionalINSJ_11TextureInfoENSJ_15flagged_storageISM_EEEEEEDaRT_NSJ_10ExtensionsEEUlNS1_5valueEE_SI_SU_ZNSK_INSL_INSJ_17NormalTextureInfoENSN_ISV_EEEEEEDaSR_SS_EUlST_E_EQaaaa17key_selector_typeISQ_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_ENKUlmST_E_clEmST_:
10308|   191k|      [&](std::size_t i, value v) -> error_code {
10308|   191k|        return key_selector_for_each_detail::dispatch_value(
10308|   191k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   191k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_SJ_OZNS8_INS9_INS7_17NormalTextureInfoENSB_ISK_EEEEEEDaSF_SG_EUlSH_E_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   191k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   191k|  error_code err = SUCCESS;
10304|   191k|  auto try_one = [&](auto Ic) {
10305|   191k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   191k|    if (idx == I) {
10305|   191k|      auto&& h = std::get<I>(handlers);
10305|   191k|      using H = std::remove_reference_t<decltype(h)>;
10305|   191k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   191k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   191k|          err = h(v);
10306|   191k|        } else {
10306|   191k|          h(v);
10306|   191k|        }
10306|   191k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   191k|        err = v.get(h);
10306|   191k|      }
10306|   191k|    }
10306|   191k|  };
10306|   191k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   191k|  return err;
10307|   191k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_SJ_OZNS8_INS9_INS7_17NormalTextureInfoENSB_ISK_EEEEEEDaSF_SG_EUlSH_E_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|   191k|  auto try_one = [&](auto Ic) {
10305|   191k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   191k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 61.7k, False: 130k]
  ------------------
10305|  61.7k|      auto&& h = std::get<I>(handlers);
10305|  61.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  61.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  61.7k|        err = v.get(h);
10306|  61.7k|      }
10306|  61.7k|    }
10306|   191k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_SJ_OZNS8_INS9_INS7_17NormalTextureInfoENSB_ISK_EEEEEEDaSF_SG_EUlSH_E_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|   191k|  auto try_one = [&](auto Ic) {
10305|   191k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   191k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 21.2k, False: 170k]
  ------------------
10305|  21.2k|      auto&& h = std::get<I>(handlers);
10305|  21.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  21.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  21.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  21.2k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  21.2k|    }
10306|   191k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_SJ_OZNS8_INS9_INS7_17NormalTextureInfoENSB_ISK_EEEEEEDaSF_SG_EUlSH_E_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm2EEEEEDaSE_:
10304|   191k|  auto try_one = [&](auto Ic) {
10305|   191k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   191k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 49.0k, False: 142k]
  ------------------
10305|  49.0k|      auto&& h = std::get<I>(handlers);
10305|  49.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  49.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  49.0k|        err = v.get(h);
10306|  49.0k|      }
10306|  49.0k|    }
10306|   191k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_SJ_OZNS8_INS9_INS7_17NormalTextureInfoENSB_ISK_EEEEEEDaSF_SG_EUlSH_E_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm3EEEEEDaSE_:
10304|   191k|  auto try_one = [&](auto Ic) {
10305|   191k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   191k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 31.8k, False: 159k]
  ------------------
10305|  31.8k|      auto&& h = std::get<I>(handlers);
10305|  31.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  31.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  31.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  31.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  31.8k|    }
10306|   191k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_SJ_OZNS8_INS9_INS7_17NormalTextureInfoENSB_ISK_EEEEEEDaSF_SG_EUlSH_E_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm4EEEEEDaSE_:
10304|   191k|  auto try_one = [&](auto Ic) {
10305|   191k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   191k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 27.8k, False: 163k]
  ------------------
10305|  27.8k|      auto&& h = std::get<I>(handlers);
10305|  27.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  27.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  27.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  27.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  27.8k|    }
10306|   191k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS7_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS8_tlS9_Lc115ELc99ELc97ELc108ELc101EEEEXtlSA_tlSB_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS7_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_17NormalTextureInfoEEENS_10error_codeENS2_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS11_:
10349|   117k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   117k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 7, False: 117k]
  ------------------
10350|   117k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   117k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS5_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS6_tlS7_Lc115ELc99ELc97ELc108ELc101EEEEXtlS8_tlS9_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmRKZNSC_16parseTextureInfoINSC_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NSC_10ExtensionsEEUlSM_E_RKZNSJ_ISK_EESL_SM_SO_SP_EUlSM_E0_RKZNSJ_ISK_EESL_SM_SO_SP_EUlSM_E1_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_:
10309|   117k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   117k|  using Selector = key_selector<Keys...>;
10309|   117k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   117k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_:
10308|   117k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   117k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   117k|  return this->template for_each<Selector>(
10308|   117k|      [&](std::size_t i, value v) -> error_code {
10308|   117k|        return key_selector_for_each_detail::dispatch_value(
10308|   117k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   117k|      });
10309|   117k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERmRKZNSF_16parseTextureInfoINSF_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NSF_10ExtensionsEEUlSP_E_RKZNSM_ISN_EESO_SP_SR_SS_EUlSP_E0_RKZNSM_ISN_EESO_SP_SR_SS_EUlSP_E1_EQaaaa17key_selector_typeISQ_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS12_EUlmSP_E_Qaa17key_selector_typeISQ_Esr3stdE14is_invocable_vIRT0_mSP_EEES13_OS17_:
10296|   117k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   117k|  value_iterator it = iter;
10297|   117k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   117k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   117k|  std::array<std::uint64_t, seen_words> seen{};
10298|   405k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 288k, False: 117k]
  ------------------
10298|   288k|    raw_json_string key;
10298|   288k|    error_code error;
10298|   288k|    std::size_t idx;
10298|   288k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   288k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 61, False: 288k]
  ------------------
10299|   288k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 11, False: 288k]
  ------------------
10299|   288k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   288k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 263k, False: 24.9k]
  ------------------
10300|   263k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   263k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   263k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 260k, False: 2.78k]
  ------------------
10300|   260k|        seen_word |= seen_bit;
10300|   260k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   260k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   260k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 184, False: 260k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   260k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 2, False: 260k]
  ------------------
10302|   260k|      }
10302|   263k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   288k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 288k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   288k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 27, False: 288k]
  ------------------
10303|   288k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 263, False: 287k]
  ------------------
10303|   288k|  }
10303|   117k|  return {SUCCESS, matched};
10303|   117k|}
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_ENKUlmSO_E_clEmSO_:
10308|   260k|      [&](std::size_t i, value v) -> error_code {
10308|   260k|        return key_selector_for_each_detail::dispatch_value(
10308|   260k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   260k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   260k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   260k|  error_code err = SUCCESS;
10304|   260k|  auto try_one = [&](auto Ic) {
10305|   260k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   260k|    if (idx == I) {
10305|   260k|      auto&& h = std::get<I>(handlers);
10305|   260k|      using H = std::remove_reference_t<decltype(h)>;
10305|   260k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   260k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   260k|          err = h(v);
10306|   260k|        } else {
10306|   260k|          h(v);
10306|   260k|        }
10306|   260k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   260k|        err = v.get(h);
10306|   260k|      }
10306|   260k|    }
10306|   260k|  };
10306|   260k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   260k|  return err;
10307|   260k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|   260k|  auto try_one = [&](auto Ic) {
10305|   260k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   260k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 117k, False: 143k]
  ------------------
10305|   117k|      auto&& h = std::get<I>(handlers);
10305|   117k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   117k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   117k|        err = v.get(h);
10306|   117k|      }
10306|   117k|    }
10306|   260k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|   260k|  auto try_one = [&](auto Ic) {
10305|   260k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   260k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 34.9k, False: 225k]
  ------------------
10305|  34.9k|      auto&& h = std::get<I>(handlers);
10305|  34.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  34.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  34.9k|        err = v.get(h);
10306|  34.9k|      }
10306|  34.9k|    }
10306|   260k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|   260k|  auto try_one = [&](auto Ic) {
10305|   260k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   260k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 73.1k, False: 187k]
  ------------------
10305|  73.1k|      auto&& h = std::get<I>(handlers);
10305|  73.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  73.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  73.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  73.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  73.1k|    }
10306|   260k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|   260k|  auto try_one = [&](auto Ic) {
10305|   260k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   260k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 939, False: 259k]
  ------------------
10305|    939|      auto&& h = std::get<I>(handlers);
10305|    939|      using H = std::remove_reference_t<decltype(h)>;
10305|    939|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    939|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    939|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    939|    }
10306|   260k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_17NormalTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm4EEEEEDaSH_:
10304|   260k|  auto try_one = [&](auto Ic) {
10305|   260k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   260k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 34.1k, False: 226k]
  ------------------
10305|  34.1k|      auto&& h = std::get<I>(handlers);
10305|  34.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  34.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  34.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  34.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  34.1k|    }
10306|   260k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm2EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.8k, False: 585k]
  ------------------
10305|  15.8k|      auto&& h = std::get<I>(handlers);
10305|  15.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  15.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  15.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  15.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  15.8k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  15.8k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  15.8k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 15.8k]
  ------------------
10350|  15.8k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  15.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  15.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  15.8k|  using Selector = key_selector<Keys...>;
10309|  15.8k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  15.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  15.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  15.8k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  15.8k|  return this->template for_each<Selector>(
10308|  15.8k|      [&](std::size_t i, value v) -> error_code {
10308|  15.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  15.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  15.8k|      });
10309|  15.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEZNS2_8for_eachIS9_JRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  15.8k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  15.8k|  value_iterator it = iter;
10297|  15.8k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  15.8k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  15.8k|  std::array<std::uint64_t, seen_words> seen{};
10298|  19.9k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 18.2k, False: 1.69k]
  ------------------
10298|  18.2k|    raw_json_string key;
10298|  18.2k|    error_code error;
10298|  18.2k|    std::size_t idx;
10298|  18.2k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  18.2k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 7, False: 18.2k]
  ------------------
10299|  18.2k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 7, False: 18.2k]
  ------------------
10299|  18.2k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  18.2k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 14.1k, False: 4.10k]
  ------------------
10300|  14.1k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  14.1k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  14.1k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 14.1k, False: 0]
  ------------------
10300|  14.1k|        seen_word |= seen_bit;
10300|  14.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  14.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  14.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 60, False: 14.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  14.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 14.1k, False: 60]
  ------------------
10302|  14.1k|      }
10302|  14.1k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  4.16k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 4.16k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  4.16k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 4, False: 4.16k]
  ------------------
10303|  4.16k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 7, False: 4.15k]
  ------------------
10303|  4.16k|  }
10303|  15.8k|  return {SUCCESS, matched};
10303|  15.8k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  18.2k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  18.2k|        const char* p = rjs.raw();
96024|  18.2k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  18.2k|            std::uint8_t ki = window.window_to_key[
96030|  18.2k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  18.2k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.75k, False: 15.5k]
  ------------------
96032|  15.5k|            return key_selector_detail::match_window_candidate(
96033|  15.5k|                p, ki, window, std::make_index_sequence<N>{});
96034|  18.2k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  18.2k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm10EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  27.4k|                       std::index_sequence<Is...>) noexcept {
95865|  27.4k|  std::size_t result = N;
95866|  27.4k|  auto try_match = [&](auto Ic) {
95867|  27.4k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  27.4k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  27.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  27.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  27.4k|      result = i;
95872|  27.4k|    }
95873|  27.4k|  };
95874|  27.4k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  27.4k|  return result;
95876|  27.4k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm10EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  27.4k|  auto try_match = [&](auto Ic) {
95867|  27.4k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  27.4k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 27.4k, False: 0]
  |  Branch (95868:20): [True: 25.9k, False: 1.53k]
  ------------------
95869|  25.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 24.8k, False: 1.10k]
  ------------------
95870|  25.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  24.8k|      result = i;
95872|  24.8k|    }
95873|  27.4k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEE4sizeEv:
95952|  32.3k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc100ELc105ELc115ELc112ELc101ELc114ELc115ELc105ELc111ELc110EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  14.1k|      [&](std::size_t i, value v) -> error_code {
10308|  14.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  14.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  14.1k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  73.2k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  73.2k|  error_code err = SUCCESS;
10304|  73.2k|  auto try_one = [&](auto Ic) {
10305|  73.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  73.2k|    if (idx == I) {
10305|  73.2k|      auto&& h = std::get<I>(handlers);
10305|  73.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  73.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  73.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  73.2k|          err = h(v);
10306|  73.2k|        } else {
10306|  73.2k|          h(v);
10306|  73.2k|        }
10306|  73.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  73.2k|        err = v.get(h);
10306|  73.2k|      }
10306|  73.2k|    }
10306|  73.2k|  };
10306|  73.2k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  73.2k|  return err;
10307|  73.2k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS9_E_clINS4_17integral_constantImLm0EEEEEDaS9_:
10304|  73.2k|  auto try_one = [&](auto Ic) {
10305|  73.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  73.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 73.2k, False: 0]
  ------------------
10305|  73.2k|      auto&& h = std::get<I>(handlers);
10305|  73.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  73.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  73.2k|        err = v.get(h);
10306|  73.2k|      }
10306|  73.2k|    }
10306|  73.2k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm3EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 5.87k, False: 595k]
  ------------------
10305|  5.87k|      auto&& h = std::get<I>(handlers);
10305|  5.87k|      using H = std::remove_reference_t<decltype(h)>;
10305|  5.87k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  5.87k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  5.87k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  5.87k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  5.87k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  5.87k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 5.87k]
  ------------------
10350|  5.87k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  5.87k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  5.87k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  5.87k|  using Selector = key_selector<Keys...>;
10309|  5.87k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  5.87k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  5.87k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  5.87k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  5.87k|  return this->template for_each<Selector>(
10308|  5.87k|      [&](std::size_t i, value v) -> error_code {
10308|  5.87k|        return key_selector_for_each_detail::dispatch_value(
10308|  5.87k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  5.87k|      });
10309|  5.87k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEZNS2_8for_eachIS9_JRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  5.87k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  5.87k|  value_iterator it = iter;
10297|  5.87k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  5.87k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  5.87k|  std::array<std::uint64_t, seen_words> seen{};
10298|  23.4k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 21.6k, False: 1.86k]
  ------------------
10298|  21.6k|    raw_json_string key;
10298|  21.6k|    error_code error;
10298|  21.6k|    std::size_t idx;
10298|  21.6k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  21.6k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 8, False: 21.6k]
  ------------------
10299|  21.6k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 10, False: 21.6k]
  ------------------
10299|  21.6k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  21.6k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 4.00k, False: 17.6k]
  ------------------
10300|  4.00k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  4.00k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  4.00k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 4.00k, False: 0]
  ------------------
10300|  4.00k|        seen_word |= seen_bit;
10300|  4.00k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  4.00k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  4.00k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 3, False: 3.99k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  4.00k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3.99k, False: 3]
  ------------------
10302|  4.00k|      }
10302|  4.00k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  17.6k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 17.6k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  17.6k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 3, False: 17.6k]
  ------------------
10303|  17.6k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 10, False: 17.6k]
  ------------------
10303|  17.6k|  }
10303|  5.86k|  return {SUCCESS, matched};
10303|  5.87k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  21.6k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  21.6k|        const char* p = rjs.raw();
96024|  21.6k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  21.6k|            std::uint8_t ki = window.window_to_key[
96030|  21.6k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  21.6k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 14.6k, False: 6.96k]
  ------------------
96032|  6.96k|            return key_selector_detail::match_window_candidate(
96033|  6.96k|                p, ki, window, std::make_index_sequence<N>{});
96034|  21.6k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  21.6k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm16EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  6.96k|                       std::index_sequence<Is...>) noexcept {
95865|  6.96k|  std::size_t result = N;
95866|  6.96k|  auto try_match = [&](auto Ic) {
95867|  6.96k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.96k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  6.96k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  6.96k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.96k|      result = i;
95872|  6.96k|    }
95873|  6.96k|  };
95874|  6.96k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  6.96k|  return result;
95876|  6.96k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm16EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  6.96k|  auto try_match = [&](auto Ic) {
95867|  6.96k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.96k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 6.96k, False: 0]
  |  Branch (95868:20): [True: 4.43k, False: 2.52k]
  ------------------
95869|  4.43k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.00k, False: 437]
  ------------------
95870|  4.43k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.00k|      result = i;
95872|  4.00k|    }
95873|  6.96k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEE4sizeEv:
95952|  25.6k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc83ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  4.00k|      [&](std::size_t i, value v) -> error_code {
10308|  4.00k|        return key_selector_for_each_detail::dispatch_value(
10308|  4.00k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  4.00k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm4EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 37.1k, False: 564k]
  ------------------
10305|  37.1k|      auto&& h = std::get<I>(handlers);
10305|  37.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  37.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  37.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  37.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  37.1k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm4EEEtlA4_cLc105ELc111ELc114EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  37.1k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  37.1k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 37.1k]
  ------------------
10350|  37.1k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  37.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm4EEEtlA4_cLc105ELc111ELc114EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  37.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  37.1k|  using Selector = key_selector<Keys...>;
10309|  37.1k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  37.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc105ELc111ELc114EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  37.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  37.1k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  37.1k|  return this->template for_each<Selector>(
10308|  37.1k|      [&](std::size_t i, value v) -> error_code {
10308|  37.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  37.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  37.1k|      });
10309|  37.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc105ELc111ELc114EEEEEEEZNS2_8for_eachIS9_JRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  37.1k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  37.1k|  value_iterator it = iter;
10297|  37.1k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  37.1k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  37.1k|  std::array<std::uint64_t, seen_words> seen{};
10298|  42.4k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 39.1k, False: 3.26k]
  ------------------
10298|  39.1k|    raw_json_string key;
10298|  39.1k|    error_code error;
10298|  39.1k|    std::size_t idx;
10298|  39.1k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  39.1k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 9, False: 39.1k]
  ------------------
10299|  39.1k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 7, False: 39.1k]
  ------------------
10299|  39.1k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  39.1k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 33.9k, False: 5.23k]
  ------------------
10300|  33.9k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  33.9k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  33.9k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 33.9k, False: 0]
  ------------------
10300|  33.9k|        seen_word |= seen_bit;
10300|  33.9k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  33.9k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  33.9k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 1, False: 33.9k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  33.9k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 33.9k, False: 1]
  ------------------
10302|  33.9k|      }
10302|  33.9k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  5.23k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 5.23k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  5.23k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 1, False: 5.23k]
  ------------------
10303|  5.23k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 7, False: 5.22k]
  ------------------
10303|  5.23k|  }
10303|  37.1k|  return {SUCCESS, matched};
10303|  37.1k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc105ELc111ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  39.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  39.1k|        const char* p = rjs.raw();
96024|  39.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  39.1k|            std::uint8_t ki = window.window_to_key[
96030|  39.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  39.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.97k, False: 36.1k]
  ------------------
96032|  36.1k|            return key_selector_detail::match_window_candidate(
96033|  36.1k|                p, ki, window, std::make_index_sequence<N>{});
96034|  39.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  39.1k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm3EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  36.1k|                       std::index_sequence<Is...>) noexcept {
95865|  36.1k|  std::size_t result = N;
95866|  36.1k|  auto try_match = [&](auto Ic) {
95867|  36.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  36.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  36.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  36.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  36.1k|      result = i;
95872|  36.1k|    }
95873|  36.1k|  };
95874|  36.1k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  36.1k|  return result;
95876|  36.1k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm3EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  36.1k|  auto try_match = [&](auto Ic) {
95867|  36.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  36.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 36.1k, False: 0]
  |  Branch (95868:20): [True: 34.8k, False: 1.33k]
  ------------------
95869|  34.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 33.9k, False: 906]
  ------------------
95870|  34.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  33.9k|      result = i;
95872|  33.9k|    }
95873|  36.1k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm3EEEbPKcS5_m:
95612|  34.8k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  34.8k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  34.8k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|  34.8k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|  34.8k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|  34.8k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|  34.8k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|  34.8k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|  34.8k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  34.8k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc105ELc111ELc114EEEEEE4sizeEv:
95952|  73.0k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc105ELc111ELc114EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  33.9k|      [&](std::size_t i, value v) -> error_code {
10308|  33.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  33.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  33.9k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm5EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 104k, False: 497k]
  ------------------
10305|   104k|      auto&& h = std::get<I>(handlers);
10305|   104k|      using H = std::remove_reference_t<decltype(h)>;
10305|   104k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   104k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   104k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   104k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS7_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSE_tlSF_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSE_tlSF_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS2_5valueEE_SG_SG_SG_SS_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOST_:
10349|   104k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   104k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 5, False: 104k]
  ------------------
10350|   104k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   104k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS5_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSC_tlSD_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSC_tlSD_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSF_14basic_optionalINSF_11TextureInfoENSF_15flagged_storageISI_EEEEEEDaRT_NSF_10ExtensionsEEUlNS1_5valueEE_SE_SE_SE_SQ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSR_:
10309|   104k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   104k|  using Selector = key_selector<Keys...>;
10309|   104k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   104k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS6_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSD_tlSE_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSD_tlSE_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_SG_SG_SG_SS_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_:
10308|   104k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   104k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   104k|  return this->template for_each<Selector>(
10308|   104k|      [&](std::size_t i, value v) -> error_code {
10308|   104k|        return key_selector_for_each_detail::dispatch_value(
10308|   104k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   104k|      });
10309|   104k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS6_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSD_tlSE_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSD_tlSE_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISF_JRfZN8fastgltf15readTextureInfoINSI_14basic_optionalINSI_11TextureInfoENSI_15flagged_storageISL_EEEEEEDaRT_NSI_10ExtensionsEEUlNS1_5valueEE_SH_SH_SH_ST_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSU_EUlmSS_E_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSS_EEESV_OSZ_:
10296|   104k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   104k|  value_iterator it = iter;
10297|   104k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   104k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   104k|  std::array<std::uint64_t, seen_words> seen{};
10298|   405k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 301k, False: 104k]
  ------------------
10298|   301k|    raw_json_string key;
10298|   301k|    error_code error;
10298|   301k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   301k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   301k|      std::size_t key_len;
10299|   301k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 121, False: 301k]
  ------------------
10299|   301k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 17, False: 301k]
  ------------------
10300|   301k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   301k|    }
10300|   301k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 200k, False: 101k]
  ------------------
10300|   200k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   200k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   200k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 193k, False: 7.30k]
  ------------------
10300|   193k|        seen_word |= seen_bit;
10300|   193k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   193k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   193k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 193, False: 192k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   193k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 67, False: 193k]
  ------------------
10302|   193k|      }
10302|   200k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   301k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 301k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   301k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 12, False: 301k]
  ------------------
10303|   301k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 124, False: 301k]
  ------------------
10303|   301k|  }
10303|   104k|  return {SUCCESS, matched};
10303|   104k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS4_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSB_tlSC_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSB_tlSC_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawEPKcm:
95964|   301k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   301k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 3.15k, False: 298k]
  |  Branch (95965:25): [True: 43.2k, False: 255k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   255k|        std::size_t slot;
95981|   255k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 255k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   255k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   255k|            std::size_t h = len;
95996|   510k|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 255k, False: 255k]
  ------------------
95997|   255k|                std::uint8_t pos = phf.positions[i];
95998|   255k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 255k]
  ------------------
95999|   255k|                                  ? (len - std::size_t{1})
96000|   255k|                                  : static_cast<std::size_t>(pos);
96001|   255k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 91.3k, False: 163k]
  ------------------
96002|  91.3k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|  91.3k|                }
96004|   255k|            }
96005|   255k|            slot = h & (table_size - 1);
96006|   255k|        }
96007|       |
96008|   255k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   255k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 6.02k, False: 249k]
  ------------------
96010|   249k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 26.2k, False: 222k]
  ------------------
96011|   222k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 22.2k, False: 200k]
  ------------------
96012|   222k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   200k|        return ki;
96014|   222k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm27EEEbPKcS5_m:
95612|   222k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   222k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   222k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|   222k|    } else if constexpr (MaxKeyLen <= 32) {
95644|   222k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|   222k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|   222k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|   222k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|   222k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|   222k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|   222k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|   222k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|   222k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|   222k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|   222k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   222k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS4_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSB_tlSC_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSB_tlSC_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|   494k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm18EEEtlA18_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm19EEEtlA19_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc73ELc111ELc114EEEEXtlNS6_ILm28EEEtlA28_cLc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlSD_tlSE_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc77ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlSD_tlSE_Lc105ELc114ELc105ELc100ELc101ELc115ELc99ELc101ELc110ELc99ELc101ELc84ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_SG_SG_SG_SS_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_ENKUlmSR_E_clEmSR_:
10308|   193k|      [&](std::size_t i, value v) -> error_code {
10308|   193k|        return key_selector_for_each_detail::dispatch_value(
10308|   193k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   193k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   193k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   193k|  error_code err = SUCCESS;
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
10305|   193k|      auto&& h = std::get<I>(handlers);
10305|   193k|      using H = std::remove_reference_t<decltype(h)>;
10305|   193k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   193k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   193k|          err = h(v);
10306|   193k|        } else {
10306|   193k|          h(v);
10306|   193k|        }
10306|   193k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   193k|        err = v.get(h);
10306|   193k|      }
10306|   193k|    }
10306|   193k|  };
10306|   193k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   193k|  return err;
10307|   193k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 48.9k, False: 144k]
  ------------------
10305|  48.9k|      auto&& h = std::get<I>(handlers);
10305|  48.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  48.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  48.9k|        err = v.get(h);
10306|  48.9k|      }
10306|  48.9k|    }
10306|   193k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 32.8k, False: 160k]
  ------------------
10305|  32.8k|      auto&& h = std::get<I>(handlers);
10305|  32.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  32.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  32.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  32.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  32.8k|    }
10306|   193k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm2EEEEEDaSE_:
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 33.9k, False: 159k]
  ------------------
10305|  33.9k|      auto&& h = std::get<I>(handlers);
10305|  33.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  33.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  33.9k|        err = v.get(h);
10306|  33.9k|      }
10306|  33.9k|    }
10306|   193k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm3EEEEEDaSE_:
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.4k, False: 177k]
  ------------------
10305|  15.4k|      auto&& h = std::get<I>(handlers);
10305|  15.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.4k|        err = v.get(h);
10306|  15.4k|      }
10306|  15.4k|    }
10306|   193k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm4EEEEEDaSE_:
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 31.6k, False: 161k]
  ------------------
10305|  31.6k|      auto&& h = std::get<I>(handlers);
10305|  31.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  31.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  31.6k|        err = v.get(h);
10306|  31.6k|      }
10306|  31.6k|    }
10306|   193k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_S6_S6_SJ_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm5EEEEEDaSE_:
10304|   193k|  auto try_one = [&](auto Ic) {
10305|   193k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   193k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 30.3k, False: 162k]
  ------------------
10305|  30.3k|      auto&& h = std::get<I>(handlers);
10305|  30.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  30.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  30.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  30.3k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  30.3k|    }
10306|   193k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm6EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 4.99k, False: 596k]
  ------------------
10305|  4.99k|      auto&& h = std::get<I>(handlers);
10305|  4.99k|      using H = std::remove_reference_t<decltype(h)>;
10305|  4.99k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  4.99k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  4.99k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  4.99k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|  4.99k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  4.99k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 2, False: 4.99k]
  ------------------
10350|  4.99k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  4.99k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSB_14basic_optionalINSB_11TextureInfoENSB_15flagged_storageISE_EEEEEEDaRT_NSB_10ExtensionsEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|  4.99k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  4.99k|  using Selector = key_selector<Keys...>;
10309|  4.99k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  4.99k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|  4.99k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  4.99k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  4.99k|  return this->template for_each<Selector>(
10308|  4.99k|      [&](std::size_t i, value v) -> error_code {
10308|  4.99k|        return key_selector_for_each_detail::dispatch_value(
10308|  4.99k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  4.99k|      });
10309|  4.99k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISB_JRfZN8fastgltf15readTextureInfoINSE_14basic_optionalINSE_11TextureInfoENSE_15flagged_storageISH_EEEEEEDaRT_NSE_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISL_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmSO_E_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSO_EEESR_OSV_:
10296|  4.99k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  4.99k|  value_iterator it = iter;
10297|  4.99k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  4.99k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  4.99k|  std::array<std::uint64_t, seen_words> seen{};
10298|  33.6k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 29.7k, False: 3.84k]
  ------------------
10298|  29.7k|    raw_json_string key;
10298|  29.7k|    error_code error;
10298|  29.7k|    std::size_t idx;
10298|  29.7k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  29.7k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 10, False: 29.7k]
  ------------------
10299|  29.7k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 8, False: 29.7k]
  ------------------
10299|  29.7k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  29.7k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 3.94k, False: 25.8k]
  ------------------
10300|  3.94k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  3.94k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  3.94k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 3.94k, False: 3]
  ------------------
10300|  3.94k|        seen_word |= seen_bit;
10300|  3.94k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  3.94k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  3.94k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 2, False: 3.94k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  3.94k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.13k, False: 2.81k]
  ------------------
10302|  3.94k|      }
10302|  3.94k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  28.6k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 28.6k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  28.6k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 1, False: 28.6k]
  ------------------
10303|  28.6k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 14, False: 28.6k]
  ------------------
10303|  28.6k|  }
10303|  4.97k|  return {SUCCESS, matched};
10303|  4.99k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  29.7k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  29.7k|        const char* p = rjs.raw();
96024|  29.7k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  29.7k|            std::uint8_t ki = window.window_to_key[
96030|  29.7k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  29.7k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 23.7k, False: 5.99k]
  ------------------
96032|  5.99k|            return key_selector_detail::match_window_candidate(
96033|  5.99k|                p, ki, window, std::make_index_sequence<N>{});
96034|  29.7k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  29.7k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm22EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  5.99k|                       std::index_sequence<Is...>) noexcept {
95865|  5.99k|  std::size_t result = N;
95866|  5.99k|  auto try_match = [&](auto Ic) {
95867|  5.99k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  5.99k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  5.99k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  5.99k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  5.99k|      result = i;
95872|  5.99k|    }
95873|  5.99k|  };
95874|  5.99k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  5.99k|  return result;
95876|  5.99k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm22EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  5.99k|  auto try_match = [&](auto Ic) {
95867|  5.99k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  5.99k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 3.18k, False: 2.81k]
  |  Branch (95868:20): [True: 2.44k, False: 737]
  ------------------
95869|  2.44k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 2.21k, False: 230]
  ------------------
95870|  2.44k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  2.21k|      result = i;
95872|  2.21k|    }
95873|  5.99k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm22EEEbPKcS5_m:
95612|  4.81k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  4.81k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  4.81k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|  4.81k|    } else if constexpr (MaxKeyLen <= 32) {
95644|  4.81k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|  4.81k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|  4.81k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|  4.81k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|  4.81k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|  4.81k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|  4.81k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|  4.81k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|  4.81k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|  4.81k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|  4.81k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  4.81k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm22EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  5.99k|  auto try_match = [&](auto Ic) {
95867|  5.99k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  5.99k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2.81k, False: 3.18k]
  |  Branch (95868:20): [True: 2.36k, False: 443]
  ------------------
95869|  2.36k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 1.73k, False: 635]
  ------------------
95870|  2.36k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  1.73k|      result = i;
95872|  1.73k|    }
95873|  5.99k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|  33.6k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm22EEEtlA22_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm23EEEtlA23_cLc114ELc101ELc116ELc114ELc111ELc114ELc101ELc102ELc108ELc101ELc99ELc116ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_ENKUlmSN_E_clEmSN_:
10308|  3.94k|      [&](std::size_t i, value v) -> error_code {
10308|  3.94k|        return key_selector_for_each_detail::dispatch_value(
10308|  3.94k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  3.94k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  34.8k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  34.8k|  error_code err = SUCCESS;
10304|  34.8k|  auto try_one = [&](auto Ic) {
10305|  34.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.8k|    if (idx == I) {
10305|  34.8k|      auto&& h = std::get<I>(handlers);
10305|  34.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  34.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  34.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  34.8k|          err = h(v);
10306|  34.8k|        } else {
10306|  34.8k|          h(v);
10306|  34.8k|        }
10306|  34.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  34.8k|        err = v.get(h);
10306|  34.8k|      }
10306|  34.8k|    }
10306|  34.8k|  };
10306|  34.8k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  34.8k|  return err;
10307|  34.8k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|  34.8k|  auto try_one = [&](auto Ic) {
10305|  34.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 28.7k, False: 6.15k]
  ------------------
10305|  28.7k|      auto&& h = std::get<I>(handlers);
10305|  28.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  28.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  28.7k|        err = v.get(h);
10306|  28.7k|      }
10306|  28.7k|    }
10306|  34.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_EEEJLm0ELm1EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|  34.8k|  auto try_one = [&](auto Ic) {
10305|  34.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 6.15k, False: 28.7k]
  ------------------
10305|  6.15k|      auto&& h = std::get<I>(handlers);
10305|  6.15k|      using H = std::remove_reference_t<decltype(h)>;
10305|  6.15k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  6.15k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  6.15k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  6.15k|    }
10306|  34.8k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm7EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 54.0k, False: 547k]
  ------------------
10305|  54.0k|      auto&& h = std::get<I>(handlers);
10305|  54.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|  54.0k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  54.0k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  54.0k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  54.0k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS2_5valueEE_RNSH_4math3vecIfLm3EEESS_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSX_:
10349|  54.0k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  54.0k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 54.0k]
  ------------------
10350|  54.0k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  54.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSF_14basic_optionalINSF_11TextureInfoENSF_15flagged_storageISI_EEEEEEDaRT_NSF_10ExtensionsEEUlNS1_5valueEE_RNSF_4math3vecIfLm3EEESQ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10309|  54.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  54.0k|  using Selector = key_selector<Keys...>;
10309|  54.0k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  54.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RNSH_4math3vecIfLm3EEESS_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10308|  54.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  54.0k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  54.0k|  return this->template for_each<Selector>(
10308|  54.0k|      [&](std::size_t i, value v) -> error_code {
10308|  54.0k|        return key_selector_for_each_detail::dispatch_value(
10308|  54.0k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  54.0k|      });
10309|  54.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISF_JRfZN8fastgltf15readTextureInfoINSI_14basic_optionalINSI_11TextureInfoENSI_15flagged_storageISL_EEEEEEDaRT_NSI_10ExtensionsEEUlNS1_5valueEE_RNSI_4math3vecIfLm3EEEST_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_EUlmSS_E_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSS_EEESZ_OS13_:
10296|  54.0k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  54.0k|  value_iterator it = iter;
10297|  54.0k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  54.0k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  54.0k|  std::array<std::uint64_t, seen_words> seen{};
10298|   225k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 173k, False: 52.3k]
  ------------------
10298|   173k|    raw_json_string key;
10298|   173k|    error_code error;
10298|   173k|    std::size_t idx;
10298|   173k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   173k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 27, False: 172k]
  ------------------
10299|   172k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 6, False: 172k]
  ------------------
10299|   172k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   173k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 86.0k, False: 87.0k]
  ------------------
10300|  86.0k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  86.0k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  86.0k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 83.6k, False: 2.39k]
  ------------------
10300|  83.6k|        seen_word |= seen_bit;
10300|  83.6k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  83.6k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  83.6k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 36, False: 83.5k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  83.6k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.68k, False: 81.9k]
  ------------------
10302|  83.6k|      }
10302|  86.0k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   171k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 171k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   171k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 12, False: 171k]
  ------------------
10303|   171k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 44, False: 171k]
  ------------------
10303|   171k|  }
10303|  54.0k|  return {SUCCESS, matched};
10303|  54.0k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   172k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   172k|        const char* p = rjs.raw();
96024|   172k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   172k|            std::uint8_t ki = window.window_to_key[
96030|   172k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   172k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 66.4k, False: 106k]
  ------------------
96032|   106k|            return key_selector_detail::match_window_candidate(
96033|   106k|                p, ki, window, std::make_index_sequence<N>{});
96034|   172k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   172k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm31EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   106k|                       std::index_sequence<Is...>) noexcept {
95865|   106k|  std::size_t result = N;
95866|   106k|  auto try_match = [&](auto Ic) {
95867|   106k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   106k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   106k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   106k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   106k|      result = i;
95872|   106k|    }
95873|   106k|  };
95874|   106k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   106k|  return result;
95876|   106k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm31EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   106k|  auto try_match = [&](auto Ic) {
95867|   106k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   106k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 27.0k, False: 79.5k]
  |  Branch (95868:20): [True: 23.7k, False: 3.31k]
  ------------------
95869|  23.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 22.9k, False: 768]
  ------------------
95870|  23.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  22.9k|      result = i;
95872|  22.9k|    }
95873|   106k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm31EEEbPKcS5_m:
95612|  93.4k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  93.4k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  93.4k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|  93.4k|    } else if constexpr (MaxKeyLen <= 32) {
95644|  93.4k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|  93.4k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|  93.4k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|  93.4k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|  93.4k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|  93.4k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|  93.4k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|  93.4k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|  93.4k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|  93.4k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|  93.4k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  93.4k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm31EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   106k|  auto try_match = [&](auto Ic) {
95867|   106k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   106k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 29.0k, False: 77.4k]
  |  Branch (95868:20): [True: 24.2k, False: 4.86k]
  ------------------
95869|  24.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 20.9k, False: 3.25k]
  ------------------
95870|  24.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  20.9k|      result = i;
95872|  20.9k|    }
95873|   106k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm31EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   106k|  auto try_match = [&](auto Ic) {
95867|   106k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   106k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 27.4k, False: 79.1k]
  |  Branch (95868:20): [True: 23.6k, False: 3.78k]
  ------------------
95869|  23.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 20.8k, False: 2.73k]
  ------------------
95870|  23.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  20.8k|      result = i;
95872|  20.8k|    }
95873|   106k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm31EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   106k|  auto try_match = [&](auto Ic) {
95867|   106k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   106k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 23.0k, False: 83.5k]
  |  Branch (95868:20): [True: 21.9k, False: 1.14k]
  ------------------
95869|  21.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 21.2k, False: 707]
  ------------------
95870|  21.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  21.2k|      result = i;
95872|  21.2k|    }
95873|   106k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|   256k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm26EEEtlA26_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm27EEEtlA27_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm31EEEtlA31_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm32EEEtlA32_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RNSH_4math3vecIfLm3EEESS_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_ENKUlmSR_E_clEmSR_:
10308|  83.6k|      [&](std::size_t i, value v) -> error_code {
10308|  83.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  83.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  83.6k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_RNS7_4math3vecIfLm3EEESJ_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   111k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   111k|  error_code err = SUCCESS;
10304|   111k|  auto try_one = [&](auto Ic) {
10305|   111k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   111k|    if (idx == I) {
10305|   111k|      auto&& h = std::get<I>(handlers);
10305|   111k|      using H = std::remove_reference_t<decltype(h)>;
10305|   111k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   111k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   111k|          err = h(v);
10306|   111k|        } else {
10306|   111k|          h(v);
10306|   111k|        }
10306|   111k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   111k|        err = v.get(h);
10306|   111k|      }
10306|   111k|    }
10306|   111k|  };
10306|   111k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   111k|  return err;
10307|   111k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_RNS7_4math3vecIfLm3EEESJ_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|   111k|  auto try_one = [&](auto Ic) {
10305|   111k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   111k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 27.2k, False: 84.4k]
  ------------------
10305|  27.2k|      auto&& h = std::get<I>(handlers);
10305|  27.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  27.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  27.2k|        err = v.get(h);
10306|  27.2k|      }
10306|  27.2k|    }
10306|   111k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_RNS7_4math3vecIfLm3EEESJ_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|   111k|  auto try_one = [&](auto Ic) {
10305|   111k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   111k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 23.2k, False: 88.4k]
  ------------------
10305|  23.2k|      auto&& h = std::get<I>(handlers);
10305|  23.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  23.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  23.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  23.2k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  23.2k|    }
10306|   111k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_RNS7_4math3vecIfLm3EEESJ_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm2EEEEEDaSE_:
10304|   111k|  auto try_one = [&](auto Ic) {
10305|   111k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   111k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 29.3k, False: 82.3k]
  ------------------
10305|  29.3k|      auto&& h = std::get<I>(handlers);
10305|  29.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  29.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.3k|        err = v.get(h);
10306|  29.3k|      }
10306|  29.3k|    }
10306|   111k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_RNS7_4math3vecIfLm3EEESJ_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm3EEEEEDaSE_:
10304|   111k|  auto try_one = [&](auto Ic) {
10305|   111k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   111k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 31.7k, False: 79.9k]
  ------------------
10305|  31.7k|      auto&& h = std::get<I>(handlers);
10305|  31.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|  31.7k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  31.7k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  31.7k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  31.7k|    }
10306|   111k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm8EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 48.6k, False: 552k]
  ------------------
10305|  48.6k|      auto&& h = std::get<I>(handlers);
10305|  48.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  48.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  48.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  48.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  48.6k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRN8fastgltf4math3vecIfLm3EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS2_5valueEE_RfSV_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSX_:
10349|  48.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  48.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 5, False: 48.5k]
  ------------------
10350|  48.5k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  48.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRN8fastgltf4math3vecIfLm3EEEZNSE_15readTextureInfoINSE_14basic_optionalINSE_11TextureInfoENSE_15flagged_storageISL_EEEEEEDaRT_NSE_10ExtensionsEEUlNS1_5valueEE_RfST_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10309|  48.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  48.5k|  using Selector = key_selector<Keys...>;
10309|  48.5k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  48.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRN8fastgltf4math3vecIfLm3EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_RfSV_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10308|  48.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  48.5k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  48.5k|  return this->template for_each<Selector>(
10308|  48.5k|      [&](std::size_t i, value v) -> error_code {
10308|  48.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  48.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  48.5k|      });
10309|  48.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISF_JRN8fastgltf4math3vecIfLm3EEEZNSH_15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISO_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RfSW_EQaaaa17key_selector_typeISS_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_EUlmSV_E_Qaa17key_selector_typeISS_Esr3stdE14is_invocable_vIRT0_mSV_EEESZ_OS13_:
10296|  48.5k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  48.5k|  value_iterator it = iter;
10297|  48.5k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  48.5k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  48.5k|  std::array<std::uint64_t, seen_words> seen{};
10298|   151k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 107k, False: 44.3k]
  ------------------
10298|   107k|    raw_json_string key;
10298|   107k|    error_code error;
10298|   107k|    std::size_t idx;
10298|   107k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   107k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 26, False: 107k]
  ------------------
10299|   107k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 26, False: 107k]
  ------------------
10299|   107k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   107k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 71.4k, False: 35.9k]
  ------------------
10300|  71.4k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  71.4k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  71.4k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 70.9k, False: 426]
  ------------------
10300|  70.9k|        seen_word |= seen_bit;
10300|  70.9k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  70.9k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  70.9k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 63, False: 70.9k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  70.9k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 4.14k, False: 66.8k]
  ------------------
10302|  70.9k|      }
10302|  71.4k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   103k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 103k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   103k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 8, False: 103k]
  ------------------
10303|   103k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 71, False: 103k]
  ------------------
10303|   103k|  }
10303|  48.5k|  return {SUCCESS, matched};
10303|  48.5k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   107k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   107k|        const char* p = rjs.raw();
96024|   107k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   107k|            std::uint8_t ki = window.window_to_key[
96030|   107k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   107k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 26.0k, False: 81.2k]
  ------------------
96032|  81.2k|            return key_selector_detail::match_window_candidate(
96033|  81.2k|                p, ki, window, std::make_index_sequence<N>{});
96034|   107k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   107k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm21EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   120k|                       std::index_sequence<Is...>) noexcept {
95865|   120k|  std::size_t result = N;
95866|   120k|  auto try_match = [&](auto Ic) {
95867|   120k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   120k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   120k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   120k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   120k|      result = i;
95872|   120k|    }
95873|   120k|  };
95874|   120k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   120k|  return result;
95876|   120k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm21EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   120k|  auto try_match = [&](auto Ic) {
95867|   120k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   120k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 31.9k, False: 89.0k]
  |  Branch (95868:20): [True: 30.6k, False: 1.32k]
  ------------------
95869|  30.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 27.3k, False: 3.24k]
  ------------------
95870|  30.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  27.3k|      result = i;
95872|  27.3k|    }
95873|   120k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm21EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   120k|  auto try_match = [&](auto Ic) {
95867|   120k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   120k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 29.9k, False: 91.0k]
  |  Branch (95868:20): [True: 28.6k, False: 1.25k]
  ------------------
95869|  28.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 27.6k, False: 1.01k]
  ------------------
95870|  28.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  27.6k|      result = i;
95872|  27.6k|    }
95873|   120k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm21EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   120k|  auto try_match = [&](auto Ic) {
95867|   120k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   120k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 44.4k, False: 76.4k]
  |  Branch (95868:20): [True: 40.5k, False: 3.97k]
  ------------------
95869|  40.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 37.8k, False: 2.66k]
  ------------------
95870|  40.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  37.8k|      result = i;
95872|  37.8k|    }
95873|   120k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm21EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   120k|  auto try_match = [&](auto Ic) {
95867|   120k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   120k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 14.6k, False: 106k]
  |  Branch (95868:20): [True: 10.0k, False: 4.60k]
  ------------------
95869|  10.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 8.96k, False: 1.09k]
  ------------------
95870|  10.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  8.96k|      result = i;
95872|  8.96k|    }
95873|   120k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|   178k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm18EEEtlA18_cLc115ELc104ELc101ELc101ELc110ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm21EEEtlA21_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm22EEEtlA22_cLc115ELc104ELc101ELc101ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRN8fastgltf4math3vecIfLm3EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_RfSV_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_ENKUlmSU_E_clEmSU_:
10308|  70.9k|      [&](std::size_t i, value v) -> error_code {
10308|  70.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  70.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  70.9k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSM_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  70.9k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  70.9k|  error_code err = SUCCESS;
10304|  70.9k|  auto try_one = [&](auto Ic) {
10305|  70.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.9k|    if (idx == I) {
10305|  70.9k|      auto&& h = std::get<I>(handlers);
10305|  70.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|  70.9k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  70.9k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  70.9k|          err = h(v);
10306|  70.9k|        } else {
10306|  70.9k|          h(v);
10306|  70.9k|        }
10306|  70.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  70.9k|        err = v.get(h);
10306|  70.9k|      }
10306|  70.9k|    }
10306|  70.9k|  };
10306|  70.9k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  70.9k|  return err;
10307|  70.9k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSM_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|  70.9k|  auto try_one = [&](auto Ic) {
10305|  70.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 18.2k, False: 52.7k]
  ------------------
10305|  18.2k|      auto&& h = std::get<I>(handlers);
10305|  18.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  18.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  18.2k|        err = v.get(h);
10306|  18.2k|      }
10306|  18.2k|    }
10306|  70.9k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSM_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|  70.9k|  auto try_one = [&](auto Ic) {
10305|  70.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.5k, False: 53.3k]
  ------------------
10305|  17.5k|      auto&& h = std::get<I>(handlers);
10305|  17.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|  17.5k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  17.5k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  17.5k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  17.5k|    }
10306|  70.9k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSM_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|  70.9k|  auto try_one = [&](auto Ic) {
10305|  70.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 26.7k, False: 44.2k]
  ------------------
10305|  26.7k|      auto&& h = std::get<I>(handlers);
10305|  26.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  26.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  26.7k|        err = v.get(h);
10306|  26.7k|      }
10306|  26.7k|    }
10306|  70.9k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSM_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|  70.9k|  auto try_one = [&](auto Ic) {
10305|  70.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 8.39k, False: 62.5k]
  ------------------
10305|  8.39k|      auto&& h = std::get<I>(handlers);
10305|  8.39k|      using H = std::remove_reference_t<decltype(h)>;
10305|  8.39k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  8.39k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  8.39k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  8.39k|    }
10306|  70.9k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm9EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 23.1k, False: 578k]
  ------------------
10305|  23.1k|      auto&& h = std::get<I>(handlers);
10305|  23.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  23.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  23.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  23.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  23.1k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS2_5valueEE_RNSH_4math3vecIfLm3EEESS_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSX_:
10349|  23.1k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  23.1k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 23.1k]
  ------------------
10350|  23.1k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  23.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSF_14basic_optionalINSF_11TextureInfoENSF_15flagged_storageISI_EEEEEEDaRT_NSF_10ExtensionsEEUlNS1_5valueEE_RNSF_4math3vecIfLm3EEESQ_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10309|  23.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  23.1k|  using Selector = key_selector<Keys...>;
10309|  23.1k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  23.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RNSH_4math3vecIfLm3EEESS_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10308|  23.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  23.1k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  23.1k|  return this->template for_each<Selector>(
10308|  23.1k|      [&](std::size_t i, value v) -> error_code {
10308|  23.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  23.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  23.1k|      });
10309|  23.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISF_JRfZN8fastgltf15readTextureInfoINSI_14basic_optionalINSI_11TextureInfoENSI_15flagged_storageISL_EEEEEEDaRT_NSI_10ExtensionsEEUlNS1_5valueEE_RNSI_4math3vecIfLm3EEEST_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_EUlmSS_E_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSS_EEESZ_OS13_:
10296|  23.1k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  23.1k|  value_iterator it = iter;
10297|  23.1k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  23.1k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  23.1k|  std::array<std::uint64_t, seen_words> seen{};
10298|  78.9k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 57.1k, False: 21.8k]
  ------------------
10298|  57.1k|    raw_json_string key;
10298|  57.1k|    error_code error;
10298|  57.1k|    std::size_t idx;
10298|  57.1k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  57.1k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 36, False: 57.0k]
  ------------------
10299|  57.0k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 30, False: 57.0k]
  ------------------
10299|  57.0k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  57.1k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 28.3k, False: 28.7k]
  ------------------
10300|  28.3k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  28.3k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  28.3k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 28.0k, False: 262]
  ------------------
10300|  28.0k|        seen_word |= seen_bit;
10300|  28.0k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  28.0k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  28.0k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 59, False: 28.0k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  28.0k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.28k, False: 26.8k]
  ------------------
10302|  28.0k|      }
10302|  28.3k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  55.8k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 55.8k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  55.8k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 9, False: 55.8k]
  ------------------
10303|  55.8k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 48, False: 55.7k]
  ------------------
10303|  55.8k|  }
10303|  23.0k|  return {SUCCESS, matched};
10303|  23.1k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  57.0k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  57.0k|        const char* p = rjs.raw();
96024|  57.0k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  57.0k|            std::uint8_t ki = window.window_to_key[
96030|  57.0k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  57.0k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 16.3k, False: 40.7k]
  ------------------
96032|  40.7k|            return key_selector_detail::match_window_candidate(
96033|  40.7k|                p, ki, window, std::make_index_sequence<N>{});
96034|  57.0k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  57.0k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm20EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  40.7k|                       std::index_sequence<Is...>) noexcept {
95865|  40.7k|  std::size_t result = N;
95866|  40.7k|  auto try_match = [&](auto Ic) {
95867|  40.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  40.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  40.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  40.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  40.7k|      result = i;
95872|  40.7k|    }
95873|  40.7k|  };
95874|  40.7k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  40.7k|  return result;
95876|  40.7k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm20EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  40.7k|  auto try_match = [&](auto Ic) {
95867|  40.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  40.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.84k, False: 32.8k]
  |  Branch (95868:20): [True: 5.90k, False: 1.93k]
  ------------------
95869|  5.90k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.78k, False: 1.12k]
  ------------------
95870|  5.90k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.78k|      result = i;
95872|  4.78k|    }
95873|  40.7k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm20EEEbPKcS5_m:
95612|  2.69M|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  2.69M|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  2.69M|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|  2.69M|    } else if constexpr (MaxKeyLen <= 32) {
95644|  2.69M|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|  2.69M|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|  2.69M|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|  2.69M|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|  2.69M|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|  2.69M|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|  2.69M|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|  2.69M|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|  2.69M|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|  2.69M|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|  2.69M|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  2.69M|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm20EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  40.7k|  auto try_match = [&](auto Ic) {
95867|  40.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  40.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 5.45k, False: 35.2k]
  |  Branch (95868:20): [True: 4.76k, False: 697]
  ------------------
95869|  4.76k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.33k, False: 430]
  ------------------
95870|  4.76k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.33k|      result = i;
95872|  4.33k|    }
95873|  40.7k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm20EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  40.7k|  auto try_match = [&](auto Ic) {
95867|  40.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  40.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 15.0k, False: 25.6k]
  |  Branch (95868:20): [True: 12.4k, False: 2.59k]
  ------------------
95869|  12.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 8.51k, False: 3.93k]
  ------------------
95870|  12.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  8.51k|      result = i;
95872|  8.51k|    }
95873|  40.7k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm20EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  40.7k|  auto try_match = [&](auto Ic) {
95867|  40.7k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  40.7k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.3k, False: 28.3k]
  |  Branch (95868:20): [True: 11.7k, False: 628]
  ------------------
95869|  11.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.7k, False: 1.01k]
  ------------------
95870|  11.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.7k|      result = i;
95872|  10.7k|    }
95873|  40.7k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|  85.0k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm16EEEtlA16_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm20EEEtlA20_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm21EEEtlA21_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISK_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RNSH_4math3vecIfLm3EEESS_EQaaaa17key_selector_typeISO_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_ENKUlmSR_E_clEmSR_:
10308|  28.0k|      [&](std::size_t i, value v) -> error_code {
10308|  28.0k|        return key_selector_for_each_detail::dispatch_value(
10308|  28.0k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  28.0k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm10EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 38.6k, False: 562k]
  ------------------
10305|  38.6k|      auto&& h = std::get<I>(handlers);
10305|  38.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  38.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  38.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  38.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  38.6k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|  38.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  38.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 38.5k]
  ------------------
10350|  38.5k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  38.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRfZN8fastgltf15readTextureInfoINSB_14basic_optionalINSB_11TextureInfoENSB_15flagged_storageISE_EEEEEEDaRT_NSB_10ExtensionsEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|  38.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  38.5k|  using Selector = key_selector<Keys...>;
10309|  38.5k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  38.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|  38.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  38.5k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  38.5k|  return this->template for_each<Selector>(
10308|  38.5k|      [&](std::size_t i, value v) -> error_code {
10308|  38.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  38.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  38.5k|      });
10309|  38.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISB_JRfZN8fastgltf15readTextureInfoINSE_14basic_optionalINSE_11TextureInfoENSE_15flagged_storageISH_EEEEEEDaRT_NSE_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISL_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmSO_E_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSO_EEESR_OSV_:
10296|  38.5k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  38.5k|  value_iterator it = iter;
10297|  38.5k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  38.5k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  38.5k|  std::array<std::uint64_t, seen_words> seen{};
10298|  80.4k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 45.2k, False: 35.2k]
  ------------------
10298|  45.2k|    raw_json_string key;
10298|  45.2k|    error_code error;
10298|  45.2k|    std::size_t idx;
10298|  45.2k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  45.2k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 33, False: 45.1k]
  ------------------
10299|  45.1k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 8, False: 45.1k]
  ------------------
10299|  45.1k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  45.2k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 31.0k, False: 14.2k]
  ------------------
10300|  31.0k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  31.0k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  31.0k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 30.9k, False: 76]
  ------------------
10300|  30.9k|        seen_word |= seen_bit;
10300|  30.9k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  30.9k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  30.9k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 69, False: 30.8k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  30.9k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3.30k, False: 27.6k]
  ------------------
10302|  30.9k|      }
10302|  31.0k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  41.9k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 41.9k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  41.9k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 4, False: 41.9k]
  ------------------
10303|  41.9k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 69, False: 41.8k]
  ------------------
10303|  41.9k|  }
10303|  38.5k|  return {SUCCESS, matched};
10303|  38.5k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  45.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  45.1k|        const char* p = rjs.raw();
96024|  45.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  45.1k|            std::uint8_t ki = window.window_to_key[
96030|  45.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  45.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 11.5k, False: 33.5k]
  ------------------
96032|  33.5k|            return key_selector_detail::match_window_candidate(
96033|  33.5k|                p, ki, window, std::make_index_sequence<N>{});
96034|  45.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  45.1k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm19EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  33.5k|                       std::index_sequence<Is...>) noexcept {
95865|  33.5k|  std::size_t result = N;
95866|  33.5k|  auto try_match = [&](auto Ic) {
95867|  33.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  33.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  33.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  33.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  33.5k|      result = i;
95872|  33.5k|    }
95873|  33.5k|  };
95874|  33.5k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  33.5k|  return result;
95876|  33.5k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm19EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  33.5k|  auto try_match = [&](auto Ic) {
95867|  33.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  33.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 27.7k, False: 5.87k]
  |  Branch (95868:20): [True: 27.1k, False: 525]
  ------------------
95869|  27.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 26.5k, False: 603]
  ------------------
95870|  27.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  26.5k|      result = i;
95872|  26.5k|    }
95873|  33.5k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm19EEEbPKcS5_m:
95612|   220k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   220k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   220k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|   220k|    } else if constexpr (MaxKeyLen <= 32) {
95644|   220k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|   220k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|   220k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|   220k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|   220k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|   220k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|   220k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|   220k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|   220k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|   220k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|   220k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   220k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm19EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  33.5k|  auto try_match = [&](auto Ic) {
95867|  33.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  33.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 5.87k, False: 27.7k]
  |  Branch (95868:20): [True: 4.98k, False: 890]
  ------------------
95869|  4.98k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.42k, False: 564]
  ------------------
95870|  4.98k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.42k|      result = i;
95872|  4.42k|    }
95873|  33.5k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|  76.0k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm20EEEtlA20_cLc116ELc114ELc97ELc110ELc115ELc109ELc105ELc115ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_ENKUlmSN_E_clEmSN_:
10308|  30.9k|      [&](std::size_t i, value v) -> error_code {
10308|  30.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  30.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  30.9k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm11EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.57k, False: 597k]
  ------------------
10305|  3.57k|      auto&& h = std::get<I>(handlers);
10305|  3.57k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.57k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.57k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.57k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  3.57k|    }
10306|   601k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm12EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 48.6k, False: 552k]
  ------------------
10305|  48.6k|      auto&& h = std::get<I>(handlers);
10305|  48.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  48.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  48.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  48.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  48.6k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlSA_tlSB_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEJRfZN8fastgltf15readTextureInfoINSF_14basic_optionalINSF_11TextureInfoENSF_15flagged_storageISI_EEEEEEDaRT_NSF_10ExtensionsEEUlNS2_5valueEE_SE_RNSF_4math3vecIfLm3EEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSV_:
10349|  48.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  48.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 48.6k]
  ------------------
10350|  48.6k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  48.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlS8_tlS9_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEJRfZN8fastgltf15readTextureInfoINSD_14basic_optionalINSD_11TextureInfoENSD_15flagged_storageISG_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_SC_RNSD_4math3vecIfLm3EEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_:
10309|  48.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  48.6k|  using Selector = key_selector<Keys...>;
10309|  48.6k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  48.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlS9_tlSA_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEEEJRfZN8fastgltf15readTextureInfoINSF_14basic_optionalINSF_11TextureInfoENSF_15flagged_storageISI_EEEEEEDaRT_NSF_10ExtensionsEEUlNS1_5valueEE_SE_RNSF_4math3vecIfLm3EEEEQaaaa17key_selector_typeISM_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10308|  48.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  48.6k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  48.6k|  return this->template for_each<Selector>(
10308|  48.6k|      [&](std::size_t i, value v) -> error_code {
10308|  48.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  48.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  48.6k|      });
10309|  48.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlS9_tlSA_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEEEZNS2_8for_eachISD_JRfZN8fastgltf15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISJ_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_SF_RNSG_4math3vecIfLm3EEEEQaaaa17key_selector_typeISN_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_EUlmSQ_E_Qaa17key_selector_typeISN_Esr3stdE14is_invocable_vIRT0_mSQ_EEESX_OS11_:
10296|  48.6k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  48.6k|  value_iterator it = iter;
10297|  48.6k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  48.6k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  48.6k|  std::array<std::uint64_t, seen_words> seen{};
10298|   151k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 109k, False: 42.3k]
  ------------------
10298|   109k|    raw_json_string key;
10298|   109k|    error_code error;
10298|   109k|    std::size_t idx;
10298|   109k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   109k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 120, False: 109k]
  ------------------
10299|   109k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 20, False: 108k]
  ------------------
10299|   108k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   109k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 79.3k, False: 29.7k]
  ------------------
10300|  79.3k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  79.3k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  79.3k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 78.8k, False: 497]
  ------------------
10300|  78.8k|        seen_word |= seen_bit;
10300|  78.8k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  78.8k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  78.8k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 149, False: 78.7k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  78.8k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 6.22k, False: 72.6k]
  ------------------
10302|  78.8k|      }
10302|  79.3k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   102k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 102k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   102k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 9, False: 102k]
  ------------------
10303|   102k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 127, False: 102k]
  ------------------
10303|   102k|  }
10303|  48.5k|  return {SUCCESS, matched};
10303|  48.6k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlS7_tlS8_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   108k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   108k|        const char* p = rjs.raw();
96024|   108k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   108k|            std::uint8_t ki = window.window_to_key[
96030|   108k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   108k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 14.4k, False: 94.5k]
  ------------------
96032|  94.5k|            return key_selector_detail::match_window_candidate(
96033|  94.5k|                p, ki, window, std::make_index_sequence<N>{});
96034|   108k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   108k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm19EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  94.5k|                       std::index_sequence<Is...>) noexcept {
95865|  94.5k|  std::size_t result = N;
95866|  94.5k|  auto try_match = [&](auto Ic) {
95867|  94.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  94.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  94.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  94.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  94.5k|      result = i;
95872|  94.5k|    }
95873|  94.5k|  };
95874|  94.5k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  94.5k|  return result;
95876|  94.5k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm19EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  94.5k|  auto try_match = [&](auto Ic) {
95867|  94.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  94.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 37.9k, False: 56.6k]
  |  Branch (95868:20): [True: 35.9k, False: 2.01k]
  ------------------
95869|  35.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 32.3k, False: 3.57k]
  ------------------
95870|  35.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  32.3k|      result = i;
95872|  32.3k|    }
95873|  94.5k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm19EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  94.5k|  auto try_match = [&](auto Ic) {
95867|  94.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  94.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 15.1k, False: 79.4k]
  |  Branch (95868:20): [True: 13.8k, False: 1.24k]
  ------------------
95869|  13.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 13.3k, False: 508]
  ------------------
95870|  13.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  13.3k|      result = i;
95872|  13.3k|    }
95873|  94.5k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm19EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  94.5k|  auto try_match = [&](auto Ic) {
95867|  94.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  94.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 20.7k, False: 73.8k]
  |  Branch (95868:20): [True: 19.1k, False: 1.56k]
  ------------------
95869|  19.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 16.3k, False: 2.82k]
  ------------------
95870|  19.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  16.3k|      result = i;
95872|  16.3k|    }
95873|  94.5k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm19EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  94.5k|  auto try_match = [&](auto Ic) {
95867|  94.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  94.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 20.7k, False: 73.8k]
  |  Branch (95868:20): [True: 19.0k, False: 1.65k]
  ------------------
95869|  19.0k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 17.3k, False: 1.77k]
  ------------------
95870|  19.0k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  17.3k|      result = i;
95872|  17.3k|    }
95873|  94.5k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlS7_tlS8_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEE4sizeEv:
95952|   187k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc116ELc104ELc105ELc99ELc107ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm20EEEtlA20_cLc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc68ELc105ELc115ELc116ELc97ELc110ELc99ELc101EEEEXtlS9_tlSA_Lc97ELc116ELc116ELc101ELc110ELc117ELc97ELc116ELc105ELc111ELc110ELc67ELc111ELc108ELc111ELc114EEEEEEEJRfZN8fastgltf15readTextureInfoINSF_14basic_optionalINSF_11TextureInfoENSF_15flagged_storageISI_EEEEEEDaRT_NSF_10ExtensionsEEUlNS1_5valueEE_SE_RNSF_4math3vecIfLm3EEEEQaaaa17key_selector_typeISM_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_ENKUlmSP_E_clEmSP_:
10308|  78.8k|      [&](std::size_t i, value v) -> error_code {
10308|  78.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  78.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  78.8k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_RNS7_4math3vecIfLm3EEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  78.8k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  78.8k|  error_code err = SUCCESS;
10304|  78.8k|  auto try_one = [&](auto Ic) {
10305|  78.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  78.8k|    if (idx == I) {
10305|  78.8k|      auto&& h = std::get<I>(handlers);
10305|  78.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  78.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  78.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  78.8k|          err = h(v);
10306|  78.8k|        } else {
10306|  78.8k|          h(v);
10306|  78.8k|        }
10306|  78.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  78.8k|        err = v.get(h);
10306|  78.8k|      }
10306|  78.8k|    }
10306|  78.8k|  };
10306|  78.8k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  78.8k|  return err;
10307|  78.8k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_RNS7_4math3vecIfLm3EEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|  78.8k|  auto try_one = [&](auto Ic) {
10305|  78.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  78.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 32.3k, False: 46.5k]
  ------------------
10305|  32.3k|      auto&& h = std::get<I>(handlers);
10305|  32.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  32.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  32.3k|        err = v.get(h);
10306|  32.3k|      }
10306|  32.3k|    }
10306|  78.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_RNS7_4math3vecIfLm3EEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm1EEEEEDaSE_:
10304|  78.8k|  auto try_one = [&](auto Ic) {
10305|  78.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  78.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 13.3k, False: 65.5k]
  ------------------
10305|  13.3k|      auto&& h = std::get<I>(handlers);
10305|  13.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  13.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  13.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  13.3k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  13.3k|    }
10306|  78.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_RNS7_4math3vecIfLm3EEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm2EEEEEDaSE_:
10304|  78.8k|  auto try_one = [&](auto Ic) {
10305|  78.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  78.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 16.0k, False: 62.8k]
  ------------------
10305|  16.0k|      auto&& h = std::get<I>(handlers);
10305|  16.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  16.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  16.0k|        err = v.get(h);
10306|  16.0k|      }
10306|  16.0k|    }
10306|  78.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfOZN8fastgltf15readTextureInfoINS7_14basic_optionalINS7_11TextureInfoENS7_15flagged_storageISA_EEEEEEDaRT_NS7_10ExtensionsEEUlNS1_5valueEE_S6_RNS7_4math3vecIfLm3EEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmSF_SH_NS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm3EEEEEDaSE_:
10304|  78.8k|  auto try_one = [&](auto Ic) {
10305|  78.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  78.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.1k, False: 61.7k]
  ------------------
10305|  17.1k|      auto&& h = std::get<I>(handlers);
10305|  17.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.1k|        err = v.get(h);
10306|  17.1k|      }
10306|  17.1k|    }
10306|  78.8k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm13EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 33, False: 601k]
  ------------------
10305|     33|      auto&& h = std::get<I>(handlers);
10305|     33|      using H = std::remove_reference_t<decltype(h)>;
10305|     33|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|     33|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|     33|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|     33|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm31EEEtlA31_cLc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJZN8fastgltf15readTextureInfoINSA_14basic_optionalINSA_11TextureInfoENSA_13boxed_storageISD_NSt3__19allocatorISD_EEEEEEEEDaRT_NSA_10ExtensionsEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSP_:
10349|     33|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|     33|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 2, False: 31]
  ------------------
10350|     31|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|     33|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm31EEEtlA31_cLc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJZN8fastgltf15readTextureInfoINS8_14basic_optionalINS8_11TextureInfoENS8_13boxed_storageISB_NSt3__19allocatorISB_EEEEEEEEDaRT_NS8_10ExtensionsEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10309|     31|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|     31|  using Selector = key_selector<Keys...>;
10309|     31|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|     31|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm31EEEtlA31_cLc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJZN8fastgltf15readTextureInfoINSA_14basic_optionalINSA_11TextureInfoENSA_13boxed_storageISD_NSt3__19allocatorISD_EEEEEEEEDaRT_NSA_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISK_EeqsZT0_clsrSK_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|     31|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|     31|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|     31|  return this->template for_each<Selector>(
10308|     31|      [&](std::size_t i, value v) -> error_code {
10308|     31|        return key_selector_for_each_detail::dispatch_value(
10308|     31|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|     31|      });
10309|     31|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm31EEEtlA31_cLc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachIS9_JZN8fastgltf15readTextureInfoINSB_14basic_optionalINSB_11TextureInfoENSB_13boxed_storageISE_NSt3__19allocatorISE_EEEEEEEEDaRT_NSB_10ExtensionsEEUlNS1_5valueEE_EQaaaa17key_selector_typeISL_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmSO_E_Qaa17key_selector_typeISL_Esr3stdE14is_invocable_vIRT0_mSO_EEESR_OSV_:
10296|     31|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|     31|  value_iterator it = iter;
10297|     31|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|     31|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|     31|  std::array<std::uint64_t, seen_words> seen{};
10298|  1.00k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 981, False: 22]
  ------------------
10298|    981|    raw_json_string key;
10298|    981|    error_code error;
10298|    981|    std::size_t idx;
10298|    981|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|    981|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 6, False: 975]
  ------------------
10299|    975|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 7, False: 968]
  ------------------
10299|    968|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|    981|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 0, False: 981]
  ------------------
10300|      0|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|      0|      std::uint64_t &seen_word = seen[idx >> 6];
10300|      0|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 0, False: 0]
  ------------------
10300|      0|        seen_word |= seen_bit;
10300|      0|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|      0|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|      0|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 0, False: 0]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|      0|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 0]
  ------------------
10302|      0|      }
10302|      0|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|    981|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 981]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|    981|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 1, False: 980]
  ------------------
10303|    980|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 8, False: 972]
  ------------------
10303|    980|  }
10303|     22|  return {SUCCESS, matched};
10303|     31|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm31EEEtlA31_cLc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|    968|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|    968|        const char* p = rjs.raw();
96024|    968|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|    968|            std::uint8_t ki = window.window_to_key[
96030|    968|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|    968|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 868, False: 100]
  ------------------
96032|    100|            return key_selector_detail::match_window_candidate(
96033|    100|                p, ki, window, std::make_index_sequence<N>{});
96034|    968|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|    968|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm30EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|    100|                       std::index_sequence<Is...>) noexcept {
95865|    100|  std::size_t result = N;
95866|    100|  auto try_match = [&](auto Ic) {
95867|    100|    constexpr std::size_t i = decltype(Ic)::value;
95868|    100|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|    100|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|    100|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    100|      result = i;
95872|    100|    }
95873|    100|  };
95874|    100|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|    100|  return result;
95876|    100|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm30EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|    100|  auto try_match = [&](auto Ic) {
95867|    100|    constexpr std::size_t i = decltype(Ic)::value;
95868|    100|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 100, False: 0]
  |  Branch (95868:20): [True: 24, False: 76]
  ------------------
95869|     24|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 24]
  ------------------
95870|     24|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|    100|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm30EEEbPKcS5_m:
95612|     24|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|     24|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|     24|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|     24|    } else if constexpr (MaxKeyLen <= 32) {
95644|     24|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|     24|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|     24|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|     24|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|     24|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|     24|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|     24|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|     24|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|     24|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|     24|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|     24|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|     24|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm31EEEtlA31_cLc110ELc111ELc114ELc109ELc97ELc108ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|    968|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm14EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1, False: 601k]
  ------------------
10305|      1|      auto&& h = std::get<I>(handlers);
10305|      1|      using H = std::remove_reference_t<decltype(h)>;
10305|      1|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|      1|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|      1|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|      1|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm34EEEtlA34_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS8_tlS9_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc79ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJZN8fastgltf15readTextureInfoINSC_14basic_optionalINSC_11TextureInfoENSC_15flagged_storageISF_EEEEEEDaRT_NSC_10ExtensionsEEUlNS2_5valueEE_SN_SN_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSO_:
10349|      1|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|      1|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 1, False: 0]
  ------------------
10350|      0|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|      1|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser23parseMaterialExtensionsERNS6_8internal10JsonObjectERNS6_8MaterialEE4$_16RKZNS7_23parseMaterialExtensionsESA_SC_E4$_15RKZNS7_23parseMaterialExtensionsESA_SC_E4$_14RKZNS7_23parseMaterialExtensionsESA_SC_E4$_13RKZNS7_23parseMaterialExtensionsESA_SC_E4$_12RKZNS7_23parseMaterialExtensionsESA_SC_E4$_11RKZNS7_23parseMaterialExtensionsESA_SC_E4$_10RKZNS7_23parseMaterialExtensionsESA_SC_E3$_9RKZNS7_23parseMaterialExtensionsESA_SC_E3$_8RKZNS7_23parseMaterialExtensionsESA_SC_E3$_7RKZNS7_23parseMaterialExtensionsESA_SC_E3$_6RKZNS7_23parseMaterialExtensionsESA_SC_E3$_5RKZNS7_23parseMaterialExtensionsESA_SC_E3$_4RKZNS7_23parseMaterialExtensionsESA_SC_E3$_3RKZNS7_23parseMaterialExtensionsESA_SC_E3$_2RKZNS7_23parseMaterialExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12ELm13ELm14ELm15EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS1R_E_clINS4_17integral_constantImLm15EEEEEDaS1R_:
10304|   601k|  auto try_one = [&](auto Ic) {
10305|   601k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   601k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.9k, False: 590k]
  ------------------
10305|  10.9k|      auto&& h = std::get<I>(handlers);
10305|  10.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.9k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.9k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.9k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  10.9k|    }
10306|   601k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlSA_tlSB_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRN8fastgltf4math3vecIfLm4EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS2_5valueEE_RNSI_IfLm3EEERfSV_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSZ_:
10349|  10.9k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  10.9k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 10.9k]
  ------------------
10350|  10.9k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  10.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS8_tlS9_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRN8fastgltf4math3vecIfLm4EEEZNSE_15readTextureInfoINSE_14basic_optionalINSE_11TextureInfoENSE_15flagged_storageISL_EEEEEEDaRT_NSE_10ExtensionsEEUlNS1_5valueEE_RNSG_IfLm3EEERfST_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10309|  10.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  10.9k|  using Selector = key_selector<Keys...>;
10309|  10.9k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  10.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS9_tlSA_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRN8fastgltf4math3vecIfLm4EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_RNSI_IfLm3EEERfSV_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_:
10308|  10.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  10.9k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  10.9k|  return this->template for_each<Selector>(
10308|  10.9k|      [&](std::size_t i, value v) -> error_code {
10308|  10.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.9k|      });
10309|  10.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS9_tlSA_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISF_JRN8fastgltf4math3vecIfLm4EEEZNSH_15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISO_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RNSJ_IfLm3EEERfSW_EQaaaa17key_selector_typeISS_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_EUlmSV_E_Qaa17key_selector_typeISS_Esr3stdE14is_invocable_vIRT0_mSV_EEES11_OS15_:
10296|  10.9k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  10.9k|  value_iterator it = iter;
10297|  10.9k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  10.9k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  10.9k|  std::array<std::uint64_t, seen_words> seen{};
10298|   163k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 152k, False: 10.8k]
  ------------------
10298|   152k|    raw_json_string key;
10298|   152k|    error_code error;
10298|   152k|    std::size_t idx;
10298|   152k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   152k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 21, False: 152k]
  ------------------
10299|   152k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 25, False: 152k]
  ------------------
10299|   152k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   152k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 20.4k, False: 131k]
  ------------------
10300|  20.4k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  20.4k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  20.4k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 15.2k, False: 5.23k]
  ------------------
10300|  15.2k|        seen_word |= seen_bit;
10300|  15.2k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  15.2k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  15.2k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 33, False: 15.2k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  15.2k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 15.2k]
  ------------------
10302|  15.2k|      }
10302|  20.4k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   152k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 152k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   152k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 23, False: 152k]
  ------------------
10303|   152k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 63, False: 152k]
  ------------------
10303|   152k|  }
10303|  10.8k|  return {SUCCESS, matched};
10303|  10.9k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS7_tlS8_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   152k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   152k|        const char* p = rjs.raw();
96024|   152k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   152k|            std::uint8_t ki = window.window_to_key[
96030|   152k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   152k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 110k, False: 41.3k]
  ------------------
96032|  41.3k|            return key_selector_detail::match_window_candidate(
96033|  41.3k|                p, ki, window, std::make_index_sequence<N>{});
96034|   152k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   152k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm25EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  41.3k|                       std::index_sequence<Is...>) noexcept {
95865|  41.3k|  std::size_t result = N;
95866|  41.3k|  auto try_match = [&](auto Ic) {
95867|  41.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  41.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  41.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  41.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  41.3k|      result = i;
95872|  41.3k|    }
95873|  41.3k|  };
95874|  41.3k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  41.3k|  return result;
95876|  41.3k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm25EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  41.3k|  auto try_match = [&](auto Ic) {
95867|  41.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  41.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 589, False: 40.7k]
  |  Branch (95868:20): [True: 224, False: 365]
  ------------------
95869|    224|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 26, False: 198]
  ------------------
95870|    224|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|     26|      result = i;
95872|     26|    }
95873|  41.3k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm25EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  41.3k|  auto try_match = [&](auto Ic) {
95867|  41.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  41.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.90k, False: 33.3k]
  |  Branch (95868:20): [True: 6.88k, False: 1.02k]
  ------------------
95869|  6.88k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 6.53k, False: 354]
  ------------------
95870|  6.88k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.53k|      result = i;
95872|  6.53k|    }
95873|  41.3k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm25EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  41.3k|  auto try_match = [&](auto Ic) {
95867|  41.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  41.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 8.61k, False: 32.6k]
  |  Branch (95868:20): [True: 5.18k, False: 3.43k]
  ------------------
95869|  5.18k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.43k, False: 754]
  ------------------
95870|  5.18k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.43k|      result = i;
95872|  4.43k|    }
95873|  41.3k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm25EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  41.3k|  auto try_match = [&](auto Ic) {
95867|  41.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  41.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 16.7k, False: 24.5k]
  |  Branch (95868:20): [True: 11.3k, False: 5.34k]
  ------------------
95869|  11.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 9.11k, False: 2.26k]
  ------------------
95870|  11.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  9.11k|      result = i;
95872|  9.11k|    }
95873|  41.3k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm25EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|  41.3k|  auto try_match = [&](auto Ic) {
95867|  41.3k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  41.3k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.47k, False: 33.8k]
  |  Branch (95868:20): [True: 789, False: 6.68k]
  ------------------
95869|    789|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 390, False: 399]
  ------------------
95870|    789|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    390|      result = i;
95872|    390|    }
95873|  41.3k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS7_tlS8_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|   167k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm15EEEtlA15_cLc100ELc105ELc102ELc102ELc117ELc115ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlS9_tlSA_Lc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc103ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm26EEEtlA26_cLc115ELc112ELc101ELc99ELc117ELc108ELc97ELc114ELc71ELc108ELc111ELc115ELc115ELc105ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRN8fastgltf4math3vecIfLm4EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_RNSI_IfLm3EEERfSV_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_ENKUlmSU_E_clEmSU_:
10308|  15.2k|      [&](std::size_t i, value v) -> error_code {
10308|  15.2k|        return key_selector_for_each_detail::dispatch_value(
10308|  15.2k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  15.2k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RNS8_IfLm3EEERfSM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  15.2k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  15.2k|  error_code err = SUCCESS;
10304|  15.2k|  auto try_one = [&](auto Ic) {
10305|  15.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  15.2k|    if (idx == I) {
10305|  15.2k|      auto&& h = std::get<I>(handlers);
10305|  15.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  15.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  15.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  15.2k|          err = h(v);
10306|  15.2k|        } else {
10306|  15.2k|          h(v);
10306|  15.2k|        }
10306|  15.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.2k|        err = v.get(h);
10306|  15.2k|      }
10306|  15.2k|    }
10306|  15.2k|  };
10306|  15.2k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  15.2k|  return err;
10307|  15.2k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RNS8_IfLm3EEERfSM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|  15.2k|  auto try_one = [&](auto Ic) {
10305|  15.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  15.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 23, False: 15.2k]
  ------------------
10305|     23|      auto&& h = std::get<I>(handlers);
10305|     23|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     23|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     23|        err = v.get(h);
10306|     23|      }
10306|     23|    }
10306|  15.2k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf4math3vecIfLm4EEEEENS_10error_codeERT_:
89907|   169k| {
89908|   169k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   169k|  if constexpr (custom_deserializable<T, value>) {
89910|   169k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   169k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf4math3vecIfLm4EEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS9_RS6_:
89261|   169k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   169k|    return tag_invoke(*this, object, output);
89263|   169k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RNS8_IfLm3EEERfSM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|  15.2k|  auto try_one = [&](auto Ic) {
10305|  15.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  15.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 6.52k, False: 8.73k]
  ------------------
10305|  6.52k|      auto&& h = std::get<I>(handlers);
10305|  6.52k|      using H = std::remove_reference_t<decltype(h)>;
10305|  6.52k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  6.52k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  6.52k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  6.52k|    }
10306|  15.2k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RNS8_IfLm3EEERfSM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|  15.2k|  auto try_one = [&](auto Ic) {
10305|  15.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  15.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 4.39k, False: 10.8k]
  ------------------
10305|  4.39k|      auto&& h = std::get<I>(handlers);
10305|  4.39k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  4.39k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  4.39k|        err = v.get(h);
10306|  4.39k|      }
10306|  4.39k|    }
10306|  15.2k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RNS8_IfLm3EEERfSM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|  15.2k|  auto try_one = [&](auto Ic) {
10305|  15.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  15.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.92k, False: 11.3k]
  ------------------
10305|  3.92k|      auto&& h = std::get<I>(handlers);
10305|  3.92k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  3.92k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  3.92k|        err = v.get(h);
10306|  3.92k|      }
10306|  3.92k|    }
10306|  15.2k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RNS8_IfLm3EEERfSM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm4EEEEEDaSH_:
10304|  15.2k|  auto try_one = [&](auto Ic) {
10305|  15.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  15.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 389, False: 14.8k]
  ------------------
10305|    389|      auto&& h = std::get<I>(handlers);
10305|    389|      using H = std::remove_reference_t<decltype(h)>;
10305|    389|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    389|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    389|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    389|    }
10306|  15.2k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS7_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS7_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSM_tlSN_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS7_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__112basic_stringIcNSS_11char_traitsIcEENSS_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNS10_8internal9JsonArrayERNS10_5AssetEE3$_2ZNS10_15readTextureInfoINS10_14basic_optionalINS10_17NormalTextureInfoENS10_15flagged_storageIS1C_EEEEEEDaRT_NS10_10ExtensionsEEUlNS2_5valueEE_ZNS1A_INS1B_INS10_20OcclusionTextureInfoENS10_13boxed_storageIS1L_NSW_IS1L_EEEEEEEEDaS1H_S1I_EUlS1J_E_ZNS1A_INS1B_INS10_11TextureInfoENS1M_IS1R_NSW_IS1R_EEEEEEEEDaS1H_S1I_EUlS1J_E_RNS10_4math3vecIfLm3EEERNS10_9AlphaModeERfRbRKZNS11_14parseMaterialsES14_S16_E3$_1RKZNS10_10readExtrasERKNS10_20ParserInternalConfigEmNS10_8CategoryEEUlS1J_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS2E_:
10349|  1.04M|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  1.04M|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 108, False: 1.04M]
  ------------------
10350|  1.04M|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  1.04M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS5_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS5_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSK_tlSL_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__112basic_stringIcNSQ_11char_traitsIcEENSQ_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSY_8internal9JsonArrayERNSY_5AssetEE3$_2ZNSY_15readTextureInfoINSY_14basic_optionalINSY_17NormalTextureInfoENSY_15flagged_storageIS1A_EEEEEEDaRT_NSY_10ExtensionsEEUlNS1_5valueEE_ZNS18_INS19_INSY_20OcclusionTextureInfoENSY_13boxed_storageIS1J_NSU_IS1J_EEEEEEEEDaS1F_S1G_EUlS1H_E_ZNS18_INS19_INSY_11TextureInfoENS1K_IS1P_NSU_IS1P_EEEEEEEEDaS1F_S1G_EUlS1H_E_RNSY_4math3vecIfLm3EEERNSY_9AlphaModeERfRbRKZNSZ_14parseMaterialsES12_S14_E3$_1RKZNSY_10readExtrasERKNSY_20ParserInternalConfigEmNSY_8CategoryEEUlS1H_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2C_:
10309|  1.04M|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  1.04M|  using Selector = key_selector<Keys...>;
10309|  1.04M|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  1.04M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS6_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSL_tlSM_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__112basic_stringIcNSS_11char_traitsIcEENSS_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNS10_8internal9JsonArrayERNS10_5AssetEE3$_2ZNS10_15readTextureInfoINS10_14basic_optionalINS10_17NormalTextureInfoENS10_15flagged_storageIS1C_EEEEEEDaRT_NS10_10ExtensionsEEUlNS1_5valueEE_ZNS1A_INS1B_INS10_20OcclusionTextureInfoENS10_13boxed_storageIS1L_NSW_IS1L_EEEEEEEEDaS1H_S1I_EUlS1J_E_ZNS1A_INS1B_INS10_11TextureInfoENS1M_IS1R_NSW_IS1R_EEEEEEEEDaS1H_S1I_EUlS1J_E_RNS10_4math3vecIfLm3EEERNS10_9AlphaModeERfRbRKZNS11_14parseMaterialsES14_S16_E3$_1RKZNS10_10readExtrasERKNS10_20ParserInternalConfigEmNS10_8CategoryEEUlS1J_E_EQaaaa17key_selector_typeIS1G_EeqsZT0_clsrS1G_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2E_:
10308|  1.04M|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  1.04M|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  1.04M|  return this->template for_each<Selector>(
10308|  1.04M|      [&](std::size_t i, value v) -> error_code {
10308|  1.04M|        return key_selector_for_each_detail::dispatch_value(
10308|  1.04M|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  1.04M|      });
10309|  1.04M|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS6_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSL_tlSM_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISR_JRNSt3__112basic_stringIcNST_11char_traitsIcEENST_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNS11_8internal9JsonArrayERNS11_5AssetEE3$_2ZNS11_15readTextureInfoINS11_14basic_optionalINS11_17NormalTextureInfoENS11_15flagged_storageIS1D_EEEEEEDaRT_NS11_10ExtensionsEEUlNS1_5valueEE_ZNS1B_INS1C_INS11_20OcclusionTextureInfoENS11_13boxed_storageIS1M_NSX_IS1M_EEEEEEEEDaS1I_S1J_EUlS1K_E_ZNS1B_INS1C_INS11_11TextureInfoENS1N_IS1S_NSX_IS1S_EEEEEEEEDaS1I_S1J_EUlS1K_E_RNS11_4math3vecIfLm3EEERNS11_9AlphaModeERfRbRKZNS12_14parseMaterialsES15_S17_E3$_1RKZNS11_10readExtrasERKNS11_20ParserInternalConfigEmNS11_8CategoryEEUlS1K_E_EQaaaa17key_selector_typeIS1H_EeqsZT0_clsrS1H_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2F_EUlmS1K_E_Qaa17key_selector_typeIS1H_Esr3stdE14is_invocable_vIRT0_mS1K_EEES2G_OS2K_:
10296|  1.04M|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  1.04M|  value_iterator it = iter;
10297|  1.04M|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  1.04M|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  1.04M|  std::array<std::uint64_t, seen_words> seen{};
10298|  3.92M|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 2.87M, False: 1.04M]
  ------------------
10298|  2.87M|    raw_json_string key;
10298|  2.87M|    error_code error;
10298|  2.87M|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|  2.87M|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|  2.87M|      std::size_t key_len;
10299|  2.87M|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 232, False: 2.87M]
  ------------------
10299|  2.87M|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 84, False: 2.87M]
  ------------------
10300|  2.87M|      idx = Selector::match_raw(key.raw(), key_len);
10300|  2.87M|    }
10300|  2.87M|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 2.45M, False: 428k]
  ------------------
10300|  2.45M|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  2.45M|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  2.45M|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 2.42M, False: 26.7k]
  ------------------
10300|  2.42M|        seen_word |= seen_bit;
10300|  2.42M|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  2.42M|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  2.42M|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 6.10k, False: 2.41M]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  2.42M|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 2.42M]
  ------------------
10302|  2.42M|      }
10302|  2.45M|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  2.87M|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 2.87M]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  2.87M|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 28, False: 2.87M]
  ------------------
10303|  2.87M|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 298, False: 2.87M]
  ------------------
10303|  2.87M|  }
10303|  1.04M|  return {SUCCESS, matched};
10303|  1.04M|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS4_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS4_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSJ_tlSK_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawEPKcm:
95964|  2.87M|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|  2.87M|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 2.79k, False: 2.87M]
  |  Branch (95965:25): [True: 97.4k, False: 2.77M]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|  2.77M|        std::size_t slot;
95981|  2.77M|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 2.77M]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|  2.77M|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|  2.77M|            std::size_t h = len;
95996|  5.55M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 2.77M, False: 2.77M]
  ------------------
95997|  2.77M|                std::uint8_t pos = phf.positions[i];
95998|  2.77M|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 2.77M]
  ------------------
95999|  2.77M|                                  ? (len - std::size_t{1})
96000|  2.77M|                                  : static_cast<std::size_t>(pos);
96001|  2.77M|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 2.77M, False: 0]
  ------------------
96002|  2.77M|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|  2.77M|                }
96004|  2.77M|            }
96005|  2.77M|            slot = h & (table_size - 1);
96006|  2.77M|        }
96007|       |
96008|  2.77M|        std::uint8_t ki = phf.slot_to_key[slot];
96009|  2.77M|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 73.7k, False: 2.70M]
  ------------------
96010|  2.70M|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 46.1k, False: 2.65M]
  ------------------
96011|  2.65M|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 207k, False: 2.45M]
  ------------------
96012|  2.65M|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|  2.45M|        return ki;
96014|  2.65M|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS4_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS4_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSJ_tlSK_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|  5.29M|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm21EEEtlA21_cLc112ELc98ELc114ELc77ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115EEEEXtlNS6_ILm14EEEtlA14_cLc110ELc111ELc114ELc109ELc97ELc108ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm17EEEtlA17_cLc111ELc99ELc99ELc108ELc117ELc115ELc105ELc111ELc110ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm16EEEtlA16_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc101ELc109ELc105ELc115ELc115ELc105ELc118ELc101ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm10EEEtlA10_cLc97ELc108ELc112ELc104ELc97ELc77ELc111ELc100ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc97ELc108ELc112ELc104ELc97ELc67ELc117ELc116ELc111ELc102ELc102EEEEXtlSL_tlSM_Lc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__112basic_stringIcNSS_11char_traitsIcEENSS_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNS10_8internal9JsonArrayERNS10_5AssetEE3$_2ZNS10_15readTextureInfoINS10_14basic_optionalINS10_17NormalTextureInfoENS10_15flagged_storageIS1C_EEEEEEDaRT_NS10_10ExtensionsEEUlNS1_5valueEE_ZNS1A_INS1B_INS10_20OcclusionTextureInfoENS10_13boxed_storageIS1L_NSW_IS1L_EEEEEEEEDaS1H_S1I_EUlS1J_E_ZNS1A_INS1B_INS10_11TextureInfoENS1M_IS1R_NSW_IS1R_EEEEEEEEDaS1H_S1I_EUlS1J_E_RNS10_4math3vecIfLm3EEERNS10_9AlphaModeERfRbRKZNS11_14parseMaterialsES14_S16_E3$_1RKZNS10_10readExtrasERKNS10_20ParserInternalConfigEmNS10_8CategoryEEUlS1J_E_EQaaaa17key_selector_typeIS1G_EeqsZT0_clsrS1G_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS2E_ENKUlmS1J_E_clEmS1J_:
10308|  2.42M|      [&](std::size_t i, value v) -> error_code {
10308|  2.42M|        return key_selector_for_each_detail::dispatch_value(
10308|  2.42M|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  2.42M|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  2.42M|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  2.42M|  error_code err = SUCCESS;
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
10305|  2.42M|      auto&& h = std::get<I>(handlers);
10305|  2.42M|      using H = std::remove_reference_t<decltype(h)>;
10305|  2.42M|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  2.42M|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  2.42M|          err = h(v);
10306|  2.42M|        } else {
10306|  2.42M|          h(v);
10306|  2.42M|        }
10306|  2.42M|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  2.42M|        err = v.get(h);
10306|  2.42M|      }
10306|  2.42M|    }
10306|  2.42M|  };
10306|  2.42M|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  2.42M|  return err;
10307|  2.42M|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm0EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 508k, False: 1.91M]
  ------------------
10305|   508k|      auto&& h = std::get<I>(handlers);
10305|   508k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   508k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   508k|        err = v.get(h);
10306|   508k|      }
10306|   508k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm1EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 724k, False: 1.70M]
  ------------------
10305|   724k|      auto&& h = std::get<I>(handlers);
10305|   724k|      using H = std::remove_reference_t<decltype(h)>;
10305|   724k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   724k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   724k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   724k|    }
10306|  2.42M|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS7_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS8_tlS9_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS7_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRN8fastgltf4math3vecIfLm4EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS2_5valueEE_RfSW_SV_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSX_:
10349|   724k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   724k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 13, False: 724k]
  ------------------
10350|   724k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   724k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS5_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS6_tlS7_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS5_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEJRN8fastgltf4math3vecIfLm4EEEZNSE_15readTextureInfoINSE_14basic_optionalINSE_11TextureInfoENSE_15flagged_storageISL_EEEEEEDaRT_NSE_10ExtensionsEEUlNS1_5valueEE_RfSU_ST_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10309|   724k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   724k|  using Selector = key_selector<Keys...>;
10309|   724k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   724k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS7_tlS8_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRN8fastgltf4math3vecIfLm4EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_RfSW_SV_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10308|   724k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   724k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   724k|  return this->template for_each<Selector>(
10308|   724k|      [&](std::size_t i, value v) -> error_code {
10308|   724k|        return key_selector_for_each_detail::dispatch_value(
10308|   724k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   724k|      });
10309|   724k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS7_tlS8_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEZNS2_8for_eachISF_JRN8fastgltf4math3vecIfLm4EEEZNSH_15readTextureInfoINSH_14basic_optionalINSH_11TextureInfoENSH_15flagged_storageISO_EEEEEEDaRT_NSH_10ExtensionsEEUlNS1_5valueEE_RfSX_SW_EQaaaa17key_selector_typeISS_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSY_EUlmSV_E_Qaa17key_selector_typeISS_Esr3stdE14is_invocable_vIRT0_mSV_EEESZ_OS13_:
10296|   724k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   724k|  value_iterator it = iter;
10297|   724k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   724k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   724k|  std::array<std::uint64_t, seen_words> seen{};
10298|  1.50M|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 786k, False: 719k]
  ------------------
10298|   786k|    raw_json_string key;
10298|   786k|    error_code error;
10298|   786k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   786k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   786k|      std::size_t key_len;
10299|   786k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 38, False: 786k]
  ------------------
10299|   786k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 11, False: 786k]
  ------------------
10300|   786k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   786k|    }
10300|   786k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 635k, False: 150k]
  ------------------
10300|   635k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   635k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   635k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 628k, False: 6.99k]
  ------------------
10300|   628k|        seen_word |= seen_bit;
10300|   628k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   628k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   628k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 457, False: 628k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   628k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 4.39k, False: 624k]
  ------------------
10302|   628k|      }
10302|   635k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   781k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 781k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   781k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 8, False: 781k]
  ------------------
10303|   781k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 77, False: 781k]
  ------------------
10303|   781k|  }
10303|   724k|  return {SUCCESS, matched};
10303|   724k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS5_tlS6_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE9match_rawEPKcm:
95964|   786k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   786k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 750, False: 785k]
  |  Branch (95965:25): [True: 52.7k, False: 732k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   732k|        std::size_t slot;
95981|   732k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 732k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   732k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   732k|            std::size_t h = len;
95996|  1.46M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 732k, False: 732k]
  ------------------
95997|   732k|                std::uint8_t pos = phf.positions[i];
95998|   732k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 732k]
  ------------------
95999|   732k|                                  ? (len - std::size_t{1})
96000|   732k|                                  : static_cast<std::size_t>(pos);
96001|   732k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 732k, False: 0]
  ------------------
96002|   732k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|   732k|                }
96004|   732k|            }
96005|   732k|            slot = h & (table_size - 1);
96006|   732k|        }
96007|       |
96008|   732k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   732k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 30.0k, False: 702k]
  ------------------
96010|   702k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 24.6k, False: 677k]
  ------------------
96011|   677k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 42.1k, False: 635k]
  ------------------
96012|   677k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   635k|        return ki;
96014|   677k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS5_tlS6_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS4_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEE4sizeEv:
95952|  1.41M|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm16EEEtlA16_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm17EEEtlA17_cLc98ELc97ELc115ELc101ELc67ELc111ELc108ELc111ELc114ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlS7_tlS8_Lc114ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc70ELc97ELc99ELc116ELc111ELc114EEEEXtlNS6_ILm25EEEtlA25_cLc109ELc101ELc116ELc97ELc108ELc108ELc105ELc99ELc82ELc111ELc117ELc103ELc104ELc110ELc101ELc115ELc115ELc84ELc101ELc120ELc116ELc117ELc114ELc101EEEEEEEJRN8fastgltf4math3vecIfLm4EEEZNSG_15readTextureInfoINSG_14basic_optionalINSG_11TextureInfoENSG_15flagged_storageISN_EEEEEEDaRT_NSG_10ExtensionsEEUlNS1_5valueEE_RfSW_SV_EQaaaa17key_selector_typeISR_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_ENKUlmSU_E_clEmSU_:
10308|   628k|      [&](std::size_t i, value v) -> error_code {
10308|   628k|        return key_selector_for_each_detail::dispatch_value(
10308|   628k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   628k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSN_SM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   628k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   628k|  error_code err = SUCCESS;
10304|   628k|  auto try_one = [&](auto Ic) {
10305|   628k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   628k|    if (idx == I) {
10305|   628k|      auto&& h = std::get<I>(handlers);
10305|   628k|      using H = std::remove_reference_t<decltype(h)>;
10305|   628k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   628k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   628k|          err = h(v);
10306|   628k|        } else {
10306|   628k|          h(v);
10306|   628k|        }
10306|   628k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   628k|        err = v.get(h);
10306|   628k|      }
10306|   628k|    }
10306|   628k|  };
10306|   628k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   628k|  return err;
10307|   628k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSN_SM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|   628k|  auto try_one = [&](auto Ic) {
10305|   628k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   628k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 169k, False: 459k]
  ------------------
10305|   169k|      auto&& h = std::get<I>(handlers);
10305|   169k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   169k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   169k|        err = v.get(h);
10306|   169k|      }
10306|   169k|    }
10306|   628k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSN_SM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|   628k|  auto try_one = [&](auto Ic) {
10305|   628k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   628k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 90.8k, False: 537k]
  ------------------
10305|  90.8k|      auto&& h = std::get<I>(handlers);
10305|  90.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  90.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  90.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  90.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  90.8k|    }
10306|   628k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSN_SM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|   628k|  auto try_one = [&](auto Ic) {
10305|   628k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   628k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 144k, False: 484k]
  ------------------
10305|   144k|      auto&& h = std::get<I>(handlers);
10305|   144k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   144k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   144k|        err = v.get(h);
10306|   144k|      }
10306|   144k|    }
10306|   628k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSN_SM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|   628k|  auto try_one = [&](auto Ic) {
10305|   628k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   628k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 165k, False: 463k]
  ------------------
10305|   165k|      auto&& h = std::get<I>(handlers);
10305|   165k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   165k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   165k|        err = v.get(h);
10306|   165k|      }
10306|   165k|    }
10306|   628k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm4EEEOZNS6_15readTextureInfoINS6_14basic_optionalINS6_11TextureInfoENS6_15flagged_storageISD_EEEEEEDaRT_NS6_10ExtensionsEEUlNS1_5valueEE_RfSN_SM_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmSI_SK_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm4EEEEEDaSH_:
10304|   628k|  auto try_one = [&](auto Ic) {
10305|   628k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   628k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 58.5k, False: 570k]
  ------------------
10305|  58.5k|      auto&& h = std::get<I>(handlers);
10305|  58.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|  58.5k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  58.5k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  58.5k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  58.5k|    }
10306|   628k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm2EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 90.1k, False: 2.33M]
  ------------------
10305|  90.1k|      auto&& h = std::get<I>(handlers);
10305|  90.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  90.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  90.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  90.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  90.1k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm3EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 116k, False: 2.30M]
  ------------------
10305|   116k|      auto&& h = std::get<I>(handlers);
10305|   116k|      using H = std::remove_reference_t<decltype(h)>;
10305|   116k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   116k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   116k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   116k|    }
10306|  2.42M|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS7_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS8_tlS9_Lc115ELc99ELc97ELc108ELc101EEEEXtlSA_tlSB_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS7_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_20OcclusionTextureInfoEEENS_10error_codeENS2_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS11_:
10349|   116k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   116k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 12, False: 116k]
  ------------------
10350|   116k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   116k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS5_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS6_tlS7_Lc115ELc99ELc97ELc108ELc101EEEEXtlS8_tlS9_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEERmRKZNSC_16parseTextureInfoINSC_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NSC_10ExtensionsEEUlSM_E_RKZNSJ_ISK_EESL_SM_SO_SP_EUlSM_E0_RKZNSJ_ISK_EESL_SM_SO_SP_EUlSM_E1_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_:
10309|   116k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   116k|  using Selector = key_selector<Keys...>;
10309|   116k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   116k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_:
10308|   116k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   116k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   116k|  return this->template for_each<Selector>(
10308|   116k|      [&](std::size_t i, value v) -> error_code {
10308|   116k|        return key_selector_for_each_detail::dispatch_value(
10308|   116k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   116k|      });
10309|   116k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEERmRKZNSF_16parseTextureInfoINSF_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NSF_10ExtensionsEEUlSP_E_RKZNSM_ISN_EESO_SP_SR_SS_EUlSP_E0_RKZNSM_ISN_EESO_SP_SR_SS_EUlSP_E1_EQaaaa17key_selector_typeISQ_EeqsZT0_clsrSQ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS12_EUlmSP_E_Qaa17key_selector_typeISQ_Esr3stdE14is_invocable_vIRT0_mSP_EEES13_OS17_:
10296|   116k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   116k|  value_iterator it = iter;
10297|   116k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   116k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   116k|  std::array<std::uint64_t, seen_words> seen{};
10298|   381k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 265k, False: 115k]
  ------------------
10298|   265k|    raw_json_string key;
10298|   265k|    error_code error;
10298|   265k|    std::size_t idx;
10298|   265k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   265k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 67, False: 265k]
  ------------------
10299|   265k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 23, False: 265k]
  ------------------
10299|   265k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   265k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 243k, False: 22.7k]
  ------------------
10300|   243k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   243k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   243k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 241k, False: 2.06k]
  ------------------
10300|   241k|        seen_word |= seen_bit;
10300|   241k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   241k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   241k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 487, False: 240k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   241k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 91, False: 240k]
  ------------------
10302|   241k|      }
10302|   243k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   265k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 265k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   265k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 55, False: 265k]
  ------------------
10303|   265k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 204, False: 265k]
  ------------------
10303|   265k|  }
10303|   115k|  return {SUCCESS, matched};
10303|   116k|}
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc105ELc110ELc100ELc101ELc120EEEEXtlNS6_ILm9EEEtlA9_cLc116ELc101ELc120ELc67ELc111ELc111ELc114ELc100EEEEXtlS7_tlS8_Lc115ELc99ELc97ELc108ELc101EEEEXtlS9_tlSA_Lc115ELc116ELc114ELc101ELc110ELc103ELc116ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEERmRKZNSE_16parseTextureInfoINSE_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NSE_10ExtensionsEEUlSO_E_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E0_RKZNSL_ISM_EESN_SO_SQ_SR_EUlSO_E1_EQaaaa17key_selector_typeISP_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_ENKUlmSO_E_clEmSO_:
10308|   241k|      [&](std::size_t i, value v) -> error_code {
10308|   241k|        return key_selector_for_each_detail::dispatch_value(
10308|   241k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   241k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   241k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   241k|  error_code err = SUCCESS;
10304|   241k|  auto try_one = [&](auto Ic) {
10305|   241k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   241k|    if (idx == I) {
10305|   241k|      auto&& h = std::get<I>(handlers);
10305|   241k|      using H = std::remove_reference_t<decltype(h)>;
10305|   241k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   241k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   241k|          err = h(v);
10306|   241k|        } else {
10306|   241k|          h(v);
10306|   241k|        }
10306|   241k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   241k|        err = v.get(h);
10306|   241k|      }
10306|   241k|    }
10306|   241k|  };
10306|   241k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   241k|  return err;
10307|   241k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|   241k|  auto try_one = [&](auto Ic) {
10305|   241k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   241k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 115k, False: 125k]
  ------------------
10305|   115k|      auto&& h = std::get<I>(handlers);
10305|   115k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   115k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   115k|        err = v.get(h);
10306|   115k|      }
10306|   115k|    }
10306|   241k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|   241k|  auto try_one = [&](auto Ic) {
10305|   241k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   241k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 27.8k, False: 213k]
  ------------------
10305|  27.8k|      auto&& h = std::get<I>(handlers);
10305|  27.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  27.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  27.8k|        err = v.get(h);
10306|  27.8k|      }
10306|  27.8k|    }
10306|   241k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|   241k|  auto try_one = [&](auto Ic) {
10305|   241k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   241k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 350, False: 240k]
  ------------------
10305|    350|      auto&& h = std::get<I>(handlers);
10305|    350|      using H = std::remove_reference_t<decltype(h)>;
10305|    350|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    350|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    350|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    350|    }
10306|   241k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|   241k|  auto try_one = [&](auto Ic) {
10305|   241k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   241k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 65.4k, False: 175k]
  ------------------
10305|  65.4k|      auto&& h = std::get<I>(handlers);
10305|  65.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|  65.4k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  65.4k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  65.4k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  65.4k|    }
10306|   241k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERmRKZNS6_16parseTextureInfoINS6_20OcclusionTextureInfoEEENS_10error_codeENS1_5valueERT_NS6_10ExtensionsEEUlSG_E_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E0_RKZNSD_ISE_EESF_SG_SI_SJ_EUlSG_E1_EEEJLm0ELm1ELm2ELm3ELm4EEEESF_mSI_SG_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm4EEEEEDaSH_:
10304|   241k|  auto try_one = [&](auto Ic) {
10305|   241k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   241k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 32.1k, False: 208k]
  ------------------
10305|  32.1k|      auto&& h = std::get<I>(handlers);
10305|  32.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  32.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  32.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  32.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  32.1k|    }
10306|   241k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm4EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 26.2k, False: 2.39M]
  ------------------
10305|  26.2k|      auto&& h = std::get<I>(handlers);
10305|  26.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  26.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  26.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  26.2k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  26.2k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm5EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 57.0k, False: 2.36M]
  ------------------
10305|  57.0k|      auto&& h = std::get<I>(handlers);
10305|  57.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  57.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  57.0k|        err = v.get(h);
10306|  57.0k|      }
10306|  57.0k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm6EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 45.2k, False: 2.37M]
  ------------------
10305|  45.2k|      auto&& h = std::get<I>(handlers);
10305|  45.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  45.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  45.2k|        err = v.get(h);
10306|  45.2k|      }
10306|  45.2k|    }
10306|  2.42M|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf9AlphaModeEEENS_10error_codeERT_:
89907|  45.2k| {
89908|  45.2k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  45.2k|  if constexpr (custom_deserializable<T, value>) {
89910|  45.2k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  45.2k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf9AlphaModeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  45.2k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  45.2k|    return tag_invoke(*this, object, output);
89263|  45.2k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc79ELc80ELc65ELc81ELc85ELc69EEEEXtlNS4_ILm5EEEtlA5_cLc77ELc65ELc83ELc75EEEEXtlNS4_ILm6EEEtlA6_cLc66ELc76ELc69ELc78ELc68EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  45.2k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  45.2k|        const char* p = rjs.raw();
96024|  45.2k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  45.2k|            std::uint8_t ki = window.window_to_key[
96030|  45.2k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  45.2k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 4, False: 45.2k]
  ------------------
96032|  45.2k|            return key_selector_detail::match_window_candidate(
96033|  45.2k|                p, ki, window, std::make_index_sequence<N>{});
96034|  45.2k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  45.2k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm6EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  95.5k|                       std::index_sequence<Is...>) noexcept {
95865|  95.5k|  std::size_t result = N;
95866|  95.5k|  auto try_match = [&](auto Ic) {
95867|  95.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  95.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  95.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  95.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  95.5k|      result = i;
95872|  95.5k|    }
95873|  95.5k|  };
95874|  95.5k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  95.5k|  return result;
95876|  95.5k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm6EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  95.5k|  auto try_match = [&](auto Ic) {
95867|  95.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  95.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 36.9k, False: 58.5k]
  |  Branch (95868:20): [True: 35.7k, False: 1.18k]
  ------------------
95869|  35.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 34.8k, False: 886]
  ------------------
95870|  35.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  34.8k|      result = i;
95872|  34.8k|    }
95873|  95.5k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm6EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  95.5k|  auto try_match = [&](auto Ic) {
95867|  95.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  95.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 52.5k, False: 43.0k]
  |  Branch (95868:20): [True: 48.7k, False: 3.80k]
  ------------------
95869|  48.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 47.3k, False: 1.31k]
  ------------------
95870|  48.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  47.3k|      result = i;
95872|  47.3k|    }
95873|  95.5k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm6EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  95.5k|  auto try_match = [&](auto Ic) {
95867|  95.5k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  95.5k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 6.07k, False: 89.4k]
  |  Branch (95868:20): [True: 5.34k, False: 727]
  ------------------
95869|  5.34k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 4.77k, False: 573]
  ------------------
95870|  5.34k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  4.77k|      result = i;
95872|  4.77k|    }
95873|  95.5k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm7EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 20.0k, False: 2.40M]
  ------------------
10305|  20.0k|      auto&& h = std::get<I>(handlers);
10305|  20.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  20.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.0k|        err = v.get(h);
10306|  20.0k|      }
10306|  20.0k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm8EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 61.4k, False: 2.36M]
  ------------------
10305|  61.4k|      auto&& h = std::get<I>(handlers);
10305|  61.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  61.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  61.4k|        err = v.get(h);
10306|  61.4k|      }
10306|  61.4k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm9EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 775k, False: 1.64M]
  ------------------
10305|   775k|      auto&& h = std::get<I>(handlers);
10305|   775k|      using H = std::remove_reference_t<decltype(h)>;
10305|   775k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   775k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   775k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   775k|    }
10306|  2.42M|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZN8fastgltf6Parser14parseMaterialsERNSD_8internal9JsonArrayERNSD_5AssetEE3$_2OZNSD_15readTextureInfoINSD_14basic_optionalINSD_17NormalTextureInfoENSD_15flagged_storageISP_EEEEEEDaRT_NSD_10ExtensionsEEUlNS1_5valueEE_OZNSN_INSO_INSD_20OcclusionTextureInfoENSD_13boxed_storageISZ_NS9_ISZ_EEEEEEEEDaSU_SV_EUlSW_E_OZNSN_INSO_INSD_11TextureInfoENS10_IS16_NS9_IS16_EEEEEEEEDaSU_SV_EUlSW_E_RNSD_4math3vecIfLm3EEERNSD_9AlphaModeERfRbRKZNSE_14parseMaterialsESH_SJ_E3$_1RKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlSW_E_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10EEEENS_10error_codeEmSU_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlST_E_clINS4_17integral_constantImLm10EEEEEDaST_:
10304|  2.42M|  auto try_one = [&](auto Ic) {
10305|  2.42M|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.42M|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 222, False: 2.42M]
  ------------------
10305|    222|      auto&& h = std::get<I>(handlers);
10305|    222|      using H = std::remove_reference_t<decltype(h)>;
10305|    222|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    222|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    222|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    222|    }
10306|  2.42M|  };
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlNS5_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS6_tlS7_Lc75ELc72ELc82ELc95ELc103ELc97ELc117ELc115ELc115ELc105ELc97ELc110ELc95ELc115ELc112ELc108ELc97ELc116ELc116ELc105ELc110ELc103EEEEEJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNSA_8internal10JsonObjectERNSA_9PrimitiveEE3$_0RKZNSB_24parsePrimitiveExtensionsESE_SG_E3$_2RKZNSB_24parsePrimitiveExtensionsESE_SG_E3$_1EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_:
10309|  16.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  16.3k|  using Selector = key_selector<Keys...>;
10309|  16.3k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  16.3k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlNS6_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc103ELc97ELc117ELc115ELc115ELc105ELc97ELc110ELc95ELc115ELc112ELc108ELc97ELc116ELc116ELc105ELc110ELc103EEEEEEEJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNSC_8internal10JsonObjectERNSC_9PrimitiveEE3$_0RKZNSD_24parsePrimitiveExtensionsESG_SI_E3$_2RKZNSD_24parsePrimitiveExtensionsESG_SI_E3$_1EQaaaa17key_selector_typeIT_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_:
10308|  16.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  16.3k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  16.3k|  return this->template for_each<Selector>(
10308|  16.3k|      [&](std::size_t i, value v) -> error_code {
10308|  16.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  16.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  16.3k|      });
10309|  16.3k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlNS6_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc103ELc97ELc117ELc115ELc115ELc105ELc97ELc110ELc95ELc115ELc112ELc108ELc97ELc116ELc116ELc105ELc110ELc103EEEEEEEZNS2_8for_eachISB_JRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNSD_8internal10JsonObjectERNSD_9PrimitiveEE3$_0RKZNSE_24parsePrimitiveExtensionsESH_SJ_E3$_2RKZNSE_24parsePrimitiveExtensionsESH_SJ_E3$_1EQaaaa17key_selector_typeIT_EeqsZT0_clsrST_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSU_EUlmNS1_5valueEE_Qaa17key_selector_typeIST_Esr3stdE14is_invocable_vIRT0_mSY_EEESV_OS10_:
10296|  16.3k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  16.3k|  value_iterator it = iter;
10297|  16.3k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  16.3k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  16.3k|  std::array<std::uint64_t, seen_words> seen{};
10298|  38.7k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 22.5k, False: 16.2k]
  ------------------
10298|  22.5k|    raw_json_string key;
10298|  22.5k|    error_code error;
10298|  22.5k|    std::size_t idx;
10298|  22.5k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  22.5k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 17, False: 22.5k]
  ------------------
10299|  22.5k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 15, False: 22.4k]
  ------------------
10299|  22.4k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  22.5k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 13.0k, False: 9.48k]
  ------------------
10300|  13.0k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  13.0k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  13.0k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 12.9k, False: 129]
  ------------------
10300|  12.9k|        seen_word |= seen_bit;
10300|  12.9k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  12.9k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  12.9k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 266, False: 12.6k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  12.9k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 12.9k]
  ------------------
10302|  12.9k|      }
10302|  13.0k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  22.5k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 22.5k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  22.5k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 30, False: 22.4k]
  ------------------
10303|  22.4k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 23, False: 22.4k]
  ------------------
10303|  22.4k|  }
10303|  16.2k|  return {SUCCESS, matched};
10303|  16.3k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlNS4_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc103ELc97ELc117ELc115ELc115ELc105ELc97ELc110ELc95ELc115ELc112ELc108ELc97ELc116ELc116ELc105ELc110ELc103EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  22.4k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  22.4k|        const char* p = rjs.raw();
96024|  22.4k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  22.4k|            std::uint8_t ki = window.window_to_key[
96030|  22.4k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  22.4k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 3.22k, False: 19.2k]
  ------------------
96032|  19.2k|            return key_selector_detail::match_window_candidate(
96033|  19.2k|                p, ki, window, std::make_index_sequence<N>{});
96034|  22.4k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  22.4k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm26EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  19.2k|                       std::index_sequence<Is...>) noexcept {
95865|  19.2k|  std::size_t result = N;
95866|  19.2k|  auto try_match = [&](auto Ic) {
95867|  19.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  19.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  19.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  19.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  19.2k|      result = i;
95872|  19.2k|    }
95873|  19.2k|  };
95874|  19.2k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  19.2k|  return result;
95876|  19.2k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm26EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  19.2k|  auto try_match = [&](auto Ic) {
95867|  19.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  19.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 5.14k, False: 14.1k]
  |  Branch (95868:20): [True: 2.67k, False: 2.47k]
  ------------------
95869|  2.67k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 2.42k, False: 253]
  ------------------
95870|  2.67k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  2.42k|      result = i;
95872|  2.42k|    }
95873|  19.2k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm26EEEbPKcS5_m:
95612|  14.3k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|  14.3k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|  14.3k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|       |    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|       |        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|       |        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|       |        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|       |        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|       |        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|  14.3k|    } else if constexpr (MaxKeyLen <= 32) {
95644|  14.3k|        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|  14.3k|            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|  14.3k|        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|  14.3k|        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|  14.3k|        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|  14.3k|        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|  14.3k|        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|  14.3k|        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|  14.3k|        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|  14.3k|        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|  14.3k|        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|  14.3k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm26EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  19.2k|  auto try_match = [&](auto Ic) {
95867|  19.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  19.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.7k, False: 6.54k]
  |  Branch (95868:20): [True: 11.2k, False: 1.44k]
  ------------------
95869|  11.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.5k, False: 682]
  ------------------
95870|  11.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.5k|      result = i;
95872|  10.5k|    }
95873|  19.2k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm26EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  19.2k|  auto try_match = [&](auto Ic) {
95867|  19.2k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  19.2k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.39k, False: 17.8k]
  |  Branch (95868:20): [True: 369, False: 1.02k]
  ------------------
95869|    369|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 19, False: 350]
  ------------------
95870|    369|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|     19|      result = i;
95872|     19|    }
95873|  19.2k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlNS4_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc103ELc97ELc117ELc115ELc115ELc105ELc97ELc110ELc95ELc115ELc112ELc108ELc97ELc116ELc116ELc105ELc110ELc103EEEEEE4sizeEv:
95952|  35.1k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108ELc115ELc95ELc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEXtlNS6_ILm27EEEtlA27_cLc75ELc72ELc82ELc95ELc100ELc114ELc97ELc99ELc111ELc95ELc109ELc101ELc115ELc104ELc95ELc99ELc111ELc109ELc112ELc114ELc101ELc115ELc115ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc103ELc97ELc117ELc115ELc115ELc105ELc97ELc110ELc95ELc115ELc112ELc108ELc97ELc116ELc116ELc105ELc110ELc103EEEEEEEJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNSC_8internal10JsonObjectERNSC_9PrimitiveEE3$_0RKZNSD_24parsePrimitiveExtensionsESG_SI_E3$_2RKZNSD_24parsePrimitiveExtensionsESG_SI_E3$_1EQaaaa17key_selector_typeIT_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_ENKUlmNS1_5valueEE_clEmSX_:
10308|  12.9k|      [&](std::size_t i, value v) -> error_code {
10308|  12.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  12.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  12.9k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNS6_8internal10JsonObjectERNS6_9PrimitiveEE3$_0RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_2RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  12.9k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  12.9k|  error_code err = SUCCESS;
10304|  12.9k|  auto try_one = [&](auto Ic) {
10305|  12.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  12.9k|    if (idx == I) {
10305|  12.9k|      auto&& h = std::get<I>(handlers);
10305|  12.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|  12.9k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  12.9k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  12.9k|          err = h(v);
10306|  12.9k|        } else {
10306|  12.9k|          h(v);
10306|  12.9k|        }
10306|  12.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  12.9k|        err = v.get(h);
10306|  12.9k|      }
10306|  12.9k|    }
10306|  12.9k|  };
10306|  12.9k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  12.9k|  return err;
10307|  12.9k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNS6_8internal10JsonObjectERNS6_9PrimitiveEE3$_0RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_2RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm0EEEEEDaSO_:
10304|  12.9k|  auto try_one = [&](auto Ic) {
10305|  12.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  12.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 2.41k, False: 10.4k]
  ------------------
10305|  2.41k|      auto&& h = std::get<I>(handlers);
10305|  2.41k|      using H = std::remove_reference_t<decltype(h)>;
10305|  2.41k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  2.41k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  2.41k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  2.41k|    }
10306|  12.9k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEJRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNSA_8internal10JsonObjectERNSA_9PrimitiveEENK3$_0clENS2_5valueEEUlSI_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSM_:
10349|  2.41k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  2.41k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 2.41k]
  ------------------
10350|  2.41k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  2.41k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEJRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS8_8internal10JsonObjectERNS8_9PrimitiveEENK3$_0clENS1_5valueEEUlSG_E_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSK_:
10309|  2.41k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  2.41k|  using Selector = key_selector<Keys...>;
10309|  2.41k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  2.41k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEEEJRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNSA_8internal10JsonObjectERNSA_9PrimitiveEENK3$_0clENS1_5valueEEUlSI_E_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10308|  2.41k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  2.41k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  2.41k|  return this->template for_each<Selector>(
10308|  2.41k|      [&](std::size_t i, value v) -> error_code {
10308|  2.41k|        return key_selector_for_each_detail::dispatch_value(
10308|  2.41k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  2.41k|      });
10309|  2.41k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEEEZNS2_8for_eachIS9_JRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNSB_8internal10JsonObjectERNSB_9PrimitiveEENK3$_0clENS1_5valueEEUlSJ_E_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_EUlmSJ_E_Qaa17key_selector_typeISN_Esr3stdE14is_invocable_vIRT0_mSJ_EEESP_OST_:
10296|  2.41k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  2.41k|  value_iterator it = iter;
10297|  2.41k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  2.41k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  2.41k|  std::array<std::uint64_t, seen_words> seen{};
10298|  3.73k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 3.60k, False: 133]
  ------------------
10298|  3.60k|    raw_json_string key;
10298|  3.60k|    error_code error;
10298|  3.60k|    std::size_t idx;
10298|  3.60k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  3.60k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 5, False: 3.60k]
  ------------------
10299|  3.60k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 3, False: 3.59k]
  ------------------
10299|  3.59k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  3.60k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 2.37k, False: 1.23k]
  ------------------
10300|  2.37k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  2.37k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  2.37k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 2.37k, False: 0]
  ------------------
10300|  2.37k|        seen_word |= seen_bit;
10300|  2.37k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  2.37k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  2.37k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 115, False: 2.25k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  2.37k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 2.25k, False: 115]
  ------------------
10302|  2.37k|      }
10302|  2.37k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  1.34k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 1.34k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  1.34k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 7, False: 1.34k]
  ------------------
10303|  1.34k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 14, False: 1.32k]
  ------------------
10303|  1.34k|  }
10303|  2.39k|  return {SUCCESS, matched};
10303|  2.41k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  3.59k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  3.59k|        const char* p = rjs.raw();
96024|  3.59k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  3.59k|            std::uint8_t ki = window.window_to_key[
96030|  3.59k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  3.59k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 729, False: 2.86k]
  ------------------
96032|  2.86k|            return key_selector_detail::match_window_candidate(
96033|  2.86k|                p, ki, window, std::make_index_sequence<N>{});
96034|  3.59k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  3.59k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEE4sizeEv:
95952|  5.85k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc112ELc112ELc105ELc110ELc103ELc115EEEEEEEJRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNSA_8internal10JsonObjectERNSA_9PrimitiveEENK3$_0clENS1_5valueEEUlSI_E_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_ENKUlmSI_E_clEmSI_:
10308|  2.37k|      [&](std::size_t i, value v) -> error_code {
10308|  2.37k|        return key_selector_for_each_detail::dispatch_value(
10308|  2.37k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  2.37k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS6_8internal10JsonObjectERNS6_9PrimitiveEENK3$_0clENS1_5valueEEUlSE_E_EEEJLm0EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  2.37k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  2.37k|  error_code err = SUCCESS;
10304|  2.37k|  auto try_one = [&](auto Ic) {
10305|  2.37k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.37k|    if (idx == I) {
10305|  2.37k|      auto&& h = std::get<I>(handlers);
10305|  2.37k|      using H = std::remove_reference_t<decltype(h)>;
10305|  2.37k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  2.37k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  2.37k|          err = h(v);
10306|  2.37k|        } else {
10306|  2.37k|          h(v);
10306|  2.37k|        }
10306|  2.37k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  2.37k|        err = v.get(h);
10306|  2.37k|      }
10306|  2.37k|    }
10306|  2.37k|  };
10306|  2.37k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  2.37k|  return err;
10307|  2.37k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser24parsePrimitiveExtensionsERNS6_8internal10JsonObjectERNS6_9PrimitiveEENK3$_0clENS1_5valueEEUlSE_E_EEEJLm0EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm0EEEEEDaSK_:
10304|  2.37k|  auto try_one = [&](auto Ic) {
10305|  2.37k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  2.37k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 2.37k, False: 0]
  ------------------
10305|  2.37k|      auto&& h = std::get<I>(handlers);
10305|  2.37k|      using H = std::remove_reference_t<decltype(h)>;
10305|  2.37k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  2.37k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  2.37k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  2.37k|    }
10306|  2.37k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS8_tlS9_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__16vectorImNSG_9allocatorImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSM_:
10349|  5.28k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  5.28k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 28, False: 5.25k]
  ------------------
10350|  5.25k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  5.28k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS6_tlS7_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEJRN8fastgltf14basic_optionalImNS8_15flagged_storageImEEEERNSt3__16vectorImNSE_9allocatorImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSK_:
10309|  5.25k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  5.25k|  using Selector = key_selector<Keys...>;
10309|  5.25k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  5.25k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS7_tlS8_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__16vectorImNSG_9allocatorImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_:
10308|  5.25k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  5.25k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  5.25k|  return this->template for_each<Selector>(
10308|  5.25k|      [&](std::size_t i, value v) -> error_code {
10308|  5.25k|        return key_selector_for_each_detail::dispatch_value(
10308|  5.25k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  5.25k|      });
10309|  5.25k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS7_tlS8_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalImNSB_15flagged_storageImEEEERNSt3__16vectorImNSH_9allocatorImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_EUlmNS1_5valueEE_Qaa17key_selector_typeISN_Esr3stdE14is_invocable_vIRT0_mSS_EEESP_OSU_:
10296|  5.25k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  5.25k|  value_iterator it = iter;
10297|  5.25k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  5.25k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  5.25k|  std::array<std::uint64_t, seen_words> seen{};
10298|  16.7k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 16.7k, False: 62]
  ------------------
10298|  16.7k|    raw_json_string key;
10298|  16.7k|    error_code error;
10298|  16.7k|    std::size_t idx;
10298|  16.7k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  16.7k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 28, False: 16.7k]
  ------------------
10299|  16.7k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 5, False: 16.7k]
  ------------------
10299|  16.7k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  16.7k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 10.5k, False: 6.14k]
  ------------------
10300|  10.5k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  10.5k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  10.5k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 10.3k, False: 224]
  ------------------
10300|  10.3k|        seen_word |= seen_bit;
10300|  10.3k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  10.3k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  10.3k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 6, False: 10.3k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  10.3k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 5.17k, False: 5.19k]
  ------------------
10302|  10.3k|      }
10302|  10.5k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  11.5k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 11.5k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  11.5k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 3, False: 11.5k]
  ------------------
10303|  11.5k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 20, False: 11.5k]
  ------------------
10303|  11.5k|  }
10303|  5.23k|  return {SUCCESS, matched};
10303|  5.25k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS5_tlS6_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  16.7k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  16.7k|        const char* p = rjs.raw();
96024|  16.7k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  16.7k|            std::uint8_t ki = window.window_to_key[
96030|  16.7k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  16.7k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.74k, False: 13.9k]
  ------------------
96032|  13.9k|            return key_selector_detail::match_window_candidate(
96033|  13.9k|                p, ki, window, std::make_index_sequence<N>{});
96034|  16.7k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  16.7k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm8EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  13.9k|                       std::index_sequence<Is...>) noexcept {
95865|  13.9k|  std::size_t result = N;
95866|  13.9k|  auto try_match = [&](auto Ic) {
95867|  13.9k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.9k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  13.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  13.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  13.9k|      result = i;
95872|  13.9k|    }
95873|  13.9k|  };
95874|  13.9k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  13.9k|  return result;
95876|  13.9k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm8EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  13.9k|  auto try_match = [&](auto Ic) {
95867|  13.9k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.9k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 7.57k, False: 6.38k]
  |  Branch (95868:20): [True: 5.79k, False: 1.77k]
  ------------------
95869|  5.79k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 5.41k, False: 379]
  ------------------
95870|  5.79k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  5.41k|      result = i;
95872|  5.41k|    }
95873|  13.9k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm8EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  13.9k|  auto try_match = [&](auto Ic) {
95867|  13.9k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.9k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 6.38k, False: 7.57k]
  |  Branch (95868:20): [True: 5.87k, False: 515]
  ------------------
95869|  5.87k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 5.17k, False: 695]
  ------------------
95870|  5.87k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  5.17k|      result = i;
95872|  5.17k|    }
95873|  13.9k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS5_tlS6_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEE4sizeEv:
95952|  27.0k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS7_tlS8_Lc118ELc97ELc114ELc105ELc97ELc110ELc116ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__16vectorImNSG_9allocatorImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_ENKUlmNS1_5valueEE_clEmSR_:
10308|  10.3k|      [&](std::size_t i, value v) -> error_code {
10308|  10.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.3k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  10.3k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  10.3k|  error_code err = SUCCESS;
10304|  10.3k|  auto try_one = [&](auto Ic) {
10305|  10.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.3k|    if (idx == I) {
10305|  10.3k|      auto&& h = std::get<I>(handlers);
10305|  10.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.3k|          err = h(v);
10306|  10.3k|        } else {
10306|  10.3k|          h(v);
10306|  10.3k|        }
10306|  10.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.3k|        err = v.get(h);
10306|  10.3k|      }
10306|  10.3k|    }
10306|  10.3k|  };
10306|  10.3k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  10.3k|  return err;
10307|  10.3k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm0EEEEEDaSJ_:
10304|  10.3k|  auto try_one = [&](auto Ic) {
10305|  10.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 5.19k, False: 5.17k]
  ------------------
10305|  5.19k|      auto&& h = std::get<I>(handlers);
10305|  5.19k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  5.19k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  5.19k|        err = v.get(h);
10306|  5.19k|      }
10306|  5.19k|    }
10306|  10.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSJ_E_clINS4_17integral_constantImLm1EEEEEDaSJ_:
10304|  10.3k|  auto try_one = [&](auto Ic) {
10305|  10.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 5.17k, False: 5.19k]
  ------------------
10305|  5.17k|      auto&& h = std::get<I>(handlers);
10305|  5.17k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  5.17k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  5.17k|        err = v.get(h);
10306|  5.17k|      }
10306|  5.17k|    }
10306|  10.3k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorImNS4_9allocatorImEEEEEENS_10error_codeERT_:
89907|   109k| {
89908|   109k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   109k|  if constexpr (custom_deserializable<T, value>) {
89910|   109k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   109k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorImNS2_9allocatorImEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|   109k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   109k|    return tag_invoke(*this, object, output);
89263|   109k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorImNS2_9allocatorImEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|   109k|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|   109k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|   109k|  static_assert(
97478|   109k|      deserializable<value_type, ValT>,
97479|   109k|      "The specified type inside the container must itself be deserializable");
97480|   109k|  static_assert(
97481|   109k|      std::is_default_constructible_v<value_type>,
97482|   109k|      "The specified type inside the container must be default constructible.");
97483|   109k|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|   109k|  } else {
97487|   109k|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|   109k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 15, False: 109k]
  |  |  ------------------
  ------------------
97488|   109k|  }
97489|       |
97490|   109k|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|   109k|    struct scratch_space {
97499|   109k|      std::vector<value_type> elements{};
97500|   109k|      bool busy{false};
97501|   109k|    };
97502|   109k|    static thread_local scratch_space scratch;
97503|   109k|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 109k, False: 15]
  |  Branch (97503:26): [True: 109k, False: 0]
  ------------------
97504|   109k|      struct release_scratch {
97505|   109k|        scratch_space &s;
97506|   109k|        T &out;
97507|   109k|        size_t parsed{0};
97508|   109k|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|   109k|        simdjson_never_inline void keep_parsed() noexcept {
97512|   109k|          s.elements.resize(parsed);
97513|   109k|          out.swap(s.elements);
97514|   109k|        }
97515|   109k|        ~release_scratch() {
97516|   109k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|   109k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|   109k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|   109k|          s.busy = false;
97521|   109k|        }
97522|   109k|      } release{scratch, out};
97523|   109k|      scratch.busy = true;
97524|  1.88M|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 1.88M, False: 109k]
  ------------------
97525|  1.88M|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|  1.88M|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 113, False: 1.88M]
  |  |  ------------------
  ------------------
97526|  1.88M|        release.parsed++;
97527|  1.88M|      }
97528|   109k|      out.reserve(release.parsed);
97529|   109k|      release.complete = true;
97530|  1.88M|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 1.88M, False: 109k]
  ------------------
97531|   109k|      return SUCCESS;
97532|   109k|    }
97533|   109k|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|   109k|  } else {
97544|   109k|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 109k]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|   109k|  }
97554|   109k|  return SUCCESS;
97555|   109k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getImEENS_10error_codeERT_:
99449|  1.88M|{
99450|  1.88M|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 11, False: 1.88M]
  ------------------
99451|  1.88M|  return first.get<T>(out);
99452|  1.88M|}
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorImNS2_9allocatorImEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|   109k|        ~release_scratch() {
97516|   109k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|   109k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 113, False: 109k]
  |  |  ------------------
  ------------------
97517|   109k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|   109k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 4, False: 109k]
  ------------------
97520|   109k|          s.busy = false;
97521|   109k|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorImNS2_9allocatorImEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|    113|        simdjson_never_inline void keep_parsed() noexcept {
97512|    113|          s.elements.resize(parsed);
97513|    113|          out.swap(s.elements);
97514|    113|        }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNS6_8internal10JsonObjectERNS6_9PrimitiveEE3$_0RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_2RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm1EEEEEDaSO_:
10304|  12.9k|  auto try_one = [&](auto Ic) {
10305|  12.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  12.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.4k, False: 2.43k]
  ------------------
10305|  10.4k|      auto&& h = std::get<I>(handlers);
10305|  10.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.4k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.4k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.4k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  10.4k|    }
10306|  12.9k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS8_tlS9_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__16vectorINSA_9AttributeENSG_9allocatorISI_EEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSN_:
10349|  10.4k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  10.4k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 2, False: 10.4k]
  ------------------
10350|  10.4k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  10.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS6_tlS7_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEJRN8fastgltf14basic_optionalImNS8_15flagged_storageImEEEERNSt3__16vectorINS8_9AttributeENSE_9allocatorISG_EEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_:
10309|  10.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  10.4k|  using Selector = key_selector<Keys...>;
10309|  10.4k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  10.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__16vectorINSA_9AttributeENSG_9allocatorISI_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_:
10308|  10.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  10.4k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  10.4k|  return this->template for_each<Selector>(
10308|  10.4k|      [&](std::size_t i, value v) -> error_code {
10308|  10.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.4k|      });
10309|  10.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalImNSB_15flagged_storageImEEEERNSt3__16vectorINSB_9AttributeENSH_9allocatorISJ_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_EUlmNS1_5valueEE_Qaa17key_selector_typeISO_Esr3stdE14is_invocable_vIRT0_mST_EEESQ_OSV_:
10296|  10.4k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  10.4k|  value_iterator it = iter;
10297|  10.4k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  10.4k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  10.4k|  std::array<std::uint64_t, seen_words> seen{};
10298|   140k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 140k, False: 61]
  ------------------
10298|   140k|    raw_json_string key;
10298|   140k|    error_code error;
10298|   140k|    std::size_t idx;
10298|   140k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   140k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 18, False: 140k]
  ------------------
10299|   140k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 12, False: 140k]
  ------------------
10299|   140k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   140k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 22.9k, False: 117k]
  ------------------
10300|  22.9k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  22.9k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  22.9k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 20.7k, False: 2.13k]
  ------------------
10300|  20.7k|        seen_word |= seen_bit;
10300|  20.7k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  20.7k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  20.7k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 3, False: 20.7k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  20.7k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 10.3k, False: 10.4k]
  ------------------
10302|  20.7k|      }
10302|  22.9k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   130k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 130k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   130k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 8, False: 130k]
  ------------------
10303|   130k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 17, False: 129k]
  ------------------
10303|   130k|  }
10303|  10.4k|  return {SUCCESS, matched};
10303|  10.4k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   140k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   140k|        const char* p = rjs.raw();
96024|   140k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   140k|            std::uint8_t ki = window.window_to_key[
96030|   140k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   140k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 111k, False: 28.9k]
  ------------------
96032|  28.9k|            return key_selector_detail::match_window_candidate(
96033|  28.9k|                p, ki, window, std::make_index_sequence<N>{});
96034|   140k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   140k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS5_tlS6_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEE4sizeEv:
95952|   161k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc98ELc117ELc102ELc102ELc101ELc114ELc86ELc105ELc101ELc119EEEEXtlS7_tlS8_Lc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEERNSt3__16vectorINSA_9AttributeENSG_9allocatorISI_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_ENKUlmNS1_5valueEE_clEmSS_:
10308|  20.7k|      [&](std::size_t i, value v) -> error_code {
10308|  20.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  20.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  20.7k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorINS6_9AttributeENS4_9allocatorISD_EEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  20.7k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  20.7k|  error_code err = SUCCESS;
10304|  20.7k|  auto try_one = [&](auto Ic) {
10305|  20.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  20.7k|    if (idx == I) {
10305|  20.7k|      auto&& h = std::get<I>(handlers);
10305|  20.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|  20.7k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  20.7k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  20.7k|          err = h(v);
10306|  20.7k|        } else {
10306|  20.7k|          h(v);
10306|  20.7k|        }
10306|  20.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.7k|        err = v.get(h);
10306|  20.7k|      }
10306|  20.7k|    }
10306|  20.7k|  };
10306|  20.7k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  20.7k|  return err;
10307|  20.7k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorINS6_9AttributeENS4_9allocatorISD_EEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm0EEEEEDaSK_:
10304|  20.7k|  auto try_one = [&](auto Ic) {
10305|  20.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  20.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.4k, False: 10.3k]
  ------------------
10305|  10.4k|      auto&& h = std::get<I>(handlers);
10305|  10.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  10.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.4k|        err = v.get(h);
10306|  10.4k|      }
10306|  10.4k|    }
10306|  20.7k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorINS6_9AttributeENS4_9allocatorISD_EEEEEEEJLm0ELm1EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm1EEEEEDaSK_:
10304|  20.7k|  auto try_one = [&](auto Ic) {
10305|  20.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  20.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.3k, False: 10.4k]
  ------------------
10305|  10.3k|      auto&& h = std::get<I>(handlers);
10305|  10.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  10.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.3k|        err = v.get(h);
10306|  10.3k|      }
10306|  10.3k|    }
10306|  20.7k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorIN8fastgltf9AttributeENS4_9allocatorIS7_EEEEEENS_10error_codeERT_:
89907|   113k| {
89908|   113k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   113k|  if constexpr (custom_deserializable<T, value>) {
89910|   113k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   113k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorIN8fastgltf9AttributeENS2_9allocatorIS5_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|   113k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   113k|    return tag_invoke(*this, object, output);
89263|   113k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5fieldEE13unescaped_keyINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEENS_10error_codeERT_b:
10182|   316k|simdjson_warn_unused simdjson_inline error_code simdjson_result<fallback::ondemand::field>::unescaped_key(string_type &receiver, bool allow_replacement) noexcept {
10182|   316k|  if (error()) { return error(); }
  ------------------
  |  Branch (101828:7): [True: 0, False: 316k]
  ------------------
10182|   316k|  return first.unescaped_key(receiver, allow_replacement);
10183|   316k|}
_ZN8simdjson8fallback8ondemand5field13unescaped_keyINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS_10error_codeERT_b:
10173|   316k|simdjson_inline simdjson_warn_unused error_code field::unescaped_key(string_type& receiver, bool allow_replacement) noexcept {
10173|   316k|  SIMDJSON_ASSUME(first.buf != nullptr); // We would like to call .alive() but Visual Studio won't let us.
  ------------------
  |  |  538|   316k|#define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
  |  |  ------------------
  |  |  |  Branch (538:40): [True: 0, False: 316k]
  |  |  |  Branch (538:83): [Folded, False: 316k]
  |  |  ------------------
  ------------------
10173|   316k|  error_code key_error = second.iter.json_iter().unescape(first, receiver, allow_replacement);
10173|   316k|  first.consume();
10173|   316k|  return key_error;
10173|   316k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEEEENS_10error_codeERT_:
99449|   316k|{
99450|   316k|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 0, False: 316k]
  ------------------
99451|   316k|  return first.get<T>(out);
99452|   316k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser24parsePrimitiveExtensionsERNS6_8internal10JsonObjectERNS6_9PrimitiveEE3$_0RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_2RKZNS7_24parsePrimitiveExtensionsESA_SC_E3$_1EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm2EEEEEDaSO_:
10304|  12.9k|  auto try_one = [&](auto Ic) {
10305|  12.9k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  12.9k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 19, False: 12.8k]
  ------------------
10305|     19|      auto&& h = std::get<I>(handlers);
10305|     19|      using H = std::remove_reference_t<decltype(h)>;
10305|     19|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|     19|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|     19|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|     19|    }
10306|  12.9k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc107ELc101ELc114ELc110ELc101ELc108EEEEXtlNS7_ILm11EEEtlA11_cLc99ELc111ELc108ELc111ELc114ELc83ELc112ELc97ELc99ELc101EEEEXtlSA_tlSB_Lc112ELc114ELc111ELc106ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm14EEEtlA14_cLc115ELc111ELc114ELc116ELc105ELc110ELc103ELc77ELc101ELc116ELc104ELc111ELc100EEEEEJRNSt3__18optionalIN8fastgltf14GaussianKernelEEERNSF_INSG_10ColorSpaceEEERNSG_10ProjectionERNSG_13SortingMethodEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSR_:
10349|     19|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|     19|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 2, False: 17]
  ------------------
10350|     17|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|     19|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc107ELc101ELc114ELc110ELc101ELc108EEEEXtlNS5_ILm11EEEtlA11_cLc99ELc111ELc108ELc111ELc114ELc83ELc112ELc97ELc99ELc101EEEEXtlS8_tlS9_Lc112ELc114ELc111ELc106ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm14EEEtlA14_cLc115ELc111ELc114ELc116ELc105ELc110ELc103ELc77ELc101ELc116ELc104ELc111ELc100EEEEEJRNSt3__18optionalIN8fastgltf14GaussianKernelEEERNSD_INSE_10ColorSpaceEEERNSE_10ProjectionERNSE_13SortingMethodEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10309|     17|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|     17|  using Selector = key_selector<Keys...>;
10309|     17|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|     17|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc107ELc101ELc114ELc110ELc101ELc108EEEEXtlNS6_ILm11EEEtlA11_cLc99ELc111ELc108ELc111ELc114ELc83ELc112ELc97ELc99ELc101EEEEXtlS9_tlSA_Lc112ELc114ELc111ELc106ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm14EEEtlA14_cLc115ELc111ELc114ELc116ELc105ELc110ELc103ELc77ELc101ELc116ELc104ELc111ELc100EEEEEEEJRNSt3__18optionalIN8fastgltf14GaussianKernelEEERNSF_INSG_10ColorSpaceEEERNSG_10ProjectionERNSG_13SortingMethodEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSR_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_:
10308|     17|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|     17|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|     17|  return this->template for_each<Selector>(
10308|     17|      [&](std::size_t i, value v) -> error_code {
10308|     17|        return key_selector_for_each_detail::dispatch_value(
10308|     17|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|     17|      });
10309|     17|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc107ELc101ELc114ELc110ELc101ELc108EEEEXtlNS6_ILm11EEEtlA11_cLc99ELc111ELc108ELc111ELc114ELc83ELc112ELc97ELc99ELc101EEEEXtlS9_tlSA_Lc112ELc114ELc111ELc106ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm14EEEtlA14_cLc115ELc111ELc114ELc116ELc105ELc110ELc103ELc77ELc101ELc116ELc104ELc111ELc100EEEEEEEZNS2_8for_eachISD_JRNSt3__18optionalIN8fastgltf14GaussianKernelEEERNSG_INSH_10ColorSpaceEEERNSH_10ProjectionERNSH_13SortingMethodEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSS_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_EUlmNS1_5valueEE_Qaa17key_selector_typeISS_Esr3stdE14is_invocable_vIRT0_mSX_EEESU_OSZ_:
10296|     17|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|     17|  value_iterator it = iter;
10297|     17|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|     17|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|     17|  std::array<std::uint64_t, seen_words> seen{};
10298|     63|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 49, False: 14]
  ------------------
10298|     49|    raw_json_string key;
10298|     49|    error_code error;
10298|     49|    std::size_t idx;
10298|     49|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|     49|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 4, False: 45]
  ------------------
10299|     45|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 1, False: 44]
  ------------------
10299|     44|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|     49|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 0, False: 49]
  ------------------
10300|      0|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|      0|      std::uint64_t &seen_word = seen[idx >> 6];
10300|      0|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 0, False: 0]
  ------------------
10300|      0|        seen_word |= seen_bit;
10300|      0|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|      0|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|      0|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 0, False: 0]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|      0|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 0]
  ------------------
10302|      0|      }
10302|      0|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|     49|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 49]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|     49|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 0, False: 49]
  ------------------
10303|     49|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 3, False: 46]
  ------------------
10303|     49|  }
10303|     14|  return {SUCCESS, matched};
10303|     17|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc107ELc101ELc114ELc110ELc101ELc108EEEEXtlNS4_ILm11EEEtlA11_cLc99ELc111ELc108ELc111ELc114ELc83ELc112ELc97ELc99ELc101EEEEXtlS7_tlS8_Lc112ELc114ELc111ELc106ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm14EEEtlA14_cLc115ELc111ELc114ELc116ELc105ELc110ELc103ELc77ELc101ELc116ELc104ELc111ELc100EEEEEE9match_rawENS1_15raw_json_stringE:
96022|     44|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|     44|        const char* p = rjs.raw();
96024|     44|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|     44|            std::uint8_t ki = window.window_to_key[
96030|     44|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|     44|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 39, False: 5]
  ------------------
96032|      5|            return key_selector_detail::match_window_candidate(
96033|      5|                p, ki, window, std::make_index_sequence<N>{});
96034|     44|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|     44|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm13EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|      5|                       std::index_sequence<Is...>) noexcept {
95865|      5|  std::size_t result = N;
95866|      5|  auto try_match = [&](auto Ic) {
95867|      5|    constexpr std::size_t i = decltype(Ic)::value;
95868|      5|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|      5|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|      5|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      5|      result = i;
95872|      5|    }
95873|      5|  };
95874|      5|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|      5|  return result;
95876|      5|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm13EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|      5|  auto try_match = [&](auto Ic) {
95867|      5|    constexpr std::size_t i = decltype(Ic)::value;
95868|      5|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 0, False: 5]
  |  Branch (95868:20): [True: 0, False: 0]
  ------------------
95869|      0|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 0]
  ------------------
95870|      0|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|      5|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm13EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|      5|  auto try_match = [&](auto Ic) {
95867|      5|    constexpr std::size_t i = decltype(Ic)::value;
95868|      5|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 0, False: 5]
  |  Branch (95868:20): [True: 0, False: 0]
  ------------------
95869|      0|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 0]
  ------------------
95870|      0|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|      5|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm13EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|      5|  auto try_match = [&](auto Ic) {
95867|      5|    constexpr std::size_t i = decltype(Ic)::value;
95868|      5|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 0, False: 5]
  |  Branch (95868:20): [True: 0, False: 0]
  ------------------
95869|      0|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 0]
  ------------------
95870|      0|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|      5|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm13EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|      5|  auto try_match = [&](auto Ic) {
95867|      5|    constexpr std::size_t i = decltype(Ic)::value;
95868|      5|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 5, False: 0]
  |  Branch (95868:20): [True: 0, False: 5]
  ------------------
95869|      0|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 0]
  ------------------
95870|      0|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|      5|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc107ELc101ELc114ELc110ELc101ELc108EEEEXtlNS4_ILm11EEEtlA11_cLc99ELc111ELc108ELc111ELc114ELc83ELc112ELc97ELc99ELc101EEEEXtlS7_tlS8_Lc112ELc114ELc111ELc106ELc101ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm14EEEtlA14_cLc115ELc111ELc114ELc116ELc105ELc110ELc103ELc77ELc101ELc116ELc104ELc111ELc100EEEEEE4sizeEv:
95952|     44|    static constexpr std::size_t size() noexcept { return N; }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm7EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  11.6k|                       std::index_sequence<Is...>) noexcept {
95865|  11.6k|  std::size_t result = N;
95866|  11.6k|  auto try_match = [&](auto Ic) {
95867|  11.6k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  11.6k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  11.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  11.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  11.6k|      result = i;
95872|  11.6k|    }
95873|  11.6k|  };
95874|  11.6k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  11.6k|  return result;
95876|  11.6k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm7EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  11.6k|  auto try_match = [&](auto Ic) {
95867|  11.6k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  11.6k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 11.6k, False: 0]
  |  Branch (95868:20): [True: 10.9k, False: 749]
  ------------------
95869|  10.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.6k, False: 251]
  ------------------
95870|  10.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.6k|      result = i;
95872|  10.6k|    }
95873|  11.6k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS7_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS7_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS7_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlSA_tlSB_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRKZN8fastgltf6Parser15parsePrimitivesERNSG_8internal9JsonArrayERNSG_4MeshEE3$_1RNSG_14basic_optionalImNSG_15flagged_storageImEEEESU_RNSG_13PrimitiveTypeERNSt3__16vectorINSY_INSG_9AttributeENSX_9allocatorISZ_EEEENS10_IS12_EEEERKZNSH_15parsePrimitivesESK_SM_E3$_0EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS19_:
10349|  87.7k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  87.7k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 28, False: 87.7k]
  ------------------
10350|  87.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  87.7k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS5_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS5_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS8_tlS9_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS6_tlS7_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEJRKZN8fastgltf6Parser15parsePrimitivesERNSE_8internal9JsonArrayERNSE_4MeshEE3$_1RNSE_14basic_optionalImNSE_15flagged_storageImEEEESS_RNSE_13PrimitiveTypeERNSt3__16vectorINSW_INSE_9AttributeENSV_9allocatorISX_EEEENSY_IS10_EEEERKZNSF_15parsePrimitivesESI_SK_E3$_0EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_:
10309|  87.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  87.7k|  using Selector = key_selector<Keys...>;
10309|  87.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  87.7k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS9_tlSA_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRKZN8fastgltf6Parser15parsePrimitivesERNSG_8internal9JsonArrayERNSG_4MeshEE3$_1RNSG_14basic_optionalImNSG_15flagged_storageImEEEESU_RNSG_13PrimitiveTypeERNSt3__16vectorINSY_INSG_9AttributeENSX_9allocatorISZ_EEEENS10_IS12_EEEERKZNSH_15parsePrimitivesESK_SM_E3$_0EQaaaa17key_selector_typeIT_EeqsZT0_clsrS19_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1A_:
10308|  87.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  87.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  87.7k|  return this->template for_each<Selector>(
10308|  87.7k|      [&](std::size_t i, value v) -> error_code {
10308|  87.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  87.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  87.7k|      });
10309|  87.7k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS9_tlSA_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEZNS2_8for_eachISF_JRKZN8fastgltf6Parser15parsePrimitivesERNSH_8internal9JsonArrayERNSH_4MeshEE3$_1RNSH_14basic_optionalImNSH_15flagged_storageImEEEESV_RNSH_13PrimitiveTypeERNSt3__16vectorINSZ_INSH_9AttributeENSY_9allocatorIS10_EEEENS11_IS13_EEEERKZNSI_15parsePrimitivesESL_SN_E3$_0EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_EUlmNS1_5valueEE_Qaa17key_selector_typeIS1A_Esr3stdE14is_invocable_vIRT0_mS1F_EEES1C_OS1H_:
10296|  87.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  87.7k|  value_iterator it = iter;
10297|  87.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  87.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  87.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   402k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 319k, False: 82.3k]
  ------------------
10298|   319k|    raw_json_string key;
10298|   319k|    error_code error;
10298|   319k|    std::size_t idx;
10298|   319k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   319k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 42, False: 319k]
  ------------------
10299|   319k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 30, False: 319k]
  ------------------
10299|   319k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   319k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 287k, False: 32.0k]
  ------------------
10300|   287k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   287k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   287k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 283k, False: 4.77k]
  ------------------
10300|   283k|        seen_word |= seen_bit;
10300|   283k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   283k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   283k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 469, False: 282k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   283k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 5.36k, False: 277k]
  ------------------
10302|   283k|      }
10302|   287k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   314k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 314k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   314k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 15, False: 314k]
  ------------------
10303|   314k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 37, False: 314k]
  ------------------
10303|   314k|  }
10303|  87.6k|  return {SUCCESS, matched};
10303|  87.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS4_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   319k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   319k|        const char* p = rjs.raw();
96024|   319k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   319k|            std::uint8_t ki = window.window_to_key[
96030|   319k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   319k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 14.0k, False: 305k]
  ------------------
96032|   305k|            return key_selector_detail::match_window_candidate(
96033|   305k|                p, ki, window, std::make_index_sequence<N>{});
96034|   319k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   319k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   305k|                       std::index_sequence<Is...>) noexcept {
95865|   305k|  std::size_t result = N;
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   305k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   305k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   305k|      result = i;
95872|   305k|    }
95873|   305k|  };
95874|   305k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   305k|  return result;
95876|   305k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 88.5k, False: 217k]
  |  Branch (95868:20): [True: 87.9k, False: 592]
  ------------------
95869|  87.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 87.6k, False: 223]
  ------------------
95870|  87.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  87.6k|      result = i;
95872|  87.6k|    }
95873|   305k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 83.6k, False: 222k]
  |  Branch (95868:20): [True: 78.7k, False: 4.92k]
  ------------------
95869|  78.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 74.3k, False: 4.37k]
  ------------------
95870|  78.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  74.3k|      result = i;
95872|  74.3k|    }
95873|   305k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 62.7k, False: 242k]
  |  Branch (95868:20): [True: 61.1k, False: 1.61k]
  ------------------
95869|  61.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 59.5k, False: 1.64k]
  ------------------
95870|  61.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  59.5k|      result = i;
95872|  59.5k|    }
95873|   305k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 40.0k, False: 265k]
  |  Branch (95868:20): [True: 38.3k, False: 1.65k]
  ------------------
95869|  38.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 37.9k, False: 396]
  ------------------
95870|  38.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  37.9k|      result = i;
95872|  37.9k|    }
95873|   305k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 13.1k, False: 292k]
  |  Branch (95868:20): [True: 12.1k, False: 1.05k]
  ------------------
95869|  12.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 11.7k, False: 331]
  ------------------
95870|  12.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  11.7k|      result = i;
95872|  11.7k|    }
95873|   305k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm10EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|   305k|  auto try_match = [&](auto Ic) {
95867|   305k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   305k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 17.6k, False: 288k]
  |  Branch (95868:20): [True: 16.8k, False: 774]
  ------------------
95869|  16.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 16.5k, False: 324]
  ------------------
95870|  16.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  16.5k|      result = i;
95872|  16.5k|    }
95873|   305k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS4_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEE4sizeEv:
95952|   602k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc105ELc110ELc100ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc111ELc100ELc101EEEEXtlS9_tlSA_Lc116ELc97ELc114ELc103ELc101ELc116ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEEEEJRKZN8fastgltf6Parser15parsePrimitivesERNSG_8internal9JsonArrayERNSG_4MeshEE3$_1RNSG_14basic_optionalImNSG_15flagged_storageImEEEESU_RNSG_13PrimitiveTypeERNSt3__16vectorINSY_INSG_9AttributeENSX_9allocatorISZ_EEEENS10_IS12_EEEERKZNSH_15parsePrimitivesESK_SM_E3$_0EQaaaa17key_selector_typeIT_EeqsZT0_clsrS19_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1A_ENKUlmNS1_5valueEE_clEmS1E_:
10308|   283k|      [&](std::size_t i, value v) -> error_code {
10308|   283k|        return key_selector_for_each_detail::dispatch_value(
10308|   283k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   283k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|   283k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   283k|  error_code err = SUCCESS;
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
10305|   283k|      auto&& h = std::get<I>(handlers);
10305|   283k|      using H = std::remove_reference_t<decltype(h)>;
10305|   283k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   283k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   283k|          err = h(v);
10306|   283k|        } else {
10306|   283k|          h(v);
10306|   283k|        }
10306|   283k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   283k|        err = v.get(h);
10306|   283k|      }
10306|   283k|    }
10306|   283k|  };
10306|   283k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   283k|  return err;
10307|   283k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm0EEEEEDaS10_:
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 87.1k, False: 195k]
  ------------------
10305|  87.1k|      auto&& h = std::get<I>(handlers);
10305|  87.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  87.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  87.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  87.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  87.1k|    }
10306|   283k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm1EEEEEDaS10_:
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 73.4k, False: 209k]
  ------------------
10305|  73.4k|      auto&& h = std::get<I>(handlers);
10305|  73.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  73.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  73.4k|        err = v.get(h);
10306|  73.4k|      }
10306|  73.4k|    }
10306|   283k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm2EEEEEDaS10_:
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 57.1k, False: 225k]
  ------------------
10305|  57.1k|      auto&& h = std::get<I>(handlers);
10305|  57.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  57.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  57.1k|        err = v.get(h);
10306|  57.1k|      }
10306|  57.1k|    }
10306|   283k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm3EEEEEDaS10_:
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 37.4k, False: 245k]
  ------------------
10305|  37.4k|      auto&& h = std::get<I>(handlers);
10305|  37.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  37.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  37.4k|        err = v.get(h);
10306|  37.4k|      }
10306|  37.4k|    }
10306|   283k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf13PrimitiveTypeEEENS_10error_codeERT_:
89907|  37.4k| {
89908|  37.4k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  37.4k|  if constexpr (custom_deserializable<T, value>) {
89910|  37.4k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  37.4k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf13PrimitiveTypeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  37.4k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  37.4k|    return tag_invoke(*this, object, output);
89263|  37.4k|  }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm4EEEEEDaS10_:
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 11.5k, False: 271k]
  ------------------
10305|  11.5k|      auto&& h = std::get<I>(handlers);
10305|  11.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  11.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  11.5k|        err = v.get(h);
10306|  11.5k|      }
10306|  11.5k|    }
10306|   283k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorINS5_IN8fastgltf9AttributeENS4_9allocatorIS7_EEEENS8_ISA_EEEEEENS_10error_codeERT_:
89907|  11.5k| {
89908|  11.5k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  11.5k|  if constexpr (custom_deserializable<T, value>) {
89910|  11.5k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  11.5k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorINS3_IN8fastgltf9AttributeENS2_9allocatorIS5_EEEENS6_IS8_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSE_RSB_:
89261|  11.5k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  11.5k|    return tag_invoke(*this, object, output);
89263|  11.5k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorINS3_IN8fastgltf9AttributeENS2_9allocatorIS5_EEEENS6_IS8_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|  11.5k|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|  11.5k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|  11.5k|  static_assert(
97478|  11.5k|      deserializable<value_type, ValT>,
97479|  11.5k|      "The specified type inside the container must itself be deserializable");
97480|  11.5k|  static_assert(
97481|  11.5k|      std::is_default_constructible_v<value_type>,
97482|  11.5k|      "The specified type inside the container must be default constructible.");
97483|  11.5k|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|  11.5k|  } else {
97487|  11.5k|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|  11.5k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 11.5k]
  |  |  ------------------
  ------------------
97488|  11.5k|  }
97489|       |
97490|  11.5k|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|  11.5k|    struct scratch_space {
97499|  11.5k|      std::vector<value_type> elements{};
97500|  11.5k|      bool busy{false};
97501|  11.5k|    };
97502|  11.5k|    static thread_local scratch_space scratch;
97503|  11.5k|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 11.5k, False: 2]
  |  Branch (97503:26): [True: 11.5k, False: 0]
  ------------------
97504|  11.5k|      struct release_scratch {
97505|  11.5k|        scratch_space &s;
97506|  11.5k|        T &out;
97507|  11.5k|        size_t parsed{0};
97508|  11.5k|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|  11.5k|        simdjson_never_inline void keep_parsed() noexcept {
97512|  11.5k|          s.elements.resize(parsed);
97513|  11.5k|          out.swap(s.elements);
97514|  11.5k|        }
97515|  11.5k|        ~release_scratch() {
97516|  11.5k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|  11.5k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  11.5k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|  11.5k|          s.busy = false;
97521|  11.5k|        }
97522|  11.5k|      } release{scratch, out};
97523|  11.5k|      scratch.busy = true;
97524|  14.2k|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 14.2k, False: 11.5k]
  ------------------
97525|  14.2k|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|  14.2k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 17, False: 14.2k]
  |  |  ------------------
  ------------------
97526|  14.2k|        release.parsed++;
97527|  14.2k|      }
97528|  11.5k|      out.reserve(release.parsed);
97529|  11.5k|      release.complete = true;
97530|  14.2k|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 14.2k, False: 11.5k]
  ------------------
97531|  11.5k|      return SUCCESS;
97532|  11.5k|    }
97533|  11.5k|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|  11.5k|  } else {
97544|  11.5k|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 11.5k]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|  11.5k|  }
97554|  11.5k|  return SUCCESS;
97555|  11.5k|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getINSt3__16vectorIN8fastgltf9AttributeENS6_9allocatorIS9_EEEEEENS_10error_codeERT_:
99449|  14.2k|{
99450|  14.2k|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 5, False: 14.2k]
  ------------------
99451|  14.2k|  return first.get<T>(out);
99452|  14.2k|}
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorINS3_IN8fastgltf9AttributeENS2_9allocatorIS5_EEEENS6_IS8_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|  11.5k|        ~release_scratch() {
97516|  11.5k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|  11.5k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 17, False: 11.5k]
  |  |  ------------------
  ------------------
97517|  11.5k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  11.5k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 0, False: 11.5k]
  ------------------
97520|  11.5k|          s.busy = false;
97521|  11.5k|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorINS3_IN8fastgltf9AttributeENS2_9allocatorIS5_EEEENS6_IS8_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|     17|        simdjson_never_inline void keep_parsed() noexcept {
97512|     17|          s.elements.resize(parsed);
97513|     17|          out.swap(s.elements);
97514|     17|        }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser15parsePrimitivesERNS6_8internal9JsonArrayERNS6_4MeshEE3$_1RNS6_14basic_optionalImNS6_15flagged_storageImEEEESK_RNS6_13PrimitiveTypeERNS4_6vectorINSN_INS6_9AttributeENS4_9allocatorISO_EEEENSP_ISR_EEEERKZNS7_15parsePrimitivesESA_SC_E3$_0EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS10_E_clINS4_17integral_constantImLm5EEEEEDaS10_:
10304|   283k|  auto try_one = [&](auto Ic) {
10305|   283k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   283k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 16.3k, False: 266k]
  ------------------
10305|  16.3k|      auto&& h = std::get<I>(handlers);
10305|  16.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  16.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  16.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  16.3k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  16.3k|    }
10306|   283k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS7_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRKZN8fastgltf6Parser11parseMeshesERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RNSt3__16vectorIfNSQ_9allocatorIfEEEERNSQ_12basic_stringIcNSQ_11char_traitsIcEENSS_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1A_:
10349|  72.3k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  72.3k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 32, False: 72.2k]
  ------------------
10350|  72.2k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  72.3k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS5_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRKZN8fastgltf6Parser11parseMeshesERNSE_8internal9JsonArrayERNSE_5AssetEE3$_0RNSt3__16vectorIfNSO_9allocatorIfEEEERNSO_12basic_stringIcNSO_11char_traitsIcEENSQ_IcEEEERKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS18_:
10309|  72.2k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  72.2k|  using Selector = key_selector<Keys...>;
10309|  72.2k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  72.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRKZN8fastgltf6Parser11parseMeshesERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RNSt3__16vectorIfNSQ_9allocatorIfEEEERNSQ_12basic_stringIcNSQ_11char_traitsIcEENSS_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_:
10308|  72.2k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  72.2k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  72.2k|  return this->template for_each<Selector>(
10308|  72.2k|      [&](std::size_t i, value v) -> error_code {
10308|  72.2k|        return key_selector_for_each_detail::dispatch_value(
10308|  72.2k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  72.2k|      });
10309|  72.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRKZN8fastgltf6Parser11parseMeshesERNSH_8internal9JsonArrayERNSH_5AssetEE3$_0RNSt3__16vectorIfNSR_9allocatorIfEEEERNSR_12basic_stringIcNSR_11char_traitsIcEENST_IcEEEERKZNSH_10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1B_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_EUlmS17_E_Qaa17key_selector_typeIS1B_Esr3stdE14is_invocable_vIRT0_mS17_EEES1D_OS1H_:
10296|  72.2k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  72.2k|  value_iterator it = iter;
10297|  72.2k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  72.2k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  72.2k|  std::array<std::uint64_t, seen_words> seen{};
10298|   215k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 143k, False: 72.1k]
  ------------------
10298|   143k|    raw_json_string key;
10298|   143k|    error_code error;
10298|   143k|    std::size_t idx;
10298|   143k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   143k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 26, False: 143k]
  ------------------
10299|   143k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 25, False: 143k]
  ------------------
10299|   143k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   143k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 131k, False: 11.5k]
  ------------------
10300|   131k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   131k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   131k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 130k, False: 1.05k]
  ------------------
10300|   130k|        seen_word |= seen_bit;
10300|   130k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   130k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   130k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 794, False: 129k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   130k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 60, False: 130k]
  ------------------
10302|   130k|      }
10302|   131k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   143k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 143k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   143k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 22, False: 143k]
  ------------------
10303|   143k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 35, False: 143k]
  ------------------
10303|   143k|  }
10303|  72.2k|  return {SUCCESS, matched};
10303|  72.2k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS4_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   143k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   143k|        const char* p = rjs.raw();
96024|   143k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   143k|            std::uint8_t ki = window.window_to_key[
96030|   143k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   143k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 7.51k, False: 135k]
  ------------------
96032|   135k|            return key_selector_detail::match_window_candidate(
96033|   135k|                p, ki, window, std::make_index_sequence<N>{});
96034|   143k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   143k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS4_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   273k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc112ELc114ELc105ELc109ELc105ELc116ELc105ELc118ELc101ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRKZN8fastgltf6Parser11parseMeshesERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RNSt3__16vectorIfNSQ_9allocatorIfEEEERNSQ_12basic_stringIcNSQ_11char_traitsIcEENSS_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1A_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1B_ENKUlmS16_E_clEmS16_:
10308|   130k|      [&](std::size_t i, value v) -> error_code {
10308|   130k|        return key_selector_for_each_detail::dispatch_value(
10308|   130k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   130k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser11parseMeshesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RNS4_6vectorIfNS4_9allocatorIfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSH_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SV_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   130k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   130k|  error_code err = SUCCESS;
10304|   130k|  auto try_one = [&](auto Ic) {
10305|   130k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   130k|    if (idx == I) {
10305|   130k|      auto&& h = std::get<I>(handlers);
10305|   130k|      using H = std::remove_reference_t<decltype(h)>;
10305|   130k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   130k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   130k|          err = h(v);
10306|   130k|        } else {
10306|   130k|          h(v);
10306|   130k|        }
10306|   130k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   130k|        err = v.get(h);
10306|   130k|      }
10306|   130k|    }
10306|   130k|  };
10306|   130k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   130k|  return err;
10307|   130k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser11parseMeshesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RNS4_6vectorIfNS4_9allocatorIfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSH_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SV_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm0EEEEEDaS11_:
10304|   130k|  auto try_one = [&](auto Ic) {
10305|   130k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   130k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 72.1k, False: 58.5k]
  ------------------
10305|  72.1k|      auto&& h = std::get<I>(handlers);
10305|  72.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  72.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  72.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  72.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  72.1k|    }
10306|   130k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser11parseMeshesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RNS4_6vectorIfNS4_9allocatorIfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSH_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SV_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm1EEEEEDaS11_:
10304|   130k|  auto try_one = [&](auto Ic) {
10305|   130k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   130k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 506, False: 130k]
  ------------------
10305|    506|      auto&& h = std::get<I>(handlers);
10305|    506|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|    506|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|    506|        err = v.get(h);
10306|    506|      }
10306|    506|    }
10306|   130k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorIfNS4_9allocatorIfEEEEEENS_10error_codeERT_:
89907|  2.15k| {
89908|  2.15k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  2.15k|  if constexpr (custom_deserializable<T, value>) {
89910|  2.15k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  2.15k|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorIfNS2_9allocatorIfEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  2.15k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  2.15k|    return tag_invoke(*this, object, output);
89263|  2.15k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIfNS2_9allocatorIfEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|  2.15k|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|  2.15k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|  2.15k|  static_assert(
97478|  2.15k|      deserializable<value_type, ValT>,
97479|  2.15k|      "The specified type inside the container must itself be deserializable");
97480|  2.15k|  static_assert(
97481|  2.15k|      std::is_default_constructible_v<value_type>,
97482|  2.15k|      "The specified type inside the container must be default constructible.");
97483|  2.15k|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|  2.15k|  } else {
97487|  2.15k|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|  2.15k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 7, False: 2.14k]
  |  |  ------------------
  ------------------
97488|  2.14k|  }
97489|       |
97490|  2.15k|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|  2.15k|    struct scratch_space {
97499|  2.15k|      std::vector<value_type> elements{};
97500|  2.15k|      bool busy{false};
97501|  2.15k|    };
97502|  2.15k|    static thread_local scratch_space scratch;
97503|  2.15k|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 2.14k, False: 7]
  |  Branch (97503:26): [True: 2.14k, False: 0]
  ------------------
97504|  2.14k|      struct release_scratch {
97505|  2.14k|        scratch_space &s;
97506|  2.14k|        T &out;
97507|  2.14k|        size_t parsed{0};
97508|  2.14k|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|  2.14k|        simdjson_never_inline void keep_parsed() noexcept {
97512|  2.14k|          s.elements.resize(parsed);
97513|  2.14k|          out.swap(s.elements);
97514|  2.14k|        }
97515|  2.14k|        ~release_scratch() {
97516|  2.14k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|  2.14k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  2.14k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|  2.14k|          s.busy = false;
97521|  2.14k|        }
97522|  2.14k|      } release{scratch, out};
97523|  2.14k|      scratch.busy = true;
97524|   371k|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 371k, False: 1.48k]
  ------------------
97525|   371k|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|   371k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 663, False: 370k]
  |  |  ------------------
  ------------------
97526|   370k|        release.parsed++;
97527|   370k|      }
97528|  1.48k|      out.reserve(release.parsed);
97529|  1.48k|      release.complete = true;
97530|   332k|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 332k, False: 1.48k]
  ------------------
97531|  1.48k|      return SUCCESS;
97532|  2.14k|    }
97533|  2.15k|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|  2.15k|  } else {
97544|  2.15k|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 2.15k]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|  2.15k|  }
97554|  2.15k|  return SUCCESS;
97555|  2.15k|}
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIfNS2_9allocatorIfEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|  2.14k|        ~release_scratch() {
97516|  2.14k|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|  2.14k|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 663, False: 1.48k]
  |  |  ------------------
  ------------------
97517|  2.14k|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|  2.14k|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 0, False: 2.14k]
  ------------------
97520|  2.14k|          s.busy = false;
97521|  2.14k|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIfNS2_9allocatorIfEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|    663|        simdjson_never_inline void keep_parsed() noexcept {
97512|    663|          s.elements.resize(parsed);
97513|    663|          out.swap(s.elements);
97514|    663|        }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser11parseMeshesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RNS4_6vectorIfNS4_9allocatorIfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSH_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SV_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm2EEEEEDaS11_:
10304|   130k|  auto try_one = [&](auto Ic) {
10305|   130k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   130k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 57.8k, False: 72.7k]
  ------------------
10305|  57.8k|      auto&& h = std::get<I>(handlers);
10305|  57.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  57.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  57.8k|        err = v.get(h);
10306|  57.8k|      }
10306|  57.8k|    }
10306|   130k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZN8fastgltf6Parser11parseMeshesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RNS4_6vectorIfNS4_9allocatorIfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSH_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SV_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm3EEEEEDaS11_:
10304|   130k|  auto try_one = [&](auto Ic) {
10305|   130k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   130k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 132, False: 130k]
  ------------------
10305|    132|      auto&& h = std::get<I>(handlers);
10305|    132|      using H = std::remove_reference_t<decltype(h)>;
10305|    132|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    132|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    132|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    132|    }
10306|   130k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS7_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS7_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS8_tlS9_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlSC_tlSD_Lc109ELc101ELc115ELc104EEEEXtlSA_tlSB_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS7_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlSC_tlSD_Lc110ELc97ELc109ELc101EEEEXtlNS7_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSM_15flagged_storageImEEEERNSt3__16vectorImNSS_9allocatorImEEEESR_RNSS_8optionalINSM_4math3matIfLm4ELm4EEEEESR_RNSZ_4quatIfEERNSZ_3vecIfLm3EEES19_RNST_IfNSU_IfEEEERNSS_12basic_stringIcNSS_11char_traitsIcEENSU_IcEEEERKZNSM_6Parser10parseNodesERNSM_8internal9JsonArrayERNSM_5AssetEE3$_1RKZNSM_10readExtrasERKNSM_20ParserInternalConfigEmNSM_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS20_:
10349|   391k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   391k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 53, False: 391k]
  ------------------
10350|   391k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   391k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS5_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS5_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS6_tlS7_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlSA_tlSB_Lc109ELc101ELc115ELc104EEEEXtlS8_tlS9_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS5_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlSA_tlSB_Lc110ELc97ELc109ELc101EEEEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS6_tlS7_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSK_15flagged_storageImEEEERNSt3__16vectorImNSQ_9allocatorImEEEESP_RNSQ_8optionalINSK_4math3matIfLm4ELm4EEEEESP_RNSX_4quatIfEERNSX_3vecIfLm3EEES17_RNSR_IfNSS_IfEEEERNSQ_12basic_stringIcNSQ_11char_traitsIcEENSS_IcEEEERKZNSK_6Parser10parseNodesERNSK_8internal9JsonArrayERNSK_5AssetEE3$_1RKZNSK_10readExtrasERKNSK_20ParserInternalConfigEmNSK_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1Y_:
10309|   391k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   391k|  using Selector = key_selector<Keys...>;
10309|   391k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   391k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS6_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS7_tlS8_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlSB_tlSC_Lc109ELc101ELc115ELc104EEEEXtlS9_tlSA_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlSB_tlSC_Lc110ELc97ELc109ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSM_15flagged_storageImEEEERNSt3__16vectorImNSS_9allocatorImEEEESR_RNSS_8optionalINSM_4math3matIfLm4ELm4EEEEESR_RNSZ_4quatIfEERNSZ_3vecIfLm3EEES19_RNST_IfNSU_IfEEEERNSS_12basic_stringIcNSS_11char_traitsIcEENSU_IcEEEERKZNSM_6Parser10parseNodesERNSM_8internal9JsonArrayERNSM_5AssetEE3$_1RKZNSM_10readExtrasERKNSM_20ParserInternalConfigEmNSM_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS20_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS21_:
10308|   391k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   391k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   391k|  return this->template for_each<Selector>(
10308|   391k|      [&](std::size_t i, value v) -> error_code {
10308|   391k|        return key_selector_for_each_detail::dispatch_value(
10308|   391k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   391k|      });
10309|   391k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS6_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS7_tlS8_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlSB_tlSC_Lc109ELc101ELc115ELc104EEEEXtlS9_tlSA_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlSB_tlSC_Lc110ELc97ELc109ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISL_JRN8fastgltf14basic_optionalImNSN_15flagged_storageImEEEERNSt3__16vectorImNST_9allocatorImEEEESS_RNST_8optionalINSN_4math3matIfLm4ELm4EEEEESS_RNS10_4quatIfEERNS10_3vecIfLm3EEES1A_RNSU_IfNSV_IfEEEERNST_12basic_stringIcNST_11char_traitsIcEENSV_IcEEEERKZNSN_6Parser10parseNodesERNSN_8internal9JsonArrayERNSN_5AssetEE3$_1RKZNSN_10readExtrasERKNSN_20ParserInternalConfigEmNSN_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS21_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS22_EUlmS1X_E_Qaa17key_selector_typeIS21_Esr3stdE14is_invocable_vIRT0_mS1X_EEES23_OS27_:
10296|   391k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   391k|  value_iterator it = iter;
10297|   391k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   391k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   391k|  std::array<std::uint64_t, seen_words> seen{};
10298|   977k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 585k, False: 391k]
  ------------------
10298|   585k|    raw_json_string key;
10298|   585k|    error_code error;
10298|   585k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   585k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   585k|      std::size_t key_len;
10299|   585k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 12, False: 585k]
  ------------------
10299|   585k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 33, False: 585k]
  ------------------
10300|   585k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   585k|    }
10300|   585k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 449k, False: 136k]
  ------------------
10300|   449k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   449k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   449k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 446k, False: 3.28k]
  ------------------
10300|   446k|        seen_word |= seen_bit;
10300|   446k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   446k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   446k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 4.76k, False: 441k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   446k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 446k]
  ------------------
10302|   446k|      }
10302|   449k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   585k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 585k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   585k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 23, False: 585k]
  ------------------
10303|   585k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 118, False: 585k]
  ------------------
10303|   585k|  }
10303|   391k|  return {SUCCESS, matched};
10303|   391k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS4_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS4_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS5_tlS6_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlS9_tlSA_Lc109ELc101ELc115ELc104EEEEXtlS7_tlS8_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS4_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlS9_tlSA_Lc110ELc97ELc109ELc101EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawEPKcm:
95964|   585k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   585k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 9.79k, False: 575k]
  |  Branch (95965:25): [True: 13.9k, False: 562k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   562k|        std::size_t slot;
95981|   562k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 562k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   562k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   562k|            std::size_t h = len;
95996|  1.12M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 562k, False: 562k]
  ------------------
95997|   562k|                std::uint8_t pos = phf.positions[i];
95998|   562k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 562k]
  ------------------
95999|   562k|                                  ? (len - std::size_t{1})
96000|   562k|                                  : static_cast<std::size_t>(pos);
96001|   562k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 562k, False: 0]
  ------------------
96002|   562k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|   562k|                }
96004|   562k|            }
96005|   562k|            slot = h & (table_size - 1);
96006|   562k|        }
96007|       |
96008|   562k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   562k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 32.8k, False: 529k]
  ------------------
96010|   529k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 45.4k, False: 483k]
  ------------------
96011|   483k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 34.3k, False: 449k]
  ------------------
96012|   483k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   449k|        return ki;
96014|   483k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS4_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS4_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS5_tlS6_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlS9_tlSA_Lc109ELc101ELc115ELc104EEEEXtlS7_tlS8_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS4_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlS9_tlSA_Lc110ELc97ELc109ELc101EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|  1.02M|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc99ELc97ELc109ELc101ELc114ELc97EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc104ELc105ELc108ELc100ELc114ELc101ELc110EEEEXtlNS6_ILm5EEEtlA5_cLc115ELc107ELc105ELc110EEEEXtlS7_tlS8_Lc109ELc97ELc116ELc114ELc105ELc120EEEEXtlSB_tlSC_Lc109ELc101ELc115ELc104EEEEXtlS9_tlSA_Lc114ELc111ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm6EEEtlA6_cLc115ELc99ELc97ELc108ELc101EEEEXtlNS6_ILm12EEEtlA12_cLc116ELc114ELc97ELc110ELc115ELc108ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm8EEEtlA8_cLc119ELc101ELc105ELc103ELc104ELc116ELc115EEEEXtlSB_tlSC_Lc110ELc97ELc109ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSM_15flagged_storageImEEEERNSt3__16vectorImNSS_9allocatorImEEEESR_RNSS_8optionalINSM_4math3matIfLm4ELm4EEEEESR_RNSZ_4quatIfEERNSZ_3vecIfLm3EEES19_RNST_IfNSU_IfEEEERNSS_12basic_stringIcNSS_11char_traitsIcEENSU_IcEEEERKZNSM_6Parser10parseNodesERNSM_8internal9JsonArrayERNSM_5AssetEE3$_1RKZNSM_10readExtrasERKNSM_20ParserInternalConfigEmNSM_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS20_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS21_ENKUlmS1W_E_clEmS1W_:
10308|   446k|      [&](std::size_t i, value v) -> error_code {
10308|   446k|        return key_selector_for_each_detail::dispatch_value(
10308|   446k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   446k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   446k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   446k|  error_code err = SUCCESS;
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
10305|   446k|      auto&& h = std::get<I>(handlers);
10305|   446k|      using H = std::remove_reference_t<decltype(h)>;
10305|   446k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   446k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   446k|          err = h(v);
10306|   446k|        } else {
10306|   446k|          h(v);
10306|   446k|        }
10306|   446k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   446k|        err = v.get(h);
10306|   446k|      }
10306|   446k|    }
10306|   446k|  };
10306|   446k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   446k|  return err;
10307|   446k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm0EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.86k, False: 442k]
  ------------------
10305|  3.86k|      auto&& h = std::get<I>(handlers);
10305|  3.86k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  3.86k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  3.86k|        err = v.get(h);
10306|  3.86k|      }
10306|  3.86k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm1EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 48.0k, False: 398k]
  ------------------
10305|  48.0k|      auto&& h = std::get<I>(handlers);
10305|  48.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  48.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  48.0k|        err = v.get(h);
10306|  48.0k|      }
10306|  48.0k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm2EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 2.52k, False: 443k]
  ------------------
10305|  2.52k|      auto&& h = std::get<I>(handlers);
10305|  2.52k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  2.52k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  2.52k|        err = v.get(h);
10306|  2.52k|      }
10306|  2.52k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm3EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.1k, False: 428k]
  ------------------
10305|  17.1k|      auto&& h = std::get<I>(handlers);
10305|  17.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.1k|        err = v.get(h);
10306|  17.1k|      }
10306|  17.1k|    }
10306|   446k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf4math3matIfLm4ELm4EEEEEEENS_10error_codeERT_:
89907|  17.1k| {
89908|  17.1k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  17.1k|  if constexpr (custom_deserializable<T, value>) {
89910|  17.1k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  17.1k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf4math3matIfLm4ELm4EEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|  17.1k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  17.1k|    return tag_invoke(*this, object, output);
89263|  17.1k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf4math3matIfLm4ELm4EEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  17.1k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  17.1k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  17.1k|  static_assert(
97645|  17.1k|      deserializable<value_type, ValT>,
97646|  17.1k|      "The specified type inside the optional must itself be deserializable");
97647|  17.1k|  static_assert(
97648|  17.1k|      std::is_default_constructible_v<value_type>,
97649|  17.1k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  17.1k|  bool is_null_value;
97653|  17.1k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  17.1k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 17.1k]
  |  |  ------------------
  ------------------
97654|  17.1k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 17.1k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  17.1k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 17.1k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  17.1k|    out.emplace();
97665|  17.1k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  17.1k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  17.1k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 897, False: 16.2k]
  |  |  ------------------
  ------------------
97667|  16.2k|    guard.armed = false;
97668|  16.2k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  16.2k|  return SUCCESS;
97676|  17.1k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf4math3matIfLm4ELm4EEEEENS_10error_codeERT_:
89907|  17.1k| {
89908|  17.1k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  17.1k|  if constexpr (custom_deserializable<T, value>) {
89910|  17.1k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  17.1k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf4math3matIfLm4ELm4EEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS9_RS6_:
89261|  17.1k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  17.1k|    return tag_invoke(*this, object, output);
89263|  17.1k|  }
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf4math3matIfLm4ELm4EEEEEED2Ev:
97461|  17.1k|  ~reset_guard() {
97462|  17.1k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 897, False: 16.2k]
  ------------------
97463|  17.1k|  }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm4EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 36.3k, False: 409k]
  ------------------
10305|  36.3k|      auto&& h = std::get<I>(handlers);
10305|  36.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  36.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  36.3k|        err = v.get(h);
10306|  36.3k|      }
10306|  36.3k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm5EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.9k, False: 428k]
  ------------------
10305|  17.9k|      auto&& h = std::get<I>(handlers);
10305|  17.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.9k|        err = v.get(h);
10306|  17.9k|      }
10306|  17.9k|    }
10306|   446k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf4math4quatIfEEEENS_10error_codeERT_:
89907|  17.9k| {
89908|  17.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  17.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  17.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  17.9k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf4math4quatIfEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS9_RS6_:
89261|  17.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  17.9k|    return tag_invoke(*this, object, output);
89263|  17.9k|  }
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm6EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 43.5k, False: 402k]
  ------------------
10305|  43.5k|      auto&& h = std::get<I>(handlers);
10305|  43.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  43.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  43.5k|        err = v.get(h);
10306|  43.5k|      }
10306|  43.5k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm7EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 56.0k, False: 390k]
  ------------------
10305|  56.0k|      auto&& h = std::get<I>(handlers);
10305|  56.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  56.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  56.0k|        err = v.get(h);
10306|  56.0k|      }
10306|  56.0k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm8EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1.65k, False: 444k]
  ------------------
10305|  1.65k|      auto&& h = std::get<I>(handlers);
10305|  1.65k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  1.65k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  1.65k|        err = v.get(h);
10306|  1.65k|      }
10306|  1.65k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm9EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 89.8k, False: 356k]
  ------------------
10305|  89.8k|      auto&& h = std::get<I>(handlers);
10305|  89.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  89.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  89.8k|        err = v.get(h);
10306|  89.8k|      }
10306|  89.8k|    }
10306|   446k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm10EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 128k, False: 318k]
  ------------------
10305|   128k|      auto&& h = std::get<I>(handlers);
10305|   128k|      using H = std::remove_reference_t<decltype(h)>;
10305|   128k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   128k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   128k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|   128k|    }
10306|   446k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS7_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS7_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS8_tlS9_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS7_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS7_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEJRKZZN8fastgltf6Parser10parseNodesERNSI_8internal9JsonArrayERNSI_5AssetEENK3$_0clENS2_5valueERNSI_4NodeEEUlSQ_E_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E0_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E1_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E2_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E3_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E4_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1B_:
10349|   128k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   128k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 11, False: 128k]
  ------------------
10350|   128k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   128k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS5_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS5_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS6_tlS7_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS5_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS5_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEJRKZZN8fastgltf6Parser10parseNodesERNSG_8internal9JsonArrayERNSG_5AssetEENK3$_0clENS1_5valueERNSG_4NodeEEUlSO_E_RKZZNSH_10parseNodesESK_SM_ENKSN_clESO_SQ_EUlSO_E0_RKZZNSH_10parseNodesESK_SM_ENKSN_clESO_SQ_EUlSO_E1_RKZZNSH_10parseNodesESK_SM_ENKSN_clESO_SQ_EUlSO_E2_RKZZNSH_10parseNodesESK_SM_ENKSN_clESO_SQ_EUlSO_E3_RKZZNSH_10parseNodesESK_SM_ENKSN_clESO_SQ_EUlSO_E4_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS19_:
10309|   128k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   128k|  using Selector = key_selector<Keys...>;
10309|   128k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   128k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS6_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS6_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS6_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEEJRKZZN8fastgltf6Parser10parseNodesERNSI_8internal9JsonArrayERNSI_5AssetEENK3$_0clENS1_5valueERNSI_4NodeEEUlSQ_E_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E0_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E1_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E2_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E3_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E4_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1B_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_:
10308|   128k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   128k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   128k|  return this->template for_each<Selector>(
10308|   128k|      [&](std::size_t i, value v) -> error_code {
10308|   128k|        return key_selector_for_each_detail::dispatch_value(
10308|   128k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   128k|      });
10309|   128k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS6_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS6_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS6_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEEZNS2_8for_eachISH_JRKZZN8fastgltf6Parser10parseNodesERNSJ_8internal9JsonArrayERNSJ_5AssetEENK3$_0clENS1_5valueERNSJ_4NodeEEUlSR_E_RKZZNSK_10parseNodesESN_SP_ENKSQ_clESR_ST_EUlSR_E0_RKZZNSK_10parseNodesESN_SP_ENKSQ_clESR_ST_EUlSR_E1_RKZZNSK_10parseNodesESN_SP_ENKSQ_clESR_ST_EUlSR_E2_RKZZNSK_10parseNodesESN_SP_ENKSQ_clESR_ST_EUlSR_E3_RKZZNSK_10parseNodesESN_SP_ENKSQ_clESR_ST_EUlSR_E4_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1C_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1D_EUlmSR_E_Qaa17key_selector_typeIS1C_Esr3stdE14is_invocable_vIRT0_mSR_EEES1E_OS1I_:
10296|   128k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   128k|  value_iterator it = iter;
10297|   128k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   128k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   128k|  std::array<std::uint64_t, seen_words> seen{};
10298|   278k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 151k, False: 127k]
  ------------------
10298|   151k|    raw_json_string key;
10298|   151k|    error_code error;
10298|   151k|    std::size_t idx;
10298|   151k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   151k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 26, False: 151k]
  ------------------
10299|   151k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 19, False: 151k]
  ------------------
10299|   151k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   151k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 132k, False: 18.4k]
  ------------------
10300|   132k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   132k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   132k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 131k, False: 777]
  ------------------
10300|   131k|        seen_word |= seen_bit;
10300|   131k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   131k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   131k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 944, False: 130k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   131k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 131k]
  ------------------
10302|   131k|      }
10302|   132k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   151k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 151k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   151k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 29, False: 151k]
  ------------------
10303|   151k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 70, False: 150k]
  ------------------
10303|   151k|  }
10303|   127k|  return {SUCCESS, matched};
10303|   128k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS4_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS4_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS4_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS4_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   151k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   151k|        const char* p = rjs.raw();
96024|   151k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   151k|            std::uint8_t ki = window.window_to_key[
96030|   151k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   151k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 6.47k, False: 144k]
  ------------------
96032|   144k|            return key_selector_detail::match_window_candidate(
96033|   144k|                p, ki, window, std::make_index_sequence<N>{});
96034|   151k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   151k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   144k|                       std::index_sequence<Is...>) noexcept {
95865|   144k|  std::size_t result = N;
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   144k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   144k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   144k|      result = i;
95872|   144k|    }
95873|   144k|  };
95874|   144k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   144k|  return result;
95876|   144k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 28.6k, False: 115k]
  |  Branch (95868:20): [True: 27.6k, False: 936]
  ------------------
95869|  27.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 26.1k, False: 1.48k]
  ------------------
95870|  27.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  26.1k|      result = i;
95872|  26.1k|    }
95873|   144k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2.99k, False: 141k]
  |  Branch (95868:20): [True: 2.62k, False: 364]
  ------------------
95869|  2.62k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 2.30k, False: 320]
  ------------------
95870|  2.62k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  2.30k|      result = i;
95872|  2.30k|    }
95873|   144k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 83.7k, False: 60.7k]
  |  Branch (95868:20): [True: 81.3k, False: 2.45k]
  ------------------
95869|  81.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 79.1k, False: 2.19k]
  ------------------
95870|  81.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  79.1k|      result = i;
95872|  79.1k|    }
95873|   144k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.7k, False: 131k]
  |  Branch (95868:20): [True: 12.2k, False: 538]
  ------------------
95869|  12.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 11.7k, False: 489]
  ------------------
95870|  12.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  11.7k|      result = i;
95872|  11.7k|    }
95873|   144k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.5k, False: 132k]
  |  Branch (95868:20): [True: 10.8k, False: 1.63k]
  ------------------
95869|  10.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.0k, False: 865]
  ------------------
95870|  10.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.0k|      result = i;
95872|  10.0k|    }
95873|   144k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm24EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|   144k|  auto try_match = [&](auto Ic) {
95867|   144k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   144k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 3.92k, False: 140k]
  |  Branch (95868:20): [True: 3.59k, False: 327]
  ------------------
95869|  3.59k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 3.25k, False: 344]
  ------------------
95870|  3.59k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  3.25k|      result = i;
95872|  3.25k|    }
95873|   144k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS4_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS4_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS5_tlS6_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS4_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS4_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEE4sizeEv:
95952|   281k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc75ELc72ELc82ELc95ELc108ELc105ELc103ELc104ELc116ELc115ELc95ELc112ELc117ELc110ELc99ELc116ELc117ELc97ELc108EEEEXtlNS6_ILm24EEEtlA24_cLc69ELc88ELc84ELc95ELc109ELc101ELc115ELc104ELc95ELc103ELc112ELc117ELc95ELc105ELc110ELc115ELc116ELc97ELc110ELc99ELc105ELc110ELc103EEEEXtlNS6_ILm25EEEtlA25_cLc75ELc72ELc82ELc95ELc112ELc104ELc121ELc115ELc105ELc99ELc115ELc95ELc114ELc105ELc103ELc105ELc100ELc95ELc98ELc111ELc100ELc105ELc101ELc115EEEEXtlS7_tlS8_Lc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc118ELc105ELc115ELc105ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS6_ILm23EEEtlA23_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEXtlNS6_ILm22EEEtlA22_cLc75ELc72ELc82ELc95ELc110ELc111ELc100ELc101ELc95ELc104ELc111ELc118ELc101ELc114ELc97ELc98ELc105ELc108ELc105ELc116ELc121EEEEEEEJRKZZN8fastgltf6Parser10parseNodesERNSI_8internal9JsonArrayERNSI_5AssetEENK3$_0clENS1_5valueERNSI_4NodeEEUlSQ_E_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E0_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E1_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E2_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E3_RKZZNSJ_10parseNodesESM_SO_ENKSP_clESQ_SS_EUlSQ_E4_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1B_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_ENKUlmSQ_E_clEmSQ_:
10308|   131k|      [&](std::size_t i, value v) -> error_code {
10308|   131k|        return key_selector_for_each_detail::dispatch_value(
10308|   131k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   131k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   131k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   131k|  error_code err = SUCCESS;
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
10305|   131k|      auto&& h = std::get<I>(handlers);
10305|   131k|      using H = std::remove_reference_t<decltype(h)>;
10305|   131k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   131k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   131k|          err = h(v);
10306|   131k|        } else {
10306|   131k|          h(v);
10306|   131k|        }
10306|   131k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   131k|        err = v.get(h);
10306|   131k|      }
10306|   131k|    }
10306|   131k|  };
10306|   131k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   131k|  return err;
10307|   131k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm0EEEEEDaS11_:
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 26.1k, False: 105k]
  ------------------
10305|  26.1k|      auto&& h = std::get<I>(handlers);
10305|  26.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  26.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  26.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  26.1k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  26.1k|    }
10306|   131k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSG_:
10349|  26.1k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  26.1k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 26.1k]
  ------------------
10350|  26.1k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  26.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEJRN8fastgltf14basic_optionalImNS8_15flagged_storageImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSE_:
10309|  26.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  26.1k|  using Selector = key_selector<Keys...>;
10309|  26.1k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  26.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_:
10308|  26.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  26.1k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  26.1k|  return this->template for_each<Selector>(
10308|  26.1k|      [&](std::size_t i, value v) -> error_code {
10308|  26.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  26.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  26.1k|      });
10309|  26.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalImNSB_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSH_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_EUlmNS1_5valueEE_Qaa17key_selector_typeISH_Esr3stdE14is_invocable_vIRT0_mSM_EEESJ_OSO_:
10296|  26.1k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  26.1k|  value_iterator it = iter;
10297|  26.1k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  26.1k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  26.1k|  std::array<std::uint64_t, seen_words> seen{};
10298|  29.1k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 29.1k, False: 37]
  ------------------
10298|  29.1k|    raw_json_string key;
10298|  29.1k|    error_code error;
10298|  29.1k|    std::size_t idx;
10298|  29.1k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  29.1k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 9, False: 29.1k]
  ------------------
10299|  29.1k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 7, False: 29.1k]
  ------------------
10299|  29.1k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  29.1k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 26.1k, False: 3.02k]
  ------------------
10300|  26.1k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  26.1k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  26.1k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 26.1k, False: 0]
  ------------------
10300|  26.1k|        seen_word |= seen_bit;
10300|  26.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  26.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  26.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 2, False: 26.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  26.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 26.1k, False: 2]
  ------------------
10302|  26.1k|      }
10302|  26.1k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  3.02k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 3.02k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  3.02k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 2, False: 3.02k]
  ------------------
10303|  3.02k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 11, False: 3.00k]
  ------------------
10303|  3.02k|  }
10303|  26.1k|  return {SUCCESS, matched};
10303|  26.1k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  29.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  29.1k|        const char* p = rjs.raw();
96024|  29.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  29.1k|            std::uint8_t ki = window.window_to_key[
96030|  29.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  29.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.24k, False: 26.8k]
  ------------------
96032|  26.8k|            return key_selector_detail::match_window_candidate(
96033|  26.8k|                p, ki, window, std::make_index_sequence<N>{});
96034|  29.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  29.1k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm5EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  26.8k|                       std::index_sequence<Is...>) noexcept {
95865|  26.8k|  std::size_t result = N;
95866|  26.8k|  auto try_match = [&](auto Ic) {
95867|  26.8k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  26.8k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  26.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  26.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  26.8k|      result = i;
95872|  26.8k|    }
95873|  26.8k|  };
95874|  26.8k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  26.8k|  return result;
95876|  26.8k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm5EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  26.8k|  auto try_match = [&](auto Ic) {
95867|  26.8k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  26.8k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 26.8k, False: 0]
  |  Branch (95868:20): [True: 26.6k, False: 272]
  ------------------
95869|  26.6k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 26.1k, False: 487]
  ------------------
95870|  26.6k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  26.1k|      result = i;
95872|  26.1k|    }
95873|  26.8k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEE4sizeEv:
95952|  55.2k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc108ELc105ELc103ELc104ELc116EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_ENKUlmNS1_5valueEE_clEmSL_:
10308|  26.1k|      [&](std::size_t i, value v) -> error_code {
10308|  26.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  26.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  26.1k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  36.2k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  36.2k|  error_code err = SUCCESS;
10304|  36.2k|  auto try_one = [&](auto Ic) {
10305|  36.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  36.2k|    if (idx == I) {
10305|  36.2k|      auto&& h = std::get<I>(handlers);
10305|  36.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|  36.2k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  36.2k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  36.2k|          err = h(v);
10306|  36.2k|        } else {
10306|  36.2k|          h(v);
10306|  36.2k|        }
10306|  36.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  36.2k|        err = v.get(h);
10306|  36.2k|      }
10306|  36.2k|    }
10306|  36.2k|  };
10306|  36.2k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  36.2k|  return err;
10307|  36.2k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSE_E_clINS4_17integral_constantImLm0EEEEEDaSE_:
10304|  36.2k|  auto try_one = [&](auto Ic) {
10305|  36.2k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  36.2k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 36.2k, False: 0]
  ------------------
10305|  36.2k|      auto&& h = std::get<I>(handlers);
10305|  36.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  36.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  36.2k|        err = v.get(h);
10306|  36.2k|      }
10306|  36.2k|    }
10306|  36.2k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm1EEEEEDaS11_:
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1.74k, False: 130k]
  ------------------
10305|  1.74k|      auto&& h = std::get<I>(handlers);
10305|  1.74k|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.74k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.74k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.74k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  1.74k|    }
10306|   131k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEJRNSt3__16vectorIN8fastgltf9AttributeENSA_9allocatorISD_EEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSI_:
10349|  1.74k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  1.74k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 7, False: 1.74k]
  ------------------
10350|  1.74k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  1.74k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEJRNSt3__16vectorIN8fastgltf9AttributeENS8_9allocatorISB_EEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_:
10309|  1.74k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  1.74k|  using Selector = key_selector<Keys...>;
10309|  1.74k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  1.74k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEJRNSt3__16vectorIN8fastgltf9AttributeENSA_9allocatorISD_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSI_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_:
10308|  1.74k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  1.74k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  1.74k|  return this->template for_each<Selector>(
10308|  1.74k|      [&](std::size_t i, value v) -> error_code {
10308|  1.74k|        return key_selector_for_each_detail::dispatch_value(
10308|  1.74k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  1.74k|      });
10309|  1.74k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEZNS2_8for_eachIS9_JRNSt3__16vectorIN8fastgltf9AttributeENSB_9allocatorISE_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSJ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSK_EUlmNS1_5valueEE_Qaa17key_selector_typeISJ_Esr3stdE14is_invocable_vIRT0_mSO_EEESL_OSQ_:
10296|  1.74k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  1.74k|  value_iterator it = iter;
10297|  1.74k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  1.74k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  1.74k|  std::array<std::uint64_t, seen_words> seen{};
10298|  3.00k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 2.95k, False: 43]
  ------------------
10298|  2.95k|    raw_json_string key;
10298|  2.95k|    error_code error;
10298|  2.95k|    std::size_t idx;
10298|  2.95k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  2.95k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 4, False: 2.95k]
  ------------------
10299|  2.95k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 4, False: 2.94k]
  ------------------
10299|  2.94k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  2.95k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 1.69k, False: 1.26k]
  ------------------
10300|  1.69k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  1.69k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  1.69k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 1.69k, False: 0]
  ------------------
10300|  1.69k|        seen_word |= seen_bit;
10300|  1.69k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  1.69k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  1.69k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 8, False: 1.68k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  1.69k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.68k, False: 8]
  ------------------
10302|  1.69k|      }
10302|  1.69k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  1.27k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 1.27k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  1.27k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 9, False: 1.26k]
  ------------------
10303|  1.26k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 4, False: 1.25k]
  ------------------
10303|  1.26k|  }
10303|  1.72k|  return {SUCCESS, matched};
10303|  1.74k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  2.94k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  2.94k|        const char* p = rjs.raw();
96024|  2.94k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  2.94k|            std::uint8_t ki = window.window_to_key[
96030|  2.94k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  2.94k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 537, False: 2.41k]
  ------------------
96032|  2.41k|            return key_selector_detail::match_window_candidate(
96033|  2.41k|                p, ki, window, std::make_index_sequence<N>{});
96034|  2.94k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  2.94k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEE4sizeEv:
95952|  4.63k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc97ELc116ELc116ELc114ELc105ELc98ELc117ELc116ELc101ELc115EEEEEEEJRNSt3__16vectorIN8fastgltf9AttributeENSA_9allocatorISD_EEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSI_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_ENKUlmNS1_5valueEE_clEmSN_:
10308|  1.69k|      [&](std::size_t i, value v) -> error_code {
10308|  1.69k|        return key_selector_for_each_detail::dispatch_value(
10308|  1.69k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  1.69k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf9AttributeENS4_9allocatorIS8_EEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  1.69k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  1.69k|  error_code err = SUCCESS;
10304|  1.69k|  auto try_one = [&](auto Ic) {
10305|  1.69k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.69k|    if (idx == I) {
10305|  1.69k|      auto&& h = std::get<I>(handlers);
10305|  1.69k|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.69k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.69k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.69k|          err = h(v);
10306|  1.69k|        } else {
10306|  1.69k|          h(v);
10306|  1.69k|        }
10306|  1.69k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  1.69k|        err = v.get(h);
10306|  1.69k|      }
10306|  1.69k|    }
10306|  1.69k|  };
10306|  1.69k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  1.69k|  return err;
10307|  1.69k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf9AttributeENS4_9allocatorIS8_EEEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSF_E_clINS4_17integral_constantImLm0EEEEEDaSF_:
10304|  1.69k|  auto try_one = [&](auto Ic) {
10305|  1.69k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.69k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1.69k, False: 0]
  ------------------
10305|  1.69k|      auto&& h = std::get<I>(handlers);
10305|  1.69k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  1.69k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  1.69k|        err = v.get(h);
10306|  1.69k|      }
10306|  1.69k|    }
10306|  1.69k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm2EEEEEDaS11_:
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 78.9k, False: 52.8k]
  ------------------
10305|  78.9k|      auto&& h = std::get<I>(handlers);
10305|  78.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|  78.9k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  78.9k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  78.9k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  78.9k|    }
10306|   131k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm3EEEEEDaS11_:
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 11.6k, False: 120k]
  ------------------
10305|  11.6k|      auto&& h = std::get<I>(handlers);
10305|  11.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|  11.6k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  11.6k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  11.6k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  11.6k|    }
10306|   131k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEJRbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  11.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  11.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 11.6k]
  ------------------
10350|  11.6k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  11.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEJRbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  11.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  11.6k|  using Selector = key_selector<Keys...>;
10309|  11.6k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  11.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEEEJRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  11.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  11.6k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  11.6k|  return this->template for_each<Selector>(
10308|  11.6k|      [&](std::size_t i, value v) -> error_code {
10308|  11.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  11.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  11.6k|      });
10309|  11.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEEEZNS2_8for_eachIS9_JRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  11.6k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  11.6k|  value_iterator it = iter;
10297|  11.6k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  11.6k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  11.6k|  std::array<std::uint64_t, seen_words> seen{};
10298|  13.3k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 12.3k, False: 1.01k]
  ------------------
10298|  12.3k|    raw_json_string key;
10298|  12.3k|    error_code error;
10298|  12.3k|    std::size_t idx;
10298|  12.3k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  12.3k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 10, False: 12.3k]
  ------------------
10299|  12.3k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 9, False: 12.3k]
  ------------------
10299|  12.3k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  12.3k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 10.6k, False: 1.68k]
  ------------------
10300|  10.6k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  10.6k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  10.6k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 10.6k, False: 0]
  ------------------
10300|  10.6k|        seen_word |= seen_bit;
10300|  10.6k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  10.6k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  10.6k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 18, False: 10.6k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  10.6k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 10.6k, False: 18]
  ------------------
10302|  10.6k|      }
10302|  10.6k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  1.70k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 1.70k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  1.70k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 1, False: 1.70k]
  ------------------
10303|  1.70k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 18, False: 1.68k]
  ------------------
10303|  1.70k|  }
10303|  11.6k|  return {SUCCESS, matched};
10303|  11.6k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  12.3k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  12.3k|        const char* p = rjs.raw();
96024|  12.3k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  12.3k|            std::uint8_t ki = window.window_to_key[
96030|  12.3k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  12.3k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 669, False: 11.6k]
  ------------------
96032|  11.6k|            return key_selector_detail::match_window_candidate(
96033|  11.6k|                p, ki, window, std::make_index_sequence<N>{});
96034|  12.3k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  12.3k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEE4sizeEv:
95952|  22.9k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc118ELc105ELc115ELc105ELc98ELc108ELc101EEEEEEEJRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  10.6k|      [&](std::size_t i, value v) -> error_code {
10308|  10.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.6k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  22.3k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  22.3k|  error_code err = SUCCESS;
10304|  22.3k|  auto try_one = [&](auto Ic) {
10305|  22.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  22.3k|    if (idx == I) {
10305|  22.3k|      auto&& h = std::get<I>(handlers);
10305|  22.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  22.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  22.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  22.3k|          err = h(v);
10306|  22.3k|        } else {
10306|  22.3k|          h(v);
10306|  22.3k|        }
10306|  22.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  22.3k|        err = v.get(h);
10306|  22.3k|      }
10306|  22.3k|    }
10306|  22.3k|  };
10306|  22.3k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  22.3k|  return err;
10307|  22.3k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS9_E_clINS4_17integral_constantImLm0EEEEEDaS9_:
10304|  22.3k|  auto try_one = [&](auto Ic) {
10305|  22.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  22.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 22.3k, False: 0]
  ------------------
10305|  22.3k|      auto&& h = std::get<I>(handlers);
10305|  22.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  22.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  22.3k|        err = v.get(h);
10306|  22.3k|      }
10306|  22.3k|    }
10306|  22.3k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm4EEEEEDaS11_:
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.0k, False: 121k]
  ------------------
10305|  10.0k|      auto&& h = std::get<I>(handlers);
10305|  10.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.0k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.0k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.0k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  10.0k|    }
10306|   131k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEJRbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  10.0k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  10.0k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 10.0k]
  ------------------
10350|  10.0k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  10.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEJRbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  10.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  10.0k|  using Selector = key_selector<Keys...>;
10309|  10.0k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  10.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEEEJRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  10.0k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  10.0k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  10.0k|  return this->template for_each<Selector>(
10308|  10.0k|      [&](std::size_t i, value v) -> error_code {
10308|  10.0k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.0k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.0k|      });
10309|  10.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEEEZNS2_8for_eachIS9_JRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  10.0k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  10.0k|  value_iterator it = iter;
10297|  10.0k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  10.0k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  10.0k|  std::array<std::uint64_t, seen_words> seen{};
10298|  11.3k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 10.2k, False: 1.03k]
  ------------------
10298|  10.2k|    raw_json_string key;
10298|  10.2k|    error_code error;
10298|  10.2k|    std::size_t idx;
10298|  10.2k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  10.2k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 17, False: 10.2k]
  ------------------
10299|  10.2k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 9, False: 10.2k]
  ------------------
10299|  10.2k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  10.2k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 8.96k, False: 1.32k]
  ------------------
10300|  8.96k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  8.96k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  8.96k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 8.96k, False: 0]
  ------------------
10300|  8.96k|        seen_word |= seen_bit;
10300|  8.96k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  8.96k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  8.96k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 3, False: 8.96k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  8.96k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 8.96k, False: 3]
  ------------------
10302|  8.96k|      }
10302|  8.96k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  1.32k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 1.32k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  1.32k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 4, False: 1.32k]
  ------------------
10303|  1.32k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 8, False: 1.31k]
  ------------------
10303|  1.32k|  }
10303|  9.99k|  return {SUCCESS, matched};
10303|  10.0k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  10.2k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  10.2k|        const char* p = rjs.raw();
96024|  10.2k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  10.2k|            std::uint8_t ki = window.window_to_key[
96030|  10.2k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  10.2k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 711, False: 9.54k]
  ------------------
96032|  9.54k|            return key_selector_detail::match_window_candidate(
96033|  9.54k|                p, ki, window, std::make_index_sequence<N>{});
96034|  10.2k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  10.2k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEE4sizeEv:
95952|  19.2k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm11EEEtlA11_cLc115ELc101ELc108ELc101ELc99ELc116ELc97ELc98ELc108ELc101EEEEEEEJRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  8.96k|      [&](std::size_t i, value v) -> error_code {
10308|  8.96k|        return key_selector_for_each_detail::dispatch_value(
10308|  8.96k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  8.96k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRKZZN8fastgltf6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEENK3$_0clENS1_5valueERNS6_4NodeEEUlSE_E_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E0_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E1_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E2_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E3_RKZZNS7_10parseNodesESA_SC_ENKSD_clESE_SG_EUlSE_E4_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlS11_E_clINS4_17integral_constantImLm5EEEEEDaS11_:
10304|   131k|  auto try_one = [&](auto Ic) {
10305|   131k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   131k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.25k, False: 128k]
  ------------------
10305|  3.25k|      auto&& h = std::get<I>(handlers);
10305|  3.25k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.25k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.25k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.25k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  3.25k|    }
10306|   131k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEJRbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  3.25k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  3.25k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 4, False: 3.24k]
  ------------------
10350|  3.24k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  3.25k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEJRbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  3.24k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  3.24k|  using Selector = key_selector<Keys...>;
10309|  3.24k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  3.24k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEEEJRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  3.24k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  3.24k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  3.24k|  return this->template for_each<Selector>(
10308|  3.24k|      [&](std::size_t i, value v) -> error_code {
10308|  3.24k|        return key_selector_for_each_detail::dispatch_value(
10308|  3.24k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  3.24k|      });
10309|  3.24k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEEEZNS2_8for_eachIS9_JRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  3.24k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  3.24k|  value_iterator it = iter;
10297|  3.24k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  3.24k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  3.24k|  std::array<std::uint64_t, seen_words> seen{};
10298|  5.70k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 5.18k, False: 516]
  ------------------
10298|  5.18k|    raw_json_string key;
10298|  5.18k|    error_code error;
10298|  5.18k|    std::size_t idx;
10298|  5.18k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  5.18k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 6, False: 5.18k]
  ------------------
10299|  5.18k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 4, False: 5.17k]
  ------------------
10299|  5.17k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  5.18k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 2.72k, False: 2.46k]
  ------------------
10300|  2.72k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  2.72k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  2.72k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 2.72k, False: 0]
  ------------------
10300|  2.72k|        seen_word |= seen_bit;
10300|  2.72k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  2.72k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  2.72k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 2, False: 2.72k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  2.72k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 2.72k, False: 2]
  ------------------
10302|  2.72k|      }
10302|  2.72k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  2.46k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 2.46k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  2.46k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 2, False: 2.46k]
  ------------------
10303|  2.46k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 9, False: 2.45k]
  ------------------
10303|  2.46k|  }
10303|  3.23k|  return {SUCCESS, matched};
10303|  3.24k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  5.17k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  5.17k|        const char* p = rjs.raw();
96024|  5.17k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  5.17k|            std::uint8_t ki = window.window_to_key[
96030|  5.17k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  5.17k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2.09k, False: 3.08k]
  ------------------
96032|  3.08k|            return key_selector_detail::match_window_candidate(
96033|  3.08k|                p, ki, window, std::make_index_sequence<N>{});
96034|  5.17k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  5.17k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm9EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  3.08k|                       std::index_sequence<Is...>) noexcept {
95865|  3.08k|  std::size_t result = N;
95866|  3.08k|  auto try_match = [&](auto Ic) {
95867|  3.08k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  3.08k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  3.08k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  3.08k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  3.08k|      result = i;
95872|  3.08k|    }
95873|  3.08k|  };
95874|  3.08k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  3.08k|  return result;
95876|  3.08k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm1ELm9EJLm0EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  3.08k|  auto try_match = [&](auto Ic) {
95867|  3.08k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  3.08k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 3.08k, False: 0]
  |  Branch (95868:20): [True: 2.78k, False: 302]
  ------------------
95869|  2.78k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 2.72k, False: 59]
  ------------------
95870|  2.78k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  2.72k|      result = i;
95872|  2.72k|    }
95873|  3.08k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEE4sizeEv:
95952|  7.90k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc104ELc111ELc118ELc101ELc114ELc97ELc98ELc108ELc101EEEEEEEJRbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  2.72k|      [&](std::size_t i, value v) -> error_code {
10308|  2.72k|        return key_selector_for_each_detail::dispatch_value(
10308|  2.72k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  2.72k|      });
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEERNS4_6vectorImNS4_9allocatorImEEEESB_RNS4_8optionalINS6_4math3matIfLm4ELm4EEEEESB_RNSI_4quatIfEERNSI_3vecIfLm3EEESS_RNSC_IfNSD_IfEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_6Parser10parseNodesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_1RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11EEEENS_10error_codeEmRT_S1F_NS4_16integer_sequenceImJXspT0_EEEEENKUlS1L_E_clINS4_17integral_constantImLm11EEEEEDaS1L_:
10304|   446k|  auto try_one = [&](auto Ic) {
10305|   446k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   446k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 949, False: 445k]
  ------------------
10305|    949|      auto&& h = std::get<I>(handlers);
10305|    949|      using H = std::remove_reference_t<decltype(h)>;
10305|    949|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    949|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    949|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    949|    }
10306|   446k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS8_tlS9_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS7_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlSA_tlSB_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalINSG_6FilterENSG_15flagged_storageISI_EEEESM_RNSG_4WrapESO_RNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS15_:
10349|  86.5k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  86.5k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 58, False: 86.4k]
  ------------------
10350|  86.4k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  86.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS6_tlS7_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS5_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlS8_tlS9_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalINSE_6FilterENSE_15flagged_storageISG_EEEESK_RNSE_4WrapESM_RNSt3__112basic_stringIcNSN_11char_traitsIcEENSN_9allocatorIcEEEERKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS13_:
10309|  86.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  86.4k|  using Selector = key_selector<Keys...>;
10309|  86.4k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  86.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS7_tlS8_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlS9_tlSA_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalINSG_6FilterENSG_15flagged_storageISI_EEEESM_RNSG_4WrapESO_RNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS15_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS16_:
10308|  86.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  86.4k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  86.4k|  return this->template for_each<Selector>(
10308|  86.4k|      [&](std::size_t i, value v) -> error_code {
10308|  86.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  86.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  86.4k|      });
10309|  86.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS7_tlS8_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlS9_tlSA_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRN8fastgltf14basic_optionalINSH_6FilterENSH_15flagged_storageISJ_EEEESN_RNSH_4WrapESP_RNSt3__112basic_stringIcNSQ_11char_traitsIcEENSQ_9allocatorIcEEEERKZNSH_10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS16_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_EUlmS12_E_Qaa17key_selector_typeIS16_Esr3stdE14is_invocable_vIRT0_mS12_EEES18_OS1C_:
10296|  86.4k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  86.4k|  value_iterator it = iter;
10297|  86.4k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  86.4k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  86.4k|  std::array<std::uint64_t, seen_words> seen{};
10298|   217k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 132k, False: 85.2k]
  ------------------
10298|   132k|    raw_json_string key;
10298|   132k|    error_code error;
10298|   132k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   132k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   132k|      std::size_t key_len;
10299|   132k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 18, False: 132k]
  ------------------
10299|   132k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 39, False: 132k]
  ------------------
10300|   132k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   132k|    }
10300|   132k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 85.7k, False: 46.5k]
  ------------------
10300|  85.7k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  85.7k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  85.7k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 82.7k, False: 2.97k]
  ------------------
10300|  82.7k|        seen_word |= seen_bit;
10300|  82.7k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  82.7k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  82.7k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 414, False: 82.3k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  82.7k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 1.15k, False: 81.6k]
  ------------------
10302|  82.7k|      }
10302|  85.7k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   131k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 131k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   131k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 23, False: 131k]
  ------------------
10303|   131k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 31, False: 131k]
  ------------------
10303|   131k|  }
10303|  86.3k|  return {SUCCESS, matched};
10303|  86.4k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS5_tlS6_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlS7_tlS8_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawEPKcm:
95964|   132k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   132k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 1.14k, False: 131k]
  |  Branch (95965:25): [True: 24.1k, False: 106k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   106k|        std::size_t slot;
95981|   106k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 106k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   106k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   106k|            std::size_t h = len;
95996|   320k|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 213k, False: 106k]
  ------------------
95997|   213k|                std::uint8_t pos = phf.positions[i];
95998|   213k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 213k]
  ------------------
95999|   213k|                                  ? (len - std::size_t{1})
96000|   213k|                                  : static_cast<std::size_t>(pos);
96001|   213k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 178k, False: 35.0k]
  ------------------
96002|   178k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|   178k|                }
96004|   213k|            }
96005|   106k|            slot = h & (table_size - 1);
96006|   106k|        }
96007|       |
96008|   106k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   106k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 5.96k, False: 101k]
  ------------------
96010|   101k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 8.32k, False: 92.6k]
  ------------------
96011|  92.6k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 6.95k, False: 85.7k]
  ------------------
96012|  92.6k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|  85.7k|        return ki;
96014|  92.6k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS5_tlS6_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlS7_tlS8_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   214k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm10EEEtlA10_cLc109ELc97ELc103ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlS7_tlS8_Lc109ELc105ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc119ELc114ELc97ELc112ELc83EEEEXtlS9_tlSA_Lc119ELc114ELc97ELc112ELc84EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalINSG_6FilterENSG_15flagged_storageISI_EEEESM_RNSG_4WrapESO_RNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS15_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS16_ENKUlmS11_E_clEmS11_:
10308|  82.7k|      [&](std::size_t i, value v) -> error_code {
10308|  82.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  82.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  82.7k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  82.7k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  82.7k|  error_code err = SUCCESS;
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
10305|  82.7k|      auto&& h = std::get<I>(handlers);
10305|  82.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|  82.7k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  82.7k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  82.7k|          err = h(v);
10306|  82.7k|        } else {
10306|  82.7k|          h(v);
10306|  82.7k|        }
10306|  82.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  82.7k|        err = v.get(h);
10306|  82.7k|      }
10306|  82.7k|    }
10306|  82.7k|  };
10306|  82.7k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  82.7k|  return err;
10307|  82.7k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSW_E_clINS4_17integral_constantImLm0EEEEEDaSW_:
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 14.2k, False: 68.4k]
  ------------------
10305|  14.2k|      auto&& h = std::get<I>(handlers);
10305|  14.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  14.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  14.2k|        err = v.get(h);
10306|  14.2k|      }
10306|  14.2k|    }
10306|  82.7k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf14basic_optionalINS4_6FilterENS4_15flagged_storageIS6_EEEEEENS_10error_codeERT_:
89907|  32.1k| {
89908|  32.1k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  32.1k|  if constexpr (custom_deserializable<T, value>) {
89910|  32.1k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  32.1k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf14basic_optionalINS2_6FilterENS2_15flagged_storageIS4_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSB_RS8_:
89261|  32.1k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  32.1k|    return tag_invoke(*this, object, output);
89263|  32.1k|  }
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf6FilterEEENS_10error_codeERT_:
89907|  32.1k| {
89908|  32.1k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  32.1k|  if constexpr (custom_deserializable<T, value>) {
89910|  32.1k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  32.1k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf6FilterEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  32.1k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  32.1k|    return tag_invoke(*this, object, output);
89263|  32.1k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSW_E_clINS4_17integral_constantImLm1EEEEEDaSW_:
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.8k, False: 64.9k]
  ------------------
10305|  17.8k|      auto&& h = std::get<I>(handlers);
10305|  17.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.8k|        err = v.get(h);
10306|  17.8k|      }
10306|  17.8k|    }
10306|  82.7k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSW_E_clINS4_17integral_constantImLm2EEEEEDaSW_:
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 13.7k, False: 69.0k]
  ------------------
10305|  13.7k|      auto&& h = std::get<I>(handlers);
10305|  13.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  13.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  13.7k|        err = v.get(h);
10306|  13.7k|      }
10306|  13.7k|    }
10306|  82.7k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf4WrapEEENS_10error_codeERT_:
89907|  28.4k| {
89908|  28.4k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  28.4k|  if constexpr (custom_deserializable<T, value>) {
89910|  28.4k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  28.4k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf4WrapEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  28.4k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  28.4k|    return tag_invoke(*this, object, output);
89263|  28.4k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSW_E_clINS4_17integral_constantImLm3EEEEEDaSW_:
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 14.6k, False: 68.0k]
  ------------------
10305|  14.6k|      auto&& h = std::get<I>(handlers);
10305|  14.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  14.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  14.6k|        err = v.get(h);
10306|  14.6k|      }
10306|  14.6k|    }
10306|  82.7k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSW_E_clINS4_17integral_constantImLm4EEEEEDaSW_:
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 20.8k, False: 61.8k]
  ------------------
10305|  20.8k|      auto&& h = std::get<I>(handlers);
10305|  20.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  20.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.8k|        err = v.get(h);
10306|  20.8k|      }
10306|  20.8k|    }
10306|  82.7k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalINS6_6FilterENS6_15flagged_storageIS8_EEEESC_RNS6_4WrapESE_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SQ_NS4_16integer_sequenceImJXspT0_EEEEENKUlSW_E_clINS4_17integral_constantImLm5EEEEEDaSW_:
10304|  82.7k|  auto try_one = [&](auto Ic) {
10305|  82.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  82.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1.35k, False: 81.4k]
  ------------------
10305|  1.35k|      auto&& h = std::get<I>(handlers);
10305|  1.35k|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.35k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.35k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.35k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  1.35k|    }
10306|  82.7k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorImNSE_9allocatorImEEEERNSE_12basic_stringIcNSE_11char_traitsIcEENSG_IcEEEERKZN8fastgltf10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSZ_:
10349|  83.8k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  83.8k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 45, False: 83.7k]
  ------------------
10350|  83.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  83.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorImNSC_9allocatorImEEEERNSC_12basic_stringIcNSC_11char_traitsIcEENSE_IcEEEERKZN8fastgltf10readExtrasERKNSO_20ParserInternalConfigEmNSO_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10309|  83.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  83.7k|  using Selector = key_selector<Keys...>;
10309|  83.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  83.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorImNSE_9allocatorImEEEERNSE_12basic_stringIcNSE_11char_traitsIcEENSG_IcEEEERKZN8fastgltf10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSZ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_:
10308|  83.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  83.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  83.7k|  return this->template for_each<Selector>(
10308|  83.7k|      [&](std::size_t i, value v) -> error_code {
10308|  83.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  83.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  83.7k|      });
10309|  83.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISD_JRNSt3__16vectorImNSF_9allocatorImEEEERNSF_12basic_stringIcNSF_11char_traitsIcEENSH_IcEEEERKZN8fastgltf10readExtrasERKNSR_20ParserInternalConfigEmNSR_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS10_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_EUlmSW_E_Qaa17key_selector_typeIS10_Esr3stdE14is_invocable_vIRT0_mSW_EEES12_OS16_:
10296|  83.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  83.7k|  value_iterator it = iter;
10297|  83.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  83.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  83.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   166k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 85.7k, False: 80.5k]
  ------------------
10298|  85.7k|    raw_json_string key;
10298|  85.7k|    error_code error;
10298|  85.7k|    std::size_t idx;
10298|  85.7k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  85.7k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 10, False: 85.7k]
  ------------------
10299|  85.7k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 25, False: 85.7k]
  ------------------
10299|  85.7k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  85.7k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 40.4k, False: 45.3k]
  ------------------
10300|  40.4k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  40.4k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  40.4k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 38.7k, False: 1.70k]
  ------------------
10300|  38.7k|        seen_word |= seen_bit;
10300|  38.7k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  38.7k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  38.7k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 14, False: 38.6k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  38.7k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 3.20k, False: 35.5k]
  ------------------
10302|  38.7k|      }
10302|  40.4k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  82.5k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 82.5k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  82.5k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 18, False: 82.5k]
  ------------------
10303|  82.5k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 19, False: 82.5k]
  ------------------
10303|  82.5k|  }
10303|  83.7k|  return {SUCCESS, matched};
10303|  83.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  85.7k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  85.7k|        const char* p = rjs.raw();
96024|  85.7k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  85.7k|            std::uint8_t ki = window.window_to_key[
96030|  85.7k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  85.7k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 38.3k, False: 47.3k]
  ------------------
96032|  47.3k|            return key_selector_detail::match_window_candidate(
96033|  47.3k|                p, ki, window, std::make_index_sequence<N>{});
96034|  85.7k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  85.7k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   124k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorImNSE_9allocatorImEEEERNSE_12basic_stringIcNSE_11char_traitsIcEENSG_IcEEEERKZN8fastgltf10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSZ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_ENKUlmSV_E_clEmSV_:
10308|  38.7k|      [&](std::size_t i, value v) -> error_code {
10308|  38.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  38.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  38.7k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS7_IcEEEERKZN8fastgltf10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SM_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  38.7k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  38.7k|  error_code err = SUCCESS;
10304|  38.7k|  auto try_one = [&](auto Ic) {
10305|  38.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.7k|    if (idx == I) {
10305|  38.7k|      auto&& h = std::get<I>(handlers);
10305|  38.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|  38.7k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  38.7k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  38.7k|          err = h(v);
10306|  38.7k|        } else {
10306|  38.7k|          h(v);
10306|  38.7k|        }
10306|  38.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  38.7k|        err = v.get(h);
10306|  38.7k|      }
10306|  38.7k|    }
10306|  38.7k|  };
10306|  38.7k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  38.7k|  return err;
10307|  38.7k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS7_IcEEEERKZN8fastgltf10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SM_NS4_16integer_sequenceImJXspT0_EEEEENKUlSS_E_clINS4_17integral_constantImLm0EEEEEDaSS_:
10304|  38.7k|  auto try_one = [&](auto Ic) {
10305|  38.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 9.62k, False: 29.0k]
  ------------------
10305|  9.62k|      auto&& h = std::get<I>(handlers);
10305|  9.62k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  9.62k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  9.62k|        err = v.get(h);
10306|  9.62k|      }
10306|  9.62k|    }
10306|  38.7k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS7_IcEEEERKZN8fastgltf10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SM_NS4_16integer_sequenceImJXspT0_EEEEENKUlSS_E_clINS4_17integral_constantImLm1EEEEEDaSS_:
10304|  38.7k|  auto try_one = [&](auto Ic) {
10305|  38.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 25.6k, False: 13.0k]
  ------------------
10305|  25.6k|      auto&& h = std::get<I>(handlers);
10305|  25.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  25.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  25.6k|        err = v.get(h);
10306|  25.6k|      }
10306|  25.6k|    }
10306|  38.7k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENS7_IcEEEERKZN8fastgltf10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SM_NS4_16integer_sequenceImJXspT0_EEEEENKUlSS_E_clINS4_17integral_constantImLm2EEEEEDaSS_:
10304|  38.7k|  auto try_one = [&](auto Ic) {
10305|  38.7k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  38.7k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.46k, False: 35.2k]
  ------------------
10305|  3.46k|      auto&& h = std::get<I>(handlers);
10305|  3.46k|      using H = std::remove_reference_t<decltype(h)>;
10305|  3.46k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  3.46k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  3.46k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  3.46k|    }
10306|  38.7k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS7_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS7_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlSC_tlSD_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEESL_RNSt3__16vectorImNSM_9allocatorImEEEERNSM_12basic_stringIcNSM_11char_traitsIcEENSO_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS16_:
10349|  38.8k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  38.8k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 68, False: 38.7k]
  ------------------
10350|  38.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  38.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS5_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS5_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlSA_tlSB_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RNSt3__16vectorImNSK_9allocatorImEEEERNSK_12basic_stringIcNSK_11char_traitsIcEENSM_IcEEEERKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS14_:
10309|  38.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  38.7k|  using Selector = key_selector<Keys...>;
10309|  38.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  38.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlSB_tlSC_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEESL_RNSt3__16vectorImNSM_9allocatorImEEEERNSM_12basic_stringIcNSM_11char_traitsIcEENSO_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS16_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_:
10308|  38.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  38.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  38.7k|  return this->template for_each<Selector>(
10308|  38.7k|      [&](std::size_t i, value v) -> error_code {
10308|  38.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  38.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  38.7k|      });
10309|  38.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlSB_tlSC_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRN8fastgltf14basic_optionalImNSH_15flagged_storageImEEEESM_RNSt3__16vectorImNSN_9allocatorImEEEERNSN_12basic_stringIcNSN_11char_traitsIcEENSP_IcEEEERKZNSH_10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS17_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS18_EUlmS13_E_Qaa17key_selector_typeIS17_Esr3stdE14is_invocable_vIRT0_mS13_EEES19_OS1D_:
10296|  38.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  38.7k|  value_iterator it = iter;
10297|  38.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  38.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  38.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|   144k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 114k, False: 29.8k]
  ------------------
10298|   114k|    raw_json_string key;
10298|   114k|    error_code error;
10298|   114k|    std::size_t idx;
10298|   114k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   114k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 24, False: 114k]
  ------------------
10299|   114k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 36, False: 114k]
  ------------------
10299|   114k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   114k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 96.1k, False: 18.0k]
  ------------------
10300|  96.1k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  96.1k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  96.1k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 93.3k, False: 2.82k]
  ------------------
10300|  93.3k|        seen_word |= seen_bit;
10300|  93.3k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  93.3k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  93.3k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 72, False: 93.2k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  93.3k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 8.83k, False: 84.4k]
  ------------------
10302|  93.3k|      }
10302|  96.1k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   105k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 105k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   105k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 31, False: 105k]
  ------------------
10303|   105k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 29, False: 105k]
  ------------------
10303|   105k|  }
10303|  38.6k|  return {SUCCESS, matched};
10303|  38.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS4_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   114k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   114k|        const char* p = rjs.raw();
96024|   114k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   114k|            std::uint8_t ki = window.window_to_key[
96030|   114k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   114k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 5.88k, False: 108k]
  ------------------
96032|   108k|            return key_selector_detail::match_window_candidate(
96033|   108k|                p, ki, window, std::make_index_sequence<N>{});
96034|   114k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   114k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm19EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   108k|                       std::index_sequence<Is...>) noexcept {
95865|   108k|  std::size_t result = N;
95866|   108k|  auto try_match = [&](auto Ic) {
95867|   108k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   108k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   108k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   108k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   108k|      result = i;
95872|   108k|    }
95873|   108k|  };
95874|   108k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   108k|  return result;
95876|   108k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm19EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   108k|  auto try_match = [&](auto Ic) {
95867|   108k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   108k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.2k, False: 96.0k]
  |  Branch (95868:20): [True: 11.4k, False: 775]
  ------------------
95869|  11.4k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 10.9k, False: 544]
  ------------------
95870|  11.4k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  10.9k|      result = i;
95872|  10.9k|    }
95873|   108k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm19EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   108k|  auto try_match = [&](auto Ic) {
95867|   108k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   108k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 12.2k, False: 95.9k]
  |  Branch (95868:20): [True: 10.7k, False: 1.55k]
  ------------------
95869|  10.7k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 9.97k, False: 770]
  ------------------
95870|  10.7k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  9.97k|      result = i;
95872|  9.97k|    }
95873|   108k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm19EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   108k|  auto try_match = [&](auto Ic) {
95867|   108k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   108k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 42.1k, False: 66.0k]
  |  Branch (95868:20): [True: 39.8k, False: 2.38k]
  ------------------
95869|  39.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 39.5k, False: 305]
  ------------------
95870|  39.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  39.5k|      result = i;
95872|  39.5k|    }
95873|   108k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm19EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   108k|  auto try_match = [&](auto Ic) {
95867|   108k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   108k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 30.0k, False: 78.2k]
  |  Branch (95868:20): [True: 28.1k, False: 1.93k]
  ------------------
95869|  28.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 26.1k, False: 2.01k]
  ------------------
95870|  28.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  26.1k|      result = i;
95872|  26.1k|    }
95873|   108k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm5ELm19EJLm0ELm1ELm2ELm3ELm4EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   108k|  auto try_match = [&](auto Ic) {
95867|   108k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   108k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 11.4k, False: 96.8k]
  |  Branch (95868:20): [True: 10.5k, False: 924]
  ------------------
95869|  10.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 9.59k, False: 939]
  ------------------
95870|  10.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  9.59k|      result = i;
95872|  9.59k|    }
95873|   108k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS4_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS4_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   207k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm20EEEtlA20_cLc105ELc110ELc118ELc101ELc114ELc115ELc101ELc66ELc105ELc110ELc100ELc77ELc97ELc116ELc114ELc105ELc99ELc101ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc115ELc107ELc101ELc108ELc101ELc116ELc111ELc110EEEEXtlNS6_ILm7EEEtlA7_cLc106ELc111ELc105ELc110ELc116ELc115EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlSB_tlSC_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEESL_RNSt3__16vectorImNSM_9allocatorImEEEERNSM_12basic_stringIcNSM_11char_traitsIcEENSO_IcEEEERKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS16_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_ENKUlmS12_E_clEmS12_:
10308|  93.3k|      [&](std::size_t i, value v) -> error_code {
10308|  93.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  93.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  93.3k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  93.3k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  93.3k|  error_code err = SUCCESS;
10304|  93.3k|  auto try_one = [&](auto Ic) {
10305|  93.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  93.3k|    if (idx == I) {
10305|  93.3k|      auto&& h = std::get<I>(handlers);
10305|  93.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  93.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  93.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  93.3k|          err = h(v);
10306|  93.3k|        } else {
10306|  93.3k|          h(v);
10306|  93.3k|        }
10306|  93.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  93.3k|        err = v.get(h);
10306|  93.3k|      }
10306|  93.3k|    }
10306|  93.3k|  };
10306|  93.3k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  93.3k|  return err;
10307|  93.3k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm0EEEEEDaSX_:
10304|  93.3k|  auto try_one = [&](auto Ic) {
10305|  93.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  93.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.7k, False: 82.6k]
  ------------------
10305|  10.7k|      auto&& h = std::get<I>(handlers);
10305|  10.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  10.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.7k|        err = v.get(h);
10306|  10.7k|      }
10306|  10.7k|    }
10306|  93.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm1EEEEEDaSX_:
10304|  93.3k|  auto try_one = [&](auto Ic) {
10305|  93.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  93.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 9.44k, False: 83.8k]
  ------------------
10305|  9.44k|      auto&& h = std::get<I>(handlers);
10305|  9.44k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  9.44k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  9.44k|        err = v.get(h);
10306|  9.44k|      }
10306|  9.44k|    }
10306|  93.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm2EEEEEDaSX_:
10304|  93.3k|  auto try_one = [&](auto Ic) {
10305|  93.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  93.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 38.5k, False: 54.7k]
  ------------------
10305|  38.5k|      auto&& h = std::get<I>(handlers);
10305|  38.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  38.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  38.5k|        err = v.get(h);
10306|  38.5k|      }
10306|  38.5k|    }
10306|  93.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm3EEEEEDaSX_:
10304|  93.3k|  auto try_one = [&](auto Ic) {
10305|  93.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  93.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 25.2k, False: 68.0k]
  ------------------
10305|  25.2k|      auto&& h = std::get<I>(handlers);
10305|  25.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  25.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  25.2k|        err = v.get(h);
10306|  25.2k|      }
10306|  25.2k|    }
10306|  93.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_6vectorImNS4_9allocatorImEEEERNS4_12basic_stringIcNS4_11char_traitsIcEENSD_IcEEEERKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SR_NS4_16integer_sequenceImJXspT0_EEEEENKUlSX_E_clINS4_17integral_constantImLm4EEEEEDaSX_:
10304|  93.3k|  auto try_one = [&](auto Ic) {
10305|  93.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  93.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 9.37k, False: 83.9k]
  ------------------
10305|  9.37k|      auto&& h = std::get<I>(handlers);
10305|  9.37k|      using H = std::remove_reference_t<decltype(h)>;
10305|  9.37k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  9.37k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  9.37k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  9.37k|    }
10306|  93.3k|  };
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS7_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS7_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS7_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlSA_tlSB_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEESL_RNSt3__112basic_stringIcNSM_11char_traitsIcEENSM_9allocatorIcEEEERKZNSG_6Parser13parseTexturesERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1B_:
10349|  64.2k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  64.2k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 34, False: 64.2k]
  ------------------
10350|  64.2k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  64.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS5_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS5_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS5_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RNSt3__112basic_stringIcNSK_11char_traitsIcEENSK_9allocatorIcEEEERKZNSE_6Parser13parseTexturesERNSE_8internal9JsonArrayERNSE_5AssetEE3$_0RKZNSE_10readExtrasERKNSE_20ParserInternalConfigEmNSE_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS19_:
10309|  64.2k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  64.2k|  using Selector = key_selector<Keys...>;
10309|  64.2k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  64.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEESL_RNSt3__112basic_stringIcNSM_11char_traitsIcEENSM_9allocatorIcEEEERKZNSG_6Parser13parseTexturesERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1B_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_:
10308|  64.2k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  64.2k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  64.2k|  return this->template for_each<Selector>(
10308|  64.2k|      [&](std::size_t i, value v) -> error_code {
10308|  64.2k|        return key_selector_for_each_detail::dispatch_value(
10308|  64.2k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  64.2k|      });
10309|  64.2k|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRN8fastgltf14basic_optionalImNSH_15flagged_storageImEEEESM_RNSt3__112basic_stringIcNSN_11char_traitsIcEENSN_9allocatorIcEEEERKZNSH_6Parser13parseTexturesERNSH_8internal9JsonArrayERNSH_5AssetEE3$_0RKZNSH_10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1C_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1D_EUlmS18_E_Qaa17key_selector_typeIS1C_Esr3stdE14is_invocable_vIRT0_mS18_EEES1E_OS1I_:
10296|  64.2k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  64.2k|  value_iterator it = iter;
10297|  64.2k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  64.2k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  64.2k|  std::array<std::uint64_t, seen_words> seen{};
10298|   227k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 163k, False: 63.9k]
  ------------------
10298|   163k|    raw_json_string key;
10298|   163k|    error_code error;
10298|   163k|    std::size_t idx;
10298|   163k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   163k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 24, False: 163k]
  ------------------
10299|   163k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 36, False: 163k]
  ------------------
10299|   163k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   163k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 127k, False: 35.5k]
  ------------------
10300|   127k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   127k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   127k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 126k, False: 1.84k]
  ------------------
10300|   126k|        seen_word |= seen_bit;
10300|   126k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   126k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   126k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 173, False: 125k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   126k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 160, False: 125k]
  ------------------
10302|   126k|      }
10302|   127k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   163k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 163k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   163k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 36, False: 163k]
  ------------------
10303|   163k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 49, False: 163k]
  ------------------
10303|   163k|  }
10303|  64.1k|  return {SUCCESS, matched};
10303|  64.2k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS4_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   163k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   163k|        const char* p = rjs.raw();
96024|   163k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   163k|            std::uint8_t ki = window.window_to_key[
96030|   163k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   163k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 23.8k, False: 139k]
  ------------------
96032|   139k|            return key_selector_detail::match_window_candidate(
96033|   139k|                p, ki, window, std::make_index_sequence<N>{});
96034|   163k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   163k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS4_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS4_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS4_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   289k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc115ELc97ELc109ELc112ELc108ELc101ELc114EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEXtlNS6_ILm5EEEtlA5_cLc110ELc97ELc109ELc101EEEEXtlNS6_ILm11EEEtlA11_cLc101ELc120ELc116ELc101ELc110ELc115ELc105ELc111ELc110ELc115EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRN8fastgltf14basic_optionalImNSG_15flagged_storageImEEEESL_RNSt3__112basic_stringIcNSM_11char_traitsIcEENSM_9allocatorIcEEEERKZNSG_6Parser13parseTexturesERNSG_8internal9JsonArrayERNSG_5AssetEE3$_0RKZNSG_10readExtrasERKNSG_20ParserInternalConfigEmNSG_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1B_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1C_ENKUlmS17_E_clEmS17_:
10308|   126k|      [&](std::size_t i, value v) -> error_code {
10308|   126k|        return key_selector_for_each_detail::dispatch_value(
10308|   126k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   126k|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser13parseTexturesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SW_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   126k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   126k|  error_code err = SUCCESS;
10304|   126k|  auto try_one = [&](auto Ic) {
10305|   126k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   126k|    if (idx == I) {
10305|   126k|      auto&& h = std::get<I>(handlers);
10305|   126k|      using H = std::remove_reference_t<decltype(h)>;
10305|   126k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   126k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   126k|          err = h(v);
10306|   126k|        } else {
10306|   126k|          h(v);
10306|   126k|        }
10306|   126k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   126k|        err = v.get(h);
10306|   126k|      }
10306|   126k|    }
10306|   126k|  };
10306|   126k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   126k|  return err;
10307|   126k|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser13parseTexturesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlS12_E_clINS4_17integral_constantImLm0EEEEEDaS12_:
10304|   126k|  auto try_one = [&](auto Ic) {
10305|   126k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   126k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 38.4k, False: 87.6k]
  ------------------
10305|  38.4k|      auto&& h = std::get<I>(handlers);
10305|  38.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  38.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  38.4k|        err = v.get(h);
10306|  38.4k|      }
10306|  38.4k|    }
10306|   126k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser13parseTexturesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlS12_E_clINS4_17integral_constantImLm1EEEEEDaS12_:
10304|   126k|  auto try_one = [&](auto Ic) {
10305|   126k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   126k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 51.8k, False: 74.2k]
  ------------------
10305|  51.8k|      auto&& h = std::get<I>(handlers);
10305|  51.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  51.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  51.8k|        err = v.get(h);
10306|  51.8k|      }
10306|  51.8k|    }
10306|   126k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser13parseTexturesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlS12_E_clINS4_17integral_constantImLm2EEEEEDaS12_:
10304|   126k|  auto try_one = [&](auto Ic) {
10305|   126k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   126k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 24.5k, False: 101k]
  ------------------
10305|  24.5k|      auto&& h = std::get<I>(handlers);
10305|  24.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  24.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  24.5k|        err = v.get(h);
10306|  24.5k|      }
10306|  24.5k|    }
10306|   126k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser13parseTexturesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlS12_E_clINS4_17integral_constantImLm3EEEEEDaS12_:
10304|   126k|  auto try_one = [&](auto Ic) {
10305|   126k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   126k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.8k, False: 115k]
  ------------------
10305|  10.8k|      auto&& h = std::get<I>(handlers);
10305|  10.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.8k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  10.8k|    }
10306|   126k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS7_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlSA_tlSB_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlSA_tlSB_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEJZZN8fastgltf22parseTextureExtensionsENS2_5valueERNSC_7TextureENSC_10ExtensionsEENKUlSG_RNSC_14basic_optionalImNSC_15flagged_storageImEEEEE_clESG_SL_EUlSD_E_SN_SN_SN_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSO_:
10349|  10.8k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  10.8k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 8, False: 10.8k]
  ------------------
10350|  10.8k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  10.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS5_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlS8_tlS9_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlS8_tlS9_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEJZZN8fastgltf22parseTextureExtensionsENS1_5valueERNSA_7TextureENSA_10ExtensionsEENKUlSE_RNSA_14basic_optionalImNSA_15flagged_storageImEEEEE_clESE_SJ_EUlSB_E_SL_SL_SL_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_:
10309|  10.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  10.8k|  using Selector = key_selector<Keys...>;
10309|  10.8k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  10.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS6_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlS9_tlSA_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlS9_tlSA_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEEEJZZN8fastgltf22parseTextureExtensionsENS1_5valueERNSC_7TextureENSC_10ExtensionsEENKUlSG_RNSC_14basic_optionalImNSC_15flagged_storageImEEEEE_clESG_SL_EUlSD_E_SN_SN_SN_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_:
10308|  10.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  10.8k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  10.8k|  return this->template for_each<Selector>(
10308|  10.8k|      [&](std::size_t i, value v) -> error_code {
10308|  10.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.8k|      });
10309|  10.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS6_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlS9_tlSA_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlS9_tlSA_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEEEZNS2_8for_eachISB_JZZN8fastgltf22parseTextureExtensionsENS1_5valueERNSD_7TextureENSD_10ExtensionsEENKUlSH_RNSD_14basic_optionalImNSD_15flagged_storageImEEEEE_clESH_SM_EUlSE_E_SO_SO_SO_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSP_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSQ_EUlmSE_E_Qaa17key_selector_typeISP_Esr3stdE14is_invocable_vIRT0_mSE_EEESR_OSV_:
10296|  10.8k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  10.8k|  value_iterator it = iter;
10297|  10.8k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  10.8k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  10.8k|  std::array<std::uint64_t, seen_words> seen{};
10298|  28.1k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 17.4k, False: 10.7k]
  ------------------
10298|  17.4k|    raw_json_string key;
10298|  17.4k|    error_code error;
10298|  17.4k|    std::size_t idx;
10298|  17.4k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  17.4k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 21, False: 17.4k]
  ------------------
10299|  17.4k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 15, False: 17.3k]
  ------------------
10299|  17.3k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  17.4k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 10.4k, False: 7.01k]
  ------------------
10300|  10.4k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  10.4k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  10.4k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 10.1k, False: 232]
  ------------------
10300|  10.1k|        seen_word |= seen_bit;
10300|  10.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  10.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  10.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 55, False: 10.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  10.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 10.1k]
  ------------------
10302|  10.1k|      }
10302|  10.4k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  17.4k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 17.4k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  17.4k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 16, False: 17.4k]
  ------------------
10303|  17.4k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 45, False: 17.3k]
  ------------------
10303|  17.4k|  }
10303|  10.7k|  return {SUCCESS, matched};
10303|  10.8k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS4_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  17.3k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  17.3k|        const char* p = rjs.raw();
96024|  17.3k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  17.3k|            std::uint8_t ki = window.window_to_key[
96030|  17.3k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  17.3k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 4.24k, False: 13.1k]
  ------------------
96032|  13.1k|            return key_selector_detail::match_window_candidate(
96033|  13.1k|                p, ki, window, std::make_index_sequence<N>{});
96034|  17.3k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  17.3k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm18EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  13.1k|                       std::index_sequence<Is...>) noexcept {
95865|  13.1k|  std::size_t result = N;
95866|  13.1k|  auto try_match = [&](auto Ic) {
95867|  13.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  13.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  13.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  13.1k|      result = i;
95872|  13.1k|    }
95873|  13.1k|  };
95874|  13.1k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  13.1k|  return result;
95876|  13.1k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm18EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  13.1k|  auto try_match = [&](auto Ic) {
95867|  13.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 10.0k, False: 3.08k]
  |  Branch (95868:20): [True: 9.79k, False: 267]
  ------------------
95869|  9.79k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 9.56k, False: 224]
  ------------------
95870|  9.79k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  9.56k|      result = i;
95872|  9.56k|    }
95873|  13.1k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm18EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  13.1k|  auto try_match = [&](auto Ic) {
95867|  13.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 779, False: 12.3k]
  |  Branch (95868:20): [True: 343, False: 436]
  ------------------
95869|    343|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 139, False: 204]
  ------------------
95870|    343|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    139|      result = i;
95872|    139|    }
95873|  13.1k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm18EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  13.1k|  auto try_match = [&](auto Ic) {
95867|  13.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.23k, False: 11.9k]
  |  Branch (95868:20): [True: 813, False: 423]
  ------------------
95869|    813|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 585, False: 228]
  ------------------
95870|    813|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    585|      result = i;
95872|    585|    }
95873|  13.1k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm4ELm18EJLm0ELm1ELm2ELm3EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  13.1k|  auto try_match = [&](auto Ic) {
95867|  13.1k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  13.1k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.06k, False: 12.0k]
  |  Branch (95868:20): [True: 473, False: 596]
  ------------------
95869|    473|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 116, False: 357]
  ------------------
95870|    473|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    116|      result = i;
95872|    116|    }
95873|  13.1k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS4_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlS7_tlS8_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEE4sizeEv:
95952|  27.5k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm19EEEtlA19_cLc75ELc72ELc82ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc98ELc97ELc115ELc105ELc115ELc117EEEEXtlNS6_ILm17EEEtlA17_cLc77ELc83ELc70ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc100ELc100ELc115EEEEXtlS9_tlSA_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc119ELc101ELc98ELc112EEEEXtlS9_tlSA_Lc69ELc88ELc84ELc95ELc116ELc101ELc120ELc116ELc117ELc114ELc101ELc95ELc97ELc118ELc105ELc102EEEEEEEJZZN8fastgltf22parseTextureExtensionsENS1_5valueERNSC_7TextureENSC_10ExtensionsEENKUlSG_RNSC_14basic_optionalImNSC_15flagged_storageImEEEEE_clESG_SL_EUlSD_E_SN_SN_SN_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_ENKUlmSD_E_clEmSD_:
10308|  10.1k|      [&](std::size_t i, value v) -> error_code {
10308|  10.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.1k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf22parseTextureExtensionsENS1_5valueERNS6_7TextureENS6_10ExtensionsEENKUlSA_RNS6_14basic_optionalImNS6_15flagged_storageImEEEEE_clESA_SF_EUlS7_E_SI_SI_SI_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_S7_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  10.1k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  10.1k|  error_code err = SUCCESS;
10304|  10.1k|  auto try_one = [&](auto Ic) {
10305|  10.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.1k|    if (idx == I) {
10305|  10.1k|      auto&& h = std::get<I>(handlers);
10305|  10.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  10.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  10.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  10.1k|          err = h(v);
10306|  10.1k|        } else {
10306|  10.1k|          h(v);
10306|  10.1k|        }
10306|  10.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.1k|        err = v.get(h);
10306|  10.1k|      }
10306|  10.1k|    }
10306|  10.1k|  };
10306|  10.1k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  10.1k|  return err;
10307|  10.1k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf22parseTextureExtensionsENS1_5valueERNS6_7TextureENS6_10ExtensionsEENKUlSA_RNS6_14basic_optionalImNS6_15flagged_storageImEEEEE_clESA_SF_EUlS7_E_SI_SI_SI_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_S7_NS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm0EEEEEDaSL_:
10304|  10.1k|  auto try_one = [&](auto Ic) {
10305|  10.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 9.56k, False: 611]
  ------------------
10305|  9.56k|      auto&& h = std::get<I>(handlers);
10305|  9.56k|      using H = std::remove_reference_t<decltype(h)>;
10305|  9.56k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  9.56k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  9.56k|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|  9.56k|    }
10306|  10.1k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSG_:
10349|  10.1k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  10.1k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 4, False: 10.1k]
  ------------------
10350|  10.1k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  10.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEJRN8fastgltf14basic_optionalImNS8_15flagged_storageImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSE_:
10309|  10.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  10.1k|  using Selector = key_selector<Keys...>;
10309|  10.1k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  10.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_:
10308|  10.1k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  10.1k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  10.1k|  return this->template for_each<Selector>(
10308|  10.1k|      [&](std::size_t i, value v) -> error_code {
10308|  10.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.1k|      });
10309|  10.1k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf14basic_optionalImNSB_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSH_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSI_EUlmNS1_5valueEE_Qaa17key_selector_typeISH_Esr3stdE14is_invocable_vIRT0_mSM_EEESJ_OSO_:
10296|  10.1k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  10.1k|  value_iterator it = iter;
10297|  10.1k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  10.1k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  10.1k|  std::array<std::uint64_t, seen_words> seen{};
10298|  13.7k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 13.7k, False: 32]
  ------------------
10298|  13.7k|    raw_json_string key;
10298|  13.7k|    error_code error;
10298|  13.7k|    std::size_t idx;
10298|  13.7k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  13.7k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 7, False: 13.7k]
  ------------------
10299|  13.7k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 7, False: 13.6k]
  ------------------
10299|  13.6k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  13.7k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 10.1k, False: 3.58k]
  ------------------
10300|  10.1k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  10.1k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  10.1k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 10.1k, False: 0]
  ------------------
10300|  10.1k|        seen_word |= seen_bit;
10300|  10.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  10.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  10.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 1, False: 10.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  10.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 10.1k, False: 1]
  ------------------
10302|  10.1k|      }
10302|  10.1k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  3.58k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 3.58k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  3.58k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 6, False: 3.57k]
  ------------------
10303|  3.57k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 13, False: 3.56k]
  ------------------
10303|  3.57k|  }
10303|  10.1k|  return {SUCCESS, matched};
10303|  10.1k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  13.6k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  13.6k|        const char* p = rjs.raw();
96024|  13.6k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  13.6k|            std::uint8_t ki = window.window_to_key[
96030|  13.6k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  13.6k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 3.05k, False: 10.6k]
  ------------------
96032|  10.6k|            return key_selector_detail::match_window_candidate(
96033|  10.6k|                p, ki, window, std::make_index_sequence<N>{});
96034|  13.6k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  13.6k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEE4sizeEv:
95952|  23.8k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc115ELc111ELc117ELc114ELc99ELc101EEEEEEEJRN8fastgltf14basic_optionalImNSA_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_ENKUlmNS1_5valueEE_clEmSL_:
10308|  10.1k|      [&](std::size_t i, value v) -> error_code {
10308|  10.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.1k|      });
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf22parseTextureExtensionsENS1_5valueERNS6_7TextureENS6_10ExtensionsEENKUlSA_RNS6_14basic_optionalImNS6_15flagged_storageImEEEEE_clESA_SF_EUlS7_E_SI_SI_SI_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_S7_NS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm1EEEEEDaSL_:
10304|  10.1k|  auto try_one = [&](auto Ic) {
10305|  10.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 139, False: 10.0k]
  ------------------
10305|    139|      auto&& h = std::get<I>(handlers);
10305|    139|      using H = std::remove_reference_t<decltype(h)>;
10305|    139|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    139|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    139|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    139|    }
10306|  10.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf22parseTextureExtensionsENS1_5valueERNS6_7TextureENS6_10ExtensionsEENKUlSA_RNS6_14basic_optionalImNS6_15flagged_storageImEEEEE_clESA_SF_EUlS7_E_SI_SI_SI_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_S7_NS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm2EEEEEDaSL_:
10304|  10.1k|  auto try_one = [&](auto Ic) {
10305|  10.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 359, False: 9.81k]
  ------------------
10305|    359|      auto&& h = std::get<I>(handlers);
10305|    359|      using H = std::remove_reference_t<decltype(h)>;
10305|    359|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    359|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    359|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    359|    }
10306|  10.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJOZZN8fastgltf22parseTextureExtensionsENS1_5valueERNS6_7TextureENS6_10ExtensionsEENKUlSA_RNS6_14basic_optionalImNS6_15flagged_storageImEEEEE_clESA_SF_EUlS7_E_SI_SI_SI_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_S7_NS4_16integer_sequenceImJXspT0_EEEEENKUlSL_E_clINS4_17integral_constantImLm3EEEEEDaSL_:
10304|  10.1k|  auto try_one = [&](auto Ic) {
10305|  10.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  10.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 113, False: 10.0k]
  ------------------
10305|    113|      auto&& h = std::get<I>(handlers);
10305|    113|      using H = std::remove_reference_t<decltype(h)>;
10305|    113|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    113|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    113|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    113|    }
10306|  10.1k|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKZNS6_6Parser13parseTexturesERNS6_8internal9JsonArrayERNS6_5AssetEE3$_0RKZNS6_10readExtrasERKNS6_20ParserInternalConfigEmNS6_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4EEEENS_10error_codeEmRT_SW_NS4_16integer_sequenceImJXspT0_EEEEENKUlS12_E_clINS4_17integral_constantImLm4EEEEEDaS12_:
10304|   126k|  auto try_one = [&](auto Ic) {
10305|   126k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   126k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 378, False: 125k]
  ------------------
10305|    378|      auto&& h = std::get<I>(handlers);
10305|    378|      using H = std::remove_reference_t<decltype(h)>;
10305|    378|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    378|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    378|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    378|    }
10306|   126k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS7_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS7_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS7_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS7_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS8_tlS9_Lc110ELc97ELc109ELc101EEEEXtlSA_tlSB_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSK_17basic_string_viewIcNSK_11char_traitsIcEEEEEERNSL_IN8fastgltf11SphereShapeEEERNSL_INSS_8BoxShapeEEERNSL_INSS_12CapsuleShapeEEERNSL_INSS_13CylinderShapeEEERNSL_INSS_10PlaneShapeEEERNSK_12basic_stringIcSO_NSK_9allocatorIcEEEERKZNSS_10readExtrasERKNSS_20ParserInternalConfigEmNSS_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS1L_:
10349|  94.4k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  94.4k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 14, False: 94.4k]
  ------------------
10350|  94.4k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  94.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS5_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS5_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS5_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS5_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS6_tlS7_Lc110ELc97ELc109ELc101EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__18optionalINSI_17basic_string_viewIcNSI_11char_traitsIcEEEEEERNSJ_IN8fastgltf11SphereShapeEEERNSJ_INSQ_8BoxShapeEEERNSJ_INSQ_12CapsuleShapeEEERNSJ_INSQ_13CylinderShapeEEERNSJ_INSQ_10PlaneShapeEEERNSI_12basic_stringIcSM_NSI_9allocatorIcEEEERKZNSQ_10readExtrasERKNSQ_20ParserInternalConfigEmNSQ_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1J_:
10309|  94.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  94.4k|  using Selector = key_selector<Keys...>;
10309|  94.4k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  94.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS6_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSK_17basic_string_viewIcNSK_11char_traitsIcEEEEEERNSL_IN8fastgltf11SphereShapeEEERNSL_INSS_8BoxShapeEEERNSL_INSS_12CapsuleShapeEEERNSL_INSS_13CylinderShapeEEERNSL_INSS_10PlaneShapeEEERNSK_12basic_stringIcSO_NSK_9allocatorIcEEEERKZNSS_10readExtrasERKNSS_20ParserInternalConfigEmNSS_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1L_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1M_:
10308|  94.4k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  94.4k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  94.4k|  return this->template for_each<Selector>(
10308|  94.4k|      [&](std::size_t i, value v) -> error_code {
10308|  94.4k|        return key_selector_for_each_detail::dispatch_value(
10308|  94.4k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  94.4k|      });
10309|  94.4k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS6_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISJ_JRNSt3__18optionalINSL_17basic_string_viewIcNSL_11char_traitsIcEEEEEERNSM_IN8fastgltf11SphereShapeEEERNSM_INST_8BoxShapeEEERNSM_INST_12CapsuleShapeEEERNSM_INST_13CylinderShapeEEERNSM_INST_10PlaneShapeEEERNSL_12basic_stringIcSP_NSL_9allocatorIcEEEERKZNST_10readExtrasERKNST_20ParserInternalConfigEmNST_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1M_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1N_EUlmS1I_E_Qaa17key_selector_typeIS1M_Esr3stdE14is_invocable_vIRT0_mS1I_EEES1O_OS1S_:
10296|  94.4k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  94.4k|  value_iterator it = iter;
10297|  94.4k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  94.4k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  94.4k|  std::array<std::uint64_t, seen_words> seen{};
10298|   461k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 367k, False: 94.1k]
  ------------------
10298|   367k|    raw_json_string key;
10298|   367k|    error_code error;
10298|   367k|    std::size_t idx;
10298|   367k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   367k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 74, False: 367k]
  ------------------
10299|   367k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 118, False: 367k]
  ------------------
10299|   367k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   367k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 213k, False: 154k]
  ------------------
10300|   213k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   213k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   213k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 196k, False: 17.2k]
  ------------------
10300|   196k|        seen_word |= seen_bit;
10300|   196k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   196k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   196k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 942, False: 195k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   196k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 196k]
  ------------------
10302|   196k|      }
10302|   213k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   367k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 367k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   367k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 31, False: 367k]
  ------------------
10303|   367k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 232, False: 367k]
  ------------------
10303|   367k|  }
10303|  94.1k|  return {SUCCESS, matched};
10303|  94.4k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS4_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS4_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS4_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS5_tlS6_Lc110ELc97ELc109ELc101EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   367k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   367k|        const char* p = rjs.raw();
96024|   367k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   367k|            std::uint8_t ki = window.window_to_key[
96030|   367k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   367k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 117k, False: 249k]
  ------------------
96032|   249k|            return key_selector_detail::match_window_candidate(
96033|   249k|                p, ki, window, std::make_index_sequence<N>{});
96034|   367k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   367k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   249k|                       std::index_sequence<Is...>) noexcept {
95865|   249k|  std::size_t result = N;
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   249k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   249k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   249k|      result = i;
95872|   249k|    }
95873|   249k|  };
95874|   249k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   249k|  return result;
95876|   249k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 106k, False: 143k]
  |  Branch (95868:20): [True: 105k, False: 749]
  ------------------
95869|   105k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 105k, False: 372]
  ------------------
95870|   105k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   105k|      result = i;
95872|   105k|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 21.9k, False: 227k]
  |  Branch (95868:20): [True: 21.5k, False: 432]
  ------------------
95869|  21.5k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 21.3k, False: 212]
  ------------------
95870|  21.5k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  21.3k|      result = i;
95872|  21.3k|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 5.79k, False: 243k]
  |  Branch (95868:20): [True: 5.15k, False: 638]
  ------------------
95869|  5.15k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 83, False: 5.07k]
  ------------------
95870|  5.15k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|     83|      result = i;
95872|     83|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 18.8k, False: 230k]
  |  Branch (95868:20): [True: 17.2k, False: 1.56k]
  ------------------
95869|  17.2k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 16.5k, False: 743]
  ------------------
95870|  17.2k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  16.5k|      result = i;
95872|  16.5k|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 10.1k, False: 239k]
  |  Branch (95868:20): [True: 8.81k, False: 1.37k]
  ------------------
95869|  8.81k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 8.34k, False: 470]
  ------------------
95870|  8.81k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  8.34k|      result = i;
95872|  8.34k|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 37.8k, False: 211k]
  |  Branch (95868:20): [True: 28.1k, False: 9.70k]
  ------------------
95869|  28.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 27.0k, False: 1.17k]
  ------------------
95870|  28.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  27.0k|      result = i;
95872|  27.0k|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm6EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 47.3k, False: 202k]
  |  Branch (95868:20): [True: 35.1k, False: 12.1k]
  ------------------
95869|  35.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 34.5k, False: 630]
  ------------------
95870|  35.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  34.5k|      result = i;
95872|  34.5k|    }
95873|   249k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm8EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm7EEEEEDaSD_:
95866|   249k|  auto try_match = [&](auto Ic) {
95867|   249k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   249k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.51k, False: 248k]
  |  Branch (95868:20): [True: 780, False: 732]
  ------------------
95869|    780|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 502, False: 278]
  ------------------
95870|    780|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    502|      result = i;
95872|    502|    }
95873|   249k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS4_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS4_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS4_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS5_tlS6_Lc110ELc97ELc109ELc101EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   562k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc115ELc112ELc104ELc101ELc114ELc101EEEEXtlNS6_ILm4EEEtlA4_cLc98ELc111ELc120EEEEXtlNS6_ILm8EEEtlA8_cLc99ELc97ELc112ELc115ELc117ELc108ELc101EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc121ELc108ELc105ELc110ELc100ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc112ELc108ELc97ELc110ELc101EEEEXtlS7_tlS8_Lc110ELc97ELc109ELc101EEEEXtlS9_tlSA_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__18optionalINSK_17basic_string_viewIcNSK_11char_traitsIcEEEEEERNSL_IN8fastgltf11SphereShapeEEERNSL_INSS_8BoxShapeEEERNSL_INSS_12CapsuleShapeEEERNSL_INSS_13CylinderShapeEEERNSL_INSS_10PlaneShapeEEERNSK_12basic_stringIcSO_NSK_9allocatorIcEEEERKZNSS_10readExtrasERKNSS_20ParserInternalConfigEmNSS_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS1L_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS1M_ENKUlmS1H_E_clEmS1H_:
10308|   196k|      [&](std::size_t i, value v) -> error_code {
10308|   196k|        return key_selector_for_each_detail::dispatch_value(
10308|   196k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   196k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   196k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   196k|  error_code err = SUCCESS;
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
10305|   196k|      auto&& h = std::get<I>(handlers);
10305|   196k|      using H = std::remove_reference_t<decltype(h)>;
10305|   196k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   196k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   196k|          err = h(v);
10306|   196k|        } else {
10306|   196k|          h(v);
10306|   196k|        }
10306|   196k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   196k|        err = v.get(h);
10306|   196k|      }
10306|   196k|    }
10306|   196k|  };
10306|   196k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   196k|  return err;
10307|   196k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm0EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 92.9k, False: 103k]
  ------------------
10305|  92.9k|      auto&& h = std::get<I>(handlers);
10305|  92.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  92.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  92.9k|        err = v.get(h);
10306|  92.9k|      }
10306|  92.9k|    }
10306|   196k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm1EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 21.3k, False: 174k]
  ------------------
10305|  21.3k|      auto&& h = std::get<I>(handlers);
10305|  21.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  21.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  21.3k|        err = v.get(h);
10306|  21.3k|      }
10306|  21.3k|    }
10306|   196k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf11SphereShapeEEEEENS_10error_codeERT_:
89907|  21.3k| {
89908|  21.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  21.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  21.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  21.3k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf11SphereShapeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  21.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  21.3k|    return tag_invoke(*this, object, output);
89263|  21.3k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf11SphereShapeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  21.3k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  21.3k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  21.3k|  static_assert(
97645|  21.3k|      deserializable<value_type, ValT>,
97646|  21.3k|      "The specified type inside the optional must itself be deserializable");
97647|  21.3k|  static_assert(
97648|  21.3k|      std::is_default_constructible_v<value_type>,
97649|  21.3k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  21.3k|  bool is_null_value;
97653|  21.3k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  21.3k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 21.3k]
  |  |  ------------------
  ------------------
97654|  21.3k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 21.3k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  21.3k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 21.3k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  21.3k|    out.emplace();
97665|  21.3k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  21.3k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  21.3k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 31, False: 21.3k]
  |  |  ------------------
  ------------------
97667|  21.3k|    guard.armed = false;
97668|  21.3k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  21.3k|  return SUCCESS;
97676|  21.3k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf11SphereShapeEEENS_10error_codeERT_:
89907|  21.3k| {
89908|  21.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  21.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  21.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  21.3k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf11SphereShapeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  21.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  21.3k|    return tag_invoke(*this, object, output);
89263|  21.3k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSB_:
10349|  21.3k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  21.3k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 5, False: 21.3k]
  ------------------
10350|  21.3k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  21.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEJRfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS9_:
10309|  21.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  21.3k|  using Selector = key_selector<Keys...>;
10309|  21.3k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  21.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10308|  21.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  21.3k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  21.3k|  return this->template for_each<Selector>(
10308|  21.3k|      [&](std::size_t i, value v) -> error_code {
10308|  21.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  21.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  21.3k|      });
10309|  21.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEEEZNS2_8for_eachIS9_JRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSC_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_EUlmNS1_5valueEE_Qaa17key_selector_typeISC_Esr3stdE14is_invocable_vIRT0_mSH_EEESE_OSJ_:
10296|  21.3k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  21.3k|  value_iterator it = iter;
10297|  21.3k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  21.3k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  21.3k|  std::array<std::uint64_t, seen_words> seen{};
10298|  29.1k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 28.9k, False: 228]
  ------------------
10298|  28.9k|    raw_json_string key;
10298|  28.9k|    error_code error;
10298|  28.9k|    std::size_t idx;
10298|  28.9k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  28.9k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 4, False: 28.9k]
  ------------------
10299|  28.9k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 10, False: 28.9k]
  ------------------
10299|  28.9k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  28.9k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 21.1k, False: 7.82k]
  ------------------
10300|  21.1k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  21.1k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  21.1k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 21.1k, False: 0]
  ------------------
10300|  21.1k|        seen_word |= seen_bit;
10300|  21.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  21.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  21.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 1, False: 21.1k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  21.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 21.1k, False: 1]
  ------------------
10302|  21.1k|      }
10302|  21.1k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  7.82k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 7.82k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  7.82k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 2, False: 7.82k]
  ------------------
10303|  7.82k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 9, False: 7.81k]
  ------------------
10303|  7.82k|  }
10303|  21.3k|  return {SUCCESS, matched};
10303|  21.3k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  28.9k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  28.9k|        const char* p = rjs.raw();
96024|  28.9k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  28.9k|            std::uint8_t ki = window.window_to_key[
96030|  28.9k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  28.9k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 7.09k, False: 21.8k]
  ------------------
96032|  21.8k|            return key_selector_detail::match_window_candidate(
96033|  21.8k|                p, ki, window, std::make_index_sequence<N>{});
96034|  28.9k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  28.9k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEE4sizeEv:
95952|  50.0k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc114ELc97ELc100ELc105ELc117ELc115EEEEEEEJRfEQaaaa17key_selector_typeIT_EeqsZT0_clsrSB_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_ENKUlmNS1_5valueEE_clEmSG_:
10308|  21.1k|      [&](std::size_t i, value v) -> error_code {
10308|  21.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  21.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  21.1k|      });
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf11SphereShapeEEEED2Ev:
97461|  21.3k|  ~reset_guard() {
97462|  21.3k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 31, False: 21.3k]
  ------------------
97463|  21.3k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm2EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 82, False: 195k]
  ------------------
10305|     82|      auto&& h = std::get<I>(handlers);
10305|     82|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     82|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     82|        err = v.get(h);
10306|     82|      }
10306|     82|    }
10306|   196k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf8BoxShapeEEEEENS_10error_codeERT_:
89907|     82| {
89908|     82|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|     82|  if constexpr (custom_deserializable<T, value>) {
89910|     82|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|     82|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf8BoxShapeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|     82|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|     82|    return tag_invoke(*this, object, output);
89263|     82|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf8BoxShapeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|     82|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|     82|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|     82|  static_assert(
97645|     82|      deserializable<value_type, ValT>,
97646|     82|      "The specified type inside the optional must itself be deserializable");
97647|     82|  static_assert(
97648|     82|      std::is_default_constructible_v<value_type>,
97649|     82|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|     82|  bool is_null_value;
97653|     82|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|     82|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 81]
  |  |  ------------------
  ------------------
97654|     81|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 80]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|     80|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 80, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|     80|    out.emplace();
97665|     80|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|     80|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|     80|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 36, False: 44]
  |  |  ------------------
  ------------------
97667|     44|    guard.armed = false;
97668|     44|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|     44|  return SUCCESS;
97676|     80|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf8BoxShapeEEENS_10error_codeERT_:
89907|     80| {
89908|     80|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|     80|  if constexpr (custom_deserializable<T, value>) {
89910|     80|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|     80|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf8BoxShapeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|     80|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|     80|    return tag_invoke(*this, object, output);
89263|     80|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEJRN8fastgltf4math3vecIfLm3EEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSF_:
10349|     80|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|     80|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 77]
  ------------------
10350|     77|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|     80|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEJRN8fastgltf4math3vecIfLm3EEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_:
10309|     77|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|     77|  using Selector = key_selector<Keys...>;
10309|     77|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|     77|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEEEJRN8fastgltf4math3vecIfLm3EEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSF_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_:
10308|     77|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|     77|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|     77|  return this->template for_each<Selector>(
10308|     77|      [&](std::size_t i, value v) -> error_code {
10308|     77|        return key_selector_for_each_detail::dispatch_value(
10308|     77|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|     77|      });
10309|     77|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEEEZNS2_8for_eachIS9_JRN8fastgltf4math3vecIfLm3EEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_EUlmNS1_5valueEE_Qaa17key_selector_typeISG_Esr3stdE14is_invocable_vIRT0_mSL_EEESI_OSN_:
10296|     77|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|     77|  value_iterator it = iter;
10297|     77|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|     77|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|     77|  std::array<std::uint64_t, seen_words> seen{};
10298|  4.49k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 4.44k, False: 45]
  ------------------
10298|  4.44k|    raw_json_string key;
10298|  4.44k|    error_code error;
10298|  4.44k|    std::size_t idx;
10298|  4.44k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  4.44k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 7, False: 4.43k]
  ------------------
10299|  4.43k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 5, False: 4.43k]
  ------------------
10299|  4.43k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  4.44k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 11, False: 4.43k]
  ------------------
10300|     11|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|     11|      std::uint64_t &seen_word = seen[idx >> 6];
10300|     11|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 11, False: 0]
  ------------------
10300|     11|        seen_word |= seen_bit;
10300|     11|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|     11|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|     11|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 0, False: 11]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|     11|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 11, False: 0]
  ------------------
10302|     11|      }
10302|     11|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  4.43k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 4.43k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  4.43k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 4, False: 4.43k]
  ------------------
10303|  4.43k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 17, False: 4.41k]
  ------------------
10303|  4.43k|  }
10303|     56|  return {SUCCESS, matched};
10303|     77|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  4.43k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  4.43k|        const char* p = rjs.raw();
96024|  4.43k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  4.43k|            std::uint8_t ki = window.window_to_key[
96030|  4.43k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  4.43k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 3.99k, False: 441]
  ------------------
96032|    441|            return key_selector_detail::match_window_candidate(
96033|    441|                p, ki, window, std::make_index_sequence<N>{});
96034|  4.43k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  4.43k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEE4sizeEv:
95952|  4.44k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc115ELc105ELc122ELc101EEEEEEEJRN8fastgltf4math3vecIfLm3EEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSF_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_ENKUlmNS1_5valueEE_clEmSK_:
10308|     11|      [&](std::size_t i, value v) -> error_code {
10308|     11|        return key_selector_for_each_detail::dispatch_value(
10308|     11|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|     11|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|     11|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|     11|  error_code err = SUCCESS;
10304|     11|  auto try_one = [&](auto Ic) {
10305|     11|    constexpr std::size_t I = decltype(Ic)::value;
10305|     11|    if (idx == I) {
10305|     11|      auto&& h = std::get<I>(handlers);
10305|     11|      using H = std::remove_reference_t<decltype(h)>;
10305|     11|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|     11|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|     11|          err = h(v);
10306|     11|        } else {
10306|     11|          h(v);
10306|     11|        }
10306|     11|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     11|        err = v.get(h);
10306|     11|      }
10306|     11|    }
10306|     11|  };
10306|     11|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|     11|  return err;
10307|     11|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf4math3vecIfLm3EEEEEEJLm0EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSD_E_clINS4_17integral_constantImLm0EEEEEDaSD_:
10304|     11|  auto try_one = [&](auto Ic) {
10305|     11|    constexpr std::size_t I = decltype(Ic)::value;
10305|     11|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 11, False: 0]
  ------------------
10305|     11|      auto&& h = std::get<I>(handlers);
10305|     11|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     11|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     11|        err = v.get(h);
10306|     11|      }
10306|     11|    }
10306|     11|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf8BoxShapeEEEED2Ev:
97461|     80|  ~reset_guard() {
97462|     80|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 36, False: 44]
  ------------------
97463|     80|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm3EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.6k, False: 180k]
  ------------------
10305|  15.6k|      auto&& h = std::get<I>(handlers);
10305|  15.6k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.6k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.6k|        err = v.get(h);
10306|  15.6k|      }
10306|  15.6k|    }
10306|   196k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf12CapsuleShapeEEEEENS_10error_codeERT_:
89907|  15.6k| {
89908|  15.6k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  15.6k|  if constexpr (custom_deserializable<T, value>) {
89910|  15.6k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  15.6k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf12CapsuleShapeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  15.6k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  15.6k|    return tag_invoke(*this, object, output);
89263|  15.6k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf12CapsuleShapeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  15.6k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  15.6k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  15.6k|  static_assert(
97645|  15.6k|      deserializable<value_type, ValT>,
97646|  15.6k|      "The specified type inside the optional must itself be deserializable");
97647|  15.6k|  static_assert(
97648|  15.6k|      std::is_default_constructible_v<value_type>,
97649|  15.6k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  15.6k|  bool is_null_value;
97653|  15.6k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  15.6k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 15.6k]
  |  |  ------------------
  ------------------
97654|  15.6k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 15.6k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  15.6k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 15.6k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  15.6k|    out.emplace();
97665|  15.6k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  15.6k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  15.6k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 371, False: 15.3k]
  |  |  ------------------
  ------------------
97667|  15.3k|    guard.armed = false;
97668|  15.3k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  15.3k|  return SUCCESS;
97676|  15.6k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf12CapsuleShapeEEENS_10error_codeERT_:
89907|  15.6k| {
89908|  15.6k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  15.6k|  if constexpr (custom_deserializable<T, value>) {
89910|  15.6k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  15.6k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf12CapsuleShapeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  15.6k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  15.6k|    return tag_invoke(*this, object, output);
89263|  15.6k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS7_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS7_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEJRfSE_SE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSF_:
10349|  23.9k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  23.9k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 23.8k]
  ------------------
10350|  23.8k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  23.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS5_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS5_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEJRfSC_SC_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSD_:
10309|  23.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  23.8k|  using Selector = key_selector<Keys...>;
10309|  23.8k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  23.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS6_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS6_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEEEJRfSE_SE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSF_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_:
10308|  23.8k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  23.8k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  23.8k|  return this->template for_each<Selector>(
10308|  23.8k|      [&](std::size_t i, value v) -> error_code {
10308|  23.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  23.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  23.8k|      });
10309|  23.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS6_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS6_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEEEZNS2_8for_eachISD_JRfSF_SF_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSG_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSH_EUlmNS1_5valueEE_Qaa17key_selector_typeISG_Esr3stdE14is_invocable_vIRT0_mSL_EEESI_OSN_:
10296|  23.8k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  23.8k|  value_iterator it = iter;
10297|  23.8k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  23.8k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  23.8k|  std::array<std::uint64_t, seen_words> seen{};
10298|   197k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 184k, False: 13.0k]
  ------------------
10298|   184k|    raw_json_string key;
10298|   184k|    error_code error;
10298|   184k|    std::size_t idx;
10298|   184k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   184k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 88, False: 184k]
  ------------------
10299|   184k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 16, False: 184k]
  ------------------
10299|   184k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   184k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 42.9k, False: 141k]
  ------------------
10300|  42.9k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  42.9k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  42.9k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 41.8k, False: 1.14k]
  ------------------
10300|  41.8k|        seen_word |= seen_bit;
10300|  41.8k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  41.8k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  41.8k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 113, False: 41.7k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  41.8k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 10.6k, False: 31.2k]
  ------------------
10302|  41.8k|      }
10302|  42.9k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   173k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 173k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   173k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 22, False: 173k]
  ------------------
10303|   173k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 232, False: 173k]
  ------------------
10303|   173k|  }
10303|  23.6k|  return {SUCCESS, matched};
10303|  23.8k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS4_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS4_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   184k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   184k|        const char* p = rjs.raw();
96024|   184k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   184k|            std::uint8_t ki = window.window_to_key[
96030|   184k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   184k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 131k, False: 52.8k]
  ------------------
96032|  52.8k|            return key_selector_detail::match_window_candidate(
96033|  52.8k|                p, ki, window, std::make_index_sequence<N>{});
96034|   184k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   184k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm12EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  52.8k|                       std::index_sequence<Is...>) noexcept {
95865|  52.8k|  std::size_t result = N;
95866|  52.8k|  auto try_match = [&](auto Ic) {
95867|  52.8k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  52.8k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  52.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  52.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  52.8k|      result = i;
95872|  52.8k|    }
95873|  52.8k|  };
95874|  52.8k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  52.8k|  return result;
95876|  52.8k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm12EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  52.8k|  auto try_match = [&](auto Ic) {
95867|  52.8k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  52.8k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 21.6k, False: 31.1k]
  |  Branch (95868:20): [True: 19.8k, False: 1.80k]
  ------------------
95869|  19.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 16.1k, False: 3.71k]
  ------------------
95870|  19.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  16.1k|      result = i;
95872|  16.1k|    }
95873|  52.8k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm12EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  52.8k|  auto try_match = [&](auto Ic) {
95867|  52.8k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  52.8k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 15.4k, False: 37.4k]
  |  Branch (95868:20): [True: 13.8k, False: 1.54k]
  ------------------
95869|  13.8k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 13.1k, False: 782]
  ------------------
95870|  13.8k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  13.1k|      result = i;
95872|  13.1k|    }
95873|  52.8k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm12EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  52.8k|  auto try_match = [&](auto Ic) {
95867|  52.8k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  52.8k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 15.7k, False: 37.0k]
  |  Branch (95868:20): [True: 14.3k, False: 1.36k]
  ------------------
95869|  14.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 13.7k, False: 661]
  ------------------
95870|  14.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  13.7k|      result = i;
95872|  13.7k|    }
95873|  52.8k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS4_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS4_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEE4sizeEv:
95952|   225k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc104ELc101ELc105ELc103ELc104ELc116EEEEXtlNS6_ILm13EEEtlA13_cLc114ELc97ELc100ELc105ELc117ELc115ELc66ELc111ELc116ELc116ELc111ELc109EEEEXtlNS6_ILm10EEEtlA10_cLc114ELc97ELc100ELc105ELc117ELc115ELc84ELc111ELc112EEEEEEEJRfSE_SE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSF_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_ENKUlmNS1_5valueEE_clEmSK_:
10308|  41.8k|      [&](std::size_t i, value v) -> error_code {
10308|  41.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  41.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  41.8k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  41.8k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  41.8k|  error_code err = SUCCESS;
10304|  41.8k|  auto try_one = [&](auto Ic) {
10305|  41.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  41.8k|    if (idx == I) {
10305|  41.8k|      auto&& h = std::get<I>(handlers);
10305|  41.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|  41.8k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  41.8k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  41.8k|          err = h(v);
10306|  41.8k|        } else {
10306|  41.8k|          h(v);
10306|  41.8k|        }
10306|  41.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  41.8k|        err = v.get(h);
10306|  41.8k|      }
10306|  41.8k|    }
10306|  41.8k|  };
10306|  41.8k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  41.8k|  return err;
10307|  41.8k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS9_E_clINS4_17integral_constantImLm0EEEEEDaS9_:
10304|  41.8k|  auto try_one = [&](auto Ic) {
10305|  41.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  41.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.4k, False: 26.3k]
  ------------------
10305|  15.4k|      auto&& h = std::get<I>(handlers);
10305|  15.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.4k|        err = v.get(h);
10306|  15.4k|      }
10306|  15.4k|    }
10306|  41.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS9_E_clINS4_17integral_constantImLm1EEEEEDaS9_:
10304|  41.8k|  auto try_one = [&](auto Ic) {
10305|  41.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  41.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 13.0k, False: 28.7k]
  ------------------
10305|  13.0k|      auto&& h = std::get<I>(handlers);
10305|  13.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  13.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  13.0k|        err = v.get(h);
10306|  13.0k|      }
10306|  13.0k|    }
10306|  41.8k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlS9_E_clINS4_17integral_constantImLm2EEEEEDaS9_:
10304|  41.8k|  auto try_one = [&](auto Ic) {
10305|  41.8k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  41.8k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 13.3k, False: 28.5k]
  ------------------
10305|  13.3k|      auto&& h = std::get<I>(handlers);
10305|  13.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  13.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  13.3k|        err = v.get(h);
10306|  13.3k|      }
10306|  13.3k|    }
10306|  41.8k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf12CapsuleShapeEEEED2Ev:
97461|  15.6k|  ~reset_guard() {
97462|  15.6k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 371, False: 15.3k]
  ------------------
97463|  15.6k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm4EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 8.21k, False: 187k]
  ------------------
10305|  8.21k|      auto&& h = std::get<I>(handlers);
10305|  8.21k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  8.21k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  8.21k|        err = v.get(h);
10306|  8.21k|      }
10306|  8.21k|    }
10306|   196k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf13CylinderShapeEEEEENS_10error_codeERT_:
89907|  8.21k| {
89908|  8.21k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  8.21k|  if constexpr (custom_deserializable<T, value>) {
89910|  8.21k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  8.21k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf13CylinderShapeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  8.21k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  8.21k|    return tag_invoke(*this, object, output);
89263|  8.21k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf13CylinderShapeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  8.21k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  8.21k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  8.21k|  static_assert(
97645|  8.21k|      deserializable<value_type, ValT>,
97646|  8.21k|      "The specified type inside the optional must itself be deserializable");
97647|  8.21k|  static_assert(
97648|  8.21k|      std::is_default_constructible_v<value_type>,
97649|  8.21k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  8.21k|  bool is_null_value;
97653|  8.21k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  8.21k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 8.21k]
  |  |  ------------------
  ------------------
97654|  8.21k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 8.20k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  8.20k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 8.20k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  8.20k|    out.emplace();
97665|  8.20k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  8.20k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  8.20k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 106, False: 8.10k]
  |  |  ------------------
  ------------------
97667|  8.10k|    guard.armed = false;
97668|  8.10k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  8.10k|  return SUCCESS;
97676|  8.20k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf13CylinderShapeEEENS_10error_codeERT_:
89907|  8.20k| {
89908|  8.20k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  8.20k|  if constexpr (custom_deserializable<T, value>) {
89910|  8.20k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  8.20k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf13CylinderShapeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  8.20k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  8.20k|    return tag_invoke(*this, object, output);
89263|  8.20k|  }
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf13CylinderShapeEEEED2Ev:
97461|  8.20k|  ~reset_guard() {
97462|  8.20k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 106, False: 8.10k]
  ------------------
97463|  8.20k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm5EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 26.3k, False: 169k]
  ------------------
10305|  26.3k|      auto&& h = std::get<I>(handlers);
10305|  26.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  26.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  26.3k|        err = v.get(h);
10306|  26.3k|      }
10306|  26.3k|    }
10306|   196k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf10PlaneShapeEEEEENS_10error_codeERT_:
89907|  26.3k| {
89908|  26.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  26.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  26.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  26.3k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf10PlaneShapeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  26.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  26.3k|    return tag_invoke(*this, object, output);
89263|  26.3k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf10PlaneShapeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  26.3k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  26.3k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  26.3k|  static_assert(
97645|  26.3k|      deserializable<value_type, ValT>,
97646|  26.3k|      "The specified type inside the optional must itself be deserializable");
97647|  26.3k|  static_assert(
97648|  26.3k|      std::is_default_constructible_v<value_type>,
97649|  26.3k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  26.3k|  bool is_null_value;
97653|  26.3k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  26.3k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 26.3k]
  |  |  ------------------
  ------------------
97654|  26.3k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 26.3k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  26.3k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 26.3k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  26.3k|    out.emplace();
97665|  26.3k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  26.3k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  26.3k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 388, False: 26.0k]
  |  |  ------------------
  ------------------
97667|  26.0k|    guard.armed = false;
97668|  26.0k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  26.0k|  return SUCCESS;
97676|  26.3k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf10PlaneShapeEEENS_10error_codeERT_:
89907|  26.3k| {
89908|  26.3k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  26.3k|  if constexpr (custom_deserializable<T, value>) {
89910|  26.3k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  26.3k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf10PlaneShapeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  26.3k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  26.3k|    return tag_invoke(*this, object, output);
89263|  26.3k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS8_tlS9_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS7_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEJRfSC_RbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSE_:
10349|  26.3k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  26.3k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 19, False: 26.3k]
  ------------------
10350|  26.3k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  26.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS6_tlS7_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS5_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEJRfSA_RbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSC_:
10309|  26.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  26.3k|  using Selector = key_selector<Keys...>;
10309|  26.3k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  26.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS7_tlS8_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS6_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEEEJRfSC_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSE_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSF_:
10308|  26.3k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  26.3k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  26.3k|  return this->template for_each<Selector>(
10308|  26.3k|      [&](std::size_t i, value v) -> error_code {
10308|  26.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  26.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  26.3k|      });
10309|  26.3k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS7_tlS8_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS6_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEEEZNS2_8for_eachISB_JRfSD_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSF_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSG_EUlmNS1_5valueEE_Qaa17key_selector_typeISF_Esr3stdE14is_invocable_vIRT0_mSK_EEESH_OSM_:
10296|  26.3k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  26.3k|  value_iterator it = iter;
10297|  26.3k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  26.3k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  26.3k|  std::array<std::uint64_t, seen_words> seen{};
10298|   146k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 132k, False: 13.6k]
  ------------------
10298|   132k|    raw_json_string key;
10298|   132k|    error_code error;
10298|   132k|    std::size_t idx;
10298|   132k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   132k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 67, False: 132k]
  ------------------
10299|   132k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 15, False: 132k]
  ------------------
10299|   132k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   132k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 52.7k, False: 80.0k]
  ------------------
10300|  52.7k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  52.7k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  52.7k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 50.1k, False: 2.59k]
  ------------------
10300|  50.1k|        seen_word |= seen_bit;
10300|  50.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  50.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  50.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 171, False: 50.0k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  50.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 12.6k, False: 37.5k]
  ------------------
10302|  50.1k|      }
10302|  52.7k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   120k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 120k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   120k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 19, False: 120k]
  ------------------
10303|   120k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 97, False: 120k]
  ------------------
10303|   120k|  }
10303|  26.2k|  return {SUCCESS, matched};
10303|  26.3k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS5_tlS6_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS4_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   132k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   132k|        const char* p = rjs.raw();
96024|   132k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   132k|            std::uint8_t ki = window.window_to_key[
96030|   132k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   132k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 73.5k, False: 59.1k]
  ------------------
96032|  59.1k|            return key_selector_detail::match_window_candidate(
96033|  59.1k|                p, ki, window, std::make_index_sequence<N>{});
96034|   132k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   132k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS5_tlS6_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS4_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEE4sizeEv:
95952|   182k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc105ELc122ELc101ELc88EEEEXtlS7_tlS8_Lc115ELc105ELc122ELc101ELc90EEEEXtlNS6_ILm12EEEtlA12_cLc100ELc111ELc117ELc98ELc108ELc101ELc83ELc105ELc100ELc101ELc100EEEEEEEJRfSC_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSE_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSF_ENKUlmNS1_5valueEE_clEmSJ_:
10308|  50.1k|      [&](std::size_t i, value v) -> error_code {
10308|  50.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  50.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  50.1k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  50.1k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  50.1k|  error_code err = SUCCESS;
10304|  50.1k|  auto try_one = [&](auto Ic) {
10305|  50.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  50.1k|    if (idx == I) {
10305|  50.1k|      auto&& h = std::get<I>(handlers);
10305|  50.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  50.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  50.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  50.1k|          err = h(v);
10306|  50.1k|        } else {
10306|  50.1k|          h(v);
10306|  50.1k|        }
10306|  50.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  50.1k|        err = v.get(h);
10306|  50.1k|      }
10306|  50.1k|    }
10306|  50.1k|  };
10306|  50.1k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  50.1k|  return err;
10307|  50.1k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSA_E_clINS4_17integral_constantImLm0EEEEEDaSA_:
10304|  50.1k|  auto try_one = [&](auto Ic) {
10305|  50.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  50.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.8k, False: 32.3k]
  ------------------
10305|  17.8k|      auto&& h = std::get<I>(handlers);
10305|  17.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.8k|        err = v.get(h);
10306|  17.8k|      }
10306|  17.8k|    }
10306|  50.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSA_E_clINS4_17integral_constantImLm1EEEEEDaSA_:
10304|  50.1k|  auto try_one = [&](auto Ic) {
10305|  50.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  50.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 19.2k, False: 30.8k]
  ------------------
10305|  19.2k|      auto&& h = std::get<I>(handlers);
10305|  19.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  19.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  19.2k|        err = v.get(h);
10306|  19.2k|      }
10306|  19.2k|    }
10306|  50.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSA_E_clINS4_17integral_constantImLm2EEEEEDaSA_:
10304|  50.1k|  auto try_one = [&](auto Ic) {
10305|  50.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  50.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 13.0k, False: 37.0k]
  ------------------
10305|  13.0k|      auto&& h = std::get<I>(handlers);
10305|  13.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  13.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  13.0k|        err = v.get(h);
10306|  13.0k|      }
10306|  13.0k|    }
10306|  50.1k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf10PlaneShapeEEEED2Ev:
97461|  26.3k|  ~reset_guard() {
97462|  26.3k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 388, False: 26.0k]
  ------------------
97463|  26.3k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm6EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 31.2k, False: 164k]
  ------------------
10305|  31.2k|      auto&& h = std::get<I>(handlers);
10305|  31.2k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  31.2k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  31.2k|        err = v.get(h);
10306|  31.2k|      }
10306|  31.2k|    }
10306|   196k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEERNS6_IN8fastgltf11SphereShapeEEERNS6_INSD_8BoxShapeEEERNS6_INSD_12CapsuleShapeEEERNS6_INSD_13CylinderShapeEEERNS6_INSD_10PlaneShapeEEERNS4_12basic_stringIcS9_NS4_9allocatorIcEEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_S12_NS4_16integer_sequenceImJXspT0_EEEEENKUlS18_E_clINS4_17integral_constantImLm7EEEEEDaS18_:
10304|   196k|  auto try_one = [&](auto Ic) {
10305|   196k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   196k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 234, False: 195k]
  ------------------
10305|    234|      auto&& h = std::get<I>(handlers);
10305|    234|      using H = std::remove_reference_t<decltype(h)>;
10305|    234|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    234|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    234|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    234|    }
10306|   196k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlSA_tlSB_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS7_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRfSI_SI_RN8fastgltf11CombineModeESL_RKZNSJ_10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSU_:
10349|   225k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   225k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 18, False: 225k]
  ------------------
10350|   225k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   225k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlS8_tlS9_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS5_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRfSG_SG_RN8fastgltf11CombineModeESJ_RKZNSH_10readExtrasERKNSH_20ParserInternalConfigEmNSH_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_:
10309|   225k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   225k|  using Selector = key_selector<Keys...>;
10309|   225k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   225k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlS9_tlSA_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS6_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRfSI_SI_RN8fastgltf11CombineModeESL_RKZNSJ_10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10308|   225k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   225k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   225k|  return this->template for_each<Selector>(
10308|   225k|      [&](std::size_t i, value v) -> error_code {
10308|   225k|        return key_selector_for_each_detail::dispatch_value(
10308|   225k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   225k|      });
10309|   225k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlS9_tlSA_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS6_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISH_JRfSJ_SJ_RN8fastgltf11CombineModeESM_RKZNSK_10readExtrasERKNSK_20ParserInternalConfigEmNSK_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSV_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_EUlmSR_E_Qaa17key_selector_typeISV_Esr3stdE14is_invocable_vIRT0_mSR_EEESX_OS11_:
10296|   225k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   225k|  value_iterator it = iter;
10297|   225k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   225k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   225k|  std::array<std::uint64_t, seen_words> seen{};
10298|   878k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 653k, False: 225k]
  ------------------
10298|   653k|    raw_json_string key;
10298|   653k|    error_code error;
10298|   653k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|   653k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|   653k|      std::size_t key_len;
10299|   653k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 68, False: 653k]
  ------------------
10299|   653k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 36, False: 653k]
  ------------------
10300|   653k|      idx = Selector::match_raw(key.raw(), key_len);
10300|   653k|    }
10300|   653k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 565k, False: 87.2k]
  ------------------
10300|   565k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|   565k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|   565k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 564k, False: 1.52k]
  ------------------
10300|   564k|        seen_word |= seen_bit;
10300|   564k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|   564k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|   564k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 230, False: 564k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|   564k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 564k]
  ------------------
10302|   564k|      }
10302|   565k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   653k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 653k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   653k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 11, False: 653k]
  ------------------
10303|   653k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 135, False: 652k]
  ------------------
10303|   653k|  }
10303|   225k|  return {SUCCESS, matched};
10303|   225k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS4_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawEPKcm:
95964|   653k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|   653k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 2.40k, False: 650k]
  |  Branch (95965:25): [True: 34.2k, False: 616k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|   616k|        std::size_t slot;
95981|   616k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 616k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|   616k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|   616k|            std::size_t h = len;
95996|  1.23M|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 616k, False: 616k]
  ------------------
95997|   616k|                std::uint8_t pos = phf.positions[i];
95998|   616k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 616k]
  ------------------
95999|   616k|                                  ? (len - std::size_t{1})
96000|   616k|                                  : static_cast<std::size_t>(pos);
96001|   616k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 616k, False: 0]
  ------------------
96002|   616k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|   616k|                }
96004|   616k|            }
96005|   616k|            slot = h & (table_size - 1);
96006|   616k|        }
96007|       |
96008|   616k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|   616k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 18.0k, False: 598k]
  ------------------
96010|   598k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 17.4k, False: 580k]
  ------------------
96011|   580k|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 15.0k, False: 565k]
  ------------------
96012|   580k|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|   565k|        return ki;
96014|   580k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlS7_tlS8_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS4_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|  1.21M|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm15EEEtlA15_cLc115ELc116ELc97ELc116ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm16EEEtlA16_cLc100ELc121ELc110ELc97ELc109ELc105ELc99ELc70ELc114ELc105ELc99ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm12EEEtlA12_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110EEEEXtlS9_tlSA_Lc102ELc114ELc105ELc99ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS6_ILm19EEEtlA19_cLc114ELc101ELc115ELc116ELc105ELc116ELc117ELc116ELc105ELc111ELc110ELc67ELc111ELc109ELc98ELc105ELc110ELc101EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRfSI_SI_RN8fastgltf11CombineModeESL_RKZNSJ_10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_ENKUlmSQ_E_clEmSQ_:
10308|   564k|      [&](std::size_t i, value v) -> error_code {
10308|   564k|        return key_selector_for_each_detail::dispatch_value(
10308|   564k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   564k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEE:
10304|   564k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|   564k|  error_code err = SUCCESS;
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
10305|   564k|      auto&& h = std::get<I>(handlers);
10305|   564k|      using H = std::remove_reference_t<decltype(h)>;
10305|   564k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|   564k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|   564k|          err = h(v);
10306|   564k|        } else {
10306|   564k|          h(v);
10306|   564k|        }
10306|   564k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   564k|        err = v.get(h);
10306|   564k|      }
10306|   564k|    }
10306|   564k|  };
10306|   564k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|   564k|  return err;
10307|   564k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm0EEEEEDaSK_:
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 114k, False: 450k]
  ------------------
10305|   114k|      auto&& h = std::get<I>(handlers);
10305|   114k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   114k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   114k|        err = v.get(h);
10306|   114k|      }
10306|   114k|    }
10306|   564k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm1EEEEEDaSK_:
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 114k, False: 450k]
  ------------------
10305|   114k|      auto&& h = std::get<I>(handlers);
10305|   114k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   114k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   114k|        err = v.get(h);
10306|   114k|      }
10306|   114k|    }
10306|   564k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm2EEEEEDaSK_:
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 118k, False: 446k]
  ------------------
10305|   118k|      auto&& h = std::get<I>(handlers);
10305|   118k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   118k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   118k|        err = v.get(h);
10306|   118k|      }
10306|   118k|    }
10306|   564k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm3EEEEEDaSK_:
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 108k, False: 455k]
  ------------------
10305|   108k|      auto&& h = std::get<I>(handlers);
10305|   108k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   108k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   108k|        err = v.get(h);
10306|   108k|      }
10306|   108k|    }
10306|   564k|  };
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf11CombineModeEEENS_10error_codeERT_:
89907|   217k| {
89908|   217k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|   217k|  if constexpr (custom_deserializable<T, value>) {
89910|   217k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|   217k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf11CombineModeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|   217k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|   217k|    return tag_invoke(*this, object, output);
89263|   217k|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm8EEEtlA8_cLc97ELc118ELc101ELc114ELc97ELc103ELc101EEEEXtlS5_tlS6_Lc109ELc105ELc110ELc105ELc109ELc117ELc109EEEEXtlS5_tlS6_Lc109ELc97ELc120ELc105ELc109ELc117ELc109EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc117ELc108ELc116ELc105ELc112ELc108ELc121EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   217k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   217k|        const char* p = rjs.raw();
96024|   217k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   217k|            std::uint8_t ki = window.window_to_key[
96030|   217k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   217k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 1, False: 217k]
  ------------------
96032|   217k|            return key_selector_detail::match_window_candidate(
96033|   217k|                p, ki, window, std::make_index_sequence<N>{});
96034|   217k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   217k|    }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm4EEEEEDaSK_:
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 108k, False: 455k]
  ------------------
10305|   108k|      auto&& h = std::get<I>(handlers);
10305|   108k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|   108k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|   108k|        err = v.get(h);
10306|   108k|      }
10306|   108k|    }
10306|   564k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRfS6_S6_RN8fastgltf11CombineModeES9_RKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_10error_codeEmRT_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSK_E_clINS4_17integral_constantImLm5EEEEEDaSK_:
10304|   564k|  auto try_one = [&](auto Ic) {
10305|   564k|    constexpr std::size_t I = decltype(Ic)::value;
10305|   564k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 197, False: 564k]
  ------------------
10305|    197|      auto&& h = std::get<I>(handlers);
10305|    197|      using H = std::remove_reference_t<decltype(h)>;
10305|    197|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    197|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    197|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    197|    }
10306|   564k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS7_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS7_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS7_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorINSG_12basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEENSL_ISN_EEEERNSG_8optionalISP_EEST_RKZN8fastgltf10readExtrasERKNSU_20ParserInternalConfigEmNSU_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS13_:
10349|  98.5k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  98.5k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 13, False: 98.5k]
  ------------------
10350|  98.5k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  98.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS5_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS5_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS5_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorINSE_12basic_stringIcNSE_11char_traitsIcEENSE_9allocatorIcEEEENSJ_ISL_EEEERNSE_8optionalISN_EESR_RKZN8fastgltf10readExtrasERKNSS_20ParserInternalConfigEmNSS_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_:
10309|  98.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  98.5k|  using Selector = key_selector<Keys...>;
10309|  98.5k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  98.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorINSG_12basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEENSL_ISN_EEEERNSG_8optionalISP_EEST_RKZN8fastgltf10readExtrasERKNSU_20ParserInternalConfigEmNSU_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS13_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS14_:
10308|  98.5k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  98.5k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  98.5k|  return this->template for_each<Selector>(
10308|  98.5k|      [&](std::size_t i, value v) -> error_code {
10308|  98.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  98.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  98.5k|      });
10309|  98.5k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachISF_JRNSt3__16vectorINSH_12basic_stringIcNSH_11char_traitsIcEENSH_9allocatorIcEEEENSM_ISO_EEEERNSH_8optionalISQ_EESU_RKZN8fastgltf10readExtrasERKNSV_20ParserInternalConfigEmNSV_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS14_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS15_EUlmS10_E_Qaa17key_selector_typeIS14_Esr3stdE14is_invocable_vIRT0_mS10_EEES16_OS1A_:
10296|  98.5k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  98.5k|  value_iterator it = iter;
10297|  98.5k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  98.5k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  98.5k|  std::array<std::uint64_t, seen_words> seen{};
10298|   190k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 91.9k, False: 98.4k]
  ------------------
10298|  91.9k|    raw_json_string key;
10298|  91.9k|    error_code error;
10298|  91.9k|    std::size_t idx;
10298|  91.9k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  91.9k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 13, False: 91.9k]
  ------------------
10299|  91.9k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 18, False: 91.9k]
  ------------------
10299|  91.9k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  91.9k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 30.4k, False: 61.5k]
  ------------------
10300|  30.4k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  30.4k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  30.4k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 29.5k, False: 847]
  ------------------
10300|  29.5k|        seen_word |= seen_bit;
10300|  29.5k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  29.5k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  29.5k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 9, False: 29.5k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  29.5k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 29.5k]
  ------------------
10302|  29.5k|      }
10302|  30.4k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  91.9k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 91.9k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  91.9k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 17, False: 91.9k]
  ------------------
10303|  91.9k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 27, False: 91.9k]
  ------------------
10303|  91.9k|  }
10303|  98.4k|  return {SUCCESS, matched};
10303|  98.5k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS4_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS4_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  91.9k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  91.9k|        const char* p = rjs.raw();
96024|  91.9k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  91.9k|            std::uint8_t ki = window.window_to_key[
96030|  91.9k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  91.9k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 52.2k, False: 39.7k]
  ------------------
96032|  39.7k|            return key_selector_detail::match_window_candidate(
96033|  39.7k|                p, ki, window, std::make_index_sequence<N>{});
96034|  91.9k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  91.9k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS4_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS4_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS4_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|   121k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm17EEEtlA17_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm19EEEtlA19_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm22EEEtlA22_cLc110ELc111ELc116ELc67ELc111ELc108ELc108ELc105ELc100ELc101ELc87ELc105ELc116ELc104ELc83ELc121ELc115ELc116ELc101ELc109ELc115EEEEXtlNS6_ILm7EEEtlA7_cLc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorINSG_12basic_stringIcNSG_11char_traitsIcEENSG_9allocatorIcEEEENSL_ISN_EEEERNSG_8optionalISP_EEST_RKZN8fastgltf10readExtrasERKNSU_20ParserInternalConfigEmNSU_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS13_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS14_ENKUlmSZ_E_clEmSZ_:
10308|  29.5k|      [&](std::size_t i, value v) -> error_code {
10308|  29.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  29.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  29.5k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEERNS4_8optionalISE_EESI_RKZN8fastgltf10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SO_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  29.5k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  29.5k|  error_code err = SUCCESS;
10304|  29.5k|  auto try_one = [&](auto Ic) {
10305|  29.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.5k|    if (idx == I) {
10305|  29.5k|      auto&& h = std::get<I>(handlers);
10305|  29.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|  29.5k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  29.5k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  29.5k|          err = h(v);
10306|  29.5k|        } else {
10306|  29.5k|          h(v);
10306|  29.5k|        }
10306|  29.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.5k|        err = v.get(h);
10306|  29.5k|      }
10306|  29.5k|    }
10306|  29.5k|  };
10306|  29.5k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  29.5k|  return err;
10307|  29.5k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEERNS4_8optionalISE_EESI_RKZN8fastgltf10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SO_NS4_16integer_sequenceImJXspT0_EEEEENKUlSU_E_clINS4_17integral_constantImLm0EEEEEDaSU_:
10304|  29.5k|  auto try_one = [&](auto Ic) {
10305|  29.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 8.56k, False: 21.0k]
  ------------------
10305|  8.56k|      auto&& h = std::get<I>(handlers);
10305|  8.56k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  8.56k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  8.56k|        err = v.get(h);
10306|  8.56k|      }
10306|  8.56k|    }
10306|  29.5k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEERNS4_8optionalISE_EESI_RKZN8fastgltf10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SO_NS4_16integer_sequenceImJXspT0_EEEEENKUlSU_E_clINS4_17integral_constantImLm1EEEEEDaSU_:
10304|  29.5k|  auto try_one = [&](auto Ic) {
10305|  29.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 9.94k, False: 19.6k]
  ------------------
10305|  9.94k|      auto&& h = std::get<I>(handlers);
10305|  9.94k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  9.94k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  9.94k|        err = v.get(h);
10306|  9.94k|      }
10306|  9.94k|    }
10306|  29.5k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalINS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEEEEEENS_10error_codeERT_:
89907|  20.7k| {
89908|  20.7k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  20.7k|  if constexpr (custom_deserializable<T, value>) {
89910|  20.7k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  20.7k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalINS2_6vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS8_ISA_EEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSH_RSE_:
89261|  20.7k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  20.7k|    return tag_invoke(*this, object, output);
89263|  20.7k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalINS2_6vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS8_ISA_EEEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  20.7k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  20.7k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  20.7k|  static_assert(
97645|  20.7k|      deserializable<value_type, ValT>,
97646|  20.7k|      "The specified type inside the optional must itself be deserializable");
97647|  20.7k|  static_assert(
97648|  20.7k|      std::is_default_constructible_v<value_type>,
97649|  20.7k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  20.7k|  bool is_null_value;
97653|  20.7k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  20.7k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 20.7k]
  |  |  ------------------
  ------------------
97654|  20.7k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 20.7k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  20.7k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 20.7k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  20.7k|    out.emplace();
97665|  20.7k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  20.7k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  20.7k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 6, False: 20.7k]
  |  |  ------------------
  ------------------
97667|  20.7k|    guard.armed = false;
97668|  20.7k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  20.7k|  return SUCCESS;
97676|  20.7k|}
_ZN8simdjson7details11reset_guardINSt3__18optionalINS2_6vectorINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS8_ISA_EEEEEEED2Ev:
97461|  20.7k|  ~reset_guard() {
97462|  20.7k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 6, False: 20.7k]
  ------------------
97463|  20.7k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEERNS4_8optionalISE_EESI_RKZN8fastgltf10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SO_NS4_16integer_sequenceImJXspT0_EEEEENKUlSU_E_clINS4_17integral_constantImLm2EEEEEDaSU_:
10304|  29.5k|  auto try_one = [&](auto Ic) {
10305|  29.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10.8k, False: 18.7k]
  ------------------
10305|  10.8k|      auto&& h = std::get<I>(handlers);
10305|  10.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  10.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  10.8k|        err = v.get(h);
10306|  10.8k|      }
10306|  10.8k|    }
10306|  29.5k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENSA_ISC_EEEERNS4_8optionalISE_EESI_RKZN8fastgltf10readExtrasERKNSJ_20ParserInternalConfigEmNSJ_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_SO_NS4_16integer_sequenceImJXspT0_EEEEENKUlSU_E_clINS4_17integral_constantImLm3EEEEEDaSU_:
10304|  29.5k|  auto try_one = [&](auto Ic) {
10305|  29.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 206, False: 29.3k]
  ------------------
10305|    206|      auto&& h = std::get<I>(handlers);
10305|    206|      using H = std::remove_reference_t<decltype(h)>;
10305|    206|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    206|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    206|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    206|    }
10306|  29.5k|  };
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS8_tlS9_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS8_tlS9_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorIN8fastgltf10JointLimitENSA_9allocatorISD_EEEERNSB_INSC_10JointDriveENSE_ISI_EEEERKZNSC_10readExtrasERKNSC_20ParserInternalConfigEmNSC_8CategoryEEUlNS2_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSU_:
10349|   274k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|   274k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 38, False: 274k]
  ------------------
10350|   274k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|   274k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS6_tlS7_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS6_tlS7_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEJRNSt3__16vectorIN8fastgltf10JointLimitENS8_9allocatorISB_EEEERNS9_INSA_10JointDriveENSC_ISG_EEEERKZNSA_10readExtrasERKNSA_20ParserInternalConfigEmNSA_8CategoryEEUlNS1_5valueEE_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSS_:
10309|   274k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|   274k|  using Selector = key_selector<Keys...>;
10309|   274k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|   274k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS7_tlS8_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorIN8fastgltf10JointLimitENSA_9allocatorISD_EEEERNSB_INSC_10JointDriveENSE_ISI_EEEERKZNSC_10readExtrasERKNSC_20ParserInternalConfigEmNSC_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_:
10308|   274k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|   274k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|   274k|  return this->template for_each<Selector>(
10308|   274k|      [&](std::size_t i, value v) -> error_code {
10308|   274k|        return key_selector_for_each_detail::dispatch_value(
10308|   274k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|   274k|      });
10309|   274k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS7_tlS8_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEZNS2_8for_eachIS9_JRNSt3__16vectorIN8fastgltf10JointLimitENSB_9allocatorISE_EEEERNSC_INSD_10JointDriveENSF_ISJ_EEEERKZNSD_10readExtrasERKNSD_20ParserInternalConfigEmNSD_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSV_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_EUlmSR_E_Qaa17key_selector_typeISV_Esr3stdE14is_invocable_vIRT0_mSR_EEESX_OS11_:
10296|   274k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|   274k|  value_iterator it = iter;
10297|   274k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|   274k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|   274k|  std::array<std::uint64_t, seen_words> seen{};
10298|   288k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 14.9k, False: 273k]
  ------------------
10298|  14.9k|    raw_json_string key;
10298|  14.9k|    error_code error;
10298|  14.9k|    std::size_t idx;
10298|  14.9k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  14.9k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 17, False: 14.9k]
  ------------------
10299|  14.9k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 27, False: 14.9k]
  ------------------
10299|  14.9k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  14.9k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 1.36k, False: 13.6k]
  ------------------
10300|  1.36k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  1.36k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  1.36k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 1.02k, False: 342]
  ------------------
10300|  1.02k|        seen_word |= seen_bit;
10300|  1.02k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  1.02k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  1.02k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 366, False: 654]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  1.02k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 1.02k]
  ------------------
10302|  1.02k|      }
10302|  1.36k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  14.9k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 14.9k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  14.9k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 19, False: 14.9k]
  ------------------
10303|  14.9k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 27, False: 14.9k]
  ------------------
10303|  14.9k|  }
10303|   273k|  return {SUCCESS, matched};
10303|   274k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS5_tlS6_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  14.9k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  14.9k|        const char* p = rjs.raw();
96024|  14.9k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  14.9k|            std::uint8_t ki = window.window_to_key[
96030|  14.9k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  14.9k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 12.0k, False: 2.87k]
  ------------------
96032|  2.87k|            return key_selector_detail::match_window_candidate(
96033|  2.87k|                p, ki, window, std::make_index_sequence<N>{});
96034|  14.9k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  14.9k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS5_tlS6_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS5_tlS6_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEE4sizeEv:
95952|  15.6k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc109ELc105ELc116ELc115EEEEXtlS7_tlS8_Lc100ELc114ELc105ELc118ELc101ELc115EEEEXtlS7_tlS8_Lc101ELc120ELc116ELc114ELc97ELc115EEEEEEEJRNSt3__16vectorIN8fastgltf10JointLimitENSA_9allocatorISD_EEEERNSB_INSC_10JointDriveENSE_ISI_EEEERKZNSC_10readExtrasERKNSC_20ParserInternalConfigEmNSC_8CategoryEEUlNS1_5valueEE_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSV_ENKUlmSQ_E_clEmSQ_:
10308|  1.02k|      [&](std::size_t i, value v) -> error_code {
10308|  1.02k|        return key_selector_for_each_detail::dispatch_value(
10308|  1.02k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  1.02k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf10JointLimitENS4_9allocatorIS8_EEEERNS6_INS7_10JointDriveENS9_ISD_EEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SL_NS4_16integer_sequenceImJXspT0_EEEE:
10304|  1.02k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  1.02k|  error_code err = SUCCESS;
10304|  1.02k|  auto try_one = [&](auto Ic) {
10305|  1.02k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.02k|    if (idx == I) {
10305|  1.02k|      auto&& h = std::get<I>(handlers);
10305|  1.02k|      using H = std::remove_reference_t<decltype(h)>;
10305|  1.02k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  1.02k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  1.02k|          err = h(v);
10306|  1.02k|        } else {
10306|  1.02k|          h(v);
10306|  1.02k|        }
10306|  1.02k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  1.02k|        err = v.get(h);
10306|  1.02k|      }
10306|  1.02k|    }
10306|  1.02k|  };
10306|  1.02k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  1.02k|  return err;
10307|  1.02k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf10JointLimitENS4_9allocatorIS8_EEEERNS6_INS7_10JointDriveENS9_ISD_EEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SL_NS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm0EEEEEDaSR_:
10304|  1.02k|  auto try_one = [&](auto Ic) {
10305|  1.02k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.02k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 392, False: 628]
  ------------------
10305|    392|      auto&& h = std::get<I>(handlers);
10305|    392|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|    392|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|    392|        err = v.get(h);
10306|    392|      }
10306|    392|    }
10306|  1.02k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorIN8fastgltf10JointLimitENS4_9allocatorIS7_EEEEEENS_10error_codeERT_:
89907|    392| {
89908|    392|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|    392|  if constexpr (custom_deserializable<T, value>) {
89910|    392|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|    392|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorIN8fastgltf10JointLimitENS2_9allocatorIS5_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|    392|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|    392|    return tag_invoke(*this, object, output);
89263|    392|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf10JointLimitENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|    392|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|    392|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|    392|  static_assert(
97478|    392|      deserializable<value_type, ValT>,
97479|    392|      "The specified type inside the container must itself be deserializable");
97480|    392|  static_assert(
97481|    392|      std::is_default_constructible_v<value_type>,
97482|    392|      "The specified type inside the container must be default constructible.");
97483|    392|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|    392|  } else {
97487|    392|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|    392|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 391]
  |  |  ------------------
  ------------------
97488|    391|  }
97489|       |
97490|    392|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|    392|    struct scratch_space {
97499|    392|      std::vector<value_type> elements{};
97500|    392|      bool busy{false};
97501|    392|    };
97502|    392|    static thread_local scratch_space scratch;
97503|    392|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 391, False: 1]
  |  Branch (97503:26): [True: 391, False: 0]
  ------------------
97504|    391|      struct release_scratch {
97505|    391|        scratch_space &s;
97506|    391|        T &out;
97507|    391|        size_t parsed{0};
97508|    391|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|    391|        simdjson_never_inline void keep_parsed() noexcept {
97512|    391|          s.elements.resize(parsed);
97513|    391|          out.swap(s.elements);
97514|    391|        }
97515|    391|        ~release_scratch() {
97516|    391|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|    391|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|    391|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|    391|          s.busy = false;
97521|    391|        }
97522|    391|      } release{scratch, out};
97523|    391|      scratch.busy = true;
97524|    391|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 162, False: 229]
  ------------------
97525|    162|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|    162|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 162, False: 0]
  |  |  ------------------
  ------------------
97526|      0|        release.parsed++;
97527|      0|      }
97528|    229|      out.reserve(release.parsed);
97529|    229|      release.complete = true;
97530|    229|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 0, False: 229]
  ------------------
97531|    229|      return SUCCESS;
97532|    391|    }
97533|    392|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|    392|  } else {
97544|    392|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 392]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|    392|  }
97554|    392|  return SUCCESS;
97555|    392|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIN8fastgltf10JointLimitEEENS_10error_codeERT_:
99449|    162|{
99450|    162|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 0, False: 162]
  ------------------
99451|    162|  return first.get<T>(out);
99452|    162|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf10JointLimitEEENS_10error_codeERT_:
89907|    162| {
89908|    162|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|    162|  if constexpr (custom_deserializable<T, value>) {
89910|    162|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|    162|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf10JointLimitEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|    162|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|    162|    return tag_invoke(*this, object, output);
89263|    162|  }
parser.cpp:_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS8_tlS9_Lc109ELc97ELc120EEEEXtlNS7_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS7_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS7_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS7_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEJRN8fastgltf14basic_optionalIfNSI_15flagged_storageIfEEEESN_SN_RfRKZNS_L10tag_invokeINS2_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSI_10JointLimitEEUlSQ_E_RKZNSP_ISQ_EESR_SS_SU_SW_EUlSQ_E0_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS13_:
10349|    162|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|    162|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 159]
  ------------------
10350|    159|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|    162|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS6_tlS7_Lc109ELc97ELc120EEEEXtlNS5_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS5_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS5_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS5_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEJRN8fastgltf14basic_optionalIfNSG_15flagged_storageIfEEEESL_SL_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSG_10JointLimitEEUlSO_E_RKZNSN_ISO_EESP_SQ_SS_SU_EUlSO_E0_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_:
10309|    159|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|    159|  using Selector = key_selector<Keys...>;
10309|    159|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|    159|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS7_tlS8_Lc109ELc97ELc120EEEEXtlNS6_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS6_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS6_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEEEJRN8fastgltf14basic_optionalIfNSI_15flagged_storageIfEEEESN_SN_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSI_10JointLimitEEUlSQ_E_RKZNSP_ISQ_EESR_SS_SU_SW_EUlSQ_E0_EQaaaa17key_selector_typeIST_EeqsZT0_clsrST_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS13_:
10308|    159|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|    159|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|    159|  return this->template for_each<Selector>(
10308|    159|      [&](std::size_t i, value v) -> error_code {
10308|    159|        return key_selector_for_each_detail::dispatch_value(
10308|    159|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|    159|      });
10309|    159|}
parser.cpp:_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS7_tlS8_Lc109ELc97ELc120EEEEXtlNS6_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS6_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS6_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEEEZNS2_8for_eachISH_JRN8fastgltf14basic_optionalIfNSJ_15flagged_storageIfEEEESO_SO_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSJ_10JointLimitEEUlSR_E_RKZNSQ_ISR_EESS_ST_SV_SX_EUlSR_E0_EQaaaa17key_selector_typeISU_EeqsZT0_clsrSU_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS14_EUlmSR_E_Qaa17key_selector_typeISU_Esr3stdE14is_invocable_vIRT0_mSR_EEES15_OS19_:
10296|    159|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|    159|  value_iterator it = iter;
10297|    159|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|    159|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|    159|  std::array<std::uint64_t, seen_words> seen{};
10298|  20.1k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 20.0k, False: 108]
  ------------------
10298|  20.0k|    raw_json_string key;
10298|  20.0k|    error_code error;
10298|  20.0k|    std::size_t idx;
10298|  20.0k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  20.0k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 28, False: 20.0k]
  ------------------
10299|  20.0k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 50, False: 19.9k]
  ------------------
10299|  19.9k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  20.0k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 413, False: 19.6k]
  ------------------
10300|    413|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|    413|      std::uint64_t &seen_word = seen[idx >> 6];
10300|    413|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 24, False: 389]
  ------------------
10300|     24|        seen_word |= seen_bit;
10300|     24|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|     24|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|     24|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 3, False: 21]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|     24|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 24]
  ------------------
10302|     24|      }
10302|    413|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  20.0k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 20.0k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  20.0k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 18, False: 20.0k]
  ------------------
10303|  20.0k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 33, False: 20.0k]
  ------------------
10303|  20.0k|  }
10303|    108|  return {SUCCESS, matched};
10303|    159|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS5_tlS6_Lc109ELc97ELc120EEEEXtlNS4_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS4_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS4_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS4_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  19.9k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  19.9k|        const char* p = rjs.raw();
96024|  19.9k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  19.9k|            std::uint8_t ki = window.window_to_key[
96030|  19.9k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  19.9k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 13.2k, False: 6.68k]
  ------------------
96032|  6.68k|            return key_selector_detail::match_window_candidate(
96033|  6.68k|                p, ki, window, std::make_index_sequence<N>{});
96034|  19.9k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  19.9k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  6.68k|                       std::index_sequence<Is...>) noexcept {
95865|  6.68k|  std::size_t result = N;
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  6.68k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  6.68k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.68k|      result = i;
95872|  6.68k|    }
95873|  6.68k|  };
95874|  6.68k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  6.68k|  return result;
95876|  6.68k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.87k, False: 4.80k]
  |  Branch (95868:20): [True: 1.02k, False: 851]
  ------------------
95869|  1.02k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 198, False: 824]
  ------------------
95870|  1.02k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    198|      result = i;
95872|    198|    }
95873|  6.68k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 823, False: 5.85k]
  |  Branch (95868:20): [True: 463, False: 360]
  ------------------
95869|    463|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 215, False: 248]
  ------------------
95870|    463|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|    215|      result = i;
95872|    215|    }
95873|  6.68k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 570, False: 6.11k]
  |  Branch (95868:20): [True: 227, False: 343]
  ------------------
95869|    227|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 227]
  ------------------
95870|    227|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.68k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.30k, False: 5.37k]
  |  Branch (95868:20): [True: 286, False: 1.01k]
  ------------------
95869|    286|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 286]
  ------------------
95870|    286|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.68k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.08k, False: 5.59k]
  |  Branch (95868:20): [True: 283, False: 803]
  ------------------
95869|    283|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 283]
  ------------------
95870|    283|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.68k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm6ELm11EJLm0ELm1ELm2ELm3ELm4ELm5EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|  6.68k|  auto try_match = [&](auto Ic) {
95867|  6.68k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.68k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.02k, False: 5.65k]
  |  Branch (95868:20): [True: 552, False: 471]
  ------------------
95869|    552|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 552]
  ------------------
95870|    552|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.68k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS5_tlS6_Lc109ELc97ELc120EEEEXtlNS4_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS4_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS4_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS4_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEE4sizeEv:
95952|  20.0k|    static constexpr std::size_t size() noexcept { return N; }
parser.cpp:_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm4EEEtlA4_cLc109ELc105ELc110EEEEXtlS7_tlS8_Lc109ELc97ELc120EEEEXtlNS6_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlNS6_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEXtlNS6_ILm11EEEtlA11_cLc108ELc105ELc110ELc101ELc97ELc114ELc65ELc120ELc101ELc115EEEEXtlNS6_ILm12EEEtlA12_cLc97ELc110ELc103ELc117ELc108ELc97ELc114ELc65ELc120ELc101ELc115EEEEEEEJRN8fastgltf14basic_optionalIfNSI_15flagged_storageIfEEEESN_SN_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNSI_10JointLimitEEUlSQ_E_RKZNSP_ISQ_EESR_SS_SU_SW_EUlSQ_E0_EQaaaa17key_selector_typeIST_EeqsZT0_clsrST_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS13_ENKUlmSQ_E_clEmSQ_:
10308|     24|      [&](std::size_t i, value v) -> error_code {
10308|     24|        return key_selector_for_each_detail::dispatch_value(
10308|     24|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|     24|      });
parser.cpp:_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEE:
10304|     24|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|     24|  error_code err = SUCCESS;
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
10305|     24|      auto&& h = std::get<I>(handlers);
10305|     24|      using H = std::remove_reference_t<decltype(h)>;
10305|     24|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|     24|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|     24|          err = h(v);
10306|     24|        } else {
10306|     24|          h(v);
10306|     24|        }
10306|     24|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     24|        err = v.get(h);
10306|     24|      }
10306|     24|    }
10306|     24|  };
10306|     24|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|     24|  return err;
10307|     24|}
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm0EEEEEDaSH_:
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 10, False: 14]
  ------------------
10305|     10|      auto&& h = std::get<I>(handlers);
10305|     10|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     10|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     10|        err = v.get(h);
10306|     10|      }
10306|     10|    }
10306|     24|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm1EEEEEDaSH_:
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 14, False: 10]
  ------------------
10305|     14|      auto&& h = std::get<I>(handlers);
10305|     14|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     14|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     14|        err = v.get(h);
10306|     14|      }
10306|     14|    }
10306|     24|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm2EEEEEDaSH_:
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 24]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     24|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm3EEEEEDaSH_:
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 24]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     24|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm4EEEEEDaSH_:
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 24]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|      0|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|      0|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|      0|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|      0|    }
10306|     24|  };
parser.cpp:_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalIfNS6_15flagged_storageIfEEEESB_SB_RfRKZNS_L10tag_invokeINS1_5valueEEENS_10error_codeENS_15deserialize_tagERT_RNS6_10JointLimitEEUlSE_E_RKZNSD_ISE_EESF_SG_SI_SK_EUlSE_E0_EEEJLm0ELm1ELm2ELm3ELm4ELm5EEEESF_mSI_SE_NS4_16integer_sequenceImJXspT0_EEEEENKUlSH_E_clINS4_17integral_constantImLm5EEEEEDaSH_:
10304|     24|  auto try_one = [&](auto Ic) {
10305|     24|    constexpr std::size_t I = decltype(Ic)::value;
10305|     24|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 24]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|      0|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|      0|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|      0|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|      0|    }
10306|     24|  };
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf10JointLimitENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|    391|        ~release_scratch() {
97516|    391|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|    391|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 162, False: 229]
  |  |  ------------------
  ------------------
97517|    391|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|    391|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 0, False: 391]
  ------------------
97520|    391|          s.busy = false;
97521|    391|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf10JointLimitENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|    162|        simdjson_never_inline void keep_parsed() noexcept {
97512|    162|          s.elements.resize(parsed);
97513|    162|          out.swap(s.elements);
97514|    162|        }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf10JointLimitENS4_9allocatorIS8_EEEERNS6_INS7_10JointDriveENS9_ISD_EEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SL_NS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm1EEEEEDaSR_:
10304|  1.02k|  auto try_one = [&](auto Ic) {
10305|  1.02k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.02k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 424, False: 596]
  ------------------
10305|    424|      auto&& h = std::get<I>(handlers);
10305|    424|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|    424|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|    424|        err = v.get(h);
10306|    424|      }
10306|    424|    }
10306|  1.02k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__16vectorIN8fastgltf10JointDriveENS4_9allocatorIS7_EEEEEENS_10error_codeERT_:
89907|    424| {
89908|    424|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|    424|  if constexpr (custom_deserializable<T, value>) {
89910|    424|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|    424|  }
_ZNK8simdjson15deserialize_tagclINSt3__16vectorIN8fastgltf10JointDriveENS2_9allocatorIS5_EEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|    424|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|    424|    return tag_invoke(*this, object, output);
89263|    424|  }
_ZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf10JointDriveENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97475|    424|error_code tag_invoke(deserialize_tag, ValT &val, T &out) noexcept(false) {
97476|    424|  using value_type = typename std::remove_cvref_t<T>::value_type;
97477|    424|  static_assert(
97478|    424|      deserializable<value_type, ValT>,
97479|    424|      "The specified type inside the container must itself be deserializable");
97480|    424|  static_assert(
97481|    424|      std::is_default_constructible_v<value_type>,
97482|    424|      "The specified type inside the container must be default constructible.");
97483|    424|  fallback::ondemand::array arr;
97484|       |  if constexpr (std::is_same_v<std::remove_cvref_t<ValT>, fallback::ondemand::array>) {
97485|       |    arr = val;
97486|    424|  } else {
97487|    424|    SIMDJSON_TRY(val.get_array().get(arr));
  ------------------
  |  | 2642|    424|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 4, False: 420]
  |  |  ------------------
  ------------------
97488|    420|  }
97489|       |
97490|    424|  if constexpr (std::is_same_v<T, std::vector<value_type>> && !std::is_same_v<value_type, bool>) {
97491|       |    // Collect the elements in a per-thread scratch vector that keeps its
97492|       |    // capacity from call to call, then move them into out after reserving the
97493|       |    // exact size: out is allocated once instead of being regrown. A nested
97494|       |    // array of the same type finds the scratch busy and takes the paths below.
97495|       |    // Prior related work: jsonifier keeps a thread-local vector and sizes the
97496|       |    // caller's vector from that element count (parse_impl.hpp,
97497|       |    // https://github.com/nihilai-collective/Jsonifier).
97498|    424|    struct scratch_space {
97499|    424|      std::vector<value_type> elements{};
97500|    424|      bool busy{false};
97501|    424|    };
97502|    424|    static thread_local scratch_space scratch;
97503|    424|    if (!scratch.busy && out.empty()) {
  ------------------
  |  Branch (97503:9): [True: 420, False: 4]
  |  Branch (97503:26): [True: 420, False: 0]
  ------------------
97504|    420|      struct release_scratch {
97505|    420|        scratch_space &s;
97506|    420|        T &out;
97507|    420|        size_t parsed{0};
97508|    420|        bool complete{false};
97509|       |        // On an error or an exception, out gets the elements parsed so far (as
97510|       |        // with the loops below), without allocating. Kept out of the hot path.
97511|    420|        simdjson_never_inline void keep_parsed() noexcept {
97512|    420|          s.elements.resize(parsed);
97513|    420|          out.swap(s.elements);
97514|    420|        }
97515|    420|        ~release_scratch() {
97516|    420|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
97517|    420|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|    420|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
97520|    420|          s.busy = false;
97521|    420|        }
97522|    420|      } release{scratch, out};
97523|    420|      scratch.busy = true;
97524|    420|      for (auto v : arr) {
  ------------------
  |  Branch (97524:19): [True: 199, False: 221]
  ------------------
97525|    199|        SIMDJSON_TRY(v.get<value_type>(scratch.elements.emplace_back()));
  ------------------
  |  | 2642|    199|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 199, False: 0]
  |  |  ------------------
  ------------------
97526|      0|        release.parsed++;
97527|      0|      }
97528|    221|      out.reserve(release.parsed);
97529|    221|      release.complete = true;
97530|    221|      for (auto &e : scratch.elements) { out.emplace_back(std::move(e)); }
  ------------------
  |  Branch (97530:20): [True: 0, False: 221]
  ------------------
97531|    221|      return SUCCESS;
97532|    420|    }
97533|    424|  }
97534|       |  if constexpr (details::deserialize_in_place<T>) {
97535|       |    for (auto v : arr) {
97536|       |      auto &slot = concepts::emplace_one(out);
97537|       |      // An error or an exception (a user tag_invoke may throw) must not leave
97538|       |      // a partially deserialized element behind.
97539|       |      details::pop_back_guard<T> guard{out};
97540|       |      SIMDJSON_TRY(v.get<value_type>(slot));
97541|       |      guard.armed = false;
97542|       |    }
97543|    424|  } else {
97544|    424|    for (auto v : arr) {
  ------------------
  |  Branch (97544:17): [True: 0, False: 424]
  ------------------
97545|       |      // Deserialize into a temporary first: an error or an exception (a user
97546|       |      // tag_invoke may throw) must not leave a default-constructed element behind.
97547|      0|      value_type temp;
97548|      0|      if (auto const err = v.get<value_type>(temp); err) {
  ------------------
  |  Branch (97548:53): [True: 0, False: 0]
  ------------------
97549|      0|        return err;
97550|      0|      }
97551|      0|      concepts::emplace_one(out, std::move(temp));
97552|      0|    }
97553|    424|  }
97554|    424|  return SUCCESS;
97555|    424|}
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand5valueEE3getIN8fastgltf10JointDriveEEENS_10error_codeERT_:
99449|    199|{
99450|    199|  if (error()) { return error(); }
  ------------------
  |  Branch (99450:7): [True: 0, False: 199]
  ------------------
99451|    199|  return first.get<T>(out);
99452|    199|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf10JointDriveEEENS_10error_codeERT_:
89907|    199| {
89908|    199|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|    199|  if constexpr (custom_deserializable<T, value>) {
89910|    199|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|    199|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf10JointDriveEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|    199|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|    199|    return tag_invoke(*this, object, output);
89263|    199|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS8_tlS9_Lc109ELc111ELc100ELc101EEEEXtlS8_tlS9_Lc97ELc120ELc105ELc115EEEEXtlNS7_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS7_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS7_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlSC_tlSD_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS7_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEJRNSt3__18optionalIN8fastgltf9DriveTypeEEERNSJ_INSK_9DriveModeEEERNSJ_IhEERfRNSK_14basic_optionalIfNSK_15flagged_storageIfEEEESY_SY_SY_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSZ_:
10349|    199|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|    199|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 3, False: 196]
  ------------------
10350|    196|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|    199|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS6_tlS7_Lc109ELc111ELc100ELc101EEEEXtlS6_tlS7_Lc97ELc120ELc105ELc115EEEEXtlNS5_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS5_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS5_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlSA_tlSB_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS5_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEJRNSt3__18optionalIN8fastgltf9DriveTypeEEERNSH_INSI_9DriveModeEEERNSH_IhEERfRNSI_14basic_optionalIfNSI_15flagged_storageIfEEEESW_SW_SW_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_:
10309|    196|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|    196|  using Selector = key_selector<Keys...>;
10309|    196|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|    196|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc97ELc120ELc105ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlSB_tlSC_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEEEJRNSt3__18optionalIN8fastgltf9DriveTypeEEERNSJ_INSK_9DriveModeEEERNSJ_IhEERfRNSK_14basic_optionalIfNSK_15flagged_storageIfEEEESY_SY_SY_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSZ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_:
10308|    196|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|    196|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|    196|  return this->template for_each<Selector>(
10308|    196|      [&](std::size_t i, value v) -> error_code {
10308|    196|        return key_selector_for_each_detail::dispatch_value(
10308|    196|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|    196|      });
10309|    196|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc97ELc120ELc105ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlSB_tlSC_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEEEZNS2_8for_eachISH_JRNSt3__18optionalIN8fastgltf9DriveTypeEEERNSK_INSL_9DriveModeEEERNSK_IhEERfRNSL_14basic_optionalIfNSL_15flagged_storageIfEEEESZ_SZ_SZ_EQaaaa17key_selector_typeIT_EeqsZT0_clsrS10_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS11_EUlmNS1_5valueEE_Qaa17key_selector_typeIS10_Esr3stdE14is_invocable_vIRT0_mS15_EEES12_OS17_:
10296|    196|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|    196|  value_iterator it = iter;
10297|    196|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|    196|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|    196|  std::array<std::uint64_t, seen_words> seen{};
10298|  11.3k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 11.2k, False: 128]
  ------------------
10298|  11.2k|    raw_json_string key;
10298|  11.2k|    error_code error;
10298|  11.2k|    std::size_t idx;
10298|  11.2k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  11.2k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 25, False: 11.1k]
  ------------------
10299|  11.1k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 28, False: 11.1k]
  ------------------
10299|  11.1k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  11.2k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 25, False: 11.1k]
  ------------------
10300|     25|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|     25|      std::uint64_t &seen_word = seen[idx >> 6];
10300|     25|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 25, False: 0]
  ------------------
10300|     25|        seen_word |= seen_bit;
10300|     25|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|     25|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|     25|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 23, False: 2]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|     25|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 25]
  ------------------
10302|     25|      }
10302|     25|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  11.2k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 11.2k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  11.2k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 23, False: 11.1k]
  ------------------
10303|  11.1k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 45, False: 11.1k]
  ------------------
10303|  11.1k|  }
10303|    128|  return {SUCCESS, matched};
10303|    196|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS5_tlS6_Lc109ELc111ELc100ELc101EEEEXtlS5_tlS6_Lc97ELc120ELc105ELc115EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS4_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlS9_tlSA_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS4_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  11.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  11.1k|        const char* p = rjs.raw();
96024|  11.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  11.1k|            std::uint8_t ki = window.window_to_key[
96030|  11.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  11.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 4.44k, False: 6.70k]
  ------------------
96032|  6.70k|            return key_selector_detail::match_window_candidate(
96033|  6.70k|                p, ki, window, std::make_index_sequence<N>{});
96034|  11.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  11.1k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|  6.70k|                       std::index_sequence<Is...>) noexcept {
95865|  6.70k|  std::size_t result = N;
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|  6.70k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|  6.70k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  6.70k|      result = i;
95872|  6.70k|    }
95873|  6.70k|  };
95874|  6.70k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|  6.70k|  return result;
95876|  6.70k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.16k, False: 5.54k]
  |  Branch (95868:20): [True: 273, False: 889]
  ------------------
95869|    273|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 14, False: 259]
  ------------------
95870|    273|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|     14|      result = i;
95872|     14|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 948, False: 5.75k]
  |  Branch (95868:20): [True: 311, False: 637]
  ------------------
95869|    311|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 11, False: 300]
  ------------------
95870|    311|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|     11|      result = i;
95872|     11|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 595, False: 6.11k]
  |  Branch (95868:20): [True: 255, False: 340]
  ------------------
95869|    255|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 255]
  ------------------
95870|    255|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm3EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 775, False: 5.93k]
  |  Branch (95868:20): [True: 212, False: 563]
  ------------------
95869|    212|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 212]
  ------------------
95870|    212|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm4EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 571, False: 6.13k]
  |  Branch (95868:20): [True: 230, False: 341]
  ------------------
95869|    230|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 230]
  ------------------
95870|    230|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm5EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 744, False: 5.96k]
  |  Branch (95868:20): [True: 207, False: 537]
  ------------------
95869|    207|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 207]
  ------------------
95870|    207|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm6EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 732, False: 5.97k]
  |  Branch (95868:20): [True: 396, False: 336]
  ------------------
95869|    396|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 396]
  ------------------
95870|    396|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.70k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm8ELm14EJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm7EEEEEDaSD_:
95866|  6.70k|  auto try_match = [&](auto Ic) {
95867|  6.70k|    constexpr std::size_t i = decltype(Ic)::value;
95868|  6.70k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 1.18k, False: 5.52k]
  |  Branch (95868:20): [True: 504, False: 676]
  ------------------
95869|    504|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 504]
  ------------------
95870|    504|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|  6.70k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS5_tlS6_Lc109ELc111ELc100ELc101EEEEXtlS5_tlS6_Lc97ELc120ELc105ELc115EEEEXtlNS4_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS4_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS4_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlS9_tlSA_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS4_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEE4sizeEv:
95952|  11.1k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm5EEEtlA5_cLc116ELc121ELc112ELc101EEEEXtlS7_tlS8_Lc109ELc111ELc100ELc101EEEEXtlS7_tlS8_Lc97ELc120ELc105ELc115EEEEXtlNS6_ILm9EEEtlA9_cLc109ELc97ELc120ELc70ELc111ELc114ELc99ELc101EEEEXtlNS6_ILm15EEEtlA15_cLc112ELc111ELc115ELc105ELc116ELc105ELc111ELc110ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm10EEEtlA10_cLc115ELc116ELc105ELc102ELc102ELc110ELc101ELc115ELc115EEEEXtlSB_tlSC_Lc118ELc101ELc108ELc111ELc99ELc105ELc116ELc121ELc84ELc97ELc114ELc103ELc101ELc116EEEEXtlNS6_ILm8EEEtlA8_cLc100ELc97ELc109ELc112ELc105ELc110ELc103EEEEEEEJRNSt3__18optionalIN8fastgltf9DriveTypeEEERNSJ_INSK_9DriveModeEEERNSJ_IhEERfRNSK_14basic_optionalIfNSK_15flagged_storageIfEEEESY_SY_SY_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSZ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_ENKUlmNS1_5valueEE_clEmS14_:
10308|     25|      [&](std::size_t i, value v) -> error_code {
10308|     25|        return key_selector_for_each_detail::dispatch_value(
10308|     25|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|     25|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|     25|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|     25|  error_code err = SUCCESS;
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
10305|     25|      auto&& h = std::get<I>(handlers);
10305|     25|      using H = std::remove_reference_t<decltype(h)>;
10305|     25|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|     25|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|     25|          err = h(v);
10306|     25|        } else {
10306|     25|          h(v);
10306|     25|        }
10306|     25|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     25|        err = v.get(h);
10306|     25|      }
10306|     25|    }
10306|     25|  };
10306|     25|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|     25|  return err;
10307|     25|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm0EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 14, False: 11]
  ------------------
10305|     14|      auto&& h = std::get<I>(handlers);
10305|     14|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     14|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     14|        err = v.get(h);
10306|     14|      }
10306|     14|    }
10306|     25|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf9DriveTypeEEEEENS_10error_codeERT_:
89907|     14| {
89908|     14|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|     14|  if constexpr (custom_deserializable<T, value>) {
89910|     14|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|     14|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf9DriveTypeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|     14|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|     14|    return tag_invoke(*this, object, output);
89263|     14|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf9DriveTypeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|     14|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|     14|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|     14|  static_assert(
97645|     14|      deserializable<value_type, ValT>,
97646|     14|      "The specified type inside the optional must itself be deserializable");
97647|     14|  static_assert(
97648|     14|      std::is_default_constructible_v<value_type>,
97649|     14|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|     14|  bool is_null_value;
97653|     14|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|     14|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 4, False: 10]
  |  |  ------------------
  ------------------
97654|     10|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 9]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|      9|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 9, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|      9|    out.emplace();
97665|      9|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|      9|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|      9|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 9, False: 0]
  |  |  ------------------
  ------------------
97667|      0|    guard.armed = false;
97668|      0|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|      0|  return SUCCESS;
97676|      9|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf9DriveTypeEEENS_10error_codeERT_:
89907|      9| {
89908|      9|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|      9|  if constexpr (custom_deserializable<T, value>) {
89910|      9|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|      9|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf9DriveTypeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|      9|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|      9|    return tag_invoke(*this, object, output);
89263|      9|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc108ELc105ELc110ELc101ELc97ELc114EEEEXtlNS4_ILm8EEEtlA8_cLc97ELc110ELc103ELc117ELc108ELc97ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|      6|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|      6|        const char* p = rjs.raw();
96024|      6|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|      6|            std::uint8_t ki = window.window_to_key[
96030|      6|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|      6|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 2, False: 4]
  ------------------
96032|      4|            return key_selector_detail::match_window_candidate(
96033|      4|                p, ki, window, std::make_index_sequence<N>{});
96034|      6|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|      6|    }
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf9DriveTypeEEEED2Ev:
97461|      9|  ~reset_guard() {
97462|      9|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 9, False: 0]
  ------------------
97463|      9|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm1EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 11, False: 14]
  ------------------
10305|     11|      auto&& h = std::get<I>(handlers);
10305|     11|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     11|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     11|        err = v.get(h);
10306|     11|      }
10306|     11|    }
10306|     25|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf9DriveModeEEEEENS_10error_codeERT_:
89907|     11| {
89908|     11|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|     11|  if constexpr (custom_deserializable<T, value>) {
89910|     11|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|     11|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf9DriveModeEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|     11|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|     11|    return tag_invoke(*this, object, output);
89263|     11|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf9DriveModeEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|     11|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|     11|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|     11|  static_assert(
97645|     11|      deserializable<value_type, ValT>,
97646|     11|      "The specified type inside the optional must itself be deserializable");
97647|     11|  static_assert(
97648|     11|      std::is_default_constructible_v<value_type>,
97649|     11|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|     11|  bool is_null_value;
97653|     11|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|     11|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 9]
  |  |  ------------------
  ------------------
97654|      9|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 8]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|      8|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 8, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|      8|    out.emplace();
97665|      8|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|      8|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|      8|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 8, False: 0]
  |  |  ------------------
  ------------------
97667|      0|    guard.armed = false;
97668|      0|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|      0|  return SUCCESS;
97676|      8|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf9DriveModeEEENS_10error_codeERT_:
89907|      8| {
89908|      8|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|      8|  if constexpr (custom_deserializable<T, value>) {
89910|      8|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|      8|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf9DriveModeEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|      8|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|      8|    return tag_invoke(*this, object, output);
89263|      8|  }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc102ELc111ELc114ELc99ELc101EEEEXtlNS4_ILm13EEEtlA13_cLc97ELc99ELc99ELc101ELc108ELc101ELc114ELc97ELc116ELc105ELc111ELc110EEEEEE9match_rawENS1_15raw_json_stringE:
96022|      5|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|      5|        const char* p = rjs.raw();
96024|      5|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|      5|            std::uint8_t ki = window.window_to_key[
96030|      5|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|      5|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 1, False: 4]
  ------------------
96032|      4|            return key_selector_detail::match_window_candidate(
96033|      4|                p, ki, window, std::make_index_sequence<N>{});
96034|      5|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|      5|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm12EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|      4|                       std::index_sequence<Is...>) noexcept {
95865|      4|  std::size_t result = N;
95866|      4|  auto try_match = [&](auto Ic) {
95867|      4|    constexpr std::size_t i = decltype(Ic)::value;
95868|      4|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|      4|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|      4|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      4|      result = i;
95872|      4|    }
95873|      4|  };
95874|      4|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|      4|  return result;
95876|      4|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm12EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|      4|  auto try_match = [&](auto Ic) {
95867|      4|    constexpr std::size_t i = decltype(Ic)::value;
95868|      4|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2, False: 2]
  |  Branch (95868:20): [True: 1, False: 1]
  ------------------
95869|      1|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 1]
  ------------------
95870|      1|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|      4|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm2ELm12EJLm0ELm1EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|      4|  auto try_match = [&](auto Ic) {
95867|      4|    constexpr std::size_t i = decltype(Ic)::value;
95868|      4|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 2, False: 2]
  |  Branch (95868:20): [True: 1, False: 1]
  ------------------
95869|      1|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 0, False: 1]
  ------------------
95870|      1|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|      0|      result = i;
95872|      0|    }
95873|      4|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf9DriveModeEEEED2Ev:
97461|      8|  ~reset_guard() {
97462|      8|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 8, False: 0]
  ------------------
97463|      8|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm2EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 25]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     25|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm3EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 25]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     25|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm4EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 25]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     25|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm5EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 25]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     25|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm6EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 25]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     25|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf9DriveTypeEEERNS6_INS7_9DriveModeEEERNS6_IhEERfRNS7_14basic_optionalIfNS7_15flagged_storageIfEEEESL_SL_SL_EEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm7EEEEEDaSO_:
10304|     25|  auto try_one = [&](auto Ic) {
10305|     25|    constexpr std::size_t I = decltype(Ic)::value;
10305|     25|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 0, False: 25]
  ------------------
10305|      0|      auto&& h = std::get<I>(handlers);
10305|      0|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      0|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      0|        err = v.get(h);
10306|      0|      }
10306|      0|    }
10306|     25|  };
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf10JointDriveENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratchD2Ev:
97515|    420|        ~release_scratch() {
97516|    420|          if (simdjson_unlikely(!complete)) { keep_parsed(); }
  ------------------
  |  |  767|    420|  #define simdjson_unlikely(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (767:32): [True: 199, False: 221]
  |  |  ------------------
  ------------------
97517|    420|          s.elements.clear();
97518|       |          // Do not hold on to the memory of a very large array.
97519|    420|          if (s.elements.capacity() * sizeof(value_type) > (1 << 20)) { std::vector<value_type>().swap(s.elements); }
  ------------------
  |  Branch (97519:15): [True: 0, False: 420]
  ------------------
97520|    420|          s.busy = false;
97521|    420|        }
_ZZN8simdjson10tag_invokeITkNS_8concepts21appendable_containersENSt3__16vectorIN8fastgltf10JointDriveENS2_9allocatorIS5_EEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_EN15release_scratch11keep_parsedEv:
97511|    199|        simdjson_never_inline void keep_parsed() noexcept {
97512|    199|          s.elements.resize(parsed);
97513|    199|          out.swap(s.elements);
97514|    199|        }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_6vectorIN8fastgltf10JointLimitENS4_9allocatorIS8_EEEERNS6_INS7_10JointDriveENS9_ISD_EEEERKZNS7_10readExtrasERKNS7_20ParserInternalConfigEmNS7_8CategoryEEUlNS1_5valueEE_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_SL_NS4_16integer_sequenceImJXspT0_EEEEENKUlSR_E_clINS4_17integral_constantImLm2EEEEEDaSR_:
10304|  1.02k|  auto try_one = [&](auto Ic) {
10305|  1.02k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  1.02k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 204, False: 816]
  ------------------
10305|    204|      auto&& h = std::get<I>(handlers);
10305|    204|      using H = std::remove_reference_t<decltype(h)>;
10305|    204|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    204|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    204|          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|       |      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|       |        err = v.get(h);
10306|       |      }
10306|    204|    }
10306|  1.02k|  };
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEXtlNS5_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEXtlNS5_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEJRNSt3__18optionalIN8fastgltf6MotionEEERNSF_INSG_8ColliderEEERNSF_INSE_7variantIJNSG_15GeometryTriggerENSG_11NodeTriggerEEEEEERNSF_INSG_5JointEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_:
10309|  78.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  78.9k|  using Selector = key_selector<Keys...>;
10309|  78.9k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  78.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEXtlNS6_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEEEJRNSt3__18optionalIN8fastgltf6MotionEEERNSH_INSI_8ColliderEEERNSH_INSG_7variantIJNSI_15GeometryTriggerENSI_11NodeTriggerEEEEEERNSH_INSI_5JointEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSY_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_:
10308|  78.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  78.9k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  78.9k|  return this->template for_each<Selector>(
10308|  78.9k|      [&](std::size_t i, value v) -> error_code {
10308|  78.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  78.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  78.9k|      });
10309|  78.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEXtlNS6_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEEEZNS2_8for_eachISF_JRNSt3__18optionalIN8fastgltf6MotionEEERNSI_INSJ_8ColliderEEERNSI_INSH_7variantIJNSJ_15GeometryTriggerENSJ_11NodeTriggerEEEEEERNSI_INSJ_5JointEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSZ_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS10_EUlmNS1_5valueEE_Qaa17key_selector_typeISZ_Esr3stdE14is_invocable_vIRT0_mS14_EEES11_OS16_:
10296|  78.9k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  78.9k|  value_iterator it = iter;
10297|  78.9k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  78.9k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  78.9k|  std::array<std::uint64_t, seen_words> seen{};
10298|   287k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 208k, False: 78.9k]
  ------------------
10298|   208k|    raw_json_string key;
10298|   208k|    error_code error;
10298|   208k|    std::size_t idx;
10298|   208k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   208k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 34, False: 208k]
  ------------------
10299|   208k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 20, False: 208k]
  ------------------
10299|   208k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   208k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 76.6k, False: 131k]
  ------------------
10300|  76.6k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  76.6k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  76.6k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 75.5k, False: 1.06k]
  ------------------
10300|  75.5k|        seen_word |= seen_bit;
10300|  75.5k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  75.5k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  75.5k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 594, False: 74.9k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  75.5k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 75.5k]
  ------------------
10302|  75.5k|      }
10302|  76.6k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   208k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 208k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   208k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 12, False: 208k]
  ------------------
10303|   208k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 30, False: 208k]
  ------------------
10303|   208k|  }
10303|  78.9k|  return {SUCCESS, matched};
10303|  78.9k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEXtlNS4_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   208k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   208k|        const char* p = rjs.raw();
96024|   208k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   208k|            std::uint8_t ki = window.window_to_key[
96030|   208k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   208k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 110k, False: 98.4k]
  ------------------
96032|  98.4k|            return key_selector_detail::match_window_candidate(
96033|  98.4k|                p, ki, window, std::make_index_sequence<N>{});
96034|   208k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   208k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEXtlNS4_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEXtlNS4_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEE4sizeEv:
95952|   283k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm7EEEtlA7_cLc109ELc111ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm9EEEtlA9_cLc99ELc111ELc108ELc108ELc105ELc100ELc101ELc114EEEEXtlNS6_ILm8EEEtlA8_cLc116ELc114ELc105ELc103ELc103ELc101ELc114EEEEXtlNS6_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEEEEJRNSt3__18optionalIN8fastgltf6MotionEEERNSH_INSI_8ColliderEEERNSH_INSG_7variantIJNSI_15GeometryTriggerENSI_11NodeTriggerEEEEEERNSH_INSI_5JointEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSY_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSZ_ENKUlmNS1_5valueEE_clEmS13_:
10308|  75.5k|      [&](std::size_t i, value v) -> error_code {
10308|  75.5k|        return key_selector_for_each_detail::dispatch_value(
10308|  75.5k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  75.5k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf6MotionEEERNS6_INS7_8ColliderEEERNS6_INS4_7variantIJNS7_15GeometryTriggerENS7_11NodeTriggerEEEEEERNS6_INS7_5JointEEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  75.5k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  75.5k|  error_code err = SUCCESS;
10304|  75.5k|  auto try_one = [&](auto Ic) {
10305|  75.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  75.5k|    if (idx == I) {
10305|  75.5k|      auto&& h = std::get<I>(handlers);
10305|  75.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|  75.5k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  75.5k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  75.5k|          err = h(v);
10306|  75.5k|        } else {
10306|  75.5k|          h(v);
10306|  75.5k|        }
10306|  75.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  75.5k|        err = v.get(h);
10306|  75.5k|      }
10306|  75.5k|    }
10306|  75.5k|  };
10306|  75.5k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  75.5k|  return err;
10307|  75.5k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf6MotionEEERNS6_INS7_8ColliderEEERNS6_INS4_7variantIJNS7_15GeometryTriggerENS7_11NodeTriggerEEEEEERNS6_INS7_5JointEEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSP_E_clINS4_17integral_constantImLm0EEEEEDaSP_:
10304|  75.5k|  auto try_one = [&](auto Ic) {
10305|  75.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  75.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3.89k, False: 71.6k]
  ------------------
10305|  3.89k|      auto&& h = std::get<I>(handlers);
10305|  3.89k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  3.89k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  3.89k|        err = v.get(h);
10306|  3.89k|      }
10306|  3.89k|    }
10306|  75.5k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf6MotionEEEEENS_10error_codeERT_:
89907|  3.89k| {
89908|  3.89k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  3.89k|  if constexpr (custom_deserializable<T, value>) {
89910|  3.89k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  3.89k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf6MotionEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  3.89k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  3.89k|    return tag_invoke(*this, object, output);
89263|  3.89k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf6MotionEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  3.89k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  3.89k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  3.89k|  static_assert(
97645|  3.89k|      deserializable<value_type, ValT>,
97646|  3.89k|      "The specified type inside the optional must itself be deserializable");
97647|  3.89k|  static_assert(
97648|  3.89k|      std::is_default_constructible_v<value_type>,
97649|  3.89k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  3.89k|  bool is_null_value;
97653|  3.89k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  3.89k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 3.89k]
  |  |  ------------------
  ------------------
97654|  3.89k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 3.88k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  3.88k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 3.88k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  3.88k|    out.emplace();
97665|  3.88k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  3.88k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  3.88k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 93, False: 3.79k]
  |  |  ------------------
  ------------------
97667|  3.79k|    guard.armed = false;
97668|  3.79k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  3.79k|  return SUCCESS;
97676|  3.88k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf6MotionEEENS_10error_codeERT_:
89907|  3.88k| {
89908|  3.88k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  3.88k|  if constexpr (custom_deserializable<T, value>) {
89910|  3.88k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  3.88k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf6MotionEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  3.88k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  3.88k|    return tag_invoke(*this, object, output);
89263|  3.88k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS7_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS7_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS7_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS7_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS7_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSE_tlSF_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS7_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEJRbRN8fastgltf14basic_optionalIfNSN_15flagged_storageIfEEEERNSN_4math3vecIfLm3EEERNSt3__18optionalISV_EERNSY_INSU_IfLm4EEEEESW_SW_RfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOS15_:
10349|  3.88k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  3.88k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 7, False: 3.88k]
  ------------------
10350|  3.88k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  3.88k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS5_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS5_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS5_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS5_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS5_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSC_tlSD_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS5_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEJRbRN8fastgltf14basic_optionalIfNSL_15flagged_storageIfEEEERNSL_4math3vecIfLm3EEERNSt3__18optionalIST_EERNSW_INSS_IfLm4EEEEESU_SU_RfEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS13_:
10309|  3.88k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  3.88k|  using Selector = key_selector<Keys...>;
10309|  3.88k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  3.88k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS6_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS6_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS6_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSD_tlSE_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS6_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEJRbRN8fastgltf14basic_optionalIfNSN_15flagged_storageIfEEEERNSN_4math3vecIfLm3EEERNSt3__18optionalISV_EERNSY_INSU_IfLm4EEEEESW_SW_RfEQaaaa17key_selector_typeIT_EeqsZT0_clsrS15_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS16_:
10308|  3.88k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  3.88k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  3.88k|  return this->template for_each<Selector>(
10308|  3.88k|      [&](std::size_t i, value v) -> error_code {
10308|  3.88k|        return key_selector_for_each_detail::dispatch_value(
10308|  3.88k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  3.88k|      });
10309|  3.88k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS6_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS6_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS6_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSD_tlSE_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS6_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEZNS2_8for_eachISL_JRbRN8fastgltf14basic_optionalIfNSO_15flagged_storageIfEEEERNSO_4math3vecIfLm3EEERNSt3__18optionalISW_EERNSZ_INSV_IfLm4EEEEESX_SX_RfEQaaaa17key_selector_typeIT_EeqsZT0_clsrS16_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS17_EUlmNS1_5valueEE_Qaa17key_selector_typeIS16_Esr3stdE14is_invocable_vIRT0_mS1B_EEES18_OS1D_:
10296|  3.88k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  3.88k|  value_iterator it = iter;
10297|  3.88k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  3.88k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  3.88k|  std::array<std::uint64_t, seen_words> seen{};
10298|  6.10k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 2.24k, False: 3.85k]
  ------------------
10298|  2.24k|    raw_json_string key;
10298|  2.24k|    error_code error;
10298|  2.24k|    std::size_t idx;
10298|       |    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|       |      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10299|       |      idx = Selector::match_raw(key);
10299|  2.24k|    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|  2.24k|      std::size_t key_len;
10299|  2.24k|      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102998:11): [True: 14, False: 2.23k]
  ------------------
10299|  2.23k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102999:11): [True: 12, False: 2.22k]
  ------------------
10300|  2.22k|      idx = Selector::match_raw(key.raw(), key_len);
10300|  2.22k|    }
10300|  2.24k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 370, False: 1.87k]
  ------------------
10300|    370|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|    370|      std::uint64_t &seen_word = seen[idx >> 6];
10300|    370|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 170, False: 200]
  ------------------
10300|    170|        seen_word |= seen_bit;
10300|    170|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|    170|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|    170|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 37, False: 133]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|    170|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 170]
  ------------------
10302|    170|      }
10302|    370|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  2.24k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 2.24k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  2.24k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 4, False: 2.24k]
  ------------------
10303|  2.24k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 19, False: 2.22k]
  ------------------
10303|  2.24k|  }
10303|  3.85k|  return {SUCCESS, matched};
10303|  3.88k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS4_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS4_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS4_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSB_tlSC_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS4_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEE9match_rawEPKcm:
95964|  2.22k|    static simdjson_really_inline std::size_t match_raw(const char* p, std::size_t len) noexcept {
95965|  2.22k|        if (len == 0 || len > max_key_len) { return N; }
  ------------------
  |  Branch (95965:13): [True: 328, False: 1.89k]
  |  Branch (95965:25): [True: 245, False: 1.64k]
  ------------------
95966|       |
95967|       |        if constexpr (window.ok) {
95968|       |            // One 8-bit window selects the only possible candidate key;
95969|       |            // match_window_candidate confirms it (bytes + closing quote). p sits
95970|       |            // in a padded buffer and the window stays within the shortest key +
95971|       |            // quote, so the two-byte read is always in bounds. len is unused here
95972|       |            // because the quote check already pins the key's end.
95973|       |            std::uint8_t ki = window.window_to_key[
95974|       |                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
95975|       |            if (ki >= N) { return N; }
95976|       |            return key_selector_detail::match_window_candidate(
95977|       |                p, ki, window, std::make_index_sequence<N>{});
95978|       |        }
95979|       |
95980|  1.64k|        std::size_t slot;
95981|  1.64k|        if (phf.num_positions == key_selector_detail::HD_MODE) {
  ------------------
  |  Branch (95981:13): [Folded, False: 1.64k]
  ------------------
95982|       |            // Hash-and-Displace: bucket displacement + per-key hash.
95983|      0|            std::string_view key(p, len);
95984|      0|            std::size_t bucket = key_selector_detail::hd_bucket_hash(key);
95985|      0|            std::size_t kh = (phf.hd_hash_variant == key_selector_detail::HD_HASH_2BYTE_FLAG)
  ------------------
  |  Branch (95985:30): [Folded, False: 0]
  ------------------
95986|      0|                ? key_selector_detail::hd_key_hash_2(key)
95987|      0|                : key_selector_detail::hd_key_hash_4(key);
95988|      0|            slot = (phf.asso_values[0][bucket] + kh) & (table_size - 1);
95989|  1.64k|        } else {
95990|       |            // gperf: h = len + sum of asso_values over the selected positions.
95991|       |            // positions / num_positions / asso_values are compile-time constants,
95992|       |            // so this loop fully unrolls. The idx < len guard mirrors the
95993|       |            // generator's char_at()-> 256 -> skip behavior for out-of-range
95994|       |            // positions (required: arbitrary positions may exceed a key's length).
95995|  1.64k|            std::size_t h = len;
95996|  3.29k|            for (std::uint8_t i = 0; i < phf.num_positions; ++i) {
  ------------------
  |  Branch (95996:38): [True: 1.64k, False: 1.64k]
  ------------------
95997|  1.64k|                std::uint8_t pos = phf.positions[i];
95998|  1.64k|                std::size_t idx = (pos == key_selector_detail::POS_LAST_CHAR)
  ------------------
  |  Branch (95998:35): [True: 0, False: 1.64k]
  ------------------
95999|  1.64k|                                  ? (len - std::size_t{1})
96000|  1.64k|                                  : static_cast<std::size_t>(pos);
96001|  1.64k|                if (idx < len) {
  ------------------
  |  Branch (96001:21): [True: 1.64k, False: 0]
  ------------------
96002|  1.64k|                    h += phf.asso_values[i][static_cast<unsigned char>(p[idx])];
96003|  1.64k|                }
96004|  1.64k|            }
96005|  1.64k|            slot = h & (table_size - 1);
96006|  1.64k|        }
96007|       |
96008|  1.64k|        std::uint8_t ki = phf.slot_to_key[slot];
96009|  1.64k|        if (ki >= N) { return N; }
  ------------------
  |  Branch (96009:13): [True: 0, False: 1.64k]
  ------------------
96010|  1.64k|        if (phf.slot_key_len[slot] != len) { return N; }
  ------------------
  |  Branch (96010:13): [True: 965, False: 683]
  ------------------
96011|    683|        if (!key_selector_detail::compare_key_bytes<max_key_len>(
  ------------------
  |  Branch (96011:13): [True: 313, False: 370]
  ------------------
96012|    683|                p, phf.slot_key_bytes[slot].data(), len)) { return N; }
96013|    370|        return ki;
96014|    683|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS4_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS4_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS4_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS4_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSB_tlSC_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS4_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEE4sizeEv:
95952|  2.35k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm12EEEtlA12_cLc105ELc115ELc75ELc105ELc110ELc101ELc109ELc97ELc116ELc105ELc99EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc97ELc115ELc115EEEEXtlNS6_ILm13EEEtlA13_cLc99ELc101ELc110ELc116ELc101ELc114ELc79ELc102ELc77ELc97ELc115ELc115EEEEXtlNS6_ILm16EEEtlA16_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc68ELc105ELc97ELc103ELc111ELc110ELc97ELc108EEEEXtlNS6_ILm19EEEtlA19_cLc105ELc110ELc101ELc114ELc116ELc105ELc97ELc79ELc114ELc105ELc101ELc110ELc116ELc97ELc116ELc105ELc111ELc110EEEEXtlNS6_ILm15EEEtlA15_cLc108ELc105ELc110ELc101ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlSD_tlSE_Lc97ELc110ELc103ELc117ELc108ELc97ELc114ELc86ELc101ELc108ELc111ELc99ELc105ELc116ELc121EEEEXtlNS6_ILm14EEEtlA14_cLc103ELc114ELc97ELc118ELc105ELc116ELc121ELc70ELc97ELc99ELc116ELc111ELc114EEEEEEEJRbRN8fastgltf14basic_optionalIfNSN_15flagged_storageIfEEEERNSN_4math3vecIfLm3EEERNSt3__18optionalISV_EERNSY_INSU_IfLm4EEEEESW_SW_RfEQaaaa17key_selector_typeIT_EeqsZT0_clsrS15_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOS16_ENKUlmNS1_5valueEE_clEmS1A_:
10308|    170|      [&](std::size_t i, value v) -> error_code {
10308|    170|        return key_selector_for_each_detail::dispatch_value(
10308|    170|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|    170|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|    170|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|    170|  error_code err = SUCCESS;
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
10305|    170|      auto&& h = std::get<I>(handlers);
10305|    170|      using H = std::remove_reference_t<decltype(h)>;
10305|    170|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|    170|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|    170|          err = h(v);
10306|    170|        } else {
10306|    170|          h(v);
10306|    170|        }
10306|    170|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|    170|        err = v.get(h);
10306|    170|      }
10306|    170|    }
10306|    170|  };
10306|    170|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|    170|  return err;
10307|    170|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm0EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 8, False: 162]
  ------------------
10305|      8|      auto&& h = std::get<I>(handlers);
10305|      8|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      8|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      8|        err = v.get(h);
10306|      8|      }
10306|      8|    }
10306|    170|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm1EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 21, False: 149]
  ------------------
10305|     21|      auto&& h = std::get<I>(handlers);
10305|     21|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     21|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     21|        err = v.get(h);
10306|     21|      }
10306|     21|    }
10306|    170|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm2EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1, False: 169]
  ------------------
10305|      1|      auto&& h = std::get<I>(handlers);
10305|      1|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      1|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      1|        err = v.get(h);
10306|      1|      }
10306|      1|    }
10306|    170|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm3EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 4, False: 166]
  ------------------
10305|      4|      auto&& h = std::get<I>(handlers);
10305|      4|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      4|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      4|        err = v.get(h);
10306|      4|      }
10306|      4|    }
10306|    170|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf4math3vecIfLm3EEEEEEENS_10error_codeERT_:
89907|      4| {
89908|      4|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|      4|  if constexpr (custom_deserializable<T, value>) {
89910|      4|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|      4|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf4math3vecIfLm3EEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|      4|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|      4|    return tag_invoke(*this, object, output);
89263|      4|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf4math3vecIfLm3EEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|      4|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|      4|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|      4|  static_assert(
97645|      4|      deserializable<value_type, ValT>,
97646|      4|      "The specified type inside the optional must itself be deserializable");
97647|      4|  static_assert(
97648|      4|      std::is_default_constructible_v<value_type>,
97649|      4|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|      4|  bool is_null_value;
97653|      4|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|      4|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 3]
  |  |  ------------------
  ------------------
97654|      3|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 0, False: 3]
  ------------------
97655|      0|    out.reset(); // Set to nullopt
97656|      0|    return SUCCESS;
97657|      0|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|      3|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 3, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|      3|    out.emplace();
97665|      3|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|      3|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|      3|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 3, False: 0]
  |  |  ------------------
  ------------------
97667|      0|    guard.armed = false;
97668|      0|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|      0|  return SUCCESS;
97676|      3|}
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf4math3vecIfLm3EEEEEED2Ev:
97461|      3|  ~reset_guard() {
97462|      3|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 3, False: 0]
  ------------------
97463|      3|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm4EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 7, False: 163]
  ------------------
10305|      7|      auto&& h = std::get<I>(handlers);
10305|      7|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      7|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      7|        err = v.get(h);
10306|      7|      }
10306|      7|    }
10306|    170|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf4math3vecIfLm4EEEEEEENS_10error_codeERT_:
89907|      7| {
89908|      7|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|      7|  if constexpr (custom_deserializable<T, value>) {
89910|      7|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|      7|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf4math3vecIfLm4EEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|      7|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|      7|    return tag_invoke(*this, object, output);
89263|      7|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf4math3vecIfLm4EEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|      7|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|      7|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|      7|  static_assert(
97645|      7|      deserializable<value_type, ValT>,
97646|      7|      "The specified type inside the optional must itself be deserializable");
97647|      7|  static_assert(
97648|      7|      std::is_default_constructible_v<value_type>,
97649|      7|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|      7|  bool is_null_value;
97653|      7|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|      7|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 1, False: 6]
  |  |  ------------------
  ------------------
97654|      6|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 0, False: 6]
  ------------------
97655|      0|    out.reset(); // Set to nullopt
97656|      0|    return SUCCESS;
97657|      0|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|      6|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 6, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|      6|    out.emplace();
97665|      6|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|      6|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|      6|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 6, False: 0]
  |  |  ------------------
  ------------------
97667|      0|    guard.armed = false;
97668|      0|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|      0|  return SUCCESS;
97676|      6|}
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf4math3vecIfLm4EEEEEED2Ev:
97461|      6|  ~reset_guard() {
97462|      6|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 6, False: 0]
  ------------------
97463|      6|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm5EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 1, False: 169]
  ------------------
10305|      1|      auto&& h = std::get<I>(handlers);
10305|      1|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      1|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      1|        err = v.get(h);
10306|      1|      }
10306|      1|    }
10306|    170|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm6EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 3, False: 167]
  ------------------
10305|      3|      auto&& h = std::get<I>(handlers);
10305|      3|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|      3|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|      3|        err = v.get(h);
10306|      3|      }
10306|      3|    }
10306|    170|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRbRN8fastgltf14basic_optionalIfNS7_15flagged_storageIfEEEERNS7_4math3vecIfLm3EEERNS4_8optionalISF_EERNSH_INSE_IfLm4EEEEESG_SG_RfEEEJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSQ_E_clINS4_17integral_constantImLm7EEEEEDaSQ_:
10304|    170|  auto try_one = [&](auto Ic) {
10305|    170|    constexpr std::size_t I = decltype(Ic)::value;
10305|    170|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 125, False: 45]
  ------------------
10305|    125|      auto&& h = std::get<I>(handlers);
10305|    125|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|    125|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|    125|        err = v.get(h);
10306|    125|      }
10306|    125|    }
10306|    170|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf6MotionEEEED2Ev:
97461|  3.88k|  ~reset_guard() {
97462|  3.88k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 93, False: 3.79k]
  ------------------
97463|  3.88k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf6MotionEEERNS6_INS7_8ColliderEEERNS6_INS4_7variantIJNS7_15GeometryTriggerENS7_11NodeTriggerEEEEEERNS6_INS7_5JointEEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSP_E_clINS4_17integral_constantImLm1EEEEEDaSP_:
10304|  75.5k|  auto try_one = [&](auto Ic) {
10305|  75.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  75.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 39.0k, False: 36.5k]
  ------------------
10305|  39.0k|      auto&& h = std::get<I>(handlers);
10305|  39.0k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  39.0k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  39.0k|        err = v.get(h);
10306|  39.0k|      }
10306|  39.0k|    }
10306|  75.5k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf8ColliderEEEEENS_10error_codeERT_:
89907|  39.0k| {
89908|  39.0k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  39.0k|  if constexpr (custom_deserializable<T, value>) {
89910|  39.0k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  39.0k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf8ColliderEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  39.0k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  39.0k|    return tag_invoke(*this, object, output);
89263|  39.0k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf8ColliderEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  39.0k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  39.0k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  39.0k|  static_assert(
97645|  39.0k|      deserializable<value_type, ValT>,
97646|  39.0k|      "The specified type inside the optional must itself be deserializable");
97647|  39.0k|  static_assert(
97648|  39.0k|      std::is_default_constructible_v<value_type>,
97649|  39.0k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  39.0k|  bool is_null_value;
97653|  39.0k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  39.0k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 39.0k]
  |  |  ------------------
  ------------------
97654|  39.0k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 39.0k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  39.0k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 39.0k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  39.0k|    out.emplace();
97665|  39.0k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  39.0k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  39.0k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 167, False: 38.8k]
  |  |  ------------------
  ------------------
97667|  38.8k|    guard.armed = false;
97668|  38.8k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  38.8k|  return SUCCESS;
97676|  39.0k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf8ColliderEEENS_10error_codeERT_:
89907|  39.0k| {
89908|  39.0k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  39.0k|  if constexpr (custom_deserializable<T, value>) {
89910|  39.0k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  39.0k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf8ColliderEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  39.0k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  39.0k|    return tag_invoke(*this, object, output);
89263|  39.0k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS7_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlSA_tlSB_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSE_14basic_optionalImNSE_15flagged_storageImEEEESM_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSN_:
10349|  39.0k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  39.0k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 8, False: 38.9k]
  ------------------
10350|  38.9k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  39.0k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS5_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS8_tlS9_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSC_14basic_optionalImNSC_15flagged_storageImEEEESK_EQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSL_:
10309|  38.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  38.9k|  using Selector = key_selector<Keys...>;
10309|  38.9k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  38.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS6_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS9_tlSA_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSE_14basic_optionalImNSE_15flagged_storageImEEEESM_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_:
10308|  38.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  38.9k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  38.9k|  return this->template for_each<Selector>(
10308|  38.9k|      [&](std::size_t i, value v) -> error_code {
10308|  38.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  38.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  38.9k|      });
10309|  38.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS6_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS9_tlSA_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEZNS2_8for_eachISB_JRNSt3__18optionalIN8fastgltf8GeometryEEERNSF_14basic_optionalImNSF_15flagged_storageImEEEESN_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSO_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSP_EUlmNS1_5valueEE_Qaa17key_selector_typeISO_Esr3stdE14is_invocable_vIRT0_mST_EEESQ_OSV_:
10296|  38.9k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  38.9k|  value_iterator it = iter;
10297|  38.9k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  38.9k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  38.9k|  std::array<std::uint64_t, seen_words> seen{};
10298|   199k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 170k, False: 29.1k]
  ------------------
10298|   170k|    raw_json_string key;
10298|   170k|    error_code error;
10298|   170k|    std::size_t idx;
10298|   170k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|   170k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 9, False: 170k]
  ------------------
10299|   170k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 32, False: 170k]
  ------------------
10299|   170k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|   170k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 76.5k, False: 93.7k]
  ------------------
10300|  76.5k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  76.5k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  76.5k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 70.1k, False: 6.46k]
  ------------------
10300|  70.1k|        seen_word |= seen_bit;
10300|  70.1k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  70.1k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  70.1k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 45, False: 70.0k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  70.1k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 9.82k, False: 60.2k]
  ------------------
10302|  70.1k|      }
10302|  76.5k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|   160k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 160k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|   160k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 12, False: 160k]
  ------------------
10303|   160k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 24, False: 160k]
  ------------------
10303|   160k|  }
10303|  38.9k|  return {SUCCESS, matched};
10303|  38.9k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS4_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS7_tlS8_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|   170k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|   170k|        const char* p = rjs.raw();
96024|   170k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|   170k|            std::uint8_t ki = window.window_to_key[
96030|   170k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|   170k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 78.9k, False: 91.3k]
  ------------------
96032|  91.3k|            return key_selector_detail::match_window_candidate(
96033|  91.3k|                p, ki, window, std::make_index_sequence<N>{});
96034|   170k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|   170k|    }
_ZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm15EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEE:
95864|   176k|                       std::index_sequence<Is...>) noexcept {
95865|   176k|  std::size_t result = N;
95866|   176k|  auto try_match = [&](auto Ic) {
95867|   176k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   176k|    if (ki == i && p[w.key_len[i]] == '"' &&
95869|   176k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
95870|   176k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|   176k|      result = i;
95872|   176k|    }
95873|   176k|  };
95874|   176k|  (try_match(std::integral_constant<std::size_t, Is>{}), ...);
95875|   176k|  return result;
95876|   176k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm15EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm0EEEEEDaSD_:
95866|   176k|  auto try_match = [&](auto Ic) {
95867|   176k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   176k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 77.2k, False: 99.3k]
  |  Branch (95868:20): [True: 71.9k, False: 5.34k]
  ------------------
95869|  71.9k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 69.3k, False: 2.59k]
  ------------------
95870|  71.9k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  69.3k|      result = i;
95872|  69.3k|    }
95873|   176k|  };
_ZN8simdjson8fallback8ondemand19key_selector_detail17compare_key_bytesILm15EEEbPKcS5_m:
95612|   146k|    const char* p, const char* stored, std::size_t len) noexcept {
95613|       |    // [[maybe_unused]]: only the NEON/SSE2/LSX branches read these; the scalar
95614|       |    // fallback build (no SIMD) leaves them unused, which is an error under -Werror.
95615|   146k|    [[maybe_unused]] alignas(16) static constexpr uint8_t idx16[16] =
95616|   146k|        {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
95617|   146k|    if constexpr (MaxKeyLen <= 16) {
95618|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95619|       |        uint8x16_t vp = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95620|       |        uint8x16_t vs = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95621|       |        uint8x16_t mask = vcltq_u8(vld1q_u8(idx16), vdupq_n_u8(static_cast<uint8_t>(len)));
95622|       |        uint8x16_t diff = veorq_u8(vandq_u8(vp, mask), vs);
95623|       |        return neon_all_bytes_zero(diff);
95624|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95625|       |        __m128i vp = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95626|   146k|        __m128i vs = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95627|   146k|        __m128i idx = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95628|   146k|        __m128i mask = _mm_cmplt_epi8(idx, _mm_set1_epi8(static_cast<char>(len)));
95629|   146k|        __m128i eq = _mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs);
95630|   146k|        return _mm_movemask_epi8(eq) == 0xFFFF;
95631|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95632|       |        __m128i vp = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95633|       |        __m128i vs = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95634|       |        __m128i idx = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95635|       |        __m128i mask = __lsx_vslt_b(idx, __lsx_vreplgr2vr_b(static_cast<int>(len)));
95636|       |        __m128i eq = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95637|       |        return (static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu) == 0xFFFFu;
95638|       |#else
95639|       |        for (std::size_t i = 0; i < len; ++i)
95640|       |            if (p[i] != stored[i]) return false;
95641|       |        return true;
95642|       |#endif
95643|       |    } else if constexpr (MaxKeyLen <= 32) {
95644|       |        [[maybe_unused]] alignas(16) static constexpr uint8_t idx32_hi[16] =
95645|       |            {16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31};
95646|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95647|       |        uint8x16_t vp_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(p));
95648|       |        uint8x16_t vp_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + 16);
95649|       |        uint8x16_t vs_lo = vld1q_u8(reinterpret_cast<const uint8_t*>(stored));
95650|       |        uint8x16_t vs_hi = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + 16);
95651|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95652|       |        uint8x16_t m_lo = vcltq_u8(vld1q_u8(idx16),    lenv);
95653|       |        uint8x16_t m_hi = vcltq_u8(vld1q_u8(idx32_hi), lenv);
95654|       |        uint8x16_t d_lo = veorq_u8(vandq_u8(vp_lo, m_lo), vs_lo);
95655|       |        uint8x16_t d_hi = veorq_u8(vandq_u8(vp_hi, m_hi), vs_hi);
95656|       |        return neon_all_bytes_zero(vorrq_u8(d_lo, d_hi));
95657|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95658|       |        __m128i vp_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
95659|       |        __m128i vp_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
95660|       |        __m128i vs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored));
95661|       |        __m128i vs_hi = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + 16));
95662|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95663|       |        __m128i m_lo = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx16)),    lenv);
95664|       |        __m128i m_hi = _mm_cmplt_epi8(_mm_load_si128(reinterpret_cast<const __m128i*>(idx32_hi)), lenv);
95665|       |        __m128i eq_lo = _mm_cmpeq_epi8(_mm_and_si128(vp_lo, m_lo), vs_lo);
95666|       |        __m128i eq_hi = _mm_cmpeq_epi8(_mm_and_si128(vp_hi, m_hi), vs_hi);
95667|       |        return (_mm_movemask_epi8(eq_lo) & _mm_movemask_epi8(eq_hi)) == 0xFFFF;
95668|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95669|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95670|       |        __m128i vp_lo = __lsx_vld(reinterpret_cast<const void*>(p), 0);
95671|       |        __m128i vp_hi = __lsx_vld(reinterpret_cast<const void*>(p + 16), 0);
95672|       |        __m128i vs_lo = __lsx_vld(reinterpret_cast<const void*>(stored), 0);
95673|       |        __m128i vs_hi = __lsx_vld(reinterpret_cast<const void*>(stored + 16), 0);
95674|       |        __m128i m_lo = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx16), 0),    lenv);
95675|       |        __m128i m_hi = __lsx_vslt_b(__lsx_vld(reinterpret_cast<const void*>(idx32_hi), 0), lenv);
95676|       |        __m128i eq_lo = __lsx_vseq_b(__lsx_vand_v(vp_lo, m_lo), vs_lo);
95677|       |        __m128i eq_hi = __lsx_vseq_b(__lsx_vand_v(vp_hi, m_hi), vs_hi);
95678|       |        unsigned mlo = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_lo), 0)) & 0xFFFFu;
95679|       |        unsigned mhi = static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq_hi), 0)) & 0xFFFFu;
95680|       |        return (mlo & mhi) == 0xFFFFu;
95681|       |#else
95682|       |        for (std::size_t i = 0; i < len; ++i)
95683|       |            if (p[i] != stored[i]) return false;
95684|       |        return true;
95685|       |#endif
95686|       |    } else if constexpr (MaxKeyLen <= 64) {
95687|       |        // 3 or 4 16-byte blocks (33..48 -> 3, 49..64 -> 4). stored is zero-padded
95688|       |        // to exactly num_blocks*16 bytes (KEY_STRIDE), so neither load overruns it.
95689|       |        // [[maybe_unused]]: the scalar fallback (no NEON/SSE2/LSX) does not use it.
95690|       |        [[maybe_unused]] constexpr std::size_t num_blocks = (MaxKeyLen + 15) / 16;
95691|       |#if SIMDJSON_KEY_SELECTOR_HAS_NEON
95692|       |        uint8x16_t base = vld1q_u8(idx16);
95693|       |        uint8x16_t lenv = vdupq_n_u8(static_cast<uint8_t>(len));
95694|       |        uint8x16_t acc  = vdupq_n_u8(0);
95695|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95696|       |            uint8x16_t vp   = vld1q_u8(reinterpret_cast<const uint8_t*>(p) + b * 16);
95697|       |            uint8x16_t vs   = vld1q_u8(reinterpret_cast<const uint8_t*>(stored) + b * 16);
95698|       |            uint8x16_t idxv = vaddq_u8(base, vdupq_n_u8(static_cast<uint8_t>(b * 16)));
95699|       |            uint8x16_t mask = vcltq_u8(idxv, lenv);
95700|       |            acc = vorrq_u8(acc, veorq_u8(vandq_u8(vp, mask), vs));
95701|       |        }
95702|       |        return neon_all_bytes_zero(acc);
95703|       |#elif SIMDJSON_KEY_SELECTOR_HAS_SSE2
95704|       |        __m128i base = _mm_load_si128(reinterpret_cast<const __m128i*>(idx16));
95705|       |        __m128i lenv = _mm_set1_epi8(static_cast<char>(len));
95706|       |        int eq = 0xFFFF;
95707|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95708|       |            __m128i vp   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + b * 16));
95709|       |            __m128i vs   = _mm_loadu_si128(reinterpret_cast<const __m128i*>(stored + b * 16));
95710|       |            __m128i idxv = _mm_add_epi8(base, _mm_set1_epi8(static_cast<char>(b * 16)));
95711|       |            __m128i mask = _mm_cmplt_epi8(idxv, lenv);
95712|       |            eq &= _mm_movemask_epi8(_mm_cmpeq_epi8(_mm_and_si128(vp, mask), vs));
95713|       |        }
95714|       |        return eq == 0xFFFF;
95715|       |#elif SIMDJSON_KEY_SELECTOR_HAS_LSX
95716|       |        __m128i base = __lsx_vld(reinterpret_cast<const void*>(idx16), 0);
95717|       |        __m128i lenv = __lsx_vreplgr2vr_b(static_cast<int>(len));
95718|       |        unsigned acc = 0xFFFFu;
95719|       |        for (std::size_t b = 0; b < num_blocks; ++b) {
95720|       |            __m128i vp   = __lsx_vld(reinterpret_cast<const void*>(p + b * 16), 0);
95721|       |            __m128i vs   = __lsx_vld(reinterpret_cast<const void*>(stored + b * 16), 0);
95722|       |            __m128i idxv = __lsx_vadd_b(base, __lsx_vreplgr2vr_b(static_cast<int>(b * 16)));
95723|       |            __m128i mask = __lsx_vslt_b(idxv, lenv);
95724|       |            __m128i eq   = __lsx_vseq_b(__lsx_vand_v(vp, mask), vs);
95725|       |            acc &= static_cast<unsigned>(__lsx_vpickve2gr_w(__lsx_vmskltz_b(eq), 0)) & 0xFFFFu;
95726|       |        }
95727|       |        return acc == 0xFFFFu;
95728|       |#else
95729|       |        for (std::size_t i = 0; i < len; ++i)
95730|       |            if (p[i] != stored[i]) return false;
95731|       |        return true;
95732|       |#endif
95733|       |    } else {
95734|       |        for (std::size_t i = 0; i < len; ++i)
95735|       |            if (p[i] != stored[i]) return false;
95736|       |        return true;
95737|       |    }
95738|   146k|}
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm15EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm1EEEEEDaSD_:
95866|   176k|  auto try_match = [&](auto Ic) {
95867|   176k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   176k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 57.2k, False: 119k]
  |  Branch (95868:20): [True: 47.1k, False: 10.1k]
  ------------------
95869|  47.1k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 39.7k, False: 7.33k]
  ------------------
95870|  47.1k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  39.7k|      result = i;
95872|  39.7k|    }
95873|   176k|  };
_ZZN8simdjson8fallback8ondemand19key_selector_detail22match_window_candidateILm3ELm15EJLm0ELm1ELm2EEEEmPKchRKNS2_11window_dataIXT_EXT0_EEENSt3__116integer_sequenceImJXspT1_EEEEENKUlT_E_clINSA_17integral_constantImLm2EEEEEDaSD_:
95866|   176k|  auto try_match = [&](auto Ic) {
95867|   176k|    constexpr std::size_t i = decltype(Ic)::value;
95868|   176k|    if (ki == i && p[w.key_len[i]] == '"' &&
  ------------------
  |  Branch (95868:9): [True: 42.1k, False: 134k]
  |  Branch (95868:20): [True: 27.3k, False: 14.7k]
  ------------------
95869|  27.3k|        key_selector_detail::compare_key_bytes<MaxKeyLen>(
  ------------------
  |  Branch (95869:9): [True: 24.9k, False: 2.42k]
  ------------------
95870|  27.3k|            p, w.key_bytes[i].data(), w.key_len[i])) {
95871|  24.9k|      result = i;
95872|  24.9k|    }
95873|   176k|  };
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS4_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS7_tlS8_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEE4sizeEv:
95952|   240k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS6_ILm16EEEtlA16_cLc112ELc104ELc121ELc115ELc105ELc99ELc115ELc77ELc97ELc116ELc101ELc114ELc105ELc97ELc108EEEEXtlS9_tlSA_Lc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSE_14basic_optionalImNSE_15flagged_storageImEEEESM_EQaaaa17key_selector_typeIT_EeqsZT0_clsrSN_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSO_ENKUlmNS1_5valueEE_clEmSS_:
10308|  70.1k|      [&](std::size_t i, value v) -> error_code {
10308|  70.1k|        return key_selector_for_each_detail::dispatch_value(
10308|  70.1k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  70.1k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEESF_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  70.1k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  70.1k|  error_code err = SUCCESS;
10304|  70.1k|  auto try_one = [&](auto Ic) {
10305|  70.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.1k|    if (idx == I) {
10305|  70.1k|      auto&& h = std::get<I>(handlers);
10305|  70.1k|      using H = std::remove_reference_t<decltype(h)>;
10305|  70.1k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  70.1k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  70.1k|          err = h(v);
10306|  70.1k|        } else {
10306|  70.1k|          h(v);
10306|  70.1k|        }
10306|  70.1k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  70.1k|        err = v.get(h);
10306|  70.1k|      }
10306|  70.1k|    }
10306|  70.1k|  };
10306|  70.1k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  70.1k|  return err;
10307|  70.1k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEESF_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSI_E_clINS4_17integral_constantImLm0EEEEEDaSI_:
10304|  70.1k|  auto try_one = [&](auto Ic) {
10305|  70.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 38.8k, False: 31.2k]
  ------------------
10305|  38.8k|      auto&& h = std::get<I>(handlers);
10305|  38.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  38.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  38.8k|        err = v.get(h);
10306|  38.8k|      }
10306|  38.8k|    }
10306|  70.1k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf8GeometryEEEEENS_10error_codeERT_:
89907|  51.8k| {
89908|  51.8k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  51.8k|  if constexpr (custom_deserializable<T, value>) {
89910|  51.8k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  51.8k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf8GeometryEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  51.8k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  51.8k|    return tag_invoke(*this, object, output);
89263|  51.8k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf8GeometryEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  51.8k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  51.8k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  51.8k|  static_assert(
97645|  51.8k|      deserializable<value_type, ValT>,
97646|  51.8k|      "The specified type inside the optional must itself be deserializable");
97647|  51.8k|  static_assert(
97648|  51.8k|      std::is_default_constructible_v<value_type>,
97649|  51.8k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  51.8k|  bool is_null_value;
97653|  51.8k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  51.8k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 51.8k]
  |  |  ------------------
  ------------------
97654|  51.8k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 51.8k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  51.8k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 51.8k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  51.8k|    out.emplace();
97665|  51.8k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  51.8k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  51.8k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 65, False: 51.7k]
  |  |  ------------------
  ------------------
97667|  51.7k|    guard.armed = false;
97668|  51.7k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  51.7k|  return SUCCESS;
97676|  51.8k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf8GeometryEEENS_10error_codeERT_:
89907|  51.8k| {
89908|  51.8k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  51.8k|  if constexpr (custom_deserializable<T, value>) {
89910|  51.8k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  51.8k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf8GeometryEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  51.8k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  51.8k|    return tag_invoke(*this, object, output);
89263|  51.8k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS7_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS7_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSL_:
10349|  51.8k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  51.8k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 16, False: 51.7k]
  ------------------
10350|  51.7k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  51.8k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS5_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS5_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEESH_RbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_:
10309|  51.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  51.7k|  using Selector = key_selector<Keys...>;
10309|  51.7k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  51.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_:
10308|  51.7k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  51.7k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  51.7k|  return this->template for_each<Selector>(
10308|  51.7k|      [&](std::size_t i, value v) -> error_code {
10308|  51.7k|        return key_selector_for_each_detail::dispatch_value(
10308|  51.7k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  51.7k|      });
10309|  51.7k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEESK_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_EUlmNS1_5valueEE_Qaa17key_selector_typeISM_Esr3stdE14is_invocable_vIRT0_mSR_EEESO_OST_:
10296|  51.7k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  51.7k|  value_iterator it = iter;
10297|  51.7k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  51.7k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  51.7k|  std::array<std::uint64_t, seen_words> seen{};
10298|  91.3k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 39.6k, False: 51.7k]
  ------------------
10298|  39.6k|    raw_json_string key;
10298|  39.6k|    error_code error;
10298|  39.6k|    std::size_t idx;
10298|  39.6k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  39.6k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 5, False: 39.6k]
  ------------------
10299|  39.6k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 9, False: 39.6k]
  ------------------
10299|  39.6k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  39.6k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 11.0k, False: 28.5k]
  ------------------
10300|  11.0k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  11.0k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  11.0k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 10.8k, False: 218]
  ------------------
10300|  10.8k|        seen_word |= seen_bit;
10300|  10.8k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  10.8k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  10.8k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 4, False: 10.8k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  10.8k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 10.8k]
  ------------------
10302|  10.8k|      }
10302|  11.0k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  39.6k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 39.6k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  39.6k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 12, False: 39.6k]
  ------------------
10303|  39.6k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 19, False: 39.6k]
  ------------------
10303|  39.6k|  }
10303|  51.7k|  return {SUCCESS, matched};
10303|  51.7k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS4_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  39.6k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  39.6k|        const char* p = rjs.raw();
96024|  39.6k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  39.6k|            std::uint8_t ki = window.window_to_key[
96030|  39.6k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  39.6k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 23.8k, False: 15.7k]
  ------------------
96032|  15.7k|            return key_selector_detail::match_window_candidate(
96033|  15.7k|                p, ki, window, std::make_index_sequence<N>{});
96034|  39.6k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  39.6k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS4_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS4_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEE4sizeEv:
95952|  50.4k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm6EEEtlA6_cLc115ELc104ELc97ELc112ELc101EEEEXtlNS6_ILm5EEEtlA5_cLc109ELc101ELc115ELc104EEEEXtlNS6_ILm11EEEtlA11_cLc99ELc111ELc110ELc118ELc101ELc120ELc72ELc117ELc108ELc108EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_ENKUlmNS1_5valueEE_clEmSQ_:
10308|  10.8k|      [&](std::size_t i, value v) -> error_code {
10308|  10.8k|        return key_selector_for_each_detail::dispatch_value(
10308|  10.8k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  10.8k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  34.4k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  34.4k|  error_code err = SUCCESS;
10304|  34.4k|  auto try_one = [&](auto Ic) {
10305|  34.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.4k|    if (idx == I) {
10305|  34.4k|      auto&& h = std::get<I>(handlers);
10305|  34.4k|      using H = std::remove_reference_t<decltype(h)>;
10305|  34.4k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  34.4k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  34.4k|          err = h(v);
10306|  34.4k|        } else {
10306|  34.4k|          h(v);
10306|  34.4k|        }
10306|  34.4k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  34.4k|        err = v.get(h);
10306|  34.4k|      }
10306|  34.4k|    }
10306|  34.4k|  };
10306|  34.4k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  34.4k|  return err;
10307|  34.4k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSF_E_clINS4_17integral_constantImLm0EEEEEDaSF_:
10304|  34.4k|  auto try_one = [&](auto Ic) {
10305|  34.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 17.5k, False: 16.9k]
  ------------------
10305|  17.5k|      auto&& h = std::get<I>(handlers);
10305|  17.5k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  17.5k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  17.5k|        err = v.get(h);
10306|  17.5k|      }
10306|  17.5k|    }
10306|  34.4k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSF_E_clINS4_17integral_constantImLm1EEEEEDaSF_:
10304|  34.4k|  auto try_one = [&](auto Ic) {
10305|  34.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 16.8k, False: 17.6k]
  ------------------
10305|  16.8k|      auto&& h = std::get<I>(handlers);
10305|  16.8k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  16.8k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  16.8k|        err = v.get(h);
10306|  16.8k|      }
10306|  16.8k|    }
10306|  34.4k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRN8fastgltf14basic_optionalImNS6_15flagged_storageImEEEESB_RbEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSF_E_clINS4_17integral_constantImLm2EEEEEDaSF_:
10304|  34.4k|  auto try_one = [&](auto Ic) {
10305|  34.4k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  34.4k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15, False: 34.4k]
  ------------------
10305|     15|      auto&& h = std::get<I>(handlers);
10305|     15|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|     15|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|     15|        err = v.get(h);
10306|     15|      }
10306|     15|    }
10306|  34.4k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf8GeometryEEEED2Ev:
97461|  51.8k|  ~reset_guard() {
97462|  51.8k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 65, False: 51.7k]
  ------------------
97463|  51.8k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEESF_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSI_E_clINS4_17integral_constantImLm1EEEEEDaSI_:
10304|  70.1k|  auto try_one = [&](auto Ic) {
10305|  70.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.9k, False: 54.1k]
  ------------------
10305|  15.9k|      auto&& h = std::get<I>(handlers);
10305|  15.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.9k|        err = v.get(h);
10306|  15.9k|      }
10306|  15.9k|    }
10306|  70.1k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEESF_EEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSI_E_clINS4_17integral_constantImLm2EEEEEDaSI_:
10304|  70.1k|  auto try_one = [&](auto Ic) {
10305|  70.1k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  70.1k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 15.3k, False: 54.7k]
  ------------------
10305|  15.3k|      auto&& h = std::get<I>(handlers);
10305|  15.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  15.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  15.3k|        err = v.get(h);
10306|  15.3k|      }
10306|  15.3k|    }
10306|  70.1k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf8ColliderEEEED2Ev:
97461|  39.0k|  ~reset_guard() {
97462|  39.0k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 167, False: 38.8k]
  ------------------
97463|  39.0k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf6MotionEEERNS6_INS7_8ColliderEEERNS6_INS4_7variantIJNS7_15GeometryTriggerENS7_11NodeTriggerEEEEEERNS6_INS7_5JointEEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSP_E_clINS4_17integral_constantImLm2EEEEEDaSP_:
10304|  75.5k|  auto try_one = [&](auto Ic) {
10305|  75.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  75.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 20.7k, False: 54.8k]
  ------------------
10305|  20.7k|      auto&& h = std::get<I>(handlers);
10305|  20.7k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  20.7k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  20.7k|        err = v.get(h);
10306|  20.7k|      }
10306|  20.7k|    }
10306|  75.5k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalINS4_7variantIJN8fastgltf15GeometryTriggerENS7_11NodeTriggerEEEEEEEENS_10error_codeERT_:
89907|  20.7k| {
89908|  20.7k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  20.7k|  if constexpr (custom_deserializable<T, value>) {
89910|  20.7k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  20.7k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalINS2_7variantIJN8fastgltf15GeometryTriggerENS5_11NodeTriggerEEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSD_RSA_:
89261|  20.7k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  20.7k|    return tag_invoke(*this, object, output);
89263|  20.7k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalINS2_7variantIJN8fastgltf15GeometryTriggerENS5_11NodeTriggerEEEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  20.7k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  20.7k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  20.7k|  static_assert(
97645|  20.7k|      deserializable<value_type, ValT>,
97646|  20.7k|      "The specified type inside the optional must itself be deserializable");
97647|  20.7k|  static_assert(
97648|  20.7k|      std::is_default_constructible_v<value_type>,
97649|  20.7k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  20.7k|  bool is_null_value;
97653|  20.7k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  20.7k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 4, False: 20.6k]
  |  |  ------------------
  ------------------
97654|  20.6k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 20.6k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  20.6k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 20.6k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  20.6k|    out.emplace();
97665|  20.6k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  20.6k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  20.6k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 192, False: 20.5k]
  |  |  ------------------
  ------------------
97667|  20.5k|    guard.armed = false;
97668|  20.5k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  20.5k|  return SUCCESS;
97676|  20.6k|}
_ZN8simdjson8fallback8ondemand5value3getINSt3__17variantIJN8fastgltf15GeometryTriggerENS6_11NodeTriggerEEEEEENS_10error_codeERT_:
89907|  20.6k| {
89908|  20.6k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  20.6k|  if constexpr (custom_deserializable<T, value>) {
89910|  20.6k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  20.6k|  }
_ZNK8simdjson15deserialize_tagclINSt3__17variantIJN8fastgltf15GeometryTriggerENS4_11NodeTriggerEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSB_RS8_:
89261|  20.6k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  20.6k|    return tag_invoke(*this, object, output);
89263|  20.6k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS7_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS7_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSF_INSE_6vectorImNSE_9allocatorImEEEEEERNSG_14basic_optionalImNSG_15flagged_storageImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSV_:
10349|  20.6k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  20.6k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 33, False: 20.6k]
  ------------------
10350|  20.6k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  20.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS5_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS5_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSD_INSC_6vectorImNSC_9allocatorImEEEEEERNSE_14basic_optionalImNSE_15flagged_storageImEEEEEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOST_:
10309|  20.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  20.6k|  using Selector = key_selector<Keys...>;
10309|  20.6k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  20.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS6_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS6_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSF_INSE_6vectorImNSE_9allocatorImEEEEEERNSG_14basic_optionalImNSG_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSV_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_:
10308|  20.6k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  20.6k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  20.6k|  return this->template for_each<Selector>(
10308|  20.6k|      [&](std::size_t i, value v) -> error_code {
10308|  20.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  20.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  20.6k|      });
10309|  20.6k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS6_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS6_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEZNS2_8for_eachISD_JRNSt3__18optionalIN8fastgltf8GeometryEEERNSG_INSF_6vectorImNSF_9allocatorImEEEEEERNSH_14basic_optionalImNSH_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSW_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSX_EUlmNS1_5valueEE_Qaa17key_selector_typeISW_Esr3stdE14is_invocable_vIRT0_mS11_EEESY_OS13_:
10296|  20.6k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  20.6k|  value_iterator it = iter;
10297|  20.6k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  20.6k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  20.6k|  std::array<std::uint64_t, seen_words> seen{};
10298|   100k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 80.2k, False: 20.4k]
  ------------------
10298|  80.2k|    raw_json_string key;
10298|  80.2k|    error_code error;
10298|  80.2k|    std::size_t idx;
10298|  80.2k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  80.2k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 9, False: 80.2k]
  ------------------
10299|  80.2k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 16, False: 80.2k]
  ------------------
10299|  80.2k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  80.2k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 31.7k, False: 48.5k]
  ------------------
10300|  31.7k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  31.7k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  31.7k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 29.3k, False: 2.36k]
  ------------------
10300|  29.3k|        seen_word |= seen_bit;
10300|  29.3k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  29.3k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  29.3k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 55, False: 29.2k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  29.3k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 141, False: 29.2k]
  ------------------
10302|  29.3k|      }
10302|  31.7k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  80.1k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 80.1k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  80.1k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 10, False: 80.1k]
  ------------------
10303|  80.1k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 14, False: 80.1k]
  ------------------
10303|  80.1k|  }
10303|  20.6k|  return {SUCCESS, matched};
10303|  20.6k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS4_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS4_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  80.2k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  80.2k|        const char* p = rjs.raw();
96024|  80.2k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  80.2k|            std::uint8_t ki = window.window_to_key[
96030|  80.2k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  80.2k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 34.5k, False: 45.7k]
  ------------------
96032|  45.7k|            return key_selector_detail::match_window_candidate(
96033|  45.7k|                p, ki, window, std::make_index_sequence<N>{});
96034|  80.2k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  80.2k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS4_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS4_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEE4sizeEv:
95952|   109k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm9EEEtlA9_cLc103ELc101ELc111ELc109ELc101ELc116ELc114ELc121EEEEXtlNS6_ILm6EEEtlA6_cLc110ELc111ELc100ELc101ELc115EEEEXtlNS6_ILm16EEEtlA16_cLc99ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110ELc70ELc105ELc108ELc116ELc101ELc114EEEEEEEJRNSt3__18optionalIN8fastgltf8GeometryEEERNSF_INSE_6vectorImNSE_9allocatorImEEEEEERNSG_14basic_optionalImNSG_15flagged_storageImEEEEEQaaaa17key_selector_typeIT_EeqsZT0_clsrSV_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSW_ENKUlmNS1_5valueEE_clEmS10_:
10308|  29.3k|      [&](std::size_t i, value v) -> error_code {
10308|  29.3k|        return key_selector_for_each_detail::dispatch_value(
10308|  29.3k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  29.3k|      });
_ZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS6_INS4_6vectorImNS4_9allocatorImEEEEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEE:
10304|  29.3k|    std::size_t idx, Tuple& handlers, value v, std::index_sequence<Is...>) {
10304|  29.3k|  error_code err = SUCCESS;
10304|  29.3k|  auto try_one = [&](auto Ic) {
10305|  29.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.3k|    if (idx == I) {
10305|  29.3k|      auto&& h = std::get<I>(handlers);
10305|  29.3k|      using H = std::remove_reference_t<decltype(h)>;
10305|  29.3k|      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|  29.3k|        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|  29.3k|          err = h(v);
10306|  29.3k|        } else {
10306|  29.3k|          h(v);
10306|  29.3k|        }
10306|  29.3k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  29.3k|        err = v.get(h);
10306|  29.3k|      }
10306|  29.3k|    }
10306|  29.3k|  };
10306|  29.3k|  (try_one(std::integral_constant<std::size_t, Is>{}), ...);
10307|  29.3k|  return err;
10307|  29.3k|}
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS6_INS4_6vectorImNS4_9allocatorImEEEEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm0EEEEEDaSO_:
10304|  29.3k|  auto try_one = [&](auto Ic) {
10305|  29.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 12.9k, False: 16.4k]
  ------------------
10305|  12.9k|      auto&& h = std::get<I>(handlers);
10305|  12.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  12.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  12.9k|        err = v.get(h);
10306|  12.9k|      }
10306|  12.9k|    }
10306|  29.3k|  };
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS6_INS4_6vectorImNS4_9allocatorImEEEEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm1EEEEEDaSO_:
10304|  29.3k|  auto try_one = [&](auto Ic) {
10305|  29.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 7.82k, False: 21.5k]
  ------------------
10305|  7.82k|      auto&& h = std::get<I>(handlers);
10305|  7.82k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  7.82k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  7.82k|        err = v.get(h);
10306|  7.82k|      }
10306|  7.82k|    }
10306|  29.3k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalINS4_6vectorImNS4_9allocatorImEEEEEEEENS_10error_codeERT_:
89907|  7.82k| {
89908|  7.82k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  7.82k|  if constexpr (custom_deserializable<T, value>) {
89910|  7.82k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  7.82k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalINS2_6vectorImNS2_9allocatorImEEEEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSC_RS9_:
89261|  7.82k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  7.82k|    return tag_invoke(*this, object, output);
89263|  7.82k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalINS2_6vectorImNS2_9allocatorImEEEEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  7.82k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  7.82k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  7.82k|  static_assert(
97645|  7.82k|      deserializable<value_type, ValT>,
97646|  7.82k|      "The specified type inside the optional must itself be deserializable");
97647|  7.82k|  static_assert(
97648|  7.82k|      std::is_default_constructible_v<value_type>,
97649|  7.82k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  7.82k|  bool is_null_value;
97653|  7.82k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  7.82k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 4, False: 7.81k]
  |  |  ------------------
  ------------------
97654|  7.81k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 7.81k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  7.81k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 7.81k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  7.81k|    out.emplace();
97665|  7.81k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  7.81k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  7.81k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 27, False: 7.79k]
  |  |  ------------------
  ------------------
97667|  7.79k|    guard.armed = false;
97668|  7.79k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  7.79k|  return SUCCESS;
97676|  7.81k|}
_ZN8simdjson7details11reset_guardINSt3__18optionalINS2_6vectorImNS2_9allocatorImEEEEEEED2Ev:
97461|  7.81k|  ~reset_guard() {
97462|  7.81k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 27, False: 7.79k]
  ------------------
97463|  7.81k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf8GeometryEEERNS6_INS4_6vectorImNS4_9allocatorImEEEEEERNS7_14basic_optionalImNS7_15flagged_storageImEEEEEEEJLm0ELm1ELm2EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSO_E_clINS4_17integral_constantImLm2EEEEEDaSO_:
10304|  29.3k|  auto try_one = [&](auto Ic) {
10305|  29.3k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  29.3k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 8.60k, False: 20.7k]
  ------------------
10305|  8.60k|      auto&& h = std::get<I>(handlers);
10305|  8.60k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  8.60k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  8.60k|        err = v.get(h);
10306|  8.60k|      }
10306|  8.60k|    }
10306|  29.3k|  };
_ZN8simdjson7details11reset_guardINSt3__18optionalINS2_7variantIJN8fastgltf15GeometryTriggerENS5_11NodeTriggerEEEEEEED2Ev:
97461|  20.6k|  ~reset_guard() {
97462|  20.6k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 192, False: 20.5k]
  ------------------
97463|  20.6k|  }
_ZZN8simdjson8fallback8ondemand28key_selector_for_each_detail14dispatch_valueINSt3__15tupleIJRNS4_8optionalIN8fastgltf6MotionEEERNS6_INS7_8ColliderEEERNS6_INS4_7variantIJNS7_15GeometryTriggerENS7_11NodeTriggerEEEEEERNS6_INS7_5JointEEEEEEJLm0ELm1ELm2ELm3EEEENS_10error_codeEmRT_NS1_5valueENS4_16integer_sequenceImJXspT0_EEEEENKUlSP_E_clINS4_17integral_constantImLm3EEEEEDaSP_:
10304|  75.5k|  auto try_one = [&](auto Ic) {
10305|  75.5k|    constexpr std::size_t I = decltype(Ic)::value;
10305|  75.5k|    if (idx == I) {
  ------------------
  |  Branch (103051:9): [True: 11.9k, False: 63.5k]
  ------------------
10305|  11.9k|      auto&& h = std::get<I>(handlers);
10305|  11.9k|      using H = std::remove_reference_t<decltype(h)>;
10305|       |      if constexpr (std::is_invocable_v<H&, value>) {
10305|       |        // A handler returning void runs for its side effects; one returning
10305|       |        // anything convertible to error_code (error_code, or a for_each_result
10305|       |        // from a nested for_each) has its error captured and propagated.
10305|       |        if constexpr (std::is_convertible_v<decltype(h(v)), error_code>) {
10305|       |          err = h(v);
10306|       |        } else {
10306|       |          h(v);
10306|       |        }
10306|  11.9k|      } else {
10306|       |        // Direct deserialization target: assign the matched value into it.
10306|  11.9k|        err = v.get(h);
10306|  11.9k|      }
10306|  11.9k|    }
10306|  75.5k|  };
_ZN8simdjson8fallback8ondemand5value3getINSt3__18optionalIN8fastgltf5JointEEEEENS_10error_codeERT_:
89907|  11.9k| {
89908|  11.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  11.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  11.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  11.9k|  }
_ZNK8simdjson15deserialize_tagclINSt3__18optionalIN8fastgltf5JointEEEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRSA_RS7_:
89261|  11.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  11.9k|    return tag_invoke(*this, object, output);
89263|  11.9k|  }
_ZN8simdjson10tag_invokeITkNS_8concepts13optional_typeENSt3__18optionalIN8fastgltf5JointEEENS_8fallback8ondemand5valueEEENS_10error_codeENS_15deserialize_tagERT0_RT_:
97641|  11.9k|    nothrow_deserializable<typename std::remove_cvref_t<T>::value_type, std::remove_cvref_t<ValT>>) {
97642|  11.9k|  using value_type = typename std::remove_cvref_t<T>::value_type;
97643|       |
97644|  11.9k|  static_assert(
97645|  11.9k|      deserializable<value_type, ValT>,
97646|  11.9k|      "The specified type inside the optional must itself be deserializable");
97647|  11.9k|  static_assert(
97648|  11.9k|      std::is_default_constructible_v<value_type>,
97649|  11.9k|      "The specified type inside the optional must be default constructible.");
97650|       |
97651|       |  // Check if the value is null
97652|  11.9k|  bool is_null_value;
97653|  11.9k|  SIMDJSON_TRY( val.is_null().get(is_null_value) );
  ------------------
  |  | 2642|  11.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 2, False: 11.9k]
  |  |  ------------------
  ------------------
97654|  11.9k|  if (is_null_value) {
  ------------------
  |  Branch (97654:7): [True: 1, False: 11.9k]
  ------------------
97655|      1|    out.reset(); // Set to nullopt
97656|      1|    return SUCCESS;
97657|      1|  }
97658|       |
97659|       |  // On an error or an exception (a user tag_invoke may throw), out is left as
97660|       |  // it was: empty, or holding its previous value.
97661|  11.9k|  if (!out) {
  ------------------
  |  Branch (97661:7): [True: 11.9k, False: 0]
  ------------------
97662|       |    // Deserialize in place (no temporary to move, which matters for large
97663|       |    // types), and empty out again if that fails.
97664|  11.9k|    out.emplace();
97665|  11.9k|    details::reset_guard<std::remove_cvref_t<T>> guard{out};
97666|  11.9k|    SIMDJSON_TRY(val.template get<value_type>(*out));
  ------------------
  |  | 2642|  11.9k|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 133, False: 11.8k]
  |  |  ------------------
  ------------------
97667|  11.8k|    guard.armed = false;
97668|  11.8k|  } else {
97669|       |    // out holds a value: deserialize into a fresh value and replace it on
97670|       |    // success. (A container is thus replaced rather than appended to.)
97671|      0|    value_type temp;
97672|      0|    SIMDJSON_TRY(val.template get<value_type>(temp));
  ------------------
  |  | 2642|      0|#define SIMDJSON_TRY(EXPR) { auto _err = (EXPR); if (_err) { return _err; } }
  |  |  ------------------
  |  |  |  Branch (2642:54): [True: 0, False: 0]
  |  |  ------------------
  ------------------
97673|      0|    out.emplace(std::move(temp));
97674|      0|  }
97675|  11.8k|  return SUCCESS;
97676|  11.9k|}
_ZN8simdjson8fallback8ondemand5value3getIN8fastgltf5JointEEENS_10error_codeERT_:
89907|  11.9k| {
89908|  11.9k|  #if SIMDJSON_SUPPORTS_CONCEPTS
89909|  11.9k|  if constexpr (custom_deserializable<T, value>) {
89910|  11.9k|      return deserialize(*this, out);
89911|       |  } else if constexpr (concepts::optional_type<T>) {
89912|       |      using value_type = typename std::remove_cvref_t<T>::value_type;
89913|       |
89914|       |      // Check if the value is null
89915|       |      bool is_null_value;
89916|       |      SIMDJSON_TRY( is_null().get(is_null_value) );
89917|       |      if (is_null_value) {
89918|       |        out.reset(); // Set to nullopt
89919|       |        return SUCCESS;
89920|       |      }
89921|       |
89922|       |      if (!out) {
89923|       |        out.emplace();
89924|       |      }
89925|       |      return get<value_type>(out.value());
89926|       |  } else {
89927|       |    static_assert(!sizeof(T), "The get<T> method with type T is not implemented by the simdjson library. "
89928|       |      "And you do not seem to have added support for it. Indeed, we have that "
89929|       |      "simdjson::custom_deserializable<T> is false and the type T is not a default type "
89930|       |      "such as ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89931|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, or bool.");
89932|       |    static_cast<void>(out); // to get rid of unused errors
89933|       |    return UNINITIALIZED;
89934|       |  }
89935|       |#else // SIMDJSON_SUPPORTS_CONCEPTS
89936|       |    // Unless the simdjson library or the user provides an inline implementation, calling this method should
89937|       |    // immediately fail.
89938|       |    static_assert(!sizeof(T), "The get method with given type is not implemented by the simdjson library. "
89939|       |      "The supported types are ondemand::object, ondemand::array, raw_json_string, std::string_view, uint64_t, "
89940|       |      "int64_t, uint32_t, int32_t, uint16_t, int16_t, uint8_t, int8_t, double, float, and bool. We recommend you use get_double(), get_float(), "
89941|       |      "get_bool(), get_uint64(), get_int64(), get_uint32(), get_int32(), get_uint16(), get_int16(), get_uint8(), get_int8(), "
89942|       |      " get_object(), get_array(), get_raw_json_string(), or get_string() instead of the get template."
89943|       |      " You may also add support for custom types, see our documentation.");
89944|       |    static_cast<void>(out); // to get rid of unused errors
89945|       |    return UNINITIALIZED;
89946|       |#endif
89947|  11.9k|  }
_ZNK8simdjson15deserialize_tagclIN8fastgltf5JointEQ21custom_deserializableIT_NS_8fallback8ondemand5valueEEEEDaRS7_RS4_:
89261|  11.9k|  simdjson_warn_unused constexpr /* error_code */ auto operator()(value_type &object, T& output) const noexcept(nothrow_custom_deserializable<T, value_type>) {
89262|  11.9k|    return tag_invoke(*this, object, output);
89263|  11.9k|  }
_ZN8simdjson15simdjson_resultINS_8fallback8ondemand6objectEE8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS7_ILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS7_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS7_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr8fallback8ondemand28key_selector_for_each_detailE13field_handlerIT0_EEENS2_15for_each_resultEDpOSL_:
10349|  11.9k|    noexcept(fallback::ondemand::key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10350|  11.9k|  if (error()) { return {error(), 0}; }
  ------------------
  |  Branch (103500:7): [True: 6, False: 11.9k]
  ------------------
10350|  11.9k|  return first.template for_each<Keys...>(std::forward<Handlers>(on_match)...);
10350|  11.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachITpTnNS_13constevalutil12fixed_stringEJXtlNS5_ILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS5_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS5_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEJRN8fastgltf14basic_optionalImNSC_15flagged_storageImEEEESH_RbEQaaaaaaeqsZT0_sZT_gesZT_Li1ElesZT_Li255Efraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSJ_:
10309|  11.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10309|  11.9k|  using Selector = key_selector<Keys...>;
10309|  11.9k|  return this->template for_each<Selector>(std::forward<Handlers>(on_match)...);
10310|  11.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS6_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_:
10308|  11.9k|    noexcept(key_selector_for_each_detail::nothrow_field_handlers_v<Handlers...>) {
10308|  11.9k|  auto handlers = std::forward_as_tuple(std::forward<Handlers>(on_match)...);
10308|       |  // Reuse the single (index, value) implementation via a tiny adapter.
10308|       |  // The adapter is called once per *matched* key (very few); the hot path
10308|       |  // (iteration + match_raw + seen bitset) stays exactly the same.
10308|  11.9k|  return this->template for_each<Selector>(
10308|  11.9k|      [&](std::size_t i, value v) -> error_code {
10308|  11.9k|        return key_selector_for_each_detail::dispatch_value(
10308|  11.9k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  11.9k|      });
10309|  11.9k|}
_ZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS6_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEEEZNS2_8for_eachISD_JRN8fastgltf14basic_optionalImNSF_15flagged_storageImEEEESK_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSM_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSN_EUlmNS1_5valueEE_Qaa17key_selector_typeISM_Esr3stdE14is_invocable_vIRT0_mSR_EEESO_OST_:
10296|  11.9k|    noexcept(std::is_nothrow_invocable_v<Func&, std::size_t, value>) {
10296|       |  // Single pass driven directly by the value_iterator, mirroring
10296|       |  // find_field_unordered_raw + value(iter.child()). Compared to walking via
10296|       |  // object_iterator/field, this avoids constructing a simdjson_result<field> and
10296|       |  // a field (key + value) for every field -- and the development-check bookkeeping
10296|       |  // in object_iterator -- building a value only for the fields that actually match.
10297|       |  // We operate on a copy of the iterator, as object::begin() would.
10297|       |#if SIMDJSON_DEVELOPMENT_CHECKS
10297|       |  // Mirror object::begin(): for_each must start at the beginning of the object,
10297|       |  // not from some position left behind by a prior find_field on the same object.
10297|       |  if (!iter.is_at_iterator_start()) { return {OUT_OF_ORDER_ITERATION, 0}; }
10297|       |#endif
10297|  11.9k|  value_iterator it = iter;
10297|  11.9k|  std::size_t matched = 0;
10297|       |  // Track which selector indices have already matched, as a compile-time bitset
10297|       |  // (one 64-bit word per 64 keys): the callback fires once per key, on its first
10298|       |  // occurrence, and we stop as soon as every key has matched.
10298|  11.9k|  constexpr std::size_t seen_words = (Selector::size() + 63) / 64;
10298|  11.9k|  std::array<std::uint64_t, seen_words> seen{};
10298|  76.1k|  while (it.is_open()) {
  ------------------
  |  Branch (102983:10): [True: 64.1k, False: 11.9k]
  ------------------
10298|  64.1k|    raw_json_string key;
10298|  64.1k|    error_code error;
10298|  64.1k|    std::size_t idx;
10298|  64.1k|    if constexpr (Selector::window.ok) {
10298|       |      // A window selector confirms a key from its raw bytes alone (the closing
10298|       |      // quote bounds it), so we take the length-free path: field_key (no backward
10299|       |      // scan, mirroring the ordered find_field) feeding match_raw(raw_json_string).
10299|  64.1k|      if ((error = it.field_key().get(key))) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102991:11): [True: 15, False: 64.1k]
  ------------------
10299|  64.1k|      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (102992:11): [True: 12, False: 64.1k]
  ------------------
10299|  64.1k|      idx = Selector::match_raw(key);
10299|       |    } else {
10299|       |      // Otherwise derive the key length from the structural index (the following
10299|       |      // ':' token) to feed the length-aware hash, avoiding a forward SIMD scan.
10299|       |      std::size_t key_len;
10299|       |      if ((error = it.field_key_with_length(key, key_len))) { it.abandon(); return {error, matched}; }
10299|       |      if ((error = it.field_value())) { it.abandon(); return {error, matched}; }
10300|       |      idx = Selector::match_raw(key.raw(), key_len);
10300|       |    }
10300|  64.1k|    if (idx < Selector::size()) {
  ------------------
  |  Branch (103002:9): [True: 25.8k, False: 38.3k]
  ------------------
10300|  25.8k|      const std::uint64_t seen_bit = std::uint64_t{1} << (idx & 63);
10300|  25.8k|      std::uint64_t &seen_word = seen[idx >> 6];
10300|  25.8k|      if (!(seen_word & seen_bit)) {
  ------------------
  |  Branch (103005:11): [True: 23.6k, False: 2.16k]
  ------------------
10300|  23.6k|        seen_word |= seen_bit;
10300|  23.6k|        value matched_value(it.child());
10300|       |        // The callback may return void or anything convertible to error_code
10300|       |        // (error_code itself, or a for_each_result from a nested for_each). When
10301|       |        // it yields an error_code, we stop at the first non-SUCCESS result and
10301|       |        // propagate it so the caller can surface value-parse errors (for example,
10301|       |        // a type mismatch on a matched field). A void-returning callback is
10301|       |        // responsible for handling its own errors.
10301|  23.6k|        if constexpr (std::is_convertible_v<decltype(on_match(idx, matched_value)), error_code>) {
10301|       |          // Unlike the internal-error paths above, a callback error does not
10301|       |          // abandon the iterator: we leave it recoverable so the caller can keep
10301|       |          // using the object (or its parent) after handling the error.
10301|  23.6k|          if ((error = on_match(idx, matched_value))) { return {error, matched}; }
  ------------------
  |  Branch (103018:15): [True: 7, False: 23.6k]
  ------------------
10301|       |        } else {
10302|       |          on_match(idx, matched_value);
10302|       |        }
10302|  23.6k|        if (++matched >= Selector::size()) { break; }
  ------------------
  |  Branch (103022:13): [True: 0, False: 23.6k]
  ------------------
10302|  23.6k|      }
10302|  25.8k|    }
10302|       |    // Mirror object_iterator::operator++'s safety rail: if the callback consumed
10302|       |    // the value and left the iterator closed or in error (e.g. a void callback
10302|       |    // that swallowed a fatal sub-iteration error), stop here rather than calling
10302|       |    // skip_child on a closed iterator.
10302|  64.1k|    if (!it.is_open()) { break; }
  ------------------
  |  Branch (103029:9): [True: 0, False: 64.1k]
  ------------------
10303|       |    // Skip the value (a no-op if the callback consumed it) and step to the next
10303|       |    // field; has_next_field() ends the container on '}', which closes the loop.
10303|  64.1k|    if ((error = it.skip_field_child())) { it.abandon(); return {error, matched}; }
  ------------------
  |  Branch (103032:9): [True: 2, False: 64.1k]
  ------------------
10303|  64.1k|    if ((error = it.has_next_field().error())) { return {error, matched}; }
  ------------------
  |  Branch (103033:9): [True: 10, False: 64.1k]
  ------------------
10303|  64.1k|  }
10303|  11.9k|  return {SUCCESS, matched};
10303|  11.9k|}
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS4_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS4_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEE9match_rawENS1_15raw_json_stringE:
96022|  64.1k|    static simdjson_really_inline std::size_t match_raw(raw_json_string rjs) noexcept {
96023|  64.1k|        const char* p = rjs.raw();
96024|  64.1k|        if constexpr (window.ok) {
96025|       |            // One 8-bit window picks the candidate; verifying the candidate's
96026|       |            // bytes and its closing '"' confirms the full key, so the length scan
96027|       |            // is unnecessary. The window read is in bounds (padding), and the
96028|       |            // candidate length is at most max_key_len.
96029|  64.1k|            std::uint8_t ki = window.window_to_key[
96030|  64.1k|                key_selector_detail::read_window(p, window.byte_offset, window.shift)];
96031|  64.1k|            if (ki >= N) { return N; }
  ------------------
  |  Branch (96031:17): [True: 24.5k, False: 39.5k]
  ------------------
96032|  39.5k|            return key_selector_detail::match_window_candidate(
96033|  39.5k|                p, ki, window, std::make_index_sequence<N>{});
96034|  64.1k|        }
96035|      0|        return match_raw(p, key_selector_detail::scan_key_length<max_key_len>(p));
96036|  64.1k|    }
_ZN8simdjson8fallback8ondemand12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS4_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS4_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEE4sizeEv:
95952|  87.7k|    static constexpr std::size_t size() noexcept { return N; }
_ZZN8simdjson8fallback8ondemand6object8for_eachINS1_12key_selectorIJXtlNS_13constevalutil12fixed_stringILm14EEEtlA14_cLc99ELc111ELc110ELc110ELc101ELc99ELc116ELc101ELc100ELc78ELc111ELc100ELc101EEEEXtlNS6_ILm6EEEtlA6_cLc106ELc111ELc105ELc110ELc116EEEEXtlNS6_ILm16EEEtlA16_cLc101ELc110ELc97ELc98ELc108ELc101ELc67ELc111ELc108ELc108ELc105ELc115ELc105ELc111ELc110EEEEEEEJRN8fastgltf14basic_optionalImNSE_15flagged_storageImEEEESJ_RbEQaaaa17key_selector_typeIT_EeqsZT0_clsrSL_4sizeEfraasr28key_selector_for_each_detailE13field_handlerIT0_EEENS1_15for_each_resultEDpOSM_ENKUlmNS1_5valueEE_clEmSQ_:
10308|  23.6k|      [&](std::size_t i, value v) -> error_code {
10308|  23.6k|        return key_selector_for_each_detail::dispatch_value(
10308|  23.6k|            i, handlers, v, std::make_index_sequence<Selector::size()>{});
10308|  23.6k|      });
_ZN8simdjson7details11reset_guardINSt3__18optionalIN8fastgltf5JointEEEED2Ev:
97461|  11.9k|  ~reset_guard() {
97462|  11.9k|    if (armed) { optional.reset(); }
  ------------------
  |  Branch (97462:9): [True: 133, False: 11.8k]
  ------------------
97463|  11.9k|  }
_ZN8simdjson8fallback8ondemand6parserD2Ev:
91978|   116k|  inline ~parser() noexcept = default;
_ZN8simdjson8fallback8ondemand6parserC2Em:
10391|   116k|  : _max_capacity{max_capacity} {
10391|   116k|}

_ZNK7simdutf8internal29available_implementation_list21detect_best_supportedEv:
14018|      1|available_implementation_list::detect_best_supported() const noexcept {
14019|       |  // They are prelisted in priority order, so we just go down the list
14020|      1|  uint32_t supported_instruction_sets =
14021|      1|      internal::detect_supported_architectures();
14022|      1|  for (const implementation *impl :
  ------------------
  |  Branch (14022:35): [True: 2, False: 0]
  ------------------
14023|      2|       internal::get_available_implementation_pointers()) {
14024|      2|    uint32_t required_instruction_sets = impl->required_instruction_sets();
14025|      2|    if ((supported_instruction_sets & required_instruction_sets) ==
  ------------------
  |  Branch (14025:9): [True: 1, False: 1]
  ------------------
14026|      2|        required_instruction_sets) {
14027|      1|      return impl;
14028|      1|    }
14029|      2|  }
14030|      0|  return get_unsupported_singleton(); // this should never happen?
14031|      1|}
_ZNK7simdutf8internal49detect_best_supported_implementation_on_first_use8set_bestEv:
14034|      1|detect_best_supported_implementation_on_first_use::set_best() const noexcept {
14035|      1|  SIMDUTF_PUSH_DISABLE_WARNINGS
14036|       |  SIMDUTF_DISABLE_DEPRECATED_WARNING // Disable CRT_SECURE warning on MSVC:
14037|       |                                     // manually verified this is safe
14038|      1|      char *force_implementation_name = getenv("SIMDUTF_FORCE_IMPLEMENTATION");
14039|      1|  SIMDUTF_POP_DISABLE_WARNINGS
14040|       |
14041|      1|  if (force_implementation_name) {
  ------------------
  |  Branch (14041:7): [True: 0, False: 1]
  ------------------
14042|      0|    auto force_implementation =
14043|      0|        get_available_implementations()[force_implementation_name];
14044|      0|    if (force_implementation) {
  ------------------
  |  Branch (14044:9): [True: 0, False: 0]
  ------------------
14045|      0|      return get_active_implementation() = force_implementation;
14046|      0|    } else {
14047|       |      // Note: abort() and stderr usage within the library is forbidden.
14048|      0|      return get_active_implementation() = get_unsupported_singleton();
14049|      0|    }
14050|      0|  }
14051|      1|  return get_active_implementation() =
14052|      1|             get_available_implementations().detect_best_supported();
14053|      1|}
_ZN7simdutf29get_available_implementationsEv:
14065|      1|get_available_implementations() {
14066|      1|#if !SIMDUTF_USE_STATIC_INITIALIZATION
14067|      1|  static const internal::available_implementation_list
14068|      1|      available_implementations_instance{};
14069|      1|#endif
14070|      1|  return available_implementations_instance;
14071|      1|}
_ZN7simdutf25get_active_implementationEv:
14093|  18.3k|get_active_implementation() {
14094|  18.3k|#if !SIMDUTF_USE_STATIC_INITIALIZATION
14095|  18.3k|  #if !SIMDUTF_SINGLE_IMPLEMENTATION
14096|  18.3k|  static const internal::detect_best_supported_implementation_on_first_use
14097|  18.3k|      detect_best_supported_implementation_on_first_use_singleton;
14098|  18.3k|  #endif
14099|  18.3k|  static internal::atomic_ptr<const implementation>
14100|  18.3k|      active_implementation_instance{
14101|       |  #if SIMDUTF_SINGLE_IMPLEMENTATION
14102|       |          internal::get_single_implementation()
14103|       |  #else
14104|  18.3k|          &detect_best_supported_implementation_on_first_use_singleton
14105|  18.3k|  #endif
14106|  18.3k|      };
14107|  18.3k|#endif
14108|  18.3k|  return active_implementation_instance;
14109|  18.3k|}
_ZN7simdutf16base64_to_binaryEPKcmPcNS_14base64_optionsENS_27last_chunk_handling_optionsE:
15426|  18.3k|    last_chunk_handling_options last_chunk_handling_options) noexcept {
15427|  18.3k|  return get_default_implementation()->base64_to_binary(
15428|  18.3k|      input, length, output, options, last_chunk_handling_options);
15429|  18.3k|}
_ZNK7simdutf7haswell14implementation16base64_to_binaryEPKcmPcNS_14base64_optionsENS_27last_chunk_handling_optionsE:
39290|  18.3k|    last_chunk_handling_options last_chunk_options) const noexcept {
39291|  18.3k|  if (options & base64_default_or_url) {
  ------------------
  |  Branch (39291:7): [True: 0, False: 18.3k]
  ------------------
39292|      0|    if (options == base64_options::base64_default_or_url_accept_garbage) {
  ------------------
  |  Branch (39292:9): [True: 0, False: 0]
  ------------------
39293|      0|      return base64::compress_decode_base64<false, true, true>(
39294|      0|          output, input, length, options, last_chunk_options);
39295|      0|    } else {
39296|      0|      return base64::compress_decode_base64<false, false, true>(
39297|      0|          output, input, length, options, last_chunk_options);
39298|      0|    }
39299|  18.3k|  } else if (options & base64_url) {
  ------------------
  |  Branch (39299:14): [True: 0, False: 18.3k]
  ------------------
39300|      0|    if (options == base64_options::base64_url_accept_garbage) {
  ------------------
  |  Branch (39300:9): [True: 0, False: 0]
  ------------------
39301|      0|      return base64::compress_decode_base64<true, true, false>(
39302|      0|          output, input, length, options, last_chunk_options);
39303|      0|    } else {
39304|      0|      return base64::compress_decode_base64<true, false, false>(
39305|      0|          output, input, length, options, last_chunk_options);
39306|      0|    }
39307|  18.3k|  } else {
39308|  18.3k|    if (options == base64_options::base64_default_accept_garbage) {
  ------------------
  |  Branch (39308:9): [True: 0, False: 18.3k]
  ------------------
39309|      0|      return base64::compress_decode_base64<false, true, false>(
39310|      0|          output, input, length, options, last_chunk_options);
39311|  18.3k|    } else {
39312|  18.3k|      return base64::compress_decode_base64<false, false, false>(
39313|  18.3k|          output, input, length, options, last_chunk_options);
39314|  18.3k|    }
39315|  18.3k|  }
39316|  18.3k|}
simdutf.cpp:_ZN7simdutf8internalL37get_available_implementation_pointersEv:
13435|      1|get_available_implementation_pointers() {
13436|      1|#if !SIMDUTF_USE_STATIC_INITIALIZATION
13437|      1|  static const std::initializer_list<const implementation *>
13438|      1|      available_implementation_pointers{
13439|      1|  #if SIMDUTF_IMPLEMENTATION_ICELAKE
13440|      1|          get_icelake_singleton(),
13441|      1|  #endif
13442|      1|  #if SIMDUTF_IMPLEMENTATION_HASWELL
13443|      1|          get_haswell_singleton(),
13444|      1|  #endif
13445|      1|  #if SIMDUTF_IMPLEMENTATION_WESTMERE
13446|      1|          get_westmere_singleton(),
13447|      1|  #endif
13448|       |  #if SIMDUTF_IMPLEMENTATION_ARM64
13449|       |          get_arm64_singleton(),
13450|       |  #endif
13451|       |  #if SIMDUTF_IMPLEMENTATION_PPC64
13452|       |          get_ppc64_singleton(),
13453|       |  #endif
13454|       |  #if SIMDUTF_IMPLEMENTATION_RVV
13455|       |          get_rvv_singleton(),
13456|       |  #endif
13457|       |  #if SIMDUTF_IMPLEMENTATION_LASX
13458|       |          get_lasx_singleton(),
13459|       |  #endif
13460|       |  #if SIMDUTF_IMPLEMENTATION_LSX
13461|       |          get_lsx_singleton(),
13462|       |  #endif
13463|      1|  #if SIMDUTF_IMPLEMENTATION_FALLBACK
13464|      1|          get_fallback_singleton(),
13465|      1|  #endif
13466|      1|      };
13467|      1|#endif
13468|      1|  return available_implementation_pointers;
13469|      1|}
simdutf.cpp:_ZN7simdutf8internalL21get_icelake_singletonEv:
12654|      1|static const icelake::implementation *get_icelake_singleton() {
12655|      1|  #if !SIMDUTF_USE_STATIC_INITIALIZATION
12656|      1|  static const icelake::implementation icelake_singleton{};
12657|      1|  #endif
12658|      1|  return &icelake_singleton;
12659|      1|}
_ZN7simdutf7icelake14implementationC2Ev:
 3500|      1|      : simdutf::implementation(
 3501|      1|            "icelake",
 3502|      1|            "Intel AVX512 (AVX-512BW, AVX-512CD, AVX-512VL, AVX-512VBMI2 "
 3503|      1|            "extensions)",
 3504|      1|            internal::instruction_set::AVX2 | internal::instruction_set::BMI1 |
 3505|      1|                internal::instruction_set::BMI2 |
 3506|      1|                internal::instruction_set::AVX512BW |
 3507|      1|                internal::instruction_set::AVX512CD |
 3508|      1|                internal::instruction_set::AVX512VL |
 3509|      1|                internal::instruction_set::AVX512VBMI2 |
 3510|      1|                internal::instruction_set::AVX512VPOPCNTDQ) {}
simdutf.cpp:_ZN7simdutf8internalL21get_haswell_singletonEv:
12665|      1|static const haswell::implementation *get_haswell_singleton() {
12666|      1|  #if !SIMDUTF_USE_STATIC_INITIALIZATION
12667|      1|  static const haswell::implementation haswell_singleton{};
12668|      1|  #endif
12669|      1|  return &haswell_singleton;
12670|      1|}
_ZN7simdutf7haswell14implementationC2Ev:
 4151|      1|      : simdutf::implementation("haswell", "Intel/AMD AVX2",
 4152|      1|                                internal::instruction_set::AVX2 |
 4153|      1|                                    internal::instruction_set::BMI1 |
 4154|      1|                                    internal::instruction_set::BMI2) {}
simdutf.cpp:_ZN7simdutf8internalL22get_westmere_singletonEv:
12676|      1|static const westmere::implementation *get_westmere_singleton() {
12677|      1|  #if !SIMDUTF_USE_STATIC_INITIALIZATION
12678|      1|  static const westmere::implementation westmere_singleton{};
12679|      1|  #endif
12680|      1|  return &westmere_singleton;
12681|      1|}
_ZN7simdutf8westmere14implementationC2Ev:
 5468|      1|      : simdutf::implementation("westmere", "Intel/AMD SSE4.2",
 5469|      1|                                internal::instruction_set::SSE42) {}
simdutf.cpp:_ZN7simdutf8internalL22get_fallback_singletonEv:
12742|      1|static const fallback::implementation *get_fallback_singleton() {
12743|      1|  #if !SIMDUTF_USE_STATIC_INITIALIZATION
12744|      1|  static const fallback::implementation fallback_singleton{};
12745|      1|  #endif
12746|      1|  return &fallback_singleton;
12747|      1|}
_ZN7simdutf8fallback14implementationC2Ev:
12091|      1|      : simdutf::implementation("fallback", "Generic fallback implementation",
12092|      1|                                0) {}
_ZN7simdutf8internal49detect_best_supported_implementation_on_first_useC2Ev:
13389|      1|      : implementation("best_supported_detector",
13390|      1|                       "Detects the best supported implementation and sets it",
13391|      1|                       0) {}
_ZNK7simdutf8internal49detect_best_supported_implementation_on_first_use16base64_to_binaryEPKcmPcNS_14base64_optionsENS_27last_chunk_handling_optionsE:
13322|      1|          last_chunk_handling_options::loose) const noexcept override {
13323|      1|    return set_best()->base64_to_binary(input, length, output, options,
13324|      1|                                        last_chunk_handling_options);
13325|      1|  }
_ZN7simdutf26get_default_implementationEv:
14117|  18.3k|get_default_implementation() {
14118|  18.3k|  return get_active_implementation();
14119|  18.3k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_115trailing_zeroesEm:
 4595|  1.95k|simdutf_really_inline int trailing_zeroes(uint64_t input_num) {
 4596|       |  #if SIMDUTF_REGULAR_VISUAL_STUDIO
 4597|       |  return (int)_tzcnt_u64(input_num);
 4598|       |  #else  // SIMDUTF_REGULAR_VISUAL_STUDIO
 4599|  1.95k|  return __builtin_ctzll(input_num);
 4600|  1.95k|  #endif // SIMDUTF_REGULAR_VISUAL_STUDIO
 4601|  1.95k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_110count_onesEm:
 4589|  12.1k|simdutf_really_inline long long int count_ones(uint64_t input_num) {
 4590|       |  return _popcnt64(input_num);
 4591|  12.1k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block64C2EPKc:
34556|  12.5k|  simdutf_really_inline block64(const char *src) {
34557|  12.5k|    chunks[0] = _mm256_loadu_si256(reinterpret_cast<const __m256i *>(src));
34558|  12.5k|    chunks[1] = _mm256_loadu_si256(reinterpret_cast<const __m256i *>(src + 32));
34559|  12.5k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6419base64_decode_blockILb0EEEvPc:
34588|  1.02k|  simdutf_really_inline void base64_decode_block(char *out) {
34589|  1.02k|    base64_decode(out, chunks[0]);
34590|  1.02k|    base64_decode<exact_tail>(out + 24, chunks[1]);
34591|  1.02k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113base64_decodeILb0EEEvPcDv4_x:
34518|  18.5k|simdutf_really_inline void base64_decode(char *out, __m256i str) {
34519|       |  // credit: aqrit
34520|  18.5k|  const __m256i pack_shuffle =
34521|  18.5k|      _mm256_setr_epi8(2, 1, 0, 6, 5, 4, 10, 9, 8, 14, 13, 12, -1, -1, -1, -1,
34522|  18.5k|                       2, 1, 0, 6, 5, 4, 10, 9, 8, 14, 13, 12, -1, -1, -1, -1);
34523|  18.5k|  const __m256i t0 = _mm256_maddubs_epi16(str, _mm256_set1_epi32(0x01400140));
34524|  18.5k|  const __m256i t1 = _mm256_madd_epi16(t0, _mm256_set1_epi32(0x00011000));
34525|  18.5k|  const __m256i t2 = _mm256_shuffle_epi8(t1, pack_shuffle);
34526|       |
34527|       |  // Store the output:
34528|  18.5k|  _mm_storeu_si128((__m128i *)out, _mm256_castsi256_si128(t2));
34529|  18.5k|  const __m128i hi = _mm256_extracti128_si256(t2, 1);
34530|       |  if constexpr (exact_tail) {
34531|       |    _mm_storel_epi64((__m128i *)(out + 12), hi);
34532|       |    const int32_t last = _mm_extract_epi32(hi, 2);
34533|       |    std::memcpy(out + 20, &last, sizeof(last));
34534|  18.5k|  } else {
34535|  18.5k|    _mm_storeu_si128((__m128i *)(out + 12), hi);
34536|  18.5k|  }
34537|  18.5k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6419base64_decode_blockILb1EEEvPc:
34588|  2.65k|  simdutf_really_inline void base64_decode_block(char *out) {
34589|  2.65k|    base64_decode(out, chunks[0]);
34590|  2.65k|    base64_decode<exact_tail>(out + 24, chunks[1]);
34591|  2.65k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113base64_decodeILb1EEEvPcDv4_x:
34518|  4.20k|simdutf_really_inline void base64_decode(char *out, __m256i str) {
34519|       |  // credit: aqrit
34520|  4.20k|  const __m256i pack_shuffle =
34521|  4.20k|      _mm256_setr_epi8(2, 1, 0, 6, 5, 4, 10, 9, 8, 14, 13, 12, -1, -1, -1, -1,
34522|  4.20k|                       2, 1, 0, 6, 5, 4, 10, 9, 8, 14, 13, 12, -1, -1, -1, -1);
34523|  4.20k|  const __m256i t0 = _mm256_maddubs_epi16(str, _mm256_set1_epi32(0x01400140));
34524|  4.20k|  const __m256i t1 = _mm256_madd_epi16(t0, _mm256_set1_epi32(0x00011000));
34525|  4.20k|  const __m256i t2 = _mm256_shuffle_epi8(t1, pack_shuffle);
34526|       |
34527|       |  // Store the output:
34528|  4.20k|  _mm_storeu_si128((__m128i *)out, _mm256_castsi256_si128(t2));
34529|  4.20k|  const __m128i hi = _mm256_extracti128_si256(t2, 1);
34530|  4.20k|  if constexpr (exact_tail) {
34531|  4.20k|    _mm_storel_epi64((__m128i *)(out + 12), hi);
34532|  4.20k|    const int32_t last = _mm_extract_epi32(hi, 2);
34533|  4.20k|    std::memcpy(out + 20, &last, sizeof(last));
34534|       |  } else {
34535|       |    _mm_storeu_si128((__m128i *)(out + 12), hi);
34536|       |  }
34537|  4.20k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6414compress_blockEmPc:
34730|  5.22k|  simdutf_really_inline uint64_t compress_block(uint64_t mask, char *output) {
34731|  5.22k|    if (is_power_of_two(mask)) {
  ------------------
  |  Branch (34731:9): [True: 1.83k, False: 3.39k]
  ------------------
34732|  1.83k|      return compress_block_single(mask, output);
34733|  1.83k|    }
34734|       |
34735|  3.39k|    uint64_t nmask = ~mask;
34736|  3.39k|    compress(chunks[0], uint32_t(mask), output);
34737|  3.39k|    compress(chunks[1], uint32_t(mask >> 32),
34738|  3.39k|             output + count_ones(nmask & 0xFFFFFFFF));
34739|  3.39k|    return count_ones(nmask);
34740|  5.22k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_115is_power_of_twoImEEbT_:
 4604|  5.22k|template <typename T> bool is_power_of_two(T x) { return (x & (x - 1)) == 0; }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6421compress_block_singleEmPc:
34743|  1.83k|                                                     char *output) {
34744|  1.83k|    const size_t pos64 = trailing_zeroes(mask);
34745|  1.83k|    const int8_t pos = pos64 & 0xf;
34746|  1.83k|    switch (pos64 >> 4) {
  ------------------
  |  Branch (34746:13): [True: 1.83k, False: 0]
  ------------------
34747|    429|    case 0b00: {
  ------------------
  |  Branch (34747:5): [True: 429, False: 1.40k]
  ------------------
34748|    429|      const __m128i lane0 = _mm256_extracti128_si256(chunks[0], 0);
34749|    429|      const __m128i lane1 = _mm256_extracti128_si256(chunks[0], 1);
34750|       |
34751|    429|      const __m128i v0 = _mm_set1_epi8(char(pos - 1));
34752|    429|      const __m128i v1 =
34753|    429|          _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
34754|    429|      const __m128i v2 = _mm_cmpgt_epi8(v1, v0);
34755|    429|      const __m128i sh = _mm_sub_epi8(v1, v2);
34756|    429|      const __m128i compressed = _mm_shuffle_epi8(lane0, sh);
34757|       |
34758|    429|      _mm_storeu_si128((__m128i *)(output + 0 * 16), compressed);
34759|    429|      _mm_storeu_si128((__m128i *)(output + 1 * 16 - 1), lane1);
34760|    429|      _mm256_storeu_si256((__m256i *)(output + 2 * 16 - 1), chunks[1]);
34761|    429|    } break;
34762|    487|    case 0b01: {
  ------------------
  |  Branch (34762:5): [True: 487, False: 1.34k]
  ------------------
34763|    487|      const __m128i lane0 = _mm256_extracti128_si256(chunks[0], 0);
34764|    487|      const __m128i lane1 = _mm256_extracti128_si256(chunks[0], 1);
34765|    487|      _mm_storeu_si128((__m128i *)(output + 0 * 16), lane0);
34766|       |
34767|    487|      const __m128i v0 = _mm_set1_epi8(char(pos - 1));
34768|    487|      const __m128i v1 =
34769|    487|          _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
34770|    487|      const __m128i v2 = _mm_cmpgt_epi8(v1, v0);
34771|    487|      const __m128i sh = _mm_sub_epi8(v1, v2);
34772|    487|      const __m128i compressed = _mm_shuffle_epi8(lane1, sh);
34773|       |
34774|    487|      _mm_storeu_si128((__m128i *)(output + 1 * 16), compressed);
34775|    487|      _mm256_storeu_si256((__m256i *)(output + 2 * 16 - 1), chunks[1]);
34776|    487|    } break;
34777|    447|    case 0b10: {
  ------------------
  |  Branch (34777:5): [True: 447, False: 1.38k]
  ------------------
34778|    447|      const __m128i lane2 = _mm256_extracti128_si256(chunks[1], 0);
34779|    447|      const __m128i lane3 = _mm256_extracti128_si256(chunks[1], 1);
34780|       |
34781|    447|      _mm256_storeu_si256((__m256i *)(output + 0 * 16), chunks[0]);
34782|       |
34783|    447|      const __m128i v0 = _mm_set1_epi8(char(pos - 1));
34784|    447|      const __m128i v1 =
34785|    447|          _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
34786|    447|      const __m128i v2 = _mm_cmpgt_epi8(v1, v0);
34787|    447|      const __m128i sh = _mm_sub_epi8(v1, v2);
34788|    447|      const __m128i compressed = _mm_shuffle_epi8(lane2, sh);
34789|       |
34790|    447|      _mm_storeu_si128((__m128i *)(output + 2 * 16), compressed);
34791|    447|      _mm_storeu_si128((__m128i *)(output + 3 * 16 - 1), lane3);
34792|    447|    } break;
34793|    469|    case 0b11: {
  ------------------
  |  Branch (34793:5): [True: 469, False: 1.36k]
  ------------------
34794|    469|      const __m128i lane2 = _mm256_extracti128_si256(chunks[1], 0);
34795|    469|      const __m128i lane3 = _mm256_extracti128_si256(chunks[1], 1);
34796|       |
34797|    469|      _mm256_storeu_si256((__m256i *)(output + 0 * 16), chunks[0]);
34798|    469|      _mm_storeu_si128((__m128i *)(output + 2 * 16), lane2);
34799|       |
34800|    469|      const __m128i v0 = _mm_set1_epi8(char(pos - 1));
34801|    469|      const __m128i v1 =
34802|    469|          _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
34803|    469|      const __m128i v2 = _mm_cmpgt_epi8(v1, v0);
34804|    469|      const __m128i sh = _mm_sub_epi8(v1, v2);
34805|    469|      const __m128i compressed = _mm_shuffle_epi8(lane3, sh);
34806|       |
34807|    469|      _mm_storeu_si128((__m128i *)(output + 3 * 16), compressed);
34808|    469|    } break;
34809|  1.83k|    }
34810|       |
34811|  1.83k|    return 63;
34812|  1.83k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_18compressIvEEvDv4_xjPc:
34503|  6.78k|simdutf_really_inline void compress(__m256i data, uint32_t mask, char *output) {
34504|  6.78k|  if (mask == 0) {
  ------------------
  |  Branch (34504:7): [True: 1.43k, False: 5.35k]
  ------------------
34505|  1.43k|    _mm256_storeu_si256(reinterpret_cast<__m256i *>(output), data);
34506|  1.43k|    return;
34507|  1.43k|  }
34508|  5.35k|  compress(_mm256_castsi256_si128(data), uint16_t(mask), output);
34509|       |  compress(_mm256_extracti128_si256(data, 1), uint16_t(mask >> 16),
34510|  5.35k|           output + count_ones(~mask & 0xFFFF));
34511|  5.35k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_18compressEDv2_xtPc:
34466|  10.7k|static inline void compress(__m128i data, uint16_t mask, char *output) {
34467|  10.7k|  if (mask == 0) {
  ------------------
  |  Branch (34467:7): [True: 3.41k, False: 7.28k]
  ------------------
34468|  3.41k|    _mm_storeu_si128(reinterpret_cast<__m128i *>(output), data);
34469|  3.41k|    return;
34470|  3.41k|  }
34471|       |  // this particular implementation was inspired by work done by @animetosho
34472|       |  // we do it in two steps, first 8 bytes and then second 8 bytes
34473|  7.28k|  uint8_t mask1 = uint8_t(mask);      // least significant 8 bits
34474|  7.28k|  uint8_t mask2 = uint8_t(mask >> 8); // most significant 8 bits
34475|       |  // next line just loads the 64-bit values thintable_epi8[mask1] and
34476|       |  // thintable_epi8[mask2] into a 128-bit register, using only
34477|       |  // two instructions on most compilers.
34478|       |
34479|  7.28k|  __m128i shufmask = _mm_set_epi64x(tables::base64::thintable_epi8[mask2],
34480|  7.28k|                                    tables::base64::thintable_epi8[mask1]);
34481|       |  // we increment by 0x08 the second half of the mask
34482|  7.28k|  shufmask =
34483|  7.28k|      _mm_add_epi8(shufmask, _mm_set_epi32(0x08080808, 0x08080808, 0, 0));
34484|       |  // this is the version "nearly pruned"
34485|  7.28k|  __m128i pruned = _mm_shuffle_epi8(data, shufmask);
34486|       |  // we still need to put the two halves together.
34487|       |  // we compute the popcount of the first half:
34488|  7.28k|  int pop1 = tables::base64::BitsSetTable256mul2[mask1];
34489|       |  // then load the corresponding mask, what it does is to write
34490|       |  // only the first pop1 bytes from the first 8 bytes, and then
34491|       |  // it fills in with the bytes from the second 8 bytes + some filling
34492|       |  // at the end.
34493|  7.28k|  __m128i compactmask = _mm_loadu_si128(reinterpret_cast<const __m128i *>(
34494|  7.28k|      tables::base64::pshufb_combine_table + pop1 * 8));
34495|  7.28k|  __m128i answer = _mm_shuffle_epi8(pruned, compactmask);
34496|       |
34497|  7.28k|  _mm_storeu_si128(reinterpret_cast<__m128i *>(output), answer);
34498|  7.28k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6410copy_blockEPc:
34581|  3.44k|  simdutf_really_inline void copy_block(char *output) {
34582|  3.44k|    _mm256_storeu_si256(reinterpret_cast<__m256i *>(output), chunks[0]);
34583|  3.44k|    _mm256_storeu_si256(reinterpret_cast<__m256i *>(output + 32), chunks[1]);
34584|  3.44k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_119base64_decode_blockILb0EEEvPcPKc:
34540|  6.17k|simdutf_really_inline void base64_decode_block(char *out, const char *src) {
34541|  6.17k|  base64_decode(out,
34542|  6.17k|                _mm256_loadu_si256(reinterpret_cast<const __m256i *>(src)));
34543|  6.17k|  base64_decode<exact_tail>(
34544|  6.17k|      out + 24,
34545|  6.17k|      _mm256_loadu_si256(reinterpret_cast<const __m256i *>(src + 32)));
34546|  6.17k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_119base64_decode_blockILb1EEEvPcPKc:
34540|  1.54k|simdutf_really_inline void base64_decode_block(char *out, const char *src) {
34541|  1.54k|  base64_decode(out,
34542|  1.54k|                _mm256_loadu_si256(reinterpret_cast<const __m256i *>(src)));
34543|  1.54k|  base64_decode<exact_tail>(
34544|  1.54k|      out + 24,
34545|  1.54k|      _mm256_loadu_si256(reinterpret_cast<const __m256i *>(src + 32)));
34546|  1.54k|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_16base6422compress_decode_base64ILb0ELb0ELb0EcEENS_11full_resultEPcPKT2_mNS_14base64_optionsENS_27last_chunk_handling_optionsE:
37867|  18.3k|                       last_chunk_handling_options last_chunk_options) {
37868|  18.3k|  const uint8_t *to_base64 =
37869|  18.3k|      default_or_url ? tables::base64::to_base64_default_or_url_value
  ------------------
  |  Branch (37869:7): [Folded, False: 18.3k]
  ------------------
37870|  18.3k|                     : (base64_url ? tables::base64::to_base64_url_value
  ------------------
  |  Branch (37870:25): [Folded, False: 18.3k]
  ------------------
37871|  18.3k|                                   : tables::base64::to_base64_value);
37872|  18.3k|  auto ri = simdutf::scalar::base64::find_end(src, srclen, options);
37873|  18.3k|  size_t equallocation = ri.equallocation;
37874|  18.3k|  size_t equalsigns = ri.equalsigns;
37875|  18.3k|  srclen = ri.srclen;
37876|  18.3k|  size_t full_input_length = ri.full_input_length;
37877|  18.3k|  if (srclen == 0) {
  ------------------
  |  Branch (37877:7): [True: 7, False: 18.2k]
  ------------------
37878|      7|    if (!ignore_garbage && equalsigns > 0) {
  ------------------
  |  Branch (37878:9): [True: 7, Folded]
  |  Branch (37878:28): [True: 3, False: 4]
  ------------------
37879|      3|      return {INVALID_BASE64_CHARACTER, equallocation, 0, true};
37880|      3|    }
37881|      4|    return {SUCCESS, full_input_length, 0};
37882|      7|  }
37883|  18.2k|  const chartype *const srcinit = src;
37884|  18.2k|  const char *const dstinit = dst;
37885|  18.2k|  const chartype *const srcend = src + srclen;
37886|       |
37887|  18.2k|  constexpr size_t block_size = 6;
37888|  18.2k|  static_assert(block_size >= 2, "block_size must be at least two");
37889|  18.2k|  char buffer[block_size * 64];
37890|  18.2k|  char *bufferptr = buffer;
37891|       |  // A wide block store writes 4 bytes past its 48. That is safe when the next
37892|       |  // store starts 48 bytes later. Pairs of clean blocks wide-store the first
37893|       |  // and end the second on byte 48. Anything shorter, or a block that is not
37894|       |  // clean, uses the exact store. The pair attempt is only worth it on a long
37895|       |  // input: a short one often fails the first block and then repeats that work.
37896|  18.2k|  if (srclen >= 512) {
  ------------------
  |  Branch (37896:7): [True: 314, False: 17.9k]
  ------------------
37897|    314|    const chartype *const srcend128 = src + srclen - 128;
37898|  1.33k|    while (bufferptr == buffer && src <= srcend128) {
  ------------------
  |  Branch (37898:12): [True: 1.33k, False: 0]
  |  Branch (37898:35): [True: 1.13k, False: 202]
  ------------------
37899|  1.13k|      block64 b0(src);
37900|  1.13k|      uint64_t e0 = 0;
37901|  1.13k|      const uint64_t m0 =
37902|  1.13k|          b0.to_base64_mask<base64_url, ignore_garbage, default_or_url>(&e0);
37903|  1.13k|      if ((!ignore_garbage && e0) || m0 != 0) {
  ------------------
  |  Branch (37903:12): [True: 1.13k, Folded]
  |  Branch (37903:31): [True: 16, False: 1.11k]
  |  Branch (37903:38): [True: 76, False: 1.04k]
  ------------------
37904|     92|        break;
37905|     92|      }
37906|  1.04k|      block64 b1(src + 64);
37907|  1.04k|      uint64_t e1 = 0;
37908|  1.04k|      const uint64_t m1 =
37909|  1.04k|          b1.to_base64_mask<base64_url, ignore_garbage, default_or_url>(&e1);
37910|  1.04k|      if ((!ignore_garbage && e1) || m1 != 0) {
  ------------------
  |  Branch (37910:12): [True: 1.04k, Folded]
  |  Branch (37910:31): [True: 4, False: 1.03k]
  |  Branch (37910:38): [True: 16, False: 1.02k]
  ------------------
37911|     20|        break;
37912|     20|      }
37913|  1.02k|      b0.base64_decode_block(dst);
37914|  1.02k|      b1.template base64_decode_block<true>(dst + 48);
37915|  1.02k|      src += 128;
37916|  1.02k|      dst += 96;
37917|  1.02k|    }
37918|    314|  }
37919|  18.2k|  if (srclen >= 64) {
  ------------------
  |  Branch (37919:7): [True: 1.24k, False: 17.0k]
  ------------------
37920|  1.24k|    const chartype *const srcend64 = srcinit + srclen - 64;
37921|  11.5k|    while (src <= srcend64) {
  ------------------
  |  Branch (37921:12): [True: 10.4k, False: 1.12k]
  ------------------
37922|  10.4k|      block64 b(src);
37923|  10.4k|      uint64_t error = 0;
37924|  10.4k|      const uint64_t badcharmask =
37925|  10.4k|          b.to_base64_mask<base64_url, ignore_garbage, default_or_url>(&error);
37926|  10.4k|      if (!ignore_garbage && error) {
  ------------------
  |  Branch (37926:11): [True: 10.4k, Folded]
  |  Branch (37926:30): [True: 121, False: 10.3k]
  ------------------
37927|    121|        const size_t error_offset = trailing_zeroes(error);
37928|    121|        return {error_code::INVALID_BASE64_CHARACTER,
37929|    121|                size_t(src - srcinit + error_offset), size_t(dst - dstinit)};
37930|    121|      }
37931|  10.3k|      src += 64;
37932|  10.3k|      if (badcharmask != 0) {
  ------------------
  |  Branch (37932:11): [True: 5.22k, False: 5.07k]
  ------------------
37933|  5.22k|        bufferptr += b.compress_block(badcharmask, bufferptr);
37934|  5.22k|      } else if (bufferptr != buffer) {
  ------------------
  |  Branch (37934:18): [True: 3.44k, False: 1.63k]
  ------------------
37935|  3.44k|        b.copy_block(bufferptr);
37936|  3.44k|        bufferptr += 64;
37937|  3.44k|      } else {
37938|  1.63k|        b.template base64_decode_block<true>(dst);
37939|  1.63k|        dst += 48;
37940|  1.63k|      }
37941|  10.3k|      if (bufferptr >= (block_size - 1) * 64 + buffer) {
  ------------------
  |  Branch (37941:11): [True: 1.49k, False: 8.80k]
  ------------------
37942|  7.48k|        for (size_t i = 0; i < (block_size - 2); i++) {
  ------------------
  |  Branch (37942:28): [True: 5.98k, False: 1.49k]
  ------------------
37943|  5.98k|          base64_decode_block(dst, buffer + i * 64);
37944|  5.98k|          dst += 48;
37945|  5.98k|        }
37946|  1.49k|        base64_decode_block<true>(dst, buffer + (block_size - 2) * 64);
37947|  1.49k|        dst += 48;
37948|  1.49k|        std::memcpy(buffer, buffer + (block_size - 1) * 64,
37949|  1.49k|                    64); // 64 might be too much
37950|  1.49k|        bufferptr -= (block_size - 1) * 64;
37951|  1.49k|      }
37952|  10.3k|    }
37953|  1.24k|  }
37954|       |
37955|  18.1k|  char *buffer_start = buffer;
37956|       |  // Optimization note: if this is almost full, then it is worth our
37957|       |  // time, otherwise, we should just decode directly.
37958|  18.1k|  int last_block = (int)((bufferptr - buffer_start) % 64);
37959|  18.1k|  if (last_block != 0 && srcend - src + last_block >= 64) {
  ------------------
  |  Branch (37959:7): [True: 198, False: 17.9k]
  |  Branch (37959:26): [True: 59, False: 139]
  ------------------
37960|       |
37961|    707|    while ((bufferptr - buffer_start) % 64 != 0 && src < srcend) {
  ------------------
  |  Branch (37961:12): [True: 663, False: 44]
  |  Branch (37961:52): [True: 657, False: 6]
  ------------------
37962|    657|      uint8_t val = to_base64[uint8_t(*src)];
37963|    657|      *bufferptr = char(val);
37964|    657|      if (!ignore_garbage &&
  ------------------
  |  Branch (37964:11): [True: 657, Folded]
  ------------------
37965|    657|          (!scalar::base64::is_eight_byte(*src) || val > 64)) {
  ------------------
  |  Branch (37965:12): [True: 0, False: 657]
  |  Branch (37965:52): [True: 9, False: 648]
  ------------------
37966|      9|        return {error_code::INVALID_BASE64_CHARACTER, size_t(src - srcinit),
37967|      9|                size_t(dst - dstinit)};
37968|      9|      }
37969|    648|      bufferptr += (val <= 63);
37970|    648|      src++;
37971|    648|    }
37972|     59|  }
37973|       |
37974|  18.4k|  for (; buffer_start + 64 <= bufferptr; buffer_start += 64) {
  ------------------
  |  Branch (37974:10): [True: 241, False: 18.1k]
  ------------------
37975|       |    // 8 payload bytes still in the buffer become 6 output bytes, which cover
37976|       |    // the 4-byte tail of a wide store. Fewer than that, and the tail can
37977|       |    // stick out past the real end.
37978|    241|    const size_t after = size_t(bufferptr - (buffer_start + 64));
37979|    241|    if (after >= 8) {
  ------------------
  |  Branch (37979:9): [True: 191, False: 50]
  ------------------
37980|    191|      base64_decode_block(dst, buffer_start);
37981|    191|    } else {
37982|     50|      base64_decode_block<true>(dst, buffer_start);
37983|     50|    }
37984|    241|    dst += 48;
37985|    241|  }
37986|  18.1k|  if ((bufferptr - buffer_start) % 64 != 0) {
  ------------------
  |  Branch (37986:7): [True: 145, False: 18.0k]
  ------------------
37987|  1.27k|    while (buffer_start + 4 < bufferptr) {
  ------------------
  |  Branch (37987:12): [True: 1.13k, False: 145]
  ------------------
37988|  1.13k|      uint32_t triple = ((uint32_t(uint8_t(buffer_start[0])) << 3 * 6) +
37989|  1.13k|                         (uint32_t(uint8_t(buffer_start[1])) << 2 * 6) +
37990|  1.13k|                         (uint32_t(uint8_t(buffer_start[2])) << 1 * 6) +
37991|  1.13k|                         (uint32_t(uint8_t(buffer_start[3])) << 0 * 6))
37992|  1.13k|                        << 8;
37993|  1.13k|#if !SIMDUTF_IS_BIG_ENDIAN
37994|  1.13k|      triple = scalar::u32_swap_bytes(triple);
37995|  1.13k|#endif
37996|  1.13k|      std::memcpy(dst, &triple, 3);
37997|       |
37998|  1.13k|      dst += 3;
37999|  1.13k|      buffer_start += 4;
38000|  1.13k|    }
38001|    145|    if (buffer_start + 4 <= bufferptr) {
  ------------------
  |  Branch (38001:9): [True: 37, False: 108]
  ------------------
38002|     37|      uint32_t triple = ((uint32_t(uint8_t(buffer_start[0])) << 3 * 6) +
38003|     37|                         (uint32_t(uint8_t(buffer_start[1])) << 2 * 6) +
38004|     37|                         (uint32_t(uint8_t(buffer_start[2])) << 1 * 6) +
38005|     37|                         (uint32_t(uint8_t(buffer_start[3])) << 0 * 6))
38006|     37|                        << 8;
38007|     37|#if !SIMDUTF_IS_BIG_ENDIAN
38008|     37|      triple = scalar::u32_swap_bytes(triple);
38009|     37|#endif
38010|     37|      std::memcpy(dst, &triple, 3);
38011|       |
38012|     37|      dst += 3;
38013|     37|      buffer_start += 4;
38014|     37|    }
38015|       |    // we may have 1, 2 or 3 bytes left and we need to decode them so let us
38016|       |    // backtrack
38017|    145|    int leftover = int(bufferptr - buffer_start);
38018|    375|    while (leftover > 0) {
  ------------------
  |  Branch (38018:12): [True: 230, False: 145]
  ------------------
38019|    230|      if (!ignore_garbage) {
  ------------------
  |  Branch (38019:11): [True: 230, Folded]
  ------------------
38020|  1.83k|        while (to_base64[uint8_t(*(src - 1))] == 64) {
  ------------------
  |  Branch (38020:16): [True: 1.60k, False: 230]
  ------------------
38021|  1.60k|          src--;
38022|  1.60k|        }
38023|    230|      } else {
38024|      0|        while (to_base64[uint8_t(*(src - 1))] >= 64) {
  ------------------
  |  Branch (38024:16): [True: 0, False: 0]
  ------------------
38025|      0|          src--;
38026|      0|        }
38027|      0|      }
38028|    230|      src--;
38029|    230|      leftover--;
38030|    230|    }
38031|    145|  }
38032|  18.1k|  if (src < srcend + equalsigns) {
  ------------------
  |  Branch (38032:7): [True: 17.6k, False: 490]
  ------------------
38033|  17.6k|    full_result r = scalar::base64::base64_tail_decode(
38034|  17.6k|        dst, src, srcend - src, equalsigns, options, last_chunk_options);
38035|  17.6k|    r = scalar::base64::patch_tail_result(
38036|  17.6k|        r, size_t(src - srcinit), size_t(dst - dstinit), equallocation,
38037|  17.6k|        full_input_length, last_chunk_options);
38038|       |    // When is_partial(last_chunk_options) is true, we must either end with
38039|       |    // the end of the stream (beyond whitespace) or right after a non-ignorable
38040|       |    // character or at the very beginning of the stream.
38041|       |    // See https://tc39.es/proposal-arraybuffer-base64/spec/#sec-frombase64
38042|  17.6k|    if (is_partial(last_chunk_options) && r.error == error_code::SUCCESS &&
  ------------------
  |  Branch (38042:9): [True: 0, False: 17.6k]
  |  Branch (38042:43): [True: 0, False: 0]
  ------------------
38043|      0|        r.input_count < full_input_length) {
  ------------------
  |  Branch (38043:9): [True: 0, False: 0]
  ------------------
38044|       |      // First check if we can extend the input to the end of the stream
38045|      0|      while (r.input_count < full_input_length &&
  ------------------
  |  Branch (38045:14): [True: 0, False: 0]
  ------------------
38046|      0|             base64_ignorable(*(srcinit + r.input_count), options)) {
  ------------------
  |  Branch (38046:14): [True: 0, False: 0]
  ------------------
38047|      0|        r.input_count++;
38048|      0|      }
38049|       |      // If we are still not at the end of the stream, then we must backtrack
38050|       |      // to the last non-ignorable character.
38051|      0|      if (r.input_count < full_input_length) {
  ------------------
  |  Branch (38051:11): [True: 0, False: 0]
  ------------------
38052|      0|        while (r.input_count > 0 &&
  ------------------
  |  Branch (38052:16): [True: 0, False: 0]
  ------------------
38053|      0|               base64_ignorable(*(srcinit + r.input_count - 1), options)) {
  ------------------
  |  Branch (38053:16): [True: 0, False: 0]
  ------------------
38054|      0|          r.input_count--;
38055|      0|        }
38056|      0|      }
38057|      0|    }
38058|  17.6k|    return r;
38059|  17.6k|  }
38060|    490|  if (!ignore_garbage && equalsigns > 0) {
  ------------------
  |  Branch (38060:7): [True: 490, Folded]
  |  Branch (38060:26): [True: 0, False: 490]
  ------------------
38061|      0|    if ((size_t(dst - dstinit) % 3 == 0) ||
  ------------------
  |  Branch (38061:9): [True: 0, False: 0]
  ------------------
38062|      0|        ((size_t(dst - dstinit) % 3) + 1 + equalsigns != 4)) {
  ------------------
  |  Branch (38062:9): [True: 0, False: 0]
  ------------------
38063|      0|      return {INVALID_BASE64_CHARACTER, equallocation, size_t(dst - dstinit),
38064|      0|              true};
38065|      0|    }
38066|      0|  }
38067|    490|  return {SUCCESS, srclen, size_t(dst - dstinit)};
38068|    490|}
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6414to_base64_maskILb0ELb0ELb0EEEmPm:
34594|  12.5k|  simdutf_really_inline uint64_t to_base64_mask(uint64_t *error) {
34595|  12.5k|    uint32_t err0 = 0;
34596|  12.5k|    uint32_t err1 = 0;
34597|  12.5k|    uint64_t m0 = to_base64_mask<base64_url, ignore_garbage, default_or_url>(
34598|  12.5k|        &chunks[0], &err0);
34599|  12.5k|    uint64_t m1 = to_base64_mask<base64_url, ignore_garbage, default_or_url>(
34600|  12.5k|        &chunks[1], &err1);
34601|  12.5k|    if (!ignore_garbage) {
  ------------------
  |  Branch (34601:9): [True: 12.5k, Folded]
  ------------------
34602|  12.5k|      *error = err0 | ((uint64_t)err1 << 32);
34603|  12.5k|    }
34604|  12.5k|    return m0 | (m1 << 32);
34605|  12.5k|  }
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_17block6414to_base64_maskILb0ELb0ELb0EEEjPDv4_xPj:
34608|  25.1k|  simdutf_really_inline uint32_t to_base64_mask(__m256i *src, uint32_t *error) {
34609|  25.1k|    const __m256i ascii_space_tbl =
34610|  25.1k|        _mm256_setr_epi8(0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9, 0xa,
34611|  25.1k|                         0x0, 0xc, 0xd, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0,
34612|  25.1k|                         0x0, 0x0, 0x0, 0x9, 0xa, 0x0, 0xc, 0xd, 0x0, 0x0);
34613|       |    // credit: aqrit
34614|  25.1k|    __m256i delta_asso;
34615|  25.1k|    if (default_or_url) {
  ------------------
  |  Branch (34615:9): [Folded, False: 25.1k]
  ------------------
34616|      0|      delta_asso = _mm256_setr_epi8(
34617|      0|          0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
34618|      0|          0x00, 0x00, 0x11, 0x00, 0x16, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
34619|      0|          0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x16);
34620|  25.1k|    } else if (base64_url) {
  ------------------
  |  Branch (34620:16): [Folded, False: 25.1k]
  ------------------
34621|      0|      delta_asso = _mm256_setr_epi8(0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x0,
34622|      0|                                    0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF, 0x1, 0x1,
34623|      0|                                    0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0,
34624|      0|                                    0x0, 0x0, 0xF, 0x0, 0xF);
34625|  25.1k|    } else {
34626|  25.1k|      delta_asso = _mm256_setr_epi8(
34627|  25.1k|          0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
34628|  25.1k|          0x00, 0x00, 0x0F, 0x00, 0x0F, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
34629|  25.1k|          0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F);
34630|  25.1k|    }
34631|       |
34632|  25.1k|    __m256i delta_values;
34633|  25.1k|    if (default_or_url) {
  ------------------
  |  Branch (34633:9): [Folded, False: 25.1k]
  ------------------
34634|      0|      delta_values = _mm256_setr_epi8(
34635|      0|          uint8_t(0xBF), uint8_t(0xE0), uint8_t(0xB9), uint8_t(0x13),
34636|      0|          uint8_t(0x04), uint8_t(0xBF), uint8_t(0xBF), uint8_t(0xB9),
34637|      0|          uint8_t(0xB9), uint8_t(0x00), uint8_t(0xFF), uint8_t(0x11),
34638|      0|          uint8_t(0xFF), uint8_t(0xBF), uint8_t(0x10), uint8_t(0xB9),
34639|      0|          uint8_t(0xBF), uint8_t(0xE0), uint8_t(0xB9), uint8_t(0x13),
34640|      0|          uint8_t(0x04), uint8_t(0xBF), uint8_t(0xBF), uint8_t(0xB9),
34641|      0|          uint8_t(0xB9), uint8_t(0x00), uint8_t(0xFF), uint8_t(0x11),
34642|      0|          uint8_t(0xFF), uint8_t(0xBF), uint8_t(0x10), uint8_t(0xB9));
34643|  25.1k|    } else if (base64_url) {
  ------------------
  |  Branch (34643:16): [Folded, False: 25.1k]
  ------------------
34644|      0|      delta_values = _mm256_setr_epi8(
34645|      0|          0x0, 0x0, 0x0, 0x13, 0x4, uint8_t(0xBF), uint8_t(0xBF), uint8_t(0xB9),
34646|      0|          uint8_t(0xB9), 0x0, 0x11, uint8_t(0xC3), uint8_t(0xBF), uint8_t(0xE0),
34647|      0|          uint8_t(0xB9), uint8_t(0xB9), 0x0, 0x0, 0x0, 0x13, 0x4, uint8_t(0xBF),
34648|      0|          uint8_t(0xBF), uint8_t(0xB9), uint8_t(0xB9), 0x0, 0x11, uint8_t(0xC3),
34649|      0|          uint8_t(0xBF), uint8_t(0xE0), uint8_t(0xB9), uint8_t(0xB9));
34650|  25.1k|    } else {
34651|  25.1k|      delta_values = _mm256_setr_epi8(
34652|  25.1k|          int8_t(0x00), int8_t(0x00), int8_t(0x00), int8_t(0x13), int8_t(0x04),
34653|  25.1k|          int8_t(0xBF), int8_t(0xBF), int8_t(0xB9), int8_t(0xB9), int8_t(0x00),
34654|  25.1k|          int8_t(0x10), int8_t(0xC3), int8_t(0xBF), int8_t(0xBF), int8_t(0xB9),
34655|  25.1k|          int8_t(0xB9), int8_t(0x00), int8_t(0x00), int8_t(0x00), int8_t(0x13),
34656|  25.1k|          int8_t(0x04), int8_t(0xBF), int8_t(0xBF), int8_t(0xB9), int8_t(0xB9),
34657|  25.1k|          int8_t(0x00), int8_t(0x10), int8_t(0xC3), int8_t(0xBF), int8_t(0xBF),
34658|  25.1k|          int8_t(0xB9), int8_t(0xB9));
34659|  25.1k|    }
34660|       |
34661|  25.1k|    __m256i check_asso;
34662|  25.1k|    if (default_or_url) {
  ------------------
  |  Branch (34662:9): [Folded, False: 25.1k]
  ------------------
34663|      0|      check_asso = _mm256_setr_epi8(
34664|      0|          0x0D, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x03,
34665|      0|          0x07, 0x0B, 0x0E, 0x0B, 0x06, 0x0D, 0x01, 0x01, 0x01, 0x01, 0x01,
34666|      0|          0x01, 0x01, 0x01, 0x01, 0x03, 0x07, 0x0B, 0x0E, 0x0B, 0x06);
34667|  25.1k|    } else if (base64_url) {
  ------------------
  |  Branch (34667:16): [Folded, False: 25.1k]
  ------------------
34668|      0|      check_asso = _mm256_setr_epi8(0xD, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1,
34669|      0|                                    0x1, 0x3, 0x7, 0xB, 0xE, 0xB, 0x6, 0xD, 0x1,
34670|      0|                                    0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x3,
34671|      0|                                    0x7, 0xB, 0xE, 0xB, 0x6);
34672|  25.1k|    } else {
34673|  25.1k|      check_asso = _mm256_setr_epi8(
34674|  25.1k|          0x0D, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x03,
34675|  25.1k|          0x07, 0x0B, 0x0B, 0x0B, 0x0F, 0x0D, 0x01, 0x01, 0x01, 0x01, 0x01,
34676|  25.1k|          0x01, 0x01, 0x01, 0x01, 0x03, 0x07, 0x0B, 0x0B, 0x0B, 0x0F);
34677|  25.1k|    }
34678|  25.1k|    __m256i check_values;
34679|  25.1k|    if (default_or_url) {
  ------------------
  |  Branch (34679:9): [Folded, False: 25.1k]
  ------------------
34680|      0|      check_values = _mm256_setr_epi8(
34681|      0|          uint8_t(0x80), uint8_t(0x80), uint8_t(0x80), uint8_t(0x80),
34682|      0|          uint8_t(0xCF), uint8_t(0xBF), uint8_t(0xD5), uint8_t(0xA6),
34683|      0|          uint8_t(0xB5), uint8_t(0xA1), uint8_t(0x00), uint8_t(0x80),
34684|      0|          uint8_t(0x00), uint8_t(0x80), uint8_t(0x00), uint8_t(0x80),
34685|      0|          uint8_t(0x80), uint8_t(0x80), uint8_t(0x80), uint8_t(0x80),
34686|      0|          uint8_t(0xCF), uint8_t(0xBF), uint8_t(0xD5), uint8_t(0xA6),
34687|      0|          uint8_t(0xB5), uint8_t(0xA1), uint8_t(0x00), uint8_t(0x80),
34688|      0|          uint8_t(0x00), uint8_t(0x80), uint8_t(0x00), uint8_t(0x80));
34689|  25.1k|    } else if (base64_url) {
  ------------------
  |  Branch (34689:16): [Folded, False: 25.1k]
  ------------------
34690|      0|      check_values = _mm256_setr_epi8(
34691|      0|          uint8_t(0x80), uint8_t(0x80), uint8_t(0x80), uint8_t(0x80),
34692|      0|          uint8_t(0xCF), uint8_t(0xBF), uint8_t(0xB6), uint8_t(0xA6),
34693|      0|          uint8_t(0xB5), uint8_t(0xA1), 0x0, uint8_t(0x80), 0x0, uint8_t(0x80),
34694|      0|          0x0, uint8_t(0x80), uint8_t(0x80), uint8_t(0x80), uint8_t(0x80),
34695|      0|          uint8_t(0x80), uint8_t(0xCF), uint8_t(0xBF), uint8_t(0xB6),
34696|      0|          uint8_t(0xA6), uint8_t(0xB5), uint8_t(0xA1), 0x0, uint8_t(0x80), 0x0,
34697|      0|          uint8_t(0x80), 0x0, uint8_t(0x80));
34698|  25.1k|    } else {
34699|  25.1k|      check_values = _mm256_setr_epi8(
34700|  25.1k|          int8_t(0x80), int8_t(0x80), int8_t(0x80), int8_t(0x80), int8_t(0xCF),
34701|  25.1k|          int8_t(0xBF), int8_t(0xD5), int8_t(0xA6), int8_t(0xB5), int8_t(0x86),
34702|  25.1k|          int8_t(0xD1), int8_t(0x80), int8_t(0xB1), int8_t(0x80), int8_t(0x91),
34703|  25.1k|          int8_t(0x80), int8_t(0x80), int8_t(0x80), int8_t(0x80), int8_t(0x80),
34704|  25.1k|          int8_t(0xCF), int8_t(0xBF), int8_t(0xD5), int8_t(0xA6), int8_t(0xB5),
34705|  25.1k|          int8_t(0x86), int8_t(0xD1), int8_t(0x80), int8_t(0xB1), int8_t(0x80),
34706|  25.1k|          int8_t(0x91), int8_t(0x80));
34707|  25.1k|    }
34708|  25.1k|    const __m256i shifted = _mm256_srli_epi32(*src, 3);
34709|  25.1k|    __m256i delta_hash =
34710|  25.1k|        _mm256_avg_epu8(_mm256_shuffle_epi8(delta_asso, *src), shifted);
34711|  25.1k|    if (default_or_url) {
  ------------------
  |  Branch (34711:9): [Folded, False: 25.1k]
  ------------------
34712|      0|      delta_hash = _mm256_and_si256(delta_hash, _mm256_set1_epi8(0xf));
34713|      0|    }
34714|  25.1k|    const __m256i check_hash =
34715|  25.1k|        _mm256_avg_epu8(_mm256_shuffle_epi8(check_asso, *src), shifted);
34716|  25.1k|    const __m256i out =
34717|  25.1k|        _mm256_adds_epi8(_mm256_shuffle_epi8(delta_values, delta_hash), *src);
34718|  25.1k|    const __m256i chk =
34719|  25.1k|        _mm256_adds_epi8(_mm256_shuffle_epi8(check_values, check_hash), *src);
34720|  25.1k|    const int mask = _mm256_movemask_epi8(chk);
34721|  25.1k|    if (!ignore_garbage && mask) {
  ------------------
  |  Branch (34721:9): [True: 25.1k, Folded]
  |  Branch (34721:28): [True: 7.56k, False: 17.6k]
  ------------------
34722|  7.56k|      __m256i ascii_space =
34723|  7.56k|          _mm256_cmpeq_epi8(_mm256_shuffle_epi8(ascii_space_tbl, *src), *src);
34724|  7.56k|      *error = (mask ^ _mm256_movemask_epi8(ascii_space));
34725|  7.56k|    }
34726|  25.1k|    *src = out;
34727|  25.1k|    return (uint32_t)mask;
34728|  25.1k|  }

_ZN7simdutf6resultC2ENS_10error_codeEm:
  890|  18.3k|      : error{err}, count{pos} {}
_ZNK7simdutf6result5is_okEv:
  892|  18.3k|  simdutf_really_inline simdutf_constexpr23 bool is_ok() const noexcept {
  893|  18.3k|    return error == error_code::SUCCESS;
  894|  18.3k|  }
_ZN7simdutf11full_resultC2ENS_10error_codeEmm:
  914|  18.2k|      : error{err}, input_count{pos_in}, output_count{pos_out} {}
_ZN7simdutf11full_resultC2ENS_10error_codeEmmb:
  917|     15|      : error{err}, input_count{pos_in}, output_count{pos_out},
  918|     15|        padding_error{padding_err} {}
_ZNK7simdutf11full_resultcvNS_6resultEEv:
  920|  18.3k|  simdutf_really_inline simdutf_constexpr23 operator result() const noexcept {
  921|  18.3k|    if (error == error_code::SUCCESS) {
  ------------------
  |  Branch (921:9): [True: 18.0k, False: 235]
  ------------------
  922|  18.0k|      return result{error, output_count};
  923|  18.0k|    } else {
  924|    235|      return result{error, input_count};
  925|    235|    }
  926|  18.3k|  }
_ZN7simdutf6scalar14u32_swap_bytesEj:
 1715|  1.16k|u32_swap_bytes(const uint32_t word) {
 1716|  1.16k|  return ((word >> 24) & 0xff) |      // move byte 3 to byte 0
 1717|  1.16k|         ((word << 8) & 0xff0000) |   // move byte 1 to byte 2
 1718|  1.16k|         ((word >> 8) & 0xff00) |     // move byte 2 to byte 1
 1719|  1.16k|         ((word << 24) & 0xff000000); // byte 0 to byte 3
 1720|  1.16k|}
_ZN7simdutf10is_partialENS_27last_chunk_handling_optionsE:
10206|  35.2k|is_partial(last_chunk_handling_options options) {
10207|  35.2k|  return (options == stop_before_partial) || (options == only_full_chunks);
  ------------------
  |  Branch (10207:10): [True: 0, False: 35.2k]
  |  Branch (10207:46): [True: 0, False: 35.2k]
  ------------------
10208|  35.2k|}
_ZNK7simdutf14implementation25required_instruction_setsEv:
13032|      2|  virtual uint32_t required_instruction_sets() const {
13033|      2|    return _required_instruction_sets;
13034|      2|  }
_ZN7simdutf14implementationC2EPKcS2_j:
14933|      5|      : _name(name), _description(description),
14934|      5|        _required_instruction_sets(required_instruction_sets) {}
_ZN7simdutf8internal29available_implementation_listC2Ev:
14965|      1|  simdutf_really_inline available_implementation_list() {}
simdutf.cpp:_ZN7simdutf8internalL30detect_supported_architecturesEv:
 1322|      1|static inline uint32_t detect_supported_architectures() {
 1323|      1|  uint32_t eax;
 1324|      1|  uint32_t ebx = 0;
 1325|      1|  uint32_t ecx = 0;
 1326|      1|  uint32_t edx = 0;
 1327|      1|  uint32_t host_isa = 0x0;
 1328|       |
 1329|       |  // EBX for EAX=0x1
 1330|      1|  eax = 0x1;
 1331|      1|  cpuid(&eax, &ebx, &ecx, &edx);
 1332|       |
 1333|      1|  if (ecx & cpuid_bit::sse42) {
  ------------------
  |  Branch (1333:7): [True: 1, False: 0]
  ------------------
 1334|      1|    host_isa |= instruction_set::SSE42;
 1335|      1|  }
 1336|       |
 1337|      1|  if (ecx & cpuid_bit::pclmulqdq) {
  ------------------
  |  Branch (1337:7): [True: 1, False: 0]
  ------------------
 1338|      1|    host_isa |= instruction_set::PCLMULQDQ;
 1339|      1|  }
 1340|       |
 1341|      1|  if ((ecx & cpuid_bit::osxsave) != cpuid_bit::osxsave) {
  ------------------
  |  Branch (1341:7): [True: 0, False: 1]
  ------------------
 1342|      0|    return host_isa;
 1343|      0|  }
 1344|       |
 1345|       |  // xgetbv for checking if the OS saves registers
 1346|      1|  uint64_t xcr0 = xgetbv();
 1347|       |
 1348|      1|  if ((xcr0 & cpuid_bit::xcr0_bit::avx256_saved) == 0) {
  ------------------
  |  Branch (1348:7): [True: 0, False: 1]
  ------------------
 1349|      0|    return host_isa;
 1350|      0|  }
 1351|       |  // ECX for EAX=0x7
 1352|      1|  eax = 0x7;
 1353|      1|  ecx = 0x0; // Sub-leaf = 0
 1354|      1|  cpuid(&eax, &ebx, &ecx, &edx);
 1355|      1|  if (ebx & cpuid_bit::ebx::avx2) {
  ------------------
  |  Branch (1355:7): [True: 1, False: 0]
  ------------------
 1356|      1|    host_isa |= instruction_set::AVX2;
 1357|      1|  }
 1358|      1|  if (ebx & cpuid_bit::ebx::bmi1) {
  ------------------
  |  Branch (1358:7): [True: 1, False: 0]
  ------------------
 1359|      1|    host_isa |= instruction_set::BMI1;
 1360|      1|  }
 1361|      1|  if (ebx & cpuid_bit::ebx::bmi2) {
  ------------------
  |  Branch (1361:7): [True: 1, False: 0]
  ------------------
 1362|      1|    host_isa |= instruction_set::BMI2;
 1363|      1|  }
 1364|      1|  if (!((xcr0 & cpuid_bit::xcr0_bit::avx512_saved) ==
  ------------------
  |  Branch (1364:7): [True: 1, False: 0]
  ------------------
 1365|      1|        cpuid_bit::xcr0_bit::avx512_saved)) {
 1366|      1|    return host_isa;
 1367|      1|  }
 1368|      0|  if (ebx & cpuid_bit::ebx::avx512f) {
  ------------------
  |  Branch (1368:7): [True: 0, False: 0]
  ------------------
 1369|      0|    host_isa |= instruction_set::AVX512F;
 1370|      0|  }
 1371|      0|  if (ebx & cpuid_bit::ebx::avx512bw) {
  ------------------
  |  Branch (1371:7): [True: 0, False: 0]
  ------------------
 1372|      0|    host_isa |= instruction_set::AVX512BW;
 1373|      0|  }
 1374|      0|  if (ebx & cpuid_bit::ebx::avx512cd) {
  ------------------
  |  Branch (1374:7): [True: 0, False: 0]
  ------------------
 1375|      0|    host_isa |= instruction_set::AVX512CD;
 1376|      0|  }
 1377|      0|  if (ebx & cpuid_bit::ebx::avx512dq) {
  ------------------
  |  Branch (1377:7): [True: 0, False: 0]
  ------------------
 1378|      0|    host_isa |= instruction_set::AVX512DQ;
 1379|      0|  }
 1380|      0|  if (ebx & cpuid_bit::ebx::avx512vl) {
  ------------------
  |  Branch (1380:7): [True: 0, False: 0]
  ------------------
 1381|      0|    host_isa |= instruction_set::AVX512VL;
 1382|      0|  }
 1383|      0|  if (ecx & cpuid_bit::ecx::avx512vbmi2) {
  ------------------
  |  Branch (1383:7): [True: 0, False: 0]
  ------------------
 1384|      0|    host_isa |= instruction_set::AVX512VBMI2;
 1385|      0|  }
 1386|      0|  if (ecx & cpuid_bit::ecx::avx512vpopcnt) {
  ------------------
  |  Branch (1386:7): [True: 0, False: 0]
  ------------------
 1387|      0|    host_isa |= instruction_set::AVX512VPOPCNTDQ;
 1388|      0|  }
 1389|      0|  return host_isa;
 1390|      1|}
simdutf.cpp:_ZN7simdutf8internalL5cpuidEPjS1_S1_S1_:
 1288|      2|                         uint32_t *edx) {
 1289|       |  #if defined(_MSC_VER)
 1290|       |  int cpu_info[4];
 1291|       |  __cpuidex(cpu_info, *eax, *ecx);
 1292|       |  *eax = cpu_info[0];
 1293|       |  *ebx = cpu_info[1];
 1294|       |  *ecx = cpu_info[2];
 1295|       |  *edx = cpu_info[3];
 1296|       |  #elif (defined(HAVE_GCC_GET_CPUID) && defined(USE_GCC_GET_CPUID)) ||         \
 1297|       |      defined(__FILC__)
 1298|       |  uint32_t level = *eax;
 1299|       |  __get_cpuid(level, eax, ebx, ecx, edx);
 1300|       |  #else
 1301|      2|  uint32_t a = *eax, b, c = *ecx, d;
 1302|      2|  asm volatile("cpuid\n\t" : "+a"(a), "=b"(b), "+c"(c), "=d"(d));
 1303|      2|  *eax = a;
 1304|      2|  *ebx = b;
 1305|      2|  *ecx = c;
 1306|      2|  *edx = d;
 1307|      2|  #endif
 1308|      2|}
simdutf.cpp:_ZN7simdutf8internalL6xgetbvEv:
 1310|      1|static inline uint64_t xgetbv() {
 1311|       |  #if defined(_MSC_VER)
 1312|       |  return _xgetbv(0);
 1313|       |  #elif defined(__FILC__)
 1314|       |  return zxgetbv();
 1315|       |  #else
 1316|      1|  uint32_t xcr0_lo, xcr0_hi;
 1317|      1|  asm volatile("xgetbv\n\t" : "=a"(xcr0_lo), "=d"(xcr0_hi) : "c"(0));
 1318|      1|  return xcr0_lo | ((uint64_t)xcr0_hi << 32);
 1319|      1|  #endif
 1320|      1|}
_ZN7simdutf8internal10atomic_ptrIKNS_14implementationEEaSEPS3_:
15036|      1|  atomic_ptr &operator=(T *_ptr) {
15037|      1|    ptr = _ptr;
15038|      1|    return *this;
15039|      1|  }
_ZN7simdutf8internal10atomic_ptrIKNS_14implementationEEcvPS3_Ev:
15033|      1|  operator T *() { return ptr.load(); }
_ZN7simdutf8internal10atomic_ptrIKNS_14implementationEEC2EPS3_:
15013|      1|  atomic_ptr(T *_ptr) : ptr{_ptr} {}
simdutf.cpp:_ZN7simdutf6scalar12_GLOBAL__N_16base6413is_eight_byteIcEEbT_:
11167|   139k|template <class char_type> simdutf_constexpr23 bool is_eight_byte(char_type c) {
11168|   139k|  if constexpr (sizeof(char_type) == 1) {
11169|   139k|    return true;
11170|   139k|  }
11171|      0|  return uint8_t(c) == c;
11172|   139k|}
_ZN7simdutf8internal10atomic_ptrIKNS_14implementationEEptEv:
15035|  18.3k|  T *operator->() { return ptr.load(); }
simdutf.cpp:_ZN7simdutf6scalar12_GLOBAL__N_16base648find_endIcEENS2_13reduced_inputEPKT_mNS_14base64_optionsE:
11248|  18.3k|                                           simdutf::base64_options options) {
11249|  18.3k|  const uint8_t *to_base64 =
11250|  18.3k|      (options & base64_default_or_url)
  ------------------
  |  Branch (11250:7): [True: 0, False: 18.3k]
  ------------------
11251|  18.3k|          ? tables::base64::to_base64_default_or_url_value
11252|  18.3k|          : ((options & base64_url) ? tables::base64::to_base64_url_value
  ------------------
  |  Branch (11252:14): [True: 0, False: 18.3k]
  ------------------
11253|  18.3k|                                    : tables::base64::to_base64_value);
11254|  18.3k|  const bool ignore_garbage =
11255|  18.3k|      (options == base64_options::base64_url_accept_garbage) ||
  ------------------
  |  Branch (11255:7): [True: 0, False: 18.3k]
  ------------------
11256|  18.3k|      (options == base64_options::base64_default_accept_garbage) ||
  ------------------
  |  Branch (11256:7): [True: 0, False: 18.3k]
  ------------------
11257|  18.3k|      (options == base64_options::base64_default_or_url_accept_garbage);
  ------------------
  |  Branch (11257:7): [True: 0, False: 18.3k]
  ------------------
11258|       |
11259|  18.3k|  size_t equalsigns = 0;
11260|       |  // We intentionally include trailing spaces in the full input length.
11261|       |  // See https://github.com/simdutf/simdutf/issues/824
11262|  18.3k|  size_t full_input_length = srclen;
11263|       |  // skip trailing spaces
11264|  18.7k|  while (!ignore_garbage && srclen > 0 &&
  ------------------
  |  Branch (11264:10): [True: 18.7k, False: 0]
  |  Branch (11264:29): [True: 18.7k, False: 4]
  ------------------
11265|  18.7k|         scalar::base64::is_eight_byte(src[srclen - 1]) &&
  ------------------
  |  Branch (11265:10): [True: 18.7k, False: 0]
  ------------------
11266|  18.7k|         to_base64[uint8_t(src[srclen - 1])] == 64) {
  ------------------
  |  Branch (11266:10): [True: 443, False: 18.3k]
  ------------------
11267|    443|    srclen--;
11268|    443|  }
11269|  18.3k|  size_t equallocation =
11270|  18.3k|      srclen; // location of the first padding character if any
11271|  18.3k|  if (ignore_garbage) {
  ------------------
  |  Branch (11271:7): [True: 0, False: 18.3k]
  ------------------
11272|       |    // Technically, we don't need to find the first padding character, we can
11273|       |    // just change our algorithms, but it adds substantial complexity.
11274|      0|    auto it = simdutf::find(src, src + srclen, '=');
11275|      0|    if (it != src + srclen) {
  ------------------
  |  Branch (11275:9): [True: 0, False: 0]
  ------------------
11276|      0|      equallocation = it - src;
11277|      0|      equalsigns = 1;
11278|      0|      srclen = equallocation;
11279|      0|      full_input_length = equallocation + 1;
11280|      0|    }
11281|      0|    return {equalsigns, equallocation, srclen, full_input_length};
11282|      0|  }
11283|  18.3k|  if (!ignore_garbage && srclen > 0 && src[srclen - 1] == '=') {
  ------------------
  |  Branch (11283:7): [True: 18.3k, False: 0]
  |  Branch (11283:26): [True: 18.3k, False: 4]
  |  Branch (11283:40): [True: 1.59k, False: 16.7k]
  ------------------
11284|       |    // This is the last '=' sign.
11285|  1.59k|    equallocation = srclen - 1;
11286|  1.59k|    srclen--;
11287|  1.59k|    equalsigns = 1;
11288|       |    // skip trailing spaces
11289|  1.83k|    while (srclen > 0 && scalar::base64::is_eight_byte(src[srclen - 1]) &&
  ------------------
  |  Branch (11289:12): [True: 1.82k, False: 3]
  |  Branch (11289:26): [True: 1.82k, False: 0]
  ------------------
11290|  1.82k|           to_base64[uint8_t(src[srclen - 1])] == 64) {
  ------------------
  |  Branch (11290:12): [True: 240, False: 1.58k]
  ------------------
11291|    240|      srclen--;
11292|    240|    }
11293|  1.59k|    if (srclen > 0 && src[srclen - 1] == '=') {
  ------------------
  |  Branch (11293:9): [True: 1.58k, False: 3]
  |  Branch (11293:23): [True: 809, False: 779]
  ------------------
11294|       |      // This is the second '=' sign.
11295|    809|      equallocation = srclen - 1;
11296|    809|      srclen--;
11297|    809|      equalsigns = 2;
11298|    809|    }
11299|  1.59k|  }
11300|  18.3k|  return {equalsigns, equallocation, srclen, full_input_length};
11301|  18.3k|}
simdutf.cpp:_ZN7simdutf6scalar12_GLOBAL__N_16base6417patch_tail_resultENS_11full_resultEmmmmNS_27last_chunk_handling_optionsE:
11542|  17.6k|                  last_chunk_handling_options last_chunk_options) {
11543|  17.6k|  r.input_count += previous_input;
11544|  17.6k|  r.output_count += previous_output;
11545|  17.6k|  if (r.padding_error) {
  ------------------
  |  Branch (11545:7): [True: 12, False: 17.6k]
  ------------------
11546|     12|    r.input_count = equallocation;
11547|     12|  }
11548|       |
11549|  17.6k|  if (r.error == error_code::SUCCESS) {
  ------------------
  |  Branch (11549:7): [True: 17.5k, False: 102]
  ------------------
11550|  17.5k|    if (!is_partial(last_chunk_options)) {
  ------------------
  |  Branch (11550:9): [True: 17.5k, False: 0]
  ------------------
11551|       |      // A success when we are not in stop_before_partial mode.
11552|       |      // means that we have consumed the whole input buffer.
11553|  17.5k|      r.input_count = full_input_length;
11554|  17.5k|    } else if (r.output_count % 3 != 0) {
  ------------------
  |  Branch (11554:16): [True: 0, False: 0]
  ------------------
11555|      0|      r.input_count = full_input_length;
11556|      0|    }
11557|  17.5k|  }
11558|  17.6k|  return r;
11559|  17.6k|}
simdutf.cpp:_ZN7simdutf6scalar12_GLOBAL__N_16base6418base64_tail_decodeIcEENS_11full_resultEPcPKT_mmNS_14base64_optionsENS_27last_chunk_handling_optionsE:
11519|  17.6k|    base64_options options, last_chunk_handling_options last_chunk_options) {
11520|  17.6k|  return base64_tail_decode_impl<false>(dst, 0, src, length, padding_characters,
11521|  17.6k|                                        options, last_chunk_options);
11522|  17.6k|}
simdutf.cpp:_ZN7simdutf6scalar12_GLOBAL__N_16base6423base64_tail_decode_implILb0EcEENS_11full_resultEPcmPKT0_mmNS_14base64_optionsENS_27last_chunk_handling_optionsE:
11312|  17.6k|    base64_options options, last_chunk_handling_options last_chunk_options) {
11313|  17.6k|  char *dstend = dst + outlen;
11314|  17.6k|  (void)dstend;
11315|       |  // This looks like 10 branches, but we expect the compiler to resolve this to
11316|       |  // two branches (easily predicted):
11317|  17.6k|  const uint8_t *to_base64 =
11318|  17.6k|      (options & base64_default_or_url)
  ------------------
  |  Branch (11318:7): [True: 0, False: 17.6k]
  ------------------
11319|  17.6k|          ? tables::base64::to_base64_default_or_url_value
11320|  17.6k|          : ((options & base64_url) ? tables::base64::to_base64_url_value
  ------------------
  |  Branch (11320:14): [True: 0, False: 17.6k]
  ------------------
11321|  17.6k|                                    : tables::base64::to_base64_value);
11322|  17.6k|  const uint32_t *d0 =
11323|  17.6k|      (options & base64_default_or_url)
  ------------------
  |  Branch (11323:7): [True: 0, False: 17.6k]
  ------------------
11324|  17.6k|          ? tables::base64::base64_default_or_url::d0
11325|  17.6k|          : ((options & base64_url) ? tables::base64::base64_url::d0
  ------------------
  |  Branch (11325:14): [True: 0, False: 17.6k]
  ------------------
11326|  17.6k|                                    : tables::base64::base64_default::d0);
11327|  17.6k|  const uint32_t *d1 =
11328|  17.6k|      (options & base64_default_or_url)
  ------------------
  |  Branch (11328:7): [True: 0, False: 17.6k]
  ------------------
11329|  17.6k|          ? tables::base64::base64_default_or_url::d1
11330|  17.6k|          : ((options & base64_url) ? tables::base64::base64_url::d1
  ------------------
  |  Branch (11330:14): [True: 0, False: 17.6k]
  ------------------
11331|  17.6k|                                    : tables::base64::base64_default::d1);
11332|  17.6k|  const uint32_t *d2 =
11333|  17.6k|      (options & base64_default_or_url)
  ------------------
  |  Branch (11333:7): [True: 0, False: 17.6k]
  ------------------
11334|  17.6k|          ? tables::base64::base64_default_or_url::d2
11335|  17.6k|          : ((options & base64_url) ? tables::base64::base64_url::d2
  ------------------
  |  Branch (11335:14): [True: 0, False: 17.6k]
  ------------------
11336|  17.6k|                                    : tables::base64::base64_default::d2);
11337|  17.6k|  const uint32_t *d3 =
11338|  17.6k|      (options & base64_default_or_url)
  ------------------
  |  Branch (11338:7): [True: 0, False: 17.6k]
  ------------------
11339|  17.6k|          ? tables::base64::base64_default_or_url::d3
11340|  17.6k|          : ((options & base64_url) ? tables::base64::base64_url::d3
  ------------------
  |  Branch (11340:14): [True: 0, False: 17.6k]
  ------------------
11341|  17.6k|                                    : tables::base64::base64_default::d3);
11342|  17.6k|  const bool ignore_garbage =
11343|  17.6k|      (options == base64_options::base64_url_accept_garbage) ||
  ------------------
  |  Branch (11343:7): [True: 0, False: 17.6k]
  ------------------
11344|  17.6k|      (options == base64_options::base64_default_accept_garbage) ||
  ------------------
  |  Branch (11344:7): [True: 0, False: 17.6k]
  ------------------
11345|  17.6k|      (options == base64_options::base64_default_or_url_accept_garbage);
  ------------------
  |  Branch (11345:7): [True: 0, False: 17.6k]
  ------------------
11346|       |
11347|  17.6k|  const char_type *srcend = src + length;
11348|  17.6k|  const char_type *srcinit = src;
11349|  17.6k|  const char *dstinit = dst;
11350|       |
11351|  17.6k|  uint32_t x;
11352|  17.6k|  size_t idx;
11353|  17.6k|  uint8_t buffer[4];
11354|  17.7k|  while (true) {
  ------------------
  |  Branch (11354:10): [True: 17.7k, Folded]
  ------------------
11355|  45.0k|    while (srcend - src >= 4 && is_eight_byte(src[0]) &&
  ------------------
  |  Branch (11355:12): [True: 27.4k, False: 17.6k]
  |  Branch (11355:33): [True: 27.4k, False: 0]
  ------------------
11356|  27.4k|           is_eight_byte(src[1]) && is_eight_byte(src[2]) &&
  ------------------
  |  Branch (11356:12): [True: 27.4k, False: 0]
  |  Branch (11356:37): [True: 27.4k, False: 0]
  ------------------
11357|  27.4k|           is_eight_byte(src[3]) &&
  ------------------
  |  Branch (11357:12): [True: 27.4k, False: 0]
  ------------------
11358|  27.4k|           (x = d0[uint8_t(src[0])] | d1[uint8_t(src[1])] |
  ------------------
  |  Branch (11358:12): [True: 27.3k, False: 129]
  ------------------
11359|  27.4k|                d2[uint8_t(src[2])] | d3[uint8_t(src[3])]) < 0x01FFFFFF) {
11360|  27.3k|      if (check_capacity && dstend - dst < 3) {
  ------------------
  |  Branch (11360:11): [Folded, False: 27.3k]
  |  Branch (11360:29): [True: 0, False: 0]
  ------------------
11361|      0|        return {OUTPUT_BUFFER_TOO_SMALL, size_t(src - srcinit),
11362|      0|                size_t(dst - dstinit)};
11363|      0|      }
11364|  27.3k|      *dst++ = static_cast<char>(x & 0xFF);
11365|  27.3k|      *dst++ = static_cast<char>((x >> 8) & 0xFF);
11366|  27.3k|      *dst++ = static_cast<char>((x >> 16) & 0xFF);
11367|  27.3k|      src += 4;
11368|  27.3k|    }
11369|  17.7k|    const char_type *srccur = src;
11370|  17.7k|    idx = 0;
11371|       |    // we need at least four characters.
11372|  17.7k|#ifdef __clang__
11373|       |    // If possible, we read four characters at a time. (It is an optimization.)
11374|  17.7k|    if (ignore_garbage && src + 4 <= srcend) {
  ------------------
  |  Branch (11374:9): [True: 0, False: 17.7k]
  |  Branch (11374:27): [True: 0, False: 0]
  ------------------
11375|      0|      char_type c0 = src[0];
11376|      0|      char_type c1 = src[1];
11377|      0|      char_type c2 = src[2];
11378|      0|      char_type c3 = src[3];
11379|       |
11380|      0|      uint8_t code0 = to_base64[uint8_t(c0)];
11381|      0|      uint8_t code1 = to_base64[uint8_t(c1)];
11382|      0|      uint8_t code2 = to_base64[uint8_t(c2)];
11383|      0|      uint8_t code3 = to_base64[uint8_t(c3)];
11384|       |
11385|      0|      buffer[idx] = code0;
11386|      0|      idx += (is_eight_byte(c0) && code0 <= 63);
  ------------------
  |  Branch (11386:15): [True: 0, False: 0]
  |  Branch (11386:36): [True: 0, False: 0]
  ------------------
11387|      0|      buffer[idx] = code1;
11388|      0|      idx += (is_eight_byte(c1) && code1 <= 63);
  ------------------
  |  Branch (11388:15): [True: 0, False: 0]
  |  Branch (11388:36): [True: 0, False: 0]
  ------------------
11389|      0|      buffer[idx] = code2;
11390|      0|      idx += (is_eight_byte(c2) && code2 <= 63);
  ------------------
  |  Branch (11390:15): [True: 0, False: 0]
  |  Branch (11390:36): [True: 0, False: 0]
  ------------------
11391|      0|      buffer[idx] = code3;
11392|      0|      idx += (is_eight_byte(c3) && code3 <= 63);
  ------------------
  |  Branch (11392:15): [True: 0, False: 0]
  |  Branch (11392:36): [True: 0, False: 0]
  ------------------
11393|      0|      src += 4;
11394|      0|    }
11395|  17.7k|#endif
11396|  24.4k|    while ((idx < 4) && (src < srcend)) {
  ------------------
  |  Branch (11396:12): [True: 24.3k, False: 63]
  |  Branch (11396:25): [True: 6.74k, False: 17.6k]
  ------------------
11397|  6.74k|      char_type c = *src;
11398|       |
11399|  6.74k|      uint8_t code = to_base64[uint8_t(c)];
11400|  6.74k|      buffer[idx] = uint8_t(code);
11401|  6.74k|      if (is_eight_byte(c) && code <= 63) {
  ------------------
  |  Branch (11401:11): [True: 6.74k, False: 0]
  |  Branch (11401:31): [True: 4.49k, False: 2.24k]
  ------------------
11402|  4.49k|        idx++;
11403|  4.49k|      } else if (!ignore_garbage &&
  ------------------
  |  Branch (11403:18): [True: 2.24k, False: 0]
  ------------------
11404|  2.24k|                 (code > 64 || !scalar::base64::is_eight_byte(c))) {
  ------------------
  |  Branch (11404:19): [True: 50, False: 2.19k]
  |  Branch (11404:32): [True: 0, False: 2.19k]
  ------------------
11405|     50|        return {INVALID_BASE64_CHARACTER, size_t(src - srcinit),
11406|     50|                size_t(dst - dstinit)};
11407|  2.19k|      } else {
11408|       |        // We have a space or a newline or garbage. We ignore it.
11409|  2.19k|      }
11410|  6.69k|      src++;
11411|  6.69k|    }
11412|  17.6k|    if (idx != 4) {
  ------------------
  |  Branch (11412:9): [True: 17.6k, False: 63]
  ------------------
11413|  17.6k|      simdutf_log_assert(idx < 4, "idx should be less than 4");
11414|       |      // We never should have that the number of base64 characters + the
11415|       |      // number of padding characters is more than 4.
11416|  17.6k|      if (!ignore_garbage && (idx + padding_characters > 4)) {
  ------------------
  |  Branch (11416:11): [True: 17.6k, False: 0]
  |  Branch (11416:30): [True: 2, False: 17.6k]
  ------------------
11417|      2|        return {INVALID_BASE64_CHARACTER, size_t(src - srcinit),
11418|      2|                size_t(dst - dstinit), true};
11419|      2|      }
11420|       |
11421|       |      // The idea here is that in loose mode,
11422|       |      // if there is padding at all, it must be used
11423|       |      // to form 4-wise chunk. However, in loose mode,
11424|       |      // we do accept no padding at all.
11425|  17.6k|      if (!ignore_garbage &&
  ------------------
  |  Branch (11425:11): [True: 17.6k, False: 0]
  ------------------
11426|  17.6k|          last_chunk_options == last_chunk_handling_options::loose &&
  ------------------
  |  Branch (11426:11): [True: 17.6k, False: 0]
  ------------------
11427|  17.6k|          (idx >= 2) && padding_characters > 0 &&
  ------------------
  |  Branch (11427:11): [True: 1.65k, False: 15.9k]
  |  Branch (11427:25): [True: 1.57k, False: 84]
  ------------------
11428|  1.57k|          ((idx + padding_characters) & 3) != 0) {
  ------------------
  |  Branch (11428:11): [True: 7, False: 1.56k]
  ------------------
11429|      7|        return {INVALID_BASE64_CHARACTER, size_t(src - srcinit),
11430|      7|                size_t(dst - dstinit), true};
11431|      7|      } else
11432|       |
11433|       |        // The idea here is that in strict mode, we do not want to accept
11434|       |        // incomplete base64 chunks. So if the chunk was otherwise valid, we
11435|       |        // return BASE64_INPUT_REMAINDER.
11436|  17.6k|        if (!ignore_garbage &&
  ------------------
  |  Branch (11436:13): [True: 17.6k, False: 0]
  ------------------
11437|  17.6k|            last_chunk_options == last_chunk_handling_options::strict &&
  ------------------
  |  Branch (11437:13): [True: 0, False: 17.6k]
  ------------------
11438|      0|            (idx >= 2) && ((idx + padding_characters) & 3) != 0) {
  ------------------
  |  Branch (11438:13): [True: 0, False: 0]
  |  Branch (11438:27): [True: 0, False: 0]
  ------------------
11439|       |          // The partial chunk was at src - idx
11440|      0|          return {BASE64_INPUT_REMAINDER, size_t(src - srcinit),
11441|      0|                  size_t(dst - dstinit), true};
11442|      0|        } else
11443|       |          // If there is a partial chunk with insufficient padding, with
11444|       |          // stop_before_partial, we need to just ignore it. In "only full"
11445|       |          // mode, skip the minute there are padding characters.
11446|  17.6k|          if ((last_chunk_options ==
  ------------------
  |  Branch (11446:16): [True: 0, False: 17.6k]
  ------------------
11447|  17.6k|                   last_chunk_handling_options::stop_before_partial &&
11448|      0|               (padding_characters + idx < 4) && (idx != 0) &&
  ------------------
  |  Branch (11448:16): [True: 0, False: 0]
  |  Branch (11448:50): [True: 0, False: 0]
  ------------------
11449|      0|               (idx >= 2 || padding_characters == 0)) ||
  ------------------
  |  Branch (11449:17): [True: 0, False: 0]
  |  Branch (11449:29): [True: 0, False: 0]
  ------------------
11450|  17.6k|              (last_chunk_options ==
  ------------------
  |  Branch (11450:16): [True: 0, False: 17.6k]
  ------------------
11451|  17.6k|                   last_chunk_handling_options::only_full_chunks &&
11452|      0|               (idx >= 2 || padding_characters == 0))) {
  ------------------
  |  Branch (11452:17): [True: 0, False: 0]
  |  Branch (11452:29): [True: 0, False: 0]
  ------------------
11453|       |            // partial means that we are *not* going to consume the read
11454|       |            // characters. We need to rewind the src pointer.
11455|      0|            src = srccur;
11456|      0|            return {SUCCESS, size_t(src - srcinit), size_t(dst - dstinit)};
11457|  17.6k|          } else {
11458|  17.6k|            if (idx == 2) {
  ------------------
  |  Branch (11458:17): [True: 840, False: 16.7k]
  ------------------
11459|    840|              uint32_t triple = (uint32_t(buffer[0]) << 3 * 6) +
11460|    840|                                (uint32_t(buffer[1]) << 2 * 6);
11461|    840|              if (!ignore_garbage &&
  ------------------
  |  Branch (11461:19): [True: 840, False: 0]
  ------------------
11462|    840|                  (last_chunk_options == last_chunk_handling_options::strict) &&
  ------------------
  |  Branch (11462:19): [True: 0, False: 840]
  ------------------
11463|      0|                  (triple & 0xffff)) {
  ------------------
  |  Branch (11463:19): [True: 0, False: 0]
  ------------------
11464|      0|                return {BASE64_EXTRA_BITS, size_t(src - srcinit),
11465|      0|                        size_t(dst - dstinit)};
11466|      0|              }
11467|    840|              if (check_capacity && dstend - dst < 1) {
  ------------------
  |  Branch (11467:19): [Folded, False: 840]
  |  Branch (11467:37): [True: 0, False: 0]
  ------------------
11468|      0|                return {OUTPUT_BUFFER_TOO_SMALL, size_t(srccur - srcinit),
11469|      0|                        size_t(dst - dstinit)};
11470|      0|              }
11471|    840|              *dst++ = static_cast<char>((triple >> 16) & 0xFF);
11472|  16.7k|            } else if (idx == 3) {
  ------------------
  |  Branch (11472:24): [True: 811, False: 15.9k]
  ------------------
11473|    811|              uint32_t triple = (uint32_t(buffer[0]) << 3 * 6) +
11474|    811|                                (uint32_t(buffer[1]) << 2 * 6) +
11475|    811|                                (uint32_t(buffer[2]) << 1 * 6);
11476|    811|              if (!ignore_garbage &&
  ------------------
  |  Branch (11476:19): [True: 811, False: 0]
  ------------------
11477|    811|                  (last_chunk_options == last_chunk_handling_options::strict) &&
  ------------------
  |  Branch (11477:19): [True: 0, False: 811]
  ------------------
11478|      0|                  (triple & 0xff)) {
  ------------------
  |  Branch (11478:19): [True: 0, False: 0]
  ------------------
11479|      0|                return {BASE64_EXTRA_BITS, size_t(src - srcinit),
11480|      0|                        size_t(dst - dstinit)};
11481|      0|              }
11482|    811|              if (check_capacity && dstend - dst < 2) {
  ------------------
  |  Branch (11482:19): [Folded, False: 811]
  |  Branch (11482:37): [True: 0, False: 0]
  ------------------
11483|      0|                return {OUTPUT_BUFFER_TOO_SMALL, size_t(srccur - srcinit),
11484|      0|                        size_t(dst - dstinit)};
11485|      0|              }
11486|    811|              *dst++ = static_cast<char>((triple >> 16) & 0xFF);
11487|    811|              *dst++ = static_cast<char>((triple >> 8) & 0xFF);
11488|  15.9k|            } else if (!ignore_garbage && idx == 1 &&
  ------------------
  |  Branch (11488:24): [True: 15.9k, False: 0]
  |  Branch (11488:43): [True: 40, False: 15.9k]
  ------------------
11489|     40|                       (!is_partial(last_chunk_options) ||
  ------------------
  |  Branch (11489:25): [True: 40, False: 0]
  ------------------
11490|      0|                        (is_partial(last_chunk_options) &&
  ------------------
  |  Branch (11490:26): [True: 0, False: 0]
  ------------------
11491|     40|                         padding_characters > 0))) {
  ------------------
  |  Branch (11491:26): [True: 0, False: 0]
  ------------------
11492|     40|              return {BASE64_INPUT_REMAINDER, size_t(src - srcinit),
11493|     40|                      size_t(dst - dstinit)};
11494|  15.9k|            } else if (!ignore_garbage && idx == 0 && padding_characters > 0) {
  ------------------
  |  Branch (11494:24): [True: 15.9k, False: 0]
  |  Branch (11494:43): [True: 15.9k, False: 0]
  |  Branch (11494:55): [True: 3, False: 15.9k]
  ------------------
11495|      3|              return {INVALID_BASE64_CHARACTER, size_t(src - srcinit),
11496|      3|                      size_t(dst - dstinit), true};
11497|      3|            }
11498|  17.5k|            return {SUCCESS, size_t(src - srcinit), size_t(dst - dstinit)};
11499|  17.6k|          }
11500|  17.6k|    }
11501|     63|    if (check_capacity && dstend - dst < 3) {
  ------------------
  |  Branch (11501:9): [Folded, False: 63]
  |  Branch (11501:27): [True: 0, False: 0]
  ------------------
11502|      0|      return {OUTPUT_BUFFER_TOO_SMALL, size_t(srccur - srcinit),
11503|      0|              size_t(dst - dstinit)};
11504|      0|    }
11505|     63|    uint32_t triple =
11506|     63|        (uint32_t(buffer[0]) << 3 * 6) + (uint32_t(buffer[1]) << 2 * 6) +
11507|     63|        (uint32_t(buffer[2]) << 1 * 6) + (uint32_t(buffer[3]) << 0 * 6);
11508|     63|    *dst++ = static_cast<char>((triple >> 16) & 0xFF);
11509|     63|    *dst++ = static_cast<char>((triple >> 8) & 0xFF);
11510|     63|    *dst++ = static_cast<char>(triple & 0xFF);
11511|     63|  }
11512|  17.6k|}

