LLVMFuzzerTestOneInput:
   16|  10.8k|{
   17|       |   // use a vector with null termination instead of a std::string to avoid
   18|       |   // small string optimization to hide bounds problems
   19|  10.8k|   std::vector<char> buffer{Data, Data + Size};
   20|       |
   21|       |   // non-null terminated
   22|  10.8k|   {
   23|  10.8k|      const auto& input = buffer;
   24|  10.8k|      [[maybe_unused]] auto s = glz::read_beve<my_struct>(input);
   25|       |
   26|  10.8k|      std::string json_output{};
   27|  10.8k|      [[maybe_unused]] auto ec = glz::beve_to_json(input, json_output);
   28|  10.8k|   }
   29|       |
   30|       |   // null terminated
   31|  10.8k|   {
   32|  10.8k|      buffer.push_back('\0');
   33|  10.8k|      const auto& input = buffer;
   34|  10.8k|      [[maybe_unused]] auto s = glz::read_beve<my_struct>(input);
   35|  10.8k|   }
   36|       |
   37|  10.8k|   return 0;
   38|  10.8k|}

_ZN3glz12beve_to_jsonITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__16vectorIcNS2_9allocatorIcEEEENS2_12basic_stringIcNS2_11char_traitsIcEES5_EEEENS_9error_ctxERKT0_RT1_:
  744|  10.8k|   {
  745|  10.8k|      size_t ix{}; // write index
  746|       |
  747|  10.8k|      auto* it = beve.data();
  748|  10.8k|      auto* end = it + beve.size();
  749|       |
  750|  10.8k|      context ctx{};
  751|       |
  752|  10.8k|      if (it >= end) {
  ------------------
  |  Branch (752:11): [True: 0, False: 10.8k]
  ------------------
  753|      0|         return {0, error_code::unexpected_end};
  754|      0|      }
  755|       |
  756|  10.8k|      bool needs_separator = false;
  757|       |
  758|  5.08M|      while (it < end) {
  ------------------
  |  Branch (758:14): [True: 5.08M, False: 2.92k]
  ------------------
  759|  5.08M|         const bool is_delimiter = uint8_t(*it) == tag::delimiter;
  760|       |
  761|  5.08M|         if (needs_separator && !is_delimiter) {
  ------------------
  |  Branch (761:14): [True: 5.06M, False: 12.7k]
  |  Branch (761:33): [True: 5.06M, False: 1.41k]
  ------------------
  762|  5.06M|            if (!detail::emit_char(ctx, '\n', out, ix)) {
  ------------------
  |  Branch (762:17): [True: 0, False: 5.06M]
  ------------------
  763|      0|               return {ix, ctx.error};
  764|      0|            }
  765|  5.06M|         }
  766|  5.08M|         needs_separator = !is_delimiter;
  767|       |
  768|  5.08M|         detail::beve_to_json_value<Opts>(ctx, it, end, out, ix, 0);
  769|  5.08M|         if (bool(ctx.error)) {
  ------------------
  |  Branch (769:14): [True: 7.90k, False: 5.07M]
  ------------------
  770|  7.90k|            return {ix, ctx.error};
  771|  7.90k|         }
  772|  5.08M|      }
  773|       |
  774|  2.92k|      if constexpr (resizable<JSONBuffer>) {
  775|  2.92k|         out.resize(ix);
  776|  2.92k|      }
  777|       |
  778|       |      // count is the number of bytes written. A resizable buffer carries its own size, but a
  779|       |      // fixed-size one has no other way to learn how much of it now holds JSON.
  780|  2.92k|      return {ix};
  781|  10.8k|   }
_ZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_j:
  114|  47.2M|      {
  115|       |         // Check recursion depth limit
  116|  47.2M|         if (recursive_depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (116:14): [True: 11, False: 47.2M]
  ------------------
  117|     11|            ctx.error = error_code::exceeded_max_recursive_depth;
  118|     11|            return;
  119|     11|         }
  120|       |
  121|  47.2M|         if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (121:14): [True: 752, False: 47.2M]
  ------------------
  122|    752|            ctx.error = error_code::syntax_error;
  123|    752|            return;
  124|    752|         }
  125|  47.2M|         const auto tag = uint8_t(*it);
  126|  47.2M|         const auto type = tag & 0b00000'111;
  127|  47.2M|         switch (type) {
  128|  27.7M|         case tag::null: {
  ------------------
  |  Branch (128:10): [True: 27.7M, False: 19.4M]
  ------------------
  129|  27.7M|            if (tag & tag::boolean) {
  ------------------
  |  Branch (129:17): [True: 4.81M, False: 22.9M]
  ------------------
  130|  4.81M|               if (tag >> 4) {
  ------------------
  |  Branch (130:20): [True: 1.98M, False: 2.83M]
  ------------------
  131|  1.98M|                  if (!emit_literal<"true">(ctx, out, ix)) return;
  ------------------
  |  Branch (131:23): [True: 0, False: 1.98M]
  ------------------
  132|  1.98M|               }
  133|  2.83M|               else {
  134|  2.83M|                  if (!emit_literal<"false">(ctx, out, ix)) return;
  ------------------
  |  Branch (134:23): [True: 0, False: 2.83M]
  ------------------
  135|  2.83M|               }
  136|  4.81M|            }
  137|  22.9M|            else {
  138|  22.9M|               if (!emit_literal<"null">(ctx, out, ix)) return;
  ------------------
  |  Branch (138:20): [True: 0, False: 22.9M]
  ------------------
  139|  22.9M|            }
  140|  27.7M|            ++it;
  141|  27.7M|            break;
  142|  27.7M|         }
  143|   262k|         case tag::number: {
  ------------------
  |  Branch (143:10): [True: 262k, False: 46.9M]
  ------------------
  144|   262k|            ++it;
  145|   262k|            beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  146|   262k|            if (bool(ctx.error)) return;
  ------------------
  |  Branch (146:17): [True: 222, False: 262k]
  ------------------
  147|   262k|            break;
  148|   262k|         }
  149|   262k|         case tag::string: {
  ------------------
  |  Branch (149:10): [True: 28.6k, False: 47.2M]
  ------------------
  150|  28.6k|            ++it;
  151|  28.6k|            const auto n = int_from_compressed(ctx, it, end);
  152|  28.6k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (152:17): [True: 144, False: 28.5k]
  ------------------
  153|    144|               return;
  154|    144|            }
  155|  28.5k|            if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (155:17): [True: 175, False: 28.3k]
  ------------------
  156|    175|               ctx.error = error_code::unexpected_end;
  157|    175|               return;
  158|    175|            }
  159|  28.3k|            const sv value{reinterpret_cast<const char*>(it), n};
  160|  28.3k|            detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  161|  28.3k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (161:17): [True: 130, False: 28.2k]
  ------------------
  162|    130|               return;
  163|  28.2k|            it += n;
  164|  28.2k|            break;
  165|  28.3k|         }
  166|  22.3k|         case tag::object: {
  ------------------
  |  Branch (166:10): [True: 22.3k, False: 47.2M]
  ------------------
  167|  22.3k|            ++it;
  168|       |
  169|  22.3k|            if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (169:17): [True: 0, False: 22.3k]
  ------------------
  170|  22.3k|            {
  171|       |               // The indentation this object adds belongs to it, so every way out -- including an
  172|       |               // error return from a nested value -- puts the depth back.
  173|  22.3k|               const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (173:47): [Folded, False: 22.3k]
  ------------------
  174|       |
  175|       |               if constexpr (Opts.prettify) {
  176|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  177|       |               }
  178|       |
  179|  22.3k|               const auto key_type = (tag & 0b000'11'000) >> 3;
  180|  22.3k|               switch (key_type) {
  181|  14.9k|               case 0: {
  ------------------
  |  Branch (181:16): [True: 14.9k, False: 7.38k]
  ------------------
  182|       |                  // string key
  183|  14.9k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  184|  14.9k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (184:23): [True: 148, False: 14.8k]
  ------------------
  185|    148|                     return;
  186|    148|                  }
  187|   630k|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (187:38): [True: 617k, False: 12.1k]
  ------------------
  188|       |                     // convert the key
  189|   617k|                     const auto n = int_from_compressed(ctx, it, end);
  190|   617k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (190:26): [True: 555, False: 617k]
  ------------------
  191|    555|                        return;
  192|    555|                     }
  193|   617k|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (193:26): [True: 317, False: 617k]
  ------------------
  194|    317|                        ctx.error = error_code::unexpected_end;
  195|    317|                        return;
  196|    317|                     }
  197|   617k|                     const sv key{reinterpret_cast<const char*>(it), n};
  198|   617k|                     detail::emit_untrusted_string<Opts>(ctx, key, out, ix);
  199|   617k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (199:26): [True: 152, False: 616k]
  ------------------
  200|    152|                        return;
  201|       |                     if constexpr (Opts.prettify) {
  202|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  203|       |                     }
  204|   616k|                     else {
  205|   616k|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (205:29): [True: 0, False: 616k]
  ------------------
  206|   616k|                     }
  207|   616k|                     it += n;
  208|   616k|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  209|   616k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (209:26): [True: 1.66k, False: 615k]
  ------------------
  210|  1.66k|                        return;
  211|  1.66k|                     }
  212|   615k|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (212:26): [True: 614k, False: 538]
  ------------------
  213|   614k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (213:29): [True: 0, False: 614k]
  ------------------
  214|       |                        if constexpr (Opts.prettify) {
  215|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  216|       |                        }
  217|   614k|                     }
  218|   615k|                  }
  219|  12.1k|                  break;
  220|  14.8k|               }
  221|  12.1k|               case 1:
  ------------------
  |  Branch (221:16): [True: 5.28k, False: 17.0k]
  ------------------
  222|  5.28k|                  [[fallthrough]]; // signed integer key
  223|  7.37k|               case 2: {
  ------------------
  |  Branch (223:16): [True: 2.09k, False: 20.2k]
  ------------------
  224|       |                  // unsigned integer key
  225|  7.37k|                  const auto n_fields = int_from_compressed(ctx, it, end);
  226|  7.37k|                  if (bool(ctx.error)) {
  ------------------
  |  Branch (226:23): [True: 70, False: 7.30k]
  ------------------
  227|     70|                     return;
  228|     70|                  }
  229|  1.63M|                  for (size_t i = 0; i < n_fields; ++i) {
  ------------------
  |  Branch (229:38): [True: 1.62M, False: 5.88k]
  ------------------
  230|       |                     // convert the key
  231|  1.62M|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (231:26): [True: 0, False: 1.62M]
  ------------------
  232|  1.62M|                     beve_to_json_number<Opts>(tag, ctx, it, end, out, ix);
  233|  1.62M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (233:26): [True: 230, False: 1.62M]
  ------------------
  234|    230|                        return;
  235|    230|                     }
  236|  1.62M|                     if (!emit_char(ctx, '"', out, ix)) return;
  ------------------
  |  Branch (236:26): [True: 0, False: 1.62M]
  ------------------
  237|       |                     if constexpr (Opts.prettify) {
  238|       |                        if (!emit_literal<": ">(ctx, out, ix)) return;
  239|       |                     }
  240|  1.62M|                     else {
  241|  1.62M|                        if (!emit_char(ctx, ':', out, ix)) return;
  ------------------
  |  Branch (241:29): [True: 0, False: 1.62M]
  ------------------
  242|  1.62M|                     }
  243|  1.62M|                     beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  244|  1.62M|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (244:26): [True: 1.19k, False: 1.62M]
  ------------------
  245|  1.19k|                        return;
  246|  1.19k|                     }
  247|  1.62M|                     if (i != n_fields - 1) {
  ------------------
  |  Branch (247:26): [True: 1.62M, False: 562]
  ------------------
  248|  1.62M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (248:29): [True: 0, False: 1.62M]
  ------------------
  249|       |                        if constexpr (Opts.prettify) {
  250|       |                           if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  251|       |                        }
  252|  1.62M|                     }
  253|  1.62M|                  }
  254|  5.88k|                  break;
  255|  7.30k|               }
  256|  5.88k|               default: {
  ------------------
  |  Branch (256:16): [True: 18, False: 22.3k]
  ------------------
  257|     18|                  ctx.error = error_code::syntax_error;
  258|     18|                  return;
  259|  7.30k|               }
  260|  22.3k|               }
  261|  22.3k|            }
  262|       |
  263|       |            if constexpr (Opts.prettify) {
  264|       |               if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  265|       |            }
  266|  18.0k|            if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (266:17): [True: 0, False: 18.0k]
  ------------------
  267|  18.0k|            break;
  268|  18.0k|         }
  269|   138k|         case tag::typed_array: {
  ------------------
  |  Branch (269:10): [True: 138k, False: 47.1M]
  ------------------
  270|       |            // Check for aligned typed array (tag == 0x5C)
  271|   138k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (271:17): [True: 21.4k, False: 117k]
  ------------------
  272|  21.4k|               ++it; // skip aligned header
  273|  21.4k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (273:20): [True: 7, False: 21.4k]
  ------------------
  274|      7|                  ctx.error = error_code::syntax_error;
  275|      7|                  return;
  276|      7|               }
  277|       |               // Read the numeric header byte
  278|  21.4k|               const auto numeric_tag = uint8_t(*it);
  279|  21.4k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (279:20): [True: 14, False: 21.4k]
  ------------------
  280|     14|                  ctx.error = error_code::syntax_error;
  281|     14|                  return;
  282|     14|               }
  283|  21.4k|               ++it; // skip numeric header
  284|  21.4k|               const auto value_type_inner = (numeric_tag & 0b000'11'000) >> 3;
  285|  21.4k|               const uint8_t byte_count_inner = byte_count_lookup[numeric_tag >> 5];
  286|       |
  287|  21.4k|               const auto n = int_from_compressed(ctx, it, end);
  288|  21.4k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (288:20): [True: 206, False: 21.2k]
  ------------------
  289|    206|                  return;
  290|    206|               }
  291|       |
  292|       |               // Read padding length byte and skip padding
  293|  21.2k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (293:20): [True: 172, False: 21.0k]
  ------------------
  294|    172|                  ctx.error = error_code::unexpected_end;
  295|    172|                  return;
  296|    172|               }
  297|  21.0k|               const uint8_t padding = uint8_t(*it);
  298|  21.0k|               ++it;
  299|  21.0k|               if (padding >= byte_count_inner) [[unlikely]] {
  ------------------
  |  Branch (299:20): [True: 47, False: 20.9k]
  ------------------
  300|     47|                  ctx.error = error_code::syntax_error;
  301|     47|                  return;
  302|     47|               }
  303|  20.9k|               if (typed_array_out_of_bounds(ctx, it, end, n, byte_count_inner, padding)) return;
  ------------------
  |  Branch (303:20): [True: 121, False: 20.8k]
  ------------------
  304|  20.8k|               it += padding;
  305|       |
  306|       |               // Now decode as a normal numeric typed array
  307|  20.8k|               if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (307:20): [True: 0, False: 20.8k]
  ------------------
  308|       |
  309|  20.8k|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|  20.8k|                  for (size_t i = 0; i < n; ++i) {
  311|  20.8k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  312|  20.8k|                        ctx.error = error_code::unexpected_end;
  313|  20.8k|                        return;
  314|  20.8k|                     }
  315|  20.8k|                     using V = std::remove_cvref_t<T>;
  316|  20.8k|                     std::memcpy(&value, it, sizeof(V));
  317|  20.8k|                     if constexpr (std::endian::native == std::endian::big) {
  318|  20.8k|                        byteswap_le(value);
  319|  20.8k|                     }
  320|  20.8k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|  20.8k|                     it += sizeof(T);
  322|  20.8k|                     if (i != n - 1) {
  323|  20.8k|                        if (!emit_char(ctx, ',', out, ix)) return;
  324|  20.8k|                     }
  325|  20.8k|                  }
  326|  20.8k|               };
  327|       |
  328|  20.8k|               switch (value_type_inner) {
  329|  1.84k|               case 0: {
  ------------------
  |  Branch (329:16): [True: 1.84k, False: 19.0k]
  ------------------
  330|  1.84k|                  switch (byte_count_inner) {
  331|  1.33k|                  case 4:
  ------------------
  |  Branch (331:19): [True: 1.33k, False: 513]
  ------------------
  332|  1.33k|                     write_aligned_array(float{});
  333|  1.33k|                     break;
  334|    509|                  case 8:
  ------------------
  |  Branch (334:19): [True: 509, False: 1.34k]
  ------------------
  335|    509|                     write_aligned_array(double{});
  336|    509|                     break;
  337|      4|                  default:
  ------------------
  |  Branch (337:19): [True: 4, False: 1.84k]
  ------------------
  338|      4|                     ctx.error = error_code::syntax_error;
  339|      4|                     return;
  340|  1.84k|                  }
  341|  1.84k|                  break;
  342|  1.84k|               }
  343|  15.0k|               case 1: {
  ------------------
  |  Branch (343:16): [True: 15.0k, False: 5.77k]
  ------------------
  344|  15.0k|                  switch (byte_count_inner) {
  345|  2.07k|                  case 1:
  ------------------
  |  Branch (345:19): [True: 2.07k, False: 13.0k]
  ------------------
  346|  2.07k|                     write_aligned_array(int8_t{});
  347|  2.07k|                     break;
  348|    527|                  case 2:
  ------------------
  |  Branch (348:19): [True: 527, False: 14.5k]
  ------------------
  349|    527|                     write_aligned_array(int16_t{});
  350|    527|                     break;
  351|  11.9k|                  case 4:
  ------------------
  |  Branch (351:19): [True: 11.9k, False: 3.09k]
  ------------------
  352|  11.9k|                     write_aligned_array(int32_t{});
  353|  11.9k|                     break;
  354|    487|                  case 8:
  ------------------
  |  Branch (354:19): [True: 487, False: 14.5k]
  ------------------
  355|    487|                     write_aligned_array(int64_t{});
  356|    487|                     break;
  357|      2|                  default:
  ------------------
  |  Branch (357:19): [True: 2, False: 15.0k]
  ------------------
  358|      2|                     ctx.error = error_code::syntax_error;
  359|      2|                     return;
  360|  15.0k|                  }
  361|  15.0k|                  break;
  362|  15.0k|               }
  363|  15.0k|               case 2: {
  ------------------
  |  Branch (363:16): [True: 3.92k, False: 16.9k]
  ------------------
  364|  3.92k|                  switch (byte_count_inner) {
  365|    586|                  case 1:
  ------------------
  |  Branch (365:19): [True: 586, False: 3.34k]
  ------------------
  366|    586|                     write_aligned_array(uint8_t{});
  367|    586|                     break;
  368|  1.65k|                  case 2:
  ------------------
  |  Branch (368:19): [True: 1.65k, False: 2.27k]
  ------------------
  369|  1.65k|                     write_aligned_array(uint16_t{});
  370|  1.65k|                     break;
  371|    590|                  case 4:
  ------------------
  |  Branch (371:19): [True: 590, False: 3.33k]
  ------------------
  372|    590|                     write_aligned_array(uint32_t{});
  373|    590|                     break;
  374|  1.09k|                  case 8:
  ------------------
  |  Branch (374:19): [True: 1.09k, False: 2.83k]
  ------------------
  375|  1.09k|                     write_aligned_array(uint64_t{});
  376|  1.09k|                     break;
  377|      2|                  default:
  ------------------
  |  Branch (377:19): [True: 2, False: 3.92k]
  ------------------
  378|      2|                     ctx.error = error_code::syntax_error;
  379|      2|                     return;
  380|  3.92k|                  }
  381|  3.92k|                  break;
  382|  3.92k|               }
  383|  3.92k|               default:
  ------------------
  |  Branch (383:16): [True: 2, False: 20.8k]
  ------------------
  384|      2|                  ctx.error = error_code::syntax_error;
  385|      2|                  return;
  386|  20.8k|               }
  387|       |
  388|  20.8k|               if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (388:20): [True: 0, False: 20.8k]
  ------------------
  389|  20.8k|               break;
  390|  20.8k|            }
  391|       |
  392|   117k|            ++it;
  393|   117k|            const auto value_type = (tag & 0b000'11'000) >> 3;
  394|   117k|            const uint8_t byte_count = byte_count_lookup[tag >> 5];
  395|       |
  396|   117k|            auto write_array = [&]<class T>(T&& value) {
  397|   117k|               const auto n = int_from_compressed(ctx, it, end);
  398|   117k|               if (bool(ctx.error)) [[unlikely]] {
  399|   117k|                  return;
  400|   117k|               }
  401|   117k|               for (size_t i = 0; i < n; ++i) {
  402|   117k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  403|   117k|                     ctx.error = error_code::unexpected_end;
  404|   117k|                     return;
  405|   117k|                  }
  406|   117k|                  using V = std::remove_cvref_t<T>;
  407|   117k|                  std::memcpy(&value, it, sizeof(V));
  408|   117k|                  if constexpr (std::endian::native == std::endian::big) {
  409|   117k|                     byteswap_le(value);
  410|   117k|                  }
  411|   117k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   117k|                  it += sizeof(T);
  413|   117k|                  if (i != n - 1) {
  414|   117k|                     if (!emit_char(ctx, ',', out, ix)) return;
  415|   117k|                  }
  416|   117k|               }
  417|   117k|            };
  418|       |
  419|   117k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (419:17): [True: 0, False: 117k]
  ------------------
  420|       |
  421|   117k|            switch (value_type) {
  422|  5.07k|            case 0: {
  ------------------
  |  Branch (422:13): [True: 5.07k, False: 112k]
  ------------------
  423|       |               // floating point
  424|  5.07k|               switch (byte_count) {
  425|  3.35k|               case 4: {
  ------------------
  |  Branch (425:16): [True: 3.35k, False: 1.72k]
  ------------------
  426|  3.35k|                  write_array(float{});
  427|  3.35k|                  break;
  428|      0|               }
  429|  1.68k|               case 8: {
  ------------------
  |  Branch (429:16): [True: 1.68k, False: 3.38k]
  ------------------
  430|  1.68k|                  write_array(double{});
  431|  1.68k|                  break;
  432|      0|               }
  433|     34|               default: {
  ------------------
  |  Branch (433:16): [True: 34, False: 5.04k]
  ------------------
  434|     34|                  ctx.error = error_code::syntax_error;
  435|     34|                  return;
  436|      0|               }
  437|  5.07k|               }
  438|  5.04k|               break;
  439|  5.07k|            }
  440|  22.8k|            case 1: {
  ------------------
  |  Branch (440:13): [True: 22.8k, False: 94.5k]
  ------------------
  441|       |               // signed integer
  442|  22.8k|               switch (byte_count) {
  443|  3.36k|               case 1: {
  ------------------
  |  Branch (443:16): [True: 3.36k, False: 19.4k]
  ------------------
  444|  3.36k|                  write_array(int8_t{});
  445|  3.36k|                  break;
  446|      0|               }
  447|  13.0k|               case 2: {
  ------------------
  |  Branch (447:16): [True: 13.0k, False: 9.82k]
  ------------------
  448|  13.0k|                  write_array(int16_t{});
  449|  13.0k|                  break;
  450|      0|               }
  451|  4.74k|               case 4: {
  ------------------
  |  Branch (451:16): [True: 4.74k, False: 18.0k]
  ------------------
  452|  4.74k|                  write_array(int32_t{});
  453|  4.74k|                  break;
  454|      0|               }
  455|  1.69k|               case 8: {
  ------------------
  |  Branch (455:16): [True: 1.69k, False: 21.1k]
  ------------------
  456|  1.69k|                  write_array(int64_t{});
  457|  1.69k|                  break;
  458|      0|               }
  459|     10|               default: {
  ------------------
  |  Branch (459:16): [True: 10, False: 22.8k]
  ------------------
  460|     10|                  ctx.error = error_code::syntax_error;
  461|     10|                  return;
  462|      0|               }
  463|  22.8k|               }
  464|  22.8k|               break;
  465|  22.8k|            }
  466|  87.7k|            case 2: {
  ------------------
  |  Branch (466:13): [True: 87.7k, False: 29.6k]
  ------------------
  467|       |               // unsigned integer
  468|  87.7k|               switch (byte_count) {
  469|  59.4k|               case 1: {
  ------------------
  |  Branch (469:16): [True: 59.4k, False: 28.2k]
  ------------------
  470|  59.4k|                  write_array(uint8_t{});
  471|  59.4k|                  break;
  472|      0|               }
  473|  5.17k|               case 2: {
  ------------------
  |  Branch (473:16): [True: 5.17k, False: 82.5k]
  ------------------
  474|  5.17k|                  write_array(uint16_t{});
  475|  5.17k|                  break;
  476|      0|               }
  477|  1.50k|               case 4: {
  ------------------
  |  Branch (477:16): [True: 1.50k, False: 86.2k]
  ------------------
  478|  1.50k|                  write_array(uint32_t{});
  479|  1.50k|                  break;
  480|      0|               }
  481|  21.6k|               case 8: {
  ------------------
  |  Branch (481:16): [True: 21.6k, False: 66.1k]
  ------------------
  482|  21.6k|                  write_array(uint64_t{});
  483|  21.6k|                  break;
  484|      0|               }
  485|     11|               default: {
  ------------------
  |  Branch (485:16): [True: 11, False: 87.7k]
  ------------------
  486|     11|                  ctx.error = error_code::syntax_error;
  487|     11|                  return;
  488|      0|               }
  489|  87.7k|               }
  490|  87.7k|               break;
  491|  87.7k|            }
  492|  87.7k|            case 3: {
  ------------------
  |  Branch (492:13): [True: 1.72k, False: 115k]
  ------------------
  493|       |               // string or boolean
  494|  1.72k|               const auto string_or_boolean = (tag & 0b001'00'000) >> 5;
  495|  1.72k|               switch (string_or_boolean) {
  496|     20|               case 0: {
  ------------------
  |  Branch (496:16): [True: 20, False: 1.70k]
  ------------------
  497|       |                  // boolean array (bit packed)
  498|       |                  // TODO: implement
  499|     20|                  ctx.error = error_code::syntax_error;
  500|     20|                  break;
  501|      0|               }
  502|  1.70k|               case 1: {
  ------------------
  |  Branch (502:16): [True: 1.70k, False: 20]
  ------------------
  503|       |                  // array of strings
  504|  1.70k|                  const auto n_strings = int_from_compressed(ctx, it, end);
  505|  1.70k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (505:23): [True: 47, False: 1.65k]
  ------------------
  506|     47|                     return;
  507|     47|                  }
  508|  6.69k|                  for (size_t i = 0; i < n_strings; ++i) {
  ------------------
  |  Branch (508:38): [True: 5.42k, False: 1.27k]
  ------------------
  509|  5.42k|                     const auto n = int_from_compressed(ctx, it, end);
  510|  5.42k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (510:26): [True: 233, False: 5.18k]
  ------------------
  511|    233|                        return;
  512|    233|                     }
  513|  5.18k|                     if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (513:26): [True: 125, False: 5.06k]
  ------------------
  514|    125|                        ctx.error = error_code::unexpected_end;
  515|    125|                        return;
  516|    125|                     }
  517|  5.06k|                     const sv value{reinterpret_cast<const char*>(it), n};
  518|  5.06k|                     detail::emit_untrusted_string<Opts>(ctx, value, out, ix);
  519|  5.06k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (519:26): [True: 21, False: 5.04k]
  ------------------
  520|     21|                        return;
  521|  5.04k|                     it += n;
  522|  5.04k|                     if (i != n_strings - 1) {
  ------------------
  |  Branch (522:26): [True: 4.77k, False: 273]
  ------------------
  523|  4.77k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (523:29): [True: 0, False: 4.77k]
  ------------------
  524|  4.77k|                     }
  525|  5.04k|                  }
  526|  1.27k|                  break;
  527|  1.65k|               }
  528|  1.27k|               default: {
  ------------------
  |  Branch (528:16): [True: 0, False: 1.72k]
  ------------------
  529|      0|                  ctx.error = error_code::syntax_error;
  530|      0|                  return;
  531|  1.65k|               }
  532|  1.72k|               }
  533|  1.29k|               break;
  534|  1.72k|            }
  535|  1.29k|            default: {
  ------------------
  |  Branch (535:13): [True: 0, False: 117k]
  ------------------
  536|      0|               ctx.error = error_code::syntax_error;
  537|      0|               return;
  538|  1.72k|            }
  539|   117k|            }
  540|       |
  541|   116k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (541:17): [True: 0, False: 116k]
  ------------------
  542|       |
  543|   116k|            break;
  544|   116k|         }
  545|   116k|         case tag::generic_array: {
  ------------------
  |  Branch (545:10): [True: 47.7k, False: 47.1M]
  ------------------
  546|  47.7k|            ++it;
  547|  47.7k|            const auto n = int_from_compressed(ctx, it, end);
  548|  47.7k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (548:17): [True: 41, False: 47.7k]
  ------------------
  549|     41|               return;
  550|     41|            }
  551|  47.7k|            if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (551:17): [True: 0, False: 47.7k]
  ------------------
  552|  2.75M|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (552:32): [True: 2.70M, False: 43.7k]
  ------------------
  553|  2.70M|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  554|  2.70M|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (554:20): [True: 3.96k, False: 2.70M]
  ------------------
  555|  3.96k|                  return;
  556|  3.96k|               }
  557|  2.70M|               if (i != n - 1) {
  ------------------
  |  Branch (557:20): [True: 2.70M, False: 1.52k]
  ------------------
  558|  2.70M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (558:23): [True: 0, False: 2.70M]
  ------------------
  559|  2.70M|               }
  560|  2.70M|            }
  561|  43.7k|            if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (561:17): [True: 0, False: 43.7k]
  ------------------
  562|  43.7k|            break;
  563|  43.7k|         }
  564|  18.9M|         case tag::extensions: {
  ------------------
  |  Branch (564:10): [True: 18.9M, False: 28.2M]
  ------------------
  565|  18.9M|            const uint8_t extension = tag >> 3;
  566|  18.9M|            switch (extension) {
  567|   270k|            case 0: {
  ------------------
  |  Branch (567:13): [True: 270k, False: 18.6M]
  ------------------
  568|       |               // delimiter
  569|   270k|               ++it;
  570|   270k|               if (!emit_char(ctx, '\n', out, ix)) return;
  ------------------
  |  Branch (570:20): [True: 0, False: 270k]
  ------------------
  571|   270k|               break;
  572|   270k|            }
  573|   270k|            case 1: {
  ------------------
  |  Branch (573:13): [True: 2.48k, False: 18.9M]
  ------------------
  574|       |               // legacy (Version 1) type tag: transcode by dropping the positional index and
  575|       |               // emitting the value. Version 2 variants are ordinary objects/values transcoded by
  576|       |               // their normal cases and never reach here.
  577|  2.48k|               ++it;
  578|  2.48k|               skip_compressed_int(ctx, it, end);
  579|  2.48k|               if (bool(ctx.error)) return;
  ------------------
  |  Branch (579:20): [True: 6, False: 2.47k]
  ------------------
  580|       |
  581|  2.47k|               beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  582|  2.47k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (582:20): [True: 930, False: 1.54k]
  ------------------
  583|    930|                  return;
  584|    930|               }
  585|  1.54k|               break;
  586|  2.47k|            }
  587|  18.6M|            case 2: {
  ------------------
  |  Branch (587:13): [True: 18.6M, False: 318k]
  ------------------
  588|       |               // matrices
  589|  18.6M|               ++it;
  590|  18.6M|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (590:20): [True: 48, False: 18.6M]
  ------------------
  591|     48|                  ctx.error = error_code::syntax_error;
  592|     48|                  return;
  593|     48|               }
  594|  18.6M|               const auto matrix_header = uint8_t(*it);
  595|  18.6M|               ++it;
  596|       |
  597|  18.6M|               if (!emit_char(ctx, '{', out, ix)) return;
  ------------------
  |  Branch (597:20): [True: 0, False: 18.6M]
  ------------------
  598|  18.6M|               {
  599|       |                  // The indentation this matrix adds belongs to it, so every way out -- including an
  600|       |                  // error return from a nested value -- puts the depth back.
  601|  18.6M|                  const indent_guard indent{ctx, Opts.prettify ? check_indentation_width(Opts) : 1};
  ------------------
  |  Branch (601:50): [Folded, False: 18.6M]
  ------------------
  602|       |
  603|       |                  if constexpr (Opts.prettify) {
  604|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  605|       |                  }
  606|       |
  607|       |                  if constexpr (Opts.prettify) {
  608|       |                     if (!emit_literal<R"("layout": )">(ctx, out, ix)) return;
  609|       |                  }
  610|  18.6M|                  else {
  611|  18.6M|                     if (!emit_literal<R"("layout":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (611:26): [True: 0, False: 18.6M]
  ------------------
  612|  18.6M|                  }
  613|       |
  614|  18.6M|                  const auto layout = matrix_header & 0b0000000'1;
  615|  18.6M|                  if (layout) {
  ------------------
  |  Branch (615:23): [True: 591k, False: 18.0M]
  ------------------
  616|   591k|                     if (!emit_literal<R"("layout_right")">(ctx, out, ix)) return;
  ------------------
  |  Branch (616:26): [True: 0, False: 591k]
  ------------------
  617|   591k|                  }
  618|  18.0M|                  else {
  619|  18.0M|                     if (!emit_literal<R"("layout_left")">(ctx, out, ix)) return;
  ------------------
  |  Branch (619:26): [True: 0, False: 18.0M]
  ------------------
  620|  18.0M|                  }
  621|       |
  622|  18.6M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (622:23): [True: 0, False: 18.6M]
  ------------------
  623|       |                  if constexpr (Opts.prettify) {
  624|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  625|       |                  }
  626|       |
  627|       |                  if constexpr (Opts.prettify) {
  628|       |                     if (!emit_literal<R"("extents": )">(ctx, out, ix)) return;
  629|       |                  }
  630|  18.6M|                  else {
  631|  18.6M|                     if (!emit_literal<R"("extents":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (631:26): [True: 0, False: 18.6M]
  ------------------
  632|  18.6M|                  }
  633|       |
  634|  18.6M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  635|  18.6M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (635:23): [True: 44.7k, False: 18.5M]
  ------------------
  636|  44.7k|                     return;
  637|  44.7k|                  }
  638|       |
  639|  18.5M|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (639:23): [True: 0, False: 18.5M]
  ------------------
  640|       |                  if constexpr (Opts.prettify) {
  641|       |                     if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  642|       |                  }
  643|       |
  644|       |                  if constexpr (Opts.prettify) {
  645|       |                     if (!emit_literal<R"("value": )">(ctx, out, ix)) return;
  646|       |                  }
  647|  18.5M|                  else {
  648|  18.5M|                     if (!emit_literal<R"("value":)">(ctx, out, ix)) return;
  ------------------
  |  Branch (648:26): [True: 0, False: 18.5M]
  ------------------
  649|  18.5M|                  }
  650|       |
  651|  18.5M|                  beve_to_json_value<Opts>(ctx, it, end, out, ix, recursive_depth + 1);
  652|  18.5M|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (652:23): [True: 3.14k, False: 18.5M]
  ------------------
  653|  3.14k|                     return;
  654|  3.14k|                  }
  655|  18.5M|               }
  656|       |
  657|       |               if constexpr (Opts.prettify) {
  658|       |                  if (!emit_newline_indent<Opts>(ctx, out, ix)) return;
  659|       |               }
  660|  18.5M|               if (!emit_char(ctx, '}', out, ix)) return;
  ------------------
  |  Branch (660:20): [True: 0, False: 18.5M]
  ------------------
  661|  18.5M|               break;
  662|  18.5M|            }
  663|  18.5M|            case 3: {
  ------------------
  |  Branch (663:13): [True: 45.7k, False: 18.8M]
  ------------------
  664|       |               // complex numbers
  665|  45.7k|               ++it;
  666|  45.7k|               if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (666:20): [True: 2, False: 45.7k]
  ------------------
  667|      2|                  ctx.error = error_code::syntax_error;
  668|      2|                  return;
  669|      2|               }
  670|  45.7k|               const auto complex_header = uint8_t(*it);
  671|  45.7k|               ++it;
  672|       |
  673|  45.7k|               const auto complex_type = complex_header & 0b0000000'1;
  674|  45.7k|               if (complex_type) {
  ------------------
  |  Branch (674:20): [True: 39.8k, False: 5.88k]
  ------------------
  675|       |                  // complex array
  676|  39.8k|                  const auto number_tag = complex_header & 0b111'00000;
  677|  39.8k|                  const auto n = int_from_compressed(ctx, it, end);
  678|  39.8k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (678:23): [True: 23, False: 39.8k]
  ------------------
  679|     23|                     return;
  680|     23|                  }
  681|  39.8k|                  if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (681:23): [True: 0, False: 39.8k]
  ------------------
  682|   382k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (682:38): [True: 343k, False: 39.5k]
  ------------------
  683|   343k|                     if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (683:26): [True: 0, False: 343k]
  ------------------
  684|   343k|                     beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  685|   343k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (685:26): [True: 208, False: 343k]
  ------------------
  686|    208|                        return;
  687|    208|                     }
  688|   343k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (688:26): [True: 0, False: 343k]
  ------------------
  689|   343k|                     beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  690|   343k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (690:26): [True: 70, False: 343k]
  ------------------
  691|     70|                        return;
  692|     70|                     }
  693|   343k|                     if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (693:26): [True: 0, False: 343k]
  ------------------
  694|   343k|                     if (i != n - 1) {
  ------------------
  |  Branch (694:26): [True: 342k, False: 270]
  ------------------
  695|   342k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (695:29): [True: 0, False: 342k]
  ------------------
  696|   342k|                     }
  697|   343k|                  }
  698|  39.5k|                  if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (698:23): [True: 0, False: 39.5k]
  ------------------
  699|  39.5k|               }
  700|  5.88k|               else {
  701|       |                  // complex number
  702|  5.88k|                  const auto number_tag = complex_header & 0b111'00000;
  703|  5.88k|                  if (!emit_char(ctx, '[', out, ix)) return;
  ------------------
  |  Branch (703:23): [True: 0, False: 5.88k]
  ------------------
  704|  5.88k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  705|  5.88k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (705:23): [True: 36, False: 5.84k]
  ------------------
  706|     36|                     return;
  707|     36|                  }
  708|  5.84k|                  if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (708:23): [True: 0, False: 5.84k]
  ------------------
  709|  5.84k|                  beve_to_json_number<Opts>(number_tag, ctx, it, end, out, ix);
  710|  5.84k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (710:23): [True: 58, False: 5.78k]
  ------------------
  711|     58|                     return;
  712|     58|                  }
  713|  5.78k|                  if (!emit_char(ctx, ']', out, ix)) return;
  ------------------
  |  Branch (713:23): [True: 0, False: 5.78k]
  ------------------
  714|  5.78k|               }
  715|       |
  716|  45.3k|               break;
  717|  45.7k|            }
  718|  45.3k|            default: {
  ------------------
  |  Branch (718:13): [True: 65, False: 18.9M]
  ------------------
  719|     65|               ctx.error = error_code::syntax_error;
  720|     65|               return;
  721|  45.7k|            }
  722|  18.9M|            }
  723|  18.8M|            break;
  724|  18.9M|         }
  725|  18.8M|         default: {
  ------------------
  |  Branch (725:10): [True: 125, False: 47.2M]
  ------------------
  726|    125|            ctx.error = error_code::syntax_error;
  727|    125|            return;
  728|  18.9M|         }
  729|  47.2M|         }
  730|  47.2M|      }
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|  1.89M|      {
   16|  1.89M|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|  1.89M|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|  1.89M|         auto write_number = [&]<class T>(T&& value) {
   20|  1.89M|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
   21|  1.89M|               ctx.error = error_code::syntax_error;
   22|  1.89M|               return;
   23|  1.89M|            }
   24|  1.89M|            using V = std::remove_cvref_t<T>;
   25|  1.89M|            std::memcpy(&value, it, sizeof(V));
   26|  1.89M|            if constexpr (std::endian::native == std::endian::big) {
   27|  1.89M|               byteswap_le(value);
   28|  1.89M|            }
   29|  1.89M|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  1.89M|            it += sizeof(T);
   31|  1.89M|         };
   32|       |
   33|  1.89M|         switch (number_type) {
   34|   137k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 137k, False: 1.75M]
  ------------------
   35|       |            // floating point
   36|   137k|            switch (byte_count) {
   37|  16.4k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 16.4k, False: 120k]
  ------------------
   38|  16.4k|               write_number(float{});
   39|  16.4k|               break;
   40|      0|            }
   41|   120k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 120k, False: 16.4k]
  ------------------
   42|   120k|               write_number(double{});
   43|   120k|               break;
   44|      0|            }
   45|     43|            default: {
  ------------------
  |  Branch (45:13): [True: 43, False: 137k]
  ------------------
   46|     43|               ctx.error = error_code::syntax_error;
   47|     43|               return;
   48|      0|            }
   49|   137k|            }
   50|   137k|            break;
   51|   137k|         }
   52|   691k|         case 1: {
  ------------------
  |  Branch (52:10): [True: 691k, False: 1.20M]
  ------------------
   53|       |            // signed integer
   54|   691k|            switch (byte_count) {
   55|   104k|            case 1: {
  ------------------
  |  Branch (55:13): [True: 104k, False: 587k]
  ------------------
   56|   104k|               write_number(int8_t{});
   57|   104k|               break;
   58|      0|            }
   59|   325k|            case 2: {
  ------------------
  |  Branch (59:13): [True: 325k, False: 366k]
  ------------------
   60|   325k|               write_number(int16_t{});
   61|   325k|               break;
   62|      0|            }
   63|  93.4k|            case 4: {
  ------------------
  |  Branch (63:13): [True: 93.4k, False: 598k]
  ------------------
   64|  93.4k|               write_number(int32_t{});
   65|  93.4k|               break;
   66|      0|            }
   67|   168k|            case 8: {
  ------------------
  |  Branch (67:13): [True: 168k, False: 523k]
  ------------------
   68|   168k|               write_number(int64_t{});
   69|   168k|               break;
   70|      0|            }
   71|     21|            default: {
  ------------------
  |  Branch (71:13): [True: 21, False: 691k]
  ------------------
   72|     21|               ctx.error = error_code::syntax_error;
   73|     21|               return;
   74|      0|            }
   75|   691k|            }
   76|   691k|            break;
   77|   691k|         }
   78|  1.06M|         case 2: {
  ------------------
  |  Branch (78:10): [True: 1.06M, False: 828k]
  ------------------
   79|       |            // unsigned integer
   80|  1.06M|            switch (byte_count) {
   81|   114k|            case 1: {
  ------------------
  |  Branch (81:13): [True: 114k, False: 948k]
  ------------------
   82|   114k|               write_number(uint8_t{});
   83|   114k|               break;
   84|      0|            }
   85|   468k|            case 2: {
  ------------------
  |  Branch (85:13): [True: 468k, False: 594k]
  ------------------
   86|   468k|               write_number(uint16_t{});
   87|   468k|               break;
   88|      0|            }
   89|  16.8k|            case 4: {
  ------------------
  |  Branch (89:13): [True: 16.8k, False: 1.04M]
  ------------------
   90|  16.8k|               write_number(uint32_t{});
   91|  16.8k|               break;
   92|      0|            }
   93|   463k|            case 8: {
  ------------------
  |  Branch (93:13): [True: 463k, False: 599k]
  ------------------
   94|   463k|               write_number(uint64_t{});
   95|   463k|               break;
   96|      0|            }
   97|     38|            default: {
  ------------------
  |  Branch (97:13): [True: 38, False: 1.06M]
  ------------------
   98|     38|               ctx.error = error_code::syntax_error;
   99|     38|               return;
  100|      0|            }
  101|  1.06M|            }
  102|  1.06M|            break;
  103|  1.06M|         }
  104|  1.06M|         default: {
  ------------------
  |  Branch (104:10): [True: 21, False: 1.89M]
  ------------------
  105|     21|            ctx.error = error_code::syntax_error;
  106|     21|            return;
  107|  1.06M|         }
  108|  1.89M|         }
  109|  1.89M|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|  16.4k|         auto write_number = [&]<class T>(T&& value) {
   20|  16.4k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 14, False: 16.4k]
  ------------------
   21|     14|               ctx.error = error_code::syntax_error;
   22|     14|               return;
   23|     14|            }
   24|  16.4k|            using V = std::remove_cvref_t<T>;
   25|  16.4k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  16.4k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  16.4k|            it += sizeof(T);
   31|  16.4k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|   120k|         auto write_number = [&]<class T>(T&& value) {
   20|   120k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 18, False: 120k]
  ------------------
   21|     18|               ctx.error = error_code::syntax_error;
   22|     18|               return;
   23|     18|            }
   24|   120k|            using V = std::remove_cvref_t<T>;
   25|   120k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   120k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   120k|            it += sizeof(T);
   31|   120k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIaEEDaSU_:
   19|   104k|         auto write_number = [&]<class T>(T&& value) {
   20|   104k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 59, False: 104k]
  ------------------
   21|     59|               ctx.error = error_code::syntax_error;
   22|     59|               return;
   23|     59|            }
   24|   104k|            using V = std::remove_cvref_t<T>;
   25|   104k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   104k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   104k|            it += sizeof(T);
   31|   104k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIsEEDaSU_:
   19|   325k|         auto write_number = [&]<class T>(T&& value) {
   20|   325k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 27, False: 325k]
  ------------------
   21|     27|               ctx.error = error_code::syntax_error;
   22|     27|               return;
   23|     27|            }
   24|   325k|            using V = std::remove_cvref_t<T>;
   25|   325k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   325k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   325k|            it += sizeof(T);
   31|   325k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIiEEDaSU_:
   19|  93.4k|         auto write_number = [&]<class T>(T&& value) {
   20|  93.4k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 23, False: 93.4k]
  ------------------
   21|     23|               ctx.error = error_code::syntax_error;
   22|     23|               return;
   23|     23|            }
   24|  93.4k|            using V = std::remove_cvref_t<T>;
   25|  93.4k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  93.4k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  93.4k|            it += sizeof(T);
   31|  93.4k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIlEEDaSU_:
   19|   168k|         auto write_number = [&]<class T>(T&& value) {
   20|   168k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 30, False: 168k]
  ------------------
   21|     30|               ctx.error = error_code::syntax_error;
   22|     30|               return;
   23|     30|            }
   24|   168k|            using V = std::remove_cvref_t<T>;
   25|   168k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   168k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   168k|            it += sizeof(T);
   31|   168k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIhEEDaSU_:
   19|   114k|         auto write_number = [&]<class T>(T&& value) {
   20|   114k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 45, False: 114k]
  ------------------
   21|     45|               ctx.error = error_code::syntax_error;
   22|     45|               return;
   23|     45|            }
   24|   114k|            using V = std::remove_cvref_t<T>;
   25|   114k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   114k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   114k|            it += sizeof(T);
   31|   114k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clItEEDaSU_:
   19|   468k|         auto write_number = [&]<class T>(T&& value) {
   20|   468k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 51, False: 468k]
  ------------------
   21|     51|               ctx.error = error_code::syntax_error;
   22|     51|               return;
   23|     51|            }
   24|   468k|            using V = std::remove_cvref_t<T>;
   25|   468k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   468k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   468k|            it += sizeof(T);
   31|   468k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIjEEDaSU_:
   19|  16.8k|         auto write_number = [&]<class T>(T&& value) {
   20|  16.8k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 26, False: 16.8k]
  ------------------
   21|     26|               ctx.error = error_code::syntax_error;
   22|     26|               return;
   23|     26|            }
   24|  16.8k|            using V = std::remove_cvref_t<T>;
   25|  16.8k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|  16.8k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|  16.8k|            it += sizeof(T);
   31|  16.8k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKhRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clImEEDaSU_:
   19|   463k|         auto write_number = [&]<class T>(T&& value) {
   20|   463k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 36, False: 463k]
  ------------------
   21|     36|               ctx.error = error_code::syntax_error;
   22|     36|               return;
   23|     36|            }
   24|   463k|            using V = std::remove_cvref_t<T>;
   25|   463k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   463k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   463k|            it += sizeof(T);
   31|   463k|         };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIfEEDaSR_:
  309|  1.33k|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   122k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 120k, False: 1.33k]
  ------------------
  311|   120k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 120k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   120k|                     using V = std::remove_cvref_t<T>;
  316|   120k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   120k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   120k|                     it += sizeof(T);
  322|   120k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 119k, False: 1.12k]
  ------------------
  323|   119k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 119k]
  ------------------
  324|   119k|                     }
  325|   120k|                  }
  326|  1.33k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIdEEDaSR_:
  309|    509|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|  76.2k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 75.6k, False: 509]
  ------------------
  311|  75.6k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 75.6k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|  75.6k|                     using V = std::remove_cvref_t<T>;
  316|  75.6k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|  75.6k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|  75.6k|                     it += sizeof(T);
  322|  75.6k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 75.4k, False: 272]
  ------------------
  323|  75.4k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 75.4k]
  ------------------
  324|  75.4k|                     }
  325|  75.6k|                  }
  326|    509|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIaEEDaSR_:
  309|  2.07k|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   467k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 465k, False: 2.07k]
  ------------------
  311|   465k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 465k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   465k|                     using V = std::remove_cvref_t<T>;
  316|   465k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   465k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   465k|                     it += sizeof(T);
  322|   465k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 463k, False: 1.76k]
  ------------------
  323|   463k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 463k]
  ------------------
  324|   463k|                     }
  325|   465k|                  }
  326|  2.07k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIsEEDaSR_:
  309|    527|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|  1.21M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 1.21M, False: 527]
  ------------------
  311|  1.21M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 1.21M]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|  1.21M|                     using V = std::remove_cvref_t<T>;
  316|  1.21M|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|  1.21M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|  1.21M|                     it += sizeof(T);
  322|  1.21M|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 1.21M, False: 297]
  ------------------
  323|  1.21M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 1.21M]
  ------------------
  324|  1.21M|                     }
  325|  1.21M|                  }
  326|    527|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIiEEDaSR_:
  309|  11.9k|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   465k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 453k, False: 11.9k]
  ------------------
  311|   453k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 453k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   453k|                     using V = std::remove_cvref_t<T>;
  316|   453k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   453k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   453k|                     it += sizeof(T);
  322|   453k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 447k, False: 5.59k]
  ------------------
  323|   447k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 447k]
  ------------------
  324|   447k|                     }
  325|   453k|                  }
  326|  11.9k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIlEEDaSR_:
  309|    487|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   116k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 115k, False: 487]
  ------------------
  311|   115k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 115k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   115k|                     using V = std::remove_cvref_t<T>;
  316|   115k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   115k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   115k|                     it += sizeof(T);
  322|   115k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 115k, False: 264]
  ------------------
  323|   115k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 115k]
  ------------------
  324|   115k|                     }
  325|   115k|                  }
  326|    487|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIhEEDaSR_:
  309|    586|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   122k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 121k, False: 586]
  ------------------
  311|   121k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 121k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   121k|                     using V = std::remove_cvref_t<T>;
  316|   121k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   121k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   121k|                     it += sizeof(T);
  322|   121k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 121k, False: 344]
  ------------------
  323|   121k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 121k]
  ------------------
  324|   121k|                     }
  325|   121k|                  }
  326|    586|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clItEEDaSR_:
  309|  1.65k|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|  1.28M|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 1.28M, False: 1.65k]
  ------------------
  311|  1.28M|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 1.28M]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|  1.28M|                     using V = std::remove_cvref_t<T>;
  316|  1.28M|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|  1.28M|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|  1.28M|                     it += sizeof(T);
  322|  1.28M|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 1.28M, False: 1.40k]
  ------------------
  323|  1.28M|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 1.28M]
  ------------------
  324|  1.28M|                     }
  325|  1.28M|                  }
  326|  1.65k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clIjEEDaSR_:
  309|    590|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   335k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 335k, False: 590]
  ------------------
  311|   335k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 335k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   335k|                     using V = std::remove_cvref_t<T>;
  316|   335k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   335k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   335k|                     it += sizeof(T);
  322|   335k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 334k, False: 294]
  ------------------
  323|   334k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 334k]
  ------------------
  324|   334k|                     }
  325|   335k|                  }
  326|    590|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E_clImEEDaSR_:
  309|  1.09k|               auto write_aligned_array = [&]<class T>(T&& value) {
  310|   165k|                  for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (310:38): [True: 164k, False: 1.09k]
  ------------------
  311|   164k|                     if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (311:26): [True: 0, False: 164k]
  ------------------
  312|      0|                        ctx.error = error_code::unexpected_end;
  313|      0|                        return;
  314|      0|                     }
  315|   164k|                     using V = std::remove_cvref_t<T>;
  316|   164k|                     std::memcpy(&value, it, sizeof(V));
  317|       |                     if constexpr (std::endian::native == std::endian::big) {
  318|       |                        byteswap_le(value);
  319|       |                     }
  320|   164k|                     to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  321|   164k|                     it += sizeof(T);
  322|   164k|                     if (i != n - 1) {
  ------------------
  |  Branch (322:26): [True: 163k, False: 395]
  ------------------
  323|   163k|                        if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (323:29): [True: 0, False: 163k]
  ------------------
  324|   163k|                     }
  325|   164k|                  }
  326|  1.09k|               };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIfEEDaSR_:
  396|  3.35k|            auto write_array = [&]<class T>(T&& value) {
  397|  3.35k|               const auto n = int_from_compressed(ctx, it, end);
  398|  3.35k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 53, False: 3.29k]
  ------------------
  399|     53|                  return;
  400|     53|               }
  401|  1.63M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 1.63M, False: 2.96k]
  ------------------
  402|  1.63M|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 331, False: 1.63M]
  ------------------
  403|    331|                     ctx.error = error_code::unexpected_end;
  404|    331|                     return;
  405|    331|                  }
  406|  1.63M|                  using V = std::remove_cvref_t<T>;
  407|  1.63M|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|  1.63M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|  1.63M|                  it += sizeof(T);
  413|  1.63M|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 1.63M, False: 902]
  ------------------
  414|  1.63M|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 1.63M]
  ------------------
  415|  1.63M|                  }
  416|  1.63M|               }
  417|  3.29k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIdEEDaSR_:
  396|  1.68k|            auto write_array = [&]<class T>(T&& value) {
  397|  1.68k|               const auto n = int_from_compressed(ctx, it, end);
  398|  1.68k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 42, False: 1.64k]
  ------------------
  399|     42|                  return;
  400|     42|               }
  401|   926k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 925k, False: 1.22k]
  ------------------
  402|   925k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 424, False: 925k]
  ------------------
  403|    424|                     ctx.error = error_code::unexpected_end;
  404|    424|                     return;
  405|    424|                  }
  406|   925k|                  using V = std::remove_cvref_t<T>;
  407|   925k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   925k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   925k|                  it += sizeof(T);
  413|   925k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 924k, False: 283]
  ------------------
  414|   924k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 924k]
  ------------------
  415|   924k|                  }
  416|   925k|               }
  417|  1.64k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIaEEDaSR_:
  396|  3.36k|            auto write_array = [&]<class T>(T&& value) {
  397|  3.36k|               const auto n = int_from_compressed(ctx, it, end);
  398|  3.36k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 56, False: 3.31k]
  ------------------
  399|     56|                  return;
  400|     56|               }
  401|  1.12M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 1.11M, False: 3.12k]
  ------------------
  402|  1.11M|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 185, False: 1.11M]
  ------------------
  403|    185|                     ctx.error = error_code::unexpected_end;
  404|    185|                     return;
  405|    185|                  }
  406|  1.11M|                  using V = std::remove_cvref_t<T>;
  407|  1.11M|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|  1.11M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|  1.11M|                  it += sizeof(T);
  413|  1.11M|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 1.11M, False: 1.87k]
  ------------------
  414|  1.11M|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 1.11M]
  ------------------
  415|  1.11M|                  }
  416|  1.11M|               }
  417|  3.31k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIsEEDaSR_:
  396|  13.0k|            auto write_array = [&]<class T>(T&& value) {
  397|  13.0k|               const auto n = int_from_compressed(ctx, it, end);
  398|  13.0k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 57, False: 12.9k]
  ------------------
  399|     57|                  return;
  400|     57|               }
  401|  1.02M|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 1.01M, False: 12.7k]
  ------------------
  402|  1.01M|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 215, False: 1.01M]
  ------------------
  403|    215|                     ctx.error = error_code::unexpected_end;
  404|    215|                     return;
  405|    215|                  }
  406|  1.01M|                  using V = std::remove_cvref_t<T>;
  407|  1.01M|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|  1.01M|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|  1.01M|                  it += sizeof(T);
  413|  1.01M|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 1.00M, False: 8.23k]
  ------------------
  414|  1.00M|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 1.00M]
  ------------------
  415|  1.00M|                  }
  416|  1.01M|               }
  417|  12.9k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIiEEDaSR_:
  396|  4.74k|            auto write_array = [&]<class T>(T&& value) {
  397|  4.74k|               const auto n = int_from_compressed(ctx, it, end);
  398|  4.74k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 59, False: 4.68k]
  ------------------
  399|     59|                  return;
  400|     59|               }
  401|   188k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 184k, False: 4.45k]
  ------------------
  402|   184k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 234, False: 184k]
  ------------------
  403|    234|                     ctx.error = error_code::unexpected_end;
  404|    234|                     return;
  405|    234|                  }
  406|   184k|                  using V = std::remove_cvref_t<T>;
  407|   184k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   184k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   184k|                  it += sizeof(T);
  413|   184k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 181k, False: 2.73k]
  ------------------
  414|   181k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 181k]
  ------------------
  415|   181k|                  }
  416|   184k|               }
  417|  4.68k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIlEEDaSR_:
  396|  1.69k|            auto write_array = [&]<class T>(T&& value) {
  397|  1.69k|               const auto n = int_from_compressed(ctx, it, end);
  398|  1.69k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 49, False: 1.64k]
  ------------------
  399|     49|                  return;
  400|     49|               }
  401|   550k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 548k, False: 1.34k]
  ------------------
  402|   548k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 301, False: 548k]
  ------------------
  403|    301|                     ctx.error = error_code::unexpected_end;
  404|    301|                     return;
  405|    301|                  }
  406|   548k|                  using V = std::remove_cvref_t<T>;
  407|   548k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   548k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   548k|                  it += sizeof(T);
  413|   548k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 548k, False: 277]
  ------------------
  414|   548k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 548k]
  ------------------
  415|   548k|                  }
  416|   548k|               }
  417|  1.64k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIhEEDaSR_:
  396|  59.4k|            auto write_array = [&]<class T>(T&& value) {
  397|  59.4k|               const auto n = int_from_compressed(ctx, it, end);
  398|  59.4k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 49, False: 59.4k]
  ------------------
  399|     49|                  return;
  400|     49|               }
  401|   310k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 250k, False: 59.1k]
  ------------------
  402|   250k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 214, False: 250k]
  ------------------
  403|    214|                     ctx.error = error_code::unexpected_end;
  404|    214|                     return;
  405|    214|                  }
  406|   250k|                  using V = std::remove_cvref_t<T>;
  407|   250k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   250k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   250k|                  it += sizeof(T);
  413|   250k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 249k, False: 968]
  ------------------
  414|   249k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 249k]
  ------------------
  415|   249k|                  }
  416|   250k|               }
  417|  59.4k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clItEEDaSR_:
  396|  5.17k|            auto write_array = [&]<class T>(T&& value) {
  397|  5.17k|               const auto n = int_from_compressed(ctx, it, end);
  398|  5.17k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 64, False: 5.10k]
  ------------------
  399|     64|                  return;
  400|     64|               }
  401|   143k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 138k, False: 4.88k]
  ------------------
  402|   138k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 223, False: 138k]
  ------------------
  403|    223|                     ctx.error = error_code::unexpected_end;
  404|    223|                     return;
  405|    223|                  }
  406|   138k|                  using V = std::remove_cvref_t<T>;
  407|   138k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   138k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   138k|                  it += sizeof(T);
  413|   138k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 137k, False: 333]
  ------------------
  414|   137k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 137k]
  ------------------
  415|   137k|                  }
  416|   138k|               }
  417|  5.10k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clIjEEDaSR_:
  396|  1.50k|            auto write_array = [&]<class T>(T&& value) {
  397|  1.50k|               const auto n = int_from_compressed(ctx, it, end);
  398|  1.50k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 45, False: 1.45k]
  ------------------
  399|     45|                  return;
  400|     45|               }
  401|   143k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 142k, False: 1.25k]
  ------------------
  402|   142k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 201, False: 142k]
  ------------------
  403|    201|                     ctx.error = error_code::unexpected_end;
  404|    201|                     return;
  405|    201|                  }
  406|   142k|                  using V = std::remove_cvref_t<T>;
  407|   142k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   142k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   142k|                  it += sizeof(T);
  413|   142k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 141k, False: 284]
  ------------------
  414|   141k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 141k]
  ------------------
  415|   141k|                  }
  416|   142k|               }
  417|  1.45k|            };
_ZZN3glz6detail18beve_to_json_valueITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS_7contextERPKcSE_RmEEvOT1_OT2_OT3_RT0_OT4_jENKUlTyOT_E0_clImEEDaSR_:
  396|  21.6k|            auto write_array = [&]<class T>(T&& value) {
  397|  21.6k|               const auto n = int_from_compressed(ctx, it, end);
  398|  21.6k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (398:20): [True: 130, False: 21.4k]
  ------------------
  399|    130|                  return;
  400|    130|               }
  401|   216k|               for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (401:35): [True: 195k, False: 21.1k]
  ------------------
  402|   195k|                  if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (402:23): [True: 291, False: 195k]
  ------------------
  403|    291|                     ctx.error = error_code::unexpected_end;
  404|    291|                     return;
  405|    291|                  }
  406|   195k|                  using V = std::remove_cvref_t<T>;
  407|   195k|                  std::memcpy(&value, it, sizeof(V));
  408|       |                  if constexpr (std::endian::native == std::endian::big) {
  409|       |                     byteswap_le(value);
  410|       |                  }
  411|   195k|                  to<JSON, T>::template op<Opts>(value, ctx, out, ix);
  412|   195k|                  it += sizeof(T);
  413|   195k|                  if (i != n - 1) {
  ------------------
  |  Branch (413:23): [True: 195k, False: 289]
  ------------------
  414|   195k|                     if (!emit_char(ctx, ',', out, ix)) return;
  ------------------
  |  Branch (414:26): [True: 0, False: 195k]
  ------------------
  415|   195k|                  }
  416|   195k|               }
  417|  21.4k|            };
_ZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKiRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_:
   15|   698k|      {
   16|   698k|         const auto number_type = (tag & 0b000'11'000) >> 3;
   17|   698k|         const uint8_t byte_count = byte_count_lookup[tag >> 5];
   18|       |
   19|   698k|         auto write_number = [&]<class T>(T&& value) {
   20|   698k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
   21|   698k|               ctx.error = error_code::syntax_error;
   22|   698k|               return;
   23|   698k|            }
   24|   698k|            using V = std::remove_cvref_t<T>;
   25|   698k|            std::memcpy(&value, it, sizeof(V));
   26|   698k|            if constexpr (std::endian::native == std::endian::big) {
   27|   698k|               byteswap_le(value);
   28|   698k|            }
   29|   698k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   698k|            it += sizeof(T);
   31|   698k|         };
   32|       |
   33|   698k|         switch (number_type) {
   34|   698k|         case 0: {
  ------------------
  |  Branch (34:10): [True: 698k, False: 0]
  ------------------
   35|       |            // floating point
   36|   698k|            switch (byte_count) {
   37|   321k|            case 4: {
  ------------------
  |  Branch (37:13): [True: 321k, False: 376k]
  ------------------
   38|   321k|               write_number(float{});
   39|   321k|               break;
   40|      0|            }
   41|   376k|            case 8: {
  ------------------
  |  Branch (41:13): [True: 376k, False: 321k]
  ------------------
   42|   376k|               write_number(double{});
   43|   376k|               break;
   44|      0|            }
   45|    100|            default: {
  ------------------
  |  Branch (45:13): [True: 100, False: 698k]
  ------------------
   46|    100|               ctx.error = error_code::syntax_error;
   47|    100|               return;
   48|      0|            }
   49|   698k|            }
   50|   698k|            break;
   51|   698k|         }
   52|   698k|         case 1: {
  ------------------
  |  Branch (52:10): [True: 0, False: 698k]
  ------------------
   53|       |            // signed integer
   54|      0|            switch (byte_count) {
   55|      0|            case 1: {
  ------------------
  |  Branch (55:13): [True: 0, False: 0]
  ------------------
   56|      0|               write_number(int8_t{});
   57|      0|               break;
   58|      0|            }
   59|      0|            case 2: {
  ------------------
  |  Branch (59:13): [True: 0, False: 0]
  ------------------
   60|      0|               write_number(int16_t{});
   61|      0|               break;
   62|      0|            }
   63|      0|            case 4: {
  ------------------
  |  Branch (63:13): [True: 0, False: 0]
  ------------------
   64|      0|               write_number(int32_t{});
   65|      0|               break;
   66|      0|            }
   67|      0|            case 8: {
  ------------------
  |  Branch (67:13): [True: 0, False: 0]
  ------------------
   68|      0|               write_number(int64_t{});
   69|      0|               break;
   70|      0|            }
   71|      0|            default: {
  ------------------
  |  Branch (71:13): [True: 0, False: 0]
  ------------------
   72|      0|               ctx.error = error_code::syntax_error;
   73|      0|               return;
   74|      0|            }
   75|      0|            }
   76|      0|            break;
   77|      0|         }
   78|      0|         case 2: {
  ------------------
  |  Branch (78:10): [True: 0, False: 698k]
  ------------------
   79|       |            // unsigned integer
   80|      0|            switch (byte_count) {
   81|      0|            case 1: {
  ------------------
  |  Branch (81:13): [True: 0, False: 0]
  ------------------
   82|      0|               write_number(uint8_t{});
   83|      0|               break;
   84|      0|            }
   85|      0|            case 2: {
  ------------------
  |  Branch (85:13): [True: 0, False: 0]
  ------------------
   86|      0|               write_number(uint16_t{});
   87|      0|               break;
   88|      0|            }
   89|      0|            case 4: {
  ------------------
  |  Branch (89:13): [True: 0, False: 0]
  ------------------
   90|      0|               write_number(uint32_t{});
   91|      0|               break;
   92|      0|            }
   93|      0|            case 8: {
  ------------------
  |  Branch (93:13): [True: 0, False: 0]
  ------------------
   94|      0|               write_number(uint64_t{});
   95|      0|               break;
   96|      0|            }
   97|      0|            default: {
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|               ctx.error = error_code::syntax_error;
   99|      0|               return;
  100|      0|            }
  101|      0|            }
  102|      0|            break;
  103|      0|         }
  104|      0|         default: {
  ------------------
  |  Branch (104:10): [True: 0, False: 698k]
  ------------------
  105|      0|            ctx.error = error_code::syntax_error;
  106|      0|            return;
  107|      0|         }
  108|   698k|         }
  109|   698k|      }
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKiRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIfEEDaSU_:
   19|   321k|         auto write_number = [&]<class T>(T&& value) {
   20|   321k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 166, False: 321k]
  ------------------
   21|    166|               ctx.error = error_code::syntax_error;
   22|    166|               return;
   23|    166|            }
   24|   321k|            using V = std::remove_cvref_t<T>;
   25|   321k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   321k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   321k|            it += sizeof(T);
   31|   321k|         };
_ZZN3glz6detail19beve_to_json_numberITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKiRNS_7contextERPKcS9_NSt3__112basic_stringIcNSA_11char_traitsIcEENSA_9allocatorIcEEEEmEEvOT0_OT1_OT2_OT3_RT4_RT5_ENKUlTyOT_E_clIdEEDaSU_:
   19|   376k|         auto write_number = [&]<class T>(T&& value) {
   20|   376k|            if (size_t(end - it) < sizeof(T)) [[unlikely]] {
  ------------------
  |  Branch (20:17): [True: 106, False: 376k]
  ------------------
   21|    106|               ctx.error = error_code::syntax_error;
   22|    106|               return;
   23|    106|            }
   24|   376k|            using V = std::remove_cvref_t<T>;
   25|   376k|            std::memcpy(&value, it, sizeof(V));
   26|       |            if constexpr (std::endian::native == std::endian::big) {
   27|       |               byteswap_le(value);
   28|       |            }
   29|   376k|            to<JSON, T>::template op<Opts>(value, ctx, out, ix);
   30|   376k|            it += sizeof(T);
   31|   376k|         };

_ZN3glz11invalid_endITkNS_10is_contextENS_7contextERPKcS3_EEbRT_OT0_T1_:
   23|  59.0k|   {
   24|  59.0k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (24:11): [True: 671, False: 58.3k]
  ------------------
   25|    671|         ctx.error = error_code::unexpected_end;
   26|    671|         return true;
   27|    671|      }
   28|  58.3k|      else [[likely]] {
   29|  58.3k|         return false;
   30|  58.3k|      }
   31|  59.0k|   }
_ZN3glz19int_from_compressedIRNS_7contextERPKcS4_EEmOT_OT0_T1_:
  233|   927k|   {
  234|   927k|      if (it >= end) [[unlikely]] {
  ------------------
  |  Branch (234:11): [True: 1.19k, False: 925k]
  ------------------
  235|  1.19k|         ctx.error = error_code::unexpected_end;
  236|  1.19k|         return 0;
  237|  1.19k|      }
  238|       |
  239|   925k|      uint8_t header;
  240|   925k|      std::memcpy(&header, it, 1);
  241|   925k|      const uint8_t config = header & 0b000000'11;
  242|       |
  243|   925k|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (243:11): [True: 1.13k, False: 924k]
  ------------------
  244|  1.13k|         ctx.error = error_code::unexpected_end;
  245|  1.13k|         return 0;
  246|  1.13k|      }
  247|       |
  248|   924k|      switch (config) {
  249|   883k|      case 0:
  ------------------
  |  Branch (249:7): [True: 883k, False: 41.0k]
  ------------------
  250|   883k|         ++it;
  251|   883k|         return header >> 2;
  252|  16.0k|      case 1: {
  ------------------
  |  Branch (252:7): [True: 16.0k, False: 908k]
  ------------------
  253|  16.0k|         uint16_t h;
  254|  16.0k|         std::memcpy(&h, it, 2);
  255|       |         if constexpr (std::endian::native == std::endian::big) {
  256|       |            h = std::byteswap(h);
  257|       |         }
  258|  16.0k|         it += 2;
  259|  16.0k|         return h >> 2;
  260|      0|      }
  261|  8.76k|      case 2: {
  ------------------
  |  Branch (261:7): [True: 8.76k, False: 916k]
  ------------------
  262|  8.76k|         uint32_t h;
  263|  8.76k|         std::memcpy(&h, it, 4);
  264|       |         if constexpr (std::endian::native == std::endian::big) {
  265|       |            h = std::byteswap(h);
  266|       |         }
  267|  8.76k|         it += 4;
  268|  8.76k|         return h >> 2;
  269|      0|      }
  270|  16.1k|      case 3: {
  ------------------
  |  Branch (270:7): [True: 16.1k, False: 908k]
  ------------------
  271|       |         // On 32-bit systems it's impossible to address more than 4 GBiB of memory, so we should verify first if we are
  272|       |         // running in 64-bit mode here
  273|  16.1k|         if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
  274|  16.1k|            uint64_t h;
  275|  16.1k|            std::memcpy(&h, it, 8);
  276|       |            if constexpr (std::endian::native == std::endian::big) {
  277|       |               h = std::byteswap(h);
  278|       |            }
  279|  16.1k|            it += 8;
  280|  16.1k|            h = h >> 2;
  281|  16.1k|            static constexpr uint64_t safety_limit = 1ull << 48; // 2^48
  282|  16.1k|            if (h > safety_limit) [[unlikely]] {
  ------------------
  |  Branch (282:17): [True: 1.14k, False: 15.0k]
  ------------------
  283|  1.14k|               ctx.error = error_code::unexpected_end;
  284|  1.14k|               return 0;
  285|  1.14k|            }
  286|  15.0k|            return h;
  287|       |         }
  288|       |         else {
  289|       |            // 8-byte length encoding not supported on 32-bit systems
  290|       |            ctx.error = error_code::invalid_length;
  291|       |            return 0;
  292|       |         }
  293|  16.1k|      }
  294|  16.1k|      default:
  ------------------
  |  Branch (294:7): [True: 0, False: 924k]
  ------------------
  295|  16.1k|         ctx.error = error_code::syntax_error;
  296|  16.1k|         return 0;
  297|   924k|      }
  298|   924k|   }
_ZN3glz25typed_array_out_of_boundsITkNS_10is_contextENS_7contextERPKcS4_EEbRT_OT0_OT1_mmm:
   48|  25.8k|   {
   49|  25.8k|      const uint64_t available = uint64_t(end - it);
   50|  25.8k|      if constexpr (sizeof(size_t) > sizeof(uint32_t)) {
   51|  25.8k|         if (available < padding + count * element_size) [[unlikely]] {
  ------------------
  |  Branch (51:14): [True: 594, False: 25.3k]
  ------------------
   52|    594|            ctx.error = error_code::unexpected_end;
   53|    594|            return true;
   54|    594|         }
   55|       |      }
   56|       |      else {
   57|       |         if (available < padding || count > (available - padding) / element_size) [[unlikely]] {
   58|       |            ctx.error = error_code::unexpected_end;
   59|       |            return true;
   60|       |         }
   61|       |      }
   62|  25.3k|      return false;
   63|  25.8k|   }
_ZN3glz19skip_compressed_intITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  301|  2.48k|   {
  302|  2.48k|      if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (302:11): [True: 2, False: 2.48k]
  ------------------
  303|      2|         return;
  304|      2|      }
  305|       |
  306|  2.48k|      uint8_t header;
  307|  2.48k|      std::memcpy(&header, it, 1);
  308|  2.48k|      const uint8_t config = header & 0b000000'11;
  309|       |
  310|  2.48k|      if (size_t(end - it) < byte_count_lookup[config]) [[unlikely]] {
  ------------------
  |  Branch (310:11): [True: 4, False: 2.47k]
  ------------------
  311|      4|         ctx.error = error_code::unexpected_end;
  312|      4|         return;
  313|      4|      }
  314|       |
  315|  2.47k|      switch (config) {
  316|  1.80k|      case 0:
  ------------------
  |  Branch (316:7): [True: 1.80k, False: 668]
  ------------------
  317|  1.80k|         ++it;
  318|  1.80k|         return;
  319|    221|      case 1: {
  ------------------
  |  Branch (319:7): [True: 221, False: 2.25k]
  ------------------
  320|    221|         it += 2;
  321|    221|         return;
  322|      0|      }
  323|    244|      case 2: {
  ------------------
  |  Branch (323:7): [True: 244, False: 2.23k]
  ------------------
  324|    244|         it += 4;
  325|    244|         return;
  326|      0|      }
  327|    203|      case 3: {
  ------------------
  |  Branch (327:7): [True: 203, False: 2.27k]
  ------------------
  328|    203|         it += 8;
  329|    203|         return;
  330|      0|      }
  331|      0|      default:
  ------------------
  |  Branch (331:7): [True: 0, False: 2.47k]
  ------------------
  332|      0|         return;
  333|  2.47k|      }
  334|  2.47k|   }

_ZN3glz9read_beveITkNS_14read_supportedIL_ZNS_4BEVEEEEE9my_structRKNSt3__16vectorIcNS3_9allocatorIcEEEEEENS3_8expectedIT_NS_9error_ctxEEEOT0_:
 3198|  21.6k|   {
 3199|  21.6k|      T value{};
 3200|  21.6k|      const auto pe = read<opts{.format = BEVE}>(value, std::forward<Buffer>(buffer));
 3201|  21.6k|      if (pe) [[unlikely]] {
  ------------------
  |  Branch (3201:11): [True: 21.6k, False: 59]
  ------------------
 3202|  21.6k|         return unexpected(pe);
 3203|  21.6k|      }
 3204|     59|      return value;
 3205|  21.6k|   }
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEER9my_structTkNS_10is_contextERNS_7contextERPKcS9_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  21.6k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  21.6k|         else {
   68|  21.6k|            using V = std::remove_cvref_t<T>;
   69|  21.6k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  21.6k|                                             end);
   71|  21.6k|         }
   72|  21.6k|      }
_ZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_:
 2894|  21.6k|      {
 2895|  21.6k|         constexpr uint8_t type = 0; // string key
 2896|  21.6k|         constexpr uint8_t header = tag::object | type;
 2897|       |
 2898|  21.6k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (2898:14): [True: 0, False: 21.6k]
  ------------------
 2899|      0|            return;
 2900|      0|         }
 2901|  21.6k|         const auto tag = uint8_t(*it);
 2902|  21.6k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2902:14): [True: 17.2k, False: 4.38k]
  ------------------
 2903|  17.2k|            ctx.error = error_code::syntax_error;
 2904|  17.2k|            return;
 2905|  17.2k|         }
 2906|       |
 2907|  4.38k|         depth_guard guard{ctx};
 2908|  4.38k|         if (!guard) [[unlikely]] {
  ------------------
  |  Branch (2908:14): [True: 0, False: 4.38k]
  ------------------
 2909|      0|            return;
 2910|      0|         }
 2911|       |
 2912|  4.38k|         ++it;
 2913|       |
 2914|  4.38k|         static constexpr auto N = reflect<T>::size;
 2915|       |         if constexpr (N == 0) {
 2916|       |            (void)value;
 2917|       |         }
 2918|       |
 2919|  4.38k|         static constexpr bit_array<N> all_fields = [] {
 2920|  4.38k|            bit_array<N> arr{};
 2921|  4.38k|            for (size_t i = 0; i < N; ++i) {
 2922|  4.38k|               arr[i] = true;
 2923|  4.38k|            }
 2924|  4.38k|            return arr;
 2925|  4.38k|         }();
 2926|       |
 2927|  4.38k|         decltype(auto) fields = [&]() -> decltype(auto) {
 2928|  4.38k|            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 2929|  4.38k|               return bit_array<N>{};
 2930|  4.38k|            }
 2931|  4.38k|            else {
 2932|  4.38k|               return nullptr;
 2933|  4.38k|            }
 2934|  4.38k|         }();
 2935|       |
 2936|  4.38k|         const auto n_keys = int_from_compressed(ctx, it, end);
 2937|  4.38k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2937:14): [True: 169, False: 4.21k]
  ------------------
 2938|    169|            return;
 2939|    169|         }
 2940|       |
 2941|  19.6k|         for (size_t i = 0; i < n_keys; ++i) {
  ------------------
  |  Branch (2941:29): [True: 15.4k, False: 4.21k]
  ------------------
 2942|       |            if constexpr (Opts.partial_read) {
 2943|       |               if ((all_fields & fields) == all_fields) {
 2944|       |                  return;
 2945|       |               }
 2946|       |            }
 2947|       |
 2948|  15.4k|            if constexpr (N > 0) {
 2949|  15.4k|               static constexpr auto HashInfo = hash_info<T>;
 2950|       |
 2951|  15.4k|               const auto n = int_from_compressed(ctx, it, end);
 2952|  15.4k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2952:20): [True: 583, False: 14.8k]
  ------------------
 2953|    583|                  return;
 2954|    583|               }
 2955|  14.8k|               if (uint64_t(end - it) < n || it == end) [[unlikely]] {
  ------------------
  |  Branch (2955:20): [True: 401, False: 14.4k]
  |  Branch (2955:46): [True: 238, False: 14.1k]
  ------------------
 2956|    639|                  ctx.error = error_code::unexpected_end;
 2957|    639|                  return;
 2958|    639|               }
 2959|       |
 2960|       |               if constexpr (not Tag.sv().empty() && not has_member_with_name<T>(Tag.sv())) {
 2961|       |                  // Discriminator key injected by the variant reader: skip it (and its value) without
 2962|       |                  // consulting error_on_unknown_keys, while the alternative's real keys stay checked.
 2963|       |                  if (sv{it, n} == Tag.sv()) {
 2964|       |                     it += n;
 2965|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 2966|       |                     if (bool(ctx.error)) [[unlikely]] {
 2967|       |                        return;
 2968|       |                     }
 2969|       |                     continue;
 2970|       |                  }
 2971|       |               }
 2972|       |
 2973|  14.1k|               const auto index = decode_hash_with_size<BEVE, T, HashInfo, HashInfo.type>::op(it, end, n);
 2974|       |
 2975|  14.1k|               if (index < N) [[likely]] {
  ------------------
  |  Branch (2975:20): [True: 13.6k, False: 529]
  ------------------
 2976|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 2977|       |                     fields[index] = true;
 2978|       |                  }
 2979|       |
 2980|  13.6k|                  const sv key{it, n};
 2981|  13.6k|                  it += n;
 2982|       |
 2983|  13.6k|                  visit<N>(
 2984|  13.6k|                     [&]<size_t I>() {
 2985|  13.6k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  13.6k|                        static constexpr auto Length = TargetKey.size();
 2987|  13.6k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
 2988|       |                           // Check for null value skipping on read
 2989|  13.6k|                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|  13.6k|                              if (invalid_end(ctx, it, end)) {
 2991|  13.6k|                                 return;
 2992|  13.6k|                              }
 2993|  13.6k|                              if (uint8_t(*it) == tag::null) {
 2994|  13.6k|                                 ++it; // Skip the null tag
 2995|  13.6k|                                 return;
 2996|  13.6k|                              }
 2997|  13.6k|                           }
 2998|       |
 2999|  13.6k|                           if constexpr (reflectable<T>) {
 3000|  13.6k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|  13.6k|                           }
 3002|  13.6k|                           else {
 3003|  13.6k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|  13.6k|                           }
 3005|  13.6k|                        }
 3006|  13.6k|                        else {
 3007|  13.6k|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|  13.6k|                              ctx.error = error_code::unknown_key;
 3009|  13.6k|                              return;
 3010|  13.6k|                           }
 3011|  13.6k|                           else {
 3012|  13.6k|                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|  13.6k|                              if (bool(ctx.error)) [[unlikely]]
 3014|  13.6k|                                 return;
 3015|  13.6k|                           }
 3016|  13.6k|                        }
 3017|  13.6k|                     },
 3018|  13.6k|                     index);
 3019|       |
 3020|  13.6k|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (3020:23): [True: 2.40k, False: 11.2k]
  ------------------
 3021|  2.40k|                     return;
 3022|  2.40k|                  }
 3023|  13.6k|               }
 3024|    529|               else [[unlikely]] {
 3025|    529|                  if constexpr (Opts.error_on_unknown_keys) {
 3026|    529|                     ctx.error = error_code::unknown_key;
 3027|    529|                     return;
 3028|       |                  }
 3029|       |                  else {
 3030|       |                     it += n;
 3031|       |                     skip_value<BEVE>::op<Opts>(ctx, it, end);
 3032|       |                     if (bool(ctx.error)) [[unlikely]]
 3033|       |                        return;
 3034|       |                  }
 3035|    529|               }
 3036|       |            }
 3037|       |            else if constexpr (Opts.error_on_unknown_keys) {
 3038|       |               ctx.error = error_code::unknown_key;
 3039|       |               return;
 3040|       |            }
 3041|       |            else {
 3042|       |               skip_value<BEVE>::op<Opts>(ctx, it, end);
 3043|       |               if (bool(ctx.error)) [[unlikely]]
 3044|       |                  return;
 3045|       |            }
 3046|  15.4k|         }
 3047|       |
 3048|       |         if constexpr (Opts.error_on_missing_keys) {
 3049|       |            constexpr auto req_fields = required_fields<T, Opts>();
 3050|       |            if ((req_fields & fields) != req_fields) {
 3051|       |               for (size_t i = 0; i < N; ++i) {
 3052|       |                  if (not fields[i] && req_fields[i]) {
 3053|       |                     ctx.custom_error_message = reflect<T>::keys[i];
 3054|       |                     break;
 3055|       |                  }
 3056|       |               }
 3057|       |               ctx.error = error_code::missing_key;
 3058|       |               return;
 3059|       |            }
 3060|       |         }
 3061|  4.21k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlvE0_clEv:
 2927|  4.38k|         decltype(auto) fields = [&]() -> decltype(auto) {
 2928|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 2929|       |               return bit_array<N>{};
 2930|       |            }
 2931|  4.38k|            else {
 2932|  4.38k|               return nullptr;
 2933|  4.38k|            }
 2934|  4.38k|         }();
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm0EEEDav:
 2984|  3.88k|                     [&]<size_t I>() {
 2985|  3.88k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  3.88k|                        static constexpr auto Length = TargetKey.size();
 2987|  3.88k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 3.88k, False: 5]
  |  Branch (2987:46): [True: 3.88k, False: 0]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  3.88k|                           if constexpr (reflectable<T>) {
 3000|  3.88k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  3.88k|                        }
 3006|      5|                        else {
 3007|      5|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|      5|                              ctx.error = error_code::unknown_key;
 3009|      5|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|      5|                        }
 3017|  3.88k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  3.88k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  3.88k|         else {
   68|  3.88k|            using V = std::remove_cvref_t<T>;
   69|  3.88k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  3.88k|                                             end);
   71|  3.88k|         }
   72|  3.88k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  334|  3.88k|      {
  335|  3.88k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (335:14): [True: 5, False: 3.87k]
  ------------------
  336|      5|            return;
  337|      5|         }
  338|  3.87k|         const auto tag = uint8_t(*it);
  339|  3.87k|         ++it;
  340|  3.87k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  341|  3.87k|      }
_ZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  208|  3.87k|      {
  209|  3.87k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (209:14): [True: 28, False: 3.84k]
  ------------------
  210|     28|            return;
  211|     28|         }
  212|       |
  213|  3.84k|         using V = std::decay_t<decltype(value)>;
  214|       |
  215|  3.84k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  216|       |
  217|  3.84k|         if (tag != header) {
  ------------------
  |  Branch (217:14): [True: 3.31k, False: 531]
  ------------------
  218|  3.31k|            if constexpr (check_allow_conversions(Opts)) {
  219|  3.31k|               if constexpr (num_t<T>) {
  220|  3.31k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (220:23): [True: 22, False: 3.29k]
  ------------------
  221|     22|                     ctx.error = error_code::syntax_error;
  222|     22|                     return;
  223|     22|                  }
  224|       |
  225|  3.29k|                  auto decode = [&](auto&& i) {
  226|  3.29k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  227|  3.29k|                        ctx.error = error_code::unexpected_end;
  228|  3.29k|                        return;
  229|  3.29k|                     }
  230|  3.29k|                     using I = std::decay_t<decltype(i)>;
  231|  3.29k|                     std::memcpy(&i, it, sizeof(I));
  232|  3.29k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|  3.29k|                        byteswap_le(i);
  234|  3.29k|                     }
  235|  3.29k|                     value = static_cast<V>(i);
  236|  3.29k|                     it += sizeof(i);
  237|  3.29k|                  };
  238|       |
  239|  3.29k|                  switch (tag) {
  240|      3|                  case tag::f32: {
  ------------------
  |  Branch (240:19): [True: 3, False: 3.29k]
  ------------------
  241|      3|                     if constexpr (std::integral<V>) {
  242|       |                        // We do not allow cross conversions from floats to integral types
  243|      3|                        ctx.error = error_code::syntax_error;
  244|       |                     }
  245|       |                     else {
  246|       |                        static_assert(sizeof(float) == 4);
  247|       |                        // TODO: use float32_t in C++23
  248|       |                        decode(float{});
  249|       |                     }
  250|      3|                     return;
  251|      0|                  }
  252|      3|                  case tag::f64: {
  ------------------
  |  Branch (252:19): [True: 3, False: 3.29k]
  ------------------
  253|      3|                     if constexpr (std::integral<V>) {
  254|       |                        // We do not allow cross conversions from floats to integral types
  255|      3|                        ctx.error = error_code::syntax_error;
  256|       |                     }
  257|       |                     else {
  258|       |                        static_assert(sizeof(double) == 8);
  259|       |                        // TODO: use float64_t in C++23
  260|       |                        decode(double{});
  261|       |                     }
  262|      3|                     return;
  263|      0|                  }
  264|    488|                  case tag::i8: {
  ------------------
  |  Branch (264:19): [True: 488, False: 2.80k]
  ------------------
  265|    488|                     decode(int8_t{});
  266|    488|                     return;
  267|      0|                  }
  268|    482|                  case tag::i16: {
  ------------------
  |  Branch (268:19): [True: 482, False: 2.81k]
  ------------------
  269|    482|                     decode(int16_t{});
  270|    482|                     return;
  271|      0|                  }
  272|      0|                  case tag::i32: {
  ------------------
  |  Branch (272:19): [True: 0, False: 3.29k]
  ------------------
  273|      0|                     decode(int32_t{});
  274|      0|                     return;
  275|      0|                  }
  276|    229|                  case tag::i64: {
  ------------------
  |  Branch (276:19): [True: 229, False: 3.06k]
  ------------------
  277|    229|                     decode(int64_t{});
  278|    229|                     return;
  279|      0|                  }
  280|    353|                  case tag::u8: {
  ------------------
  |  Branch (280:19): [True: 353, False: 2.94k]
  ------------------
  281|    353|                     decode(uint8_t{});
  282|    353|                     return;
  283|      0|                  }
  284|    197|                  case tag::u16: {
  ------------------
  |  Branch (284:19): [True: 197, False: 3.09k]
  ------------------
  285|    197|                     decode(uint16_t{});
  286|    197|                     return;
  287|      0|                  }
  288|    647|                  case tag::u32: {
  ------------------
  |  Branch (288:19): [True: 647, False: 2.64k]
  ------------------
  289|    647|                     decode(uint32_t{});
  290|    647|                     return;
  291|      0|                  }
  292|    891|                  case tag::u64: {
  ------------------
  |  Branch (292:19): [True: 891, False: 2.40k]
  ------------------
  293|    891|                     decode(uint64_t{});
  294|    891|                     return;
  295|      0|                  }
  296|      3|                  default: {
  ------------------
  |  Branch (296:19): [True: 3, False: 3.29k]
  ------------------
  297|      3|                     ctx.error = error_code::syntax_error;
  298|      3|                     return;
  299|      0|                  }
  300|  3.29k|                  }
  301|  3.29k|               }
  302|       |            }
  303|       |            else {
  304|       |               ctx.error = error_code::syntax_error;
  305|       |               return;
  306|       |            }
  307|  3.31k|         }
  308|       |
  309|  3.84k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (309:14): [True: 8, False: 3.84k]
  ------------------
  310|      8|            ctx.error = error_code::unexpected_end;
  311|      8|            return;
  312|      8|         }
  313|       |
  314|       |         if constexpr (is_volatile) {
  315|       |            V temp;
  316|       |            std::memcpy(&temp, it, sizeof(V));
  317|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  318|       |               byteswap_le(temp);
  319|       |            }
  320|       |            value = temp;
  321|       |         }
  322|  3.84k|         else {
  323|  3.84k|            std::memcpy(&value, it, sizeof(V));
  324|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  325|       |               byteswap_le(value);
  326|       |            }
  327|  3.84k|         }
  328|  3.84k|         it += sizeof(V);
  329|  3.84k|      }
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  225|    488|                  auto decode = [&](auto&& i) {
  226|    488|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 488]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    488|                     using I = std::decay_t<decltype(i)>;
  231|    488|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    488|                     value = static_cast<V>(i);
  236|    488|                     it += sizeof(i);
  237|    488|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  225|    482|                  auto decode = [&](auto&& i) {
  226|    482|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 4, False: 478]
  ------------------
  227|      4|                        ctx.error = error_code::unexpected_end;
  228|      4|                        return;
  229|      4|                     }
  230|    478|                     using I = std::decay_t<decltype(i)>;
  231|    478|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    478|                     value = static_cast<V>(i);
  236|    478|                     it += sizeof(i);
  237|    478|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  225|    229|                  auto decode = [&](auto&& i) {
  226|    229|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 9, False: 220]
  ------------------
  227|      9|                        ctx.error = error_code::unexpected_end;
  228|      9|                        return;
  229|      9|                     }
  230|    220|                     using I = std::decay_t<decltype(i)>;
  231|    220|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    220|                     value = static_cast<V>(i);
  236|    220|                     it += sizeof(i);
  237|    220|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  225|    353|                  auto decode = [&](auto&& i) {
  226|    353|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 353]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    353|                     using I = std::decay_t<decltype(i)>;
  231|    353|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    353|                     value = static_cast<V>(i);
  236|    353|                     it += sizeof(i);
  237|    353|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  225|    197|                  auto decode = [&](auto&& i) {
  226|    197|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 194]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  225|    647|                  auto decode = [&](auto&& i) {
  226|    647|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 6, False: 641]
  ------------------
  227|      6|                        ctx.error = error_code::unexpected_end;
  228|      6|                        return;
  229|      6|                     }
  230|    641|                     using I = std::decay_t<decltype(i)>;
  231|    641|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    641|                     value = static_cast<V>(i);
  236|    641|                     it += sizeof(i);
  237|    641|                  };
_ZZN3glz4fromILj1EiE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERiTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  225|    891|                  auto decode = [&](auto&& i) {
  226|    891|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 11, False: 880]
  ------------------
  227|     11|                        ctx.error = error_code::unexpected_end;
  228|     11|                        return;
  229|     11|                     }
  230|    880|                     using I = std::decay_t<decltype(i)>;
  231|    880|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    880|                     value = static_cast<V>(i);
  236|    880|                     it += sizeof(i);
  237|    880|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm1EEEDav:
 2984|  2.79k|                     [&]<size_t I>() {
 2985|  2.79k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  2.79k|                        static constexpr auto Length = TargetKey.size();
 2987|  2.79k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 2.78k, False: 13]
  |  Branch (2987:46): [True: 2.78k, False: 0]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  2.78k|                           if constexpr (reflectable<T>) {
 3000|  2.78k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  2.78k|                        }
 3006|     13|                        else {
 3007|     13|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|     13|                              ctx.error = error_code::unknown_key;
 3009|     13|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|     13|                        }
 3017|  2.79k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  2.78k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  2.78k|         else {
   68|  2.78k|            using V = std::remove_cvref_t<T>;
   69|  2.78k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  2.78k|                                             end);
   71|  2.78k|         }
   72|  2.78k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
  334|  2.78k|      {
  335|  2.78k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (335:14): [True: 4, False: 2.78k]
  ------------------
  336|      4|            return;
  337|      4|         }
  338|  2.78k|         const auto tag = uint8_t(*it);
  339|  2.78k|         ++it;
  340|  2.78k|         op<no_header_on<Opts>()>(value, tag, ctx, it, end);
  341|  2.78k|      }
_ZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  208|  2.78k|      {
  209|  2.78k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (209:14): [True: 27, False: 2.75k]
  ------------------
  210|     27|            return;
  211|     27|         }
  212|       |
  213|  2.75k|         using V = std::decay_t<decltype(value)>;
  214|       |
  215|  2.75k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  216|       |
  217|  2.75k|         if (tag != header) {
  ------------------
  |  Branch (217:14): [True: 2.54k, False: 207]
  ------------------
  218|  2.54k|            if constexpr (check_allow_conversions(Opts)) {
  219|  2.54k|               if constexpr (num_t<T>) {
  220|  2.54k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (220:23): [True: 19, False: 2.52k]
  ------------------
  221|     19|                     ctx.error = error_code::syntax_error;
  222|     19|                     return;
  223|     19|                  }
  224|       |
  225|  2.52k|                  auto decode = [&](auto&& i) {
  226|  2.52k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  227|  2.52k|                        ctx.error = error_code::unexpected_end;
  228|  2.52k|                        return;
  229|  2.52k|                     }
  230|  2.52k|                     using I = std::decay_t<decltype(i)>;
  231|  2.52k|                     std::memcpy(&i, it, sizeof(I));
  232|  2.52k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|  2.52k|                        byteswap_le(i);
  234|  2.52k|                     }
  235|  2.52k|                     value = static_cast<V>(i);
  236|  2.52k|                     it += sizeof(i);
  237|  2.52k|                  };
  238|       |
  239|  2.52k|                  switch (tag) {
  240|    261|                  case tag::f32: {
  ------------------
  |  Branch (240:19): [True: 261, False: 2.26k]
  ------------------
  241|       |                     if constexpr (std::integral<V>) {
  242|       |                        // We do not allow cross conversions from floats to integral types
  243|       |                        ctx.error = error_code::syntax_error;
  244|       |                     }
  245|    261|                     else {
  246|    261|                        static_assert(sizeof(float) == 4);
  247|       |                        // TODO: use float32_t in C++23
  248|    261|                        decode(float{});
  249|    261|                     }
  250|    261|                     return;
  251|      0|                  }
  252|      0|                  case tag::f64: {
  ------------------
  |  Branch (252:19): [True: 0, False: 2.52k]
  ------------------
  253|       |                     if constexpr (std::integral<V>) {
  254|       |                        // We do not allow cross conversions from floats to integral types
  255|       |                        ctx.error = error_code::syntax_error;
  256|       |                     }
  257|      0|                     else {
  258|      0|                        static_assert(sizeof(double) == 8);
  259|       |                        // TODO: use float64_t in C++23
  260|      0|                        decode(double{});
  261|      0|                     }
  262|      0|                     return;
  263|      0|                  }
  264|    416|                  case tag::i8: {
  ------------------
  |  Branch (264:19): [True: 416, False: 2.11k]
  ------------------
  265|    416|                     decode(int8_t{});
  266|    416|                     return;
  267|      0|                  }
  268|    197|                  case tag::i16: {
  ------------------
  |  Branch (268:19): [True: 197, False: 2.33k]
  ------------------
  269|    197|                     decode(int16_t{});
  270|    197|                     return;
  271|      0|                  }
  272|    251|                  case tag::i32: {
  ------------------
  |  Branch (272:19): [True: 251, False: 2.27k]
  ------------------
  273|    251|                     decode(int32_t{});
  274|    251|                     return;
  275|      0|                  }
  276|    203|                  case tag::i64: {
  ------------------
  |  Branch (276:19): [True: 203, False: 2.32k]
  ------------------
  277|    203|                     decode(int64_t{});
  278|    203|                     return;
  279|      0|                  }
  280|    390|                  case tag::u8: {
  ------------------
  |  Branch (280:19): [True: 390, False: 2.13k]
  ------------------
  281|    390|                     decode(uint8_t{});
  282|    390|                     return;
  283|      0|                  }
  284|    281|                  case tag::u16: {
  ------------------
  |  Branch (284:19): [True: 281, False: 2.24k]
  ------------------
  285|    281|                     decode(uint16_t{});
  286|    281|                     return;
  287|      0|                  }
  288|    275|                  case tag::u32: {
  ------------------
  |  Branch (288:19): [True: 275, False: 2.25k]
  ------------------
  289|    275|                     decode(uint32_t{});
  290|    275|                     return;
  291|      0|                  }
  292|    249|                  case tag::u64: {
  ------------------
  |  Branch (292:19): [True: 249, False: 2.27k]
  ------------------
  293|    249|                     decode(uint64_t{});
  294|    249|                     return;
  295|      0|                  }
  296|      4|                  default: {
  ------------------
  |  Branch (296:19): [True: 4, False: 2.52k]
  ------------------
  297|      4|                     ctx.error = error_code::syntax_error;
  298|      4|                     return;
  299|      0|                  }
  300|  2.52k|                  }
  301|  2.52k|               }
  302|       |            }
  303|       |            else {
  304|       |               ctx.error = error_code::syntax_error;
  305|       |               return;
  306|       |            }
  307|  2.54k|         }
  308|       |
  309|  2.75k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (309:14): [True: 7, False: 2.74k]
  ------------------
  310|      7|            ctx.error = error_code::unexpected_end;
  311|      7|            return;
  312|      7|         }
  313|       |
  314|       |         if constexpr (is_volatile) {
  315|       |            V temp;
  316|       |            std::memcpy(&temp, it, sizeof(V));
  317|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  318|       |               byteswap_le(temp);
  319|       |            }
  320|       |            value = temp;
  321|       |         }
  322|  2.74k|         else {
  323|  2.74k|            std::memcpy(&value, it, sizeof(V));
  324|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  325|       |               byteswap_le(value);
  326|       |            }
  327|  2.74k|         }
  328|  2.74k|         it += sizeof(V);
  329|  2.74k|      }
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIfEEDaSI_:
  225|    261|                  auto decode = [&](auto&& i) {
  226|    261|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 5, False: 256]
  ------------------
  227|      5|                        ctx.error = error_code::unexpected_end;
  228|      5|                        return;
  229|      5|                     }
  230|    256|                     using I = std::decay_t<decltype(i)>;
  231|    256|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    256|                     value = static_cast<V>(i);
  236|    256|                     it += sizeof(i);
  237|    256|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  225|    416|                  auto decode = [&](auto&& i) {
  226|    416|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 416]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    416|                     using I = std::decay_t<decltype(i)>;
  231|    416|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    416|                     value = static_cast<V>(i);
  236|    416|                     it += sizeof(i);
  237|    416|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  225|    197|                  auto decode = [&](auto&& i) {
  226|    197|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 194]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    194|                     using I = std::decay_t<decltype(i)>;
  231|    194|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    194|                     value = static_cast<V>(i);
  236|    194|                     it += sizeof(i);
  237|    194|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  225|    251|                  auto decode = [&](auto&& i) {
  226|    251|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 6, False: 245]
  ------------------
  227|      6|                        ctx.error = error_code::unexpected_end;
  228|      6|                        return;
  229|      6|                     }
  230|    245|                     using I = std::decay_t<decltype(i)>;
  231|    245|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    245|                     value = static_cast<V>(i);
  236|    245|                     it += sizeof(i);
  237|    245|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  225|    203|                  auto decode = [&](auto&& i) {
  226|    203|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 7, False: 196]
  ------------------
  227|      7|                        ctx.error = error_code::unexpected_end;
  228|      7|                        return;
  229|      7|                     }
  230|    196|                     using I = std::decay_t<decltype(i)>;
  231|    196|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    196|                     value = static_cast<V>(i);
  236|    196|                     it += sizeof(i);
  237|    196|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  225|    390|                  auto decode = [&](auto&& i) {
  226|    390|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 390]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|    390|                     using I = std::decay_t<decltype(i)>;
  231|    390|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    390|                     value = static_cast<V>(i);
  236|    390|                     it += sizeof(i);
  237|    390|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  225|    281|                  auto decode = [&](auto&& i) {
  226|    281|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 3, False: 278]
  ------------------
  227|      3|                        ctx.error = error_code::unexpected_end;
  228|      3|                        return;
  229|      3|                     }
  230|    278|                     using I = std::decay_t<decltype(i)>;
  231|    278|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    278|                     value = static_cast<V>(i);
  236|    278|                     it += sizeof(i);
  237|    278|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  225|    275|                  auto decode = [&](auto&& i) {
  226|    275|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 6, False: 269]
  ------------------
  227|      6|                        ctx.error = error_code::unexpected_end;
  228|      6|                        return;
  229|      6|                     }
  230|    269|                     using I = std::decay_t<decltype(i)>;
  231|    269|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    269|                     value = static_cast<V>(i);
  236|    269|                     it += sizeof(i);
  237|    269|                  };
_ZZN3glz4fromILj1EdE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERdTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clImEEDaSI_:
  225|    249|                  auto decode = [&](auto&& i) {
  226|    249|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 7, False: 242]
  ------------------
  227|      7|                        ctx.error = error_code::unexpected_end;
  228|      7|                        return;
  229|      7|                     }
  230|    242|                     using I = std::decay_t<decltype(i)>;
  231|    242|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    242|                     value = static_cast<V>(i);
  236|    242|                     it += sizeof(i);
  237|    242|                  };
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm2EEEDav:
 2984|  2.01k|                     [&]<size_t I>() {
 2985|  2.01k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  2.01k|                        static constexpr auto Length = TargetKey.size();
 2987|  2.01k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 2.00k, False: 9]
  |  Branch (2987:46): [True: 1.93k, False: 75]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  1.93k|                           if constexpr (reflectable<T>) {
 3000|  1.93k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  1.93k|                        }
 3006|     84|                        else {
 3007|     84|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|     84|                              ctx.error = error_code::unknown_key;
 3009|     84|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|     84|                        }
 3017|  2.01k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  1.93k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  1.93k|         else {
   68|  1.93k|            using V = std::remove_cvref_t<T>;
   69|  1.93k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  1.93k|                                             end);
   71|  1.93k|         }
   72|  1.93k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_Qntcl15check_no_headerTL0__EEEvOT0_OT1_OT2_T3_:
 1459|  1.93k|      {
 1460|  1.93k|         constexpr uint8_t header = tag::string;
 1461|       |
 1462|  1.93k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1462:14): [True: 4, False: 1.93k]
  ------------------
 1463|      4|            return;
 1464|      4|         }
 1465|  1.93k|         const auto tag = uint8_t(*it);
 1466|  1.93k|         if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (1466:14): [True: 12, False: 1.91k]
  ------------------
 1467|     12|            ctx.error = error_code::syntax_error;
 1468|     12|            return;
 1469|     12|         }
 1470|       |
 1471|  1.91k|         ++it;
 1472|  1.91k|         const auto n = int_from_compressed(ctx, it, end);
 1473|  1.91k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1473:14): [True: 134, False: 1.78k]
  ------------------
 1474|    134|            return;
 1475|    134|         }
 1476|  1.78k|         if (uint64_t(end - it) < n) [[unlikely]] {
  ------------------
  |  Branch (1476:14): [True: 139, False: 1.64k]
  ------------------
 1477|    139|            ctx.error = error_code::unexpected_end;
 1478|    139|            return;
 1479|    139|         }
 1480|       |         if constexpr (check_max_string_length(Opts) > 0) {
 1481|       |            if (n > check_max_string_length(Opts)) [[unlikely]] {
 1482|       |               ctx.error = error_code::invalid_length;
 1483|       |               return;
 1484|       |            }
 1485|       |         }
 1486|       |         if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 1487|       |            if (ctx.max_string_length > 0 && n > ctx.max_string_length) [[unlikely]] {
 1488|       |               ctx.error = error_code::invalid_length;
 1489|       |               return;
 1490|       |            }
 1491|       |         }
 1492|       |
 1493|  1.64k|         store(value, ctx, it, n);
 1494|  1.64k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1494:14): [True: 0, False: 1.64k]
  ------------------
 1495|      0|            return;
 1496|      0|         }
 1497|  1.64k|         it += n;
 1498|  1.64k|      }
_ZN3glz4fromILj1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE5storeIRS7_TkNS_10is_contextERNS_7contextERPKcEEvOT_OT0_OT1_m:
 1399|  1.64k|      {
 1400|       |         if constexpr (string_view_t<T>) {
 1401|       |            value = {it, n};
 1402|       |         }
 1403|       |         else if constexpr (array_char_t<T>) {
 1404|       |            // Fixed-size std::array<char, N> cannot be resized, so the decoded payload must
 1405|       |            // fit within it. Any trailing bytes are zero-filled to keep the buffer
 1406|       |            // deterministic when a shorter payload is read into a larger array.
 1407|       |            if (n > value.size()) [[unlikely]] {
 1408|       |               ctx.error = error_code::syntax_error;
 1409|       |               return;
 1410|       |            }
 1411|       |            std::memcpy(value.data(), it, n);
 1412|       |            if (n < value.size()) {
 1413|       |               std::memset(value.data() + n, 0, value.size() - n);
 1414|       |            }
 1415|       |         }
 1416|  1.64k|         else {
 1417|  1.64k|            if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
  ------------------
  |  Branch (1417:17): [True: 0, False: 1.64k]
  ------------------
 1418|      0|               return;
 1419|      0|            }
 1420|  1.64k|            value.resize(n);
 1421|  1.64k|            std::memcpy(value.data(), it, n);
 1422|  1.64k|         }
 1423|  1.64k|      }
_ZZN3glz4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS5_ILm1EEEEERS1_TkNS_10is_contextERNS_7contextERPKcSB_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_ENKUlTnmvE_clILm3EEEDav:
 2984|  4.95k|                     [&]<size_t I>() {
 2985|  4.95k|                        static constexpr auto TargetKey = get<I>(reflect<T>::keys);
 2986|  4.95k|                        static constexpr auto Length = TargetKey.size();
 2987|  4.95k|                        if ((Length == n) && compare<Length>(TargetKey.data(), key.data())) [[likely]] {
  ------------------
  |  Branch (2987:29): [True: 4.95k, False: 5]
  |  Branch (2987:46): [True: 4.89k, False: 61]
  ------------------
 2988|       |                           // Check for null value skipping on read
 2989|       |                           if constexpr (check_skip_null_members_on_read(Opts)) {
 2990|       |                              if (invalid_end(ctx, it, end)) {
 2991|       |                                 return;
 2992|       |                              }
 2993|       |                              if (uint8_t(*it) == tag::null) {
 2994|       |                                 ++it; // Skip the null tag
 2995|       |                                 return;
 2996|       |                              }
 2997|       |                           }
 2998|       |
 2999|  4.89k|                           if constexpr (reflectable<T>) {
 3000|  4.89k|                              parse<BEVE>::op<Opts>(get_member(value, get<I>(to_tie(value))), ctx, it, end);
 3001|       |                           }
 3002|       |                           else {
 3003|       |                              parse<BEVE>::op<Opts>(get_member(value, get<I>(reflect<T>::values)), ctx, it, end);
 3004|       |                           }
 3005|  4.89k|                        }
 3006|     66|                        else {
 3007|     66|                           if constexpr (Opts.error_on_unknown_keys) {
 3008|     66|                              ctx.error = error_code::unknown_key;
 3009|     66|                              return;
 3010|       |                           }
 3011|       |                           else {
 3012|       |                              skip_value<BEVE>::op<Opts>(ctx, it, end);
 3013|       |                              if (bool(ctx.error)) [[unlikely]]
 3014|       |                                 return;
 3015|       |                           }
 3016|     66|                        }
 3017|  4.95k|                     },
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERNSt3__15arrayImLm3EEETkNS_10is_contextERNS_7contextERPKcSB_Qntcl15check_no_headerT_EEEvOT0_OT1_OT2_T3_:
   57|  4.89k|      {
   58|       |         if constexpr (const_value_v<T>) {
   59|       |            if constexpr (check_error_on_const_read(Opts)) {
   60|       |               ctx.error = error_code::attempt_const_read;
   61|       |            }
   62|       |            else {
   63|       |               // do not read anything into the const value
   64|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   65|       |            }
   66|       |         }
   67|  4.89k|         else {
   68|  4.89k|            using V = std::remove_cvref_t<T>;
   69|  4.89k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   70|  4.89k|                                             end);
   71|  4.89k|         }
   72|  4.89k|      }
_ZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 1780|  4.89k|      {
 1781|  4.89k|         using V = range_value_t<std::decay_t<T>>;
 1782|       |
 1783|  4.89k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1783:14): [True: 2, False: 4.88k]
  ------------------
 1784|      2|            return;
 1785|      2|         }
 1786|  4.88k|         const auto tag = uint8_t(*it);
 1787|       |
 1788|       |         if constexpr (boolean_like<V>) {
 1789|       |            constexpr uint8_t type = uint8_t(3) << 3;
 1790|       |            constexpr uint8_t header = tag::typed_array | type;
 1791|       |
 1792|       |            if (tag != header) [[unlikely]] {
 1793|       |               ctx.error = error_code::syntax_error;
 1794|       |               return;
 1795|       |            }
 1796|       |
 1797|       |            ++it;
 1798|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1799|       |            if (bool(ctx.error)) [[unlikely]] {
 1800|       |               return;
 1801|       |            }
 1802|       |
 1803|       |            if constexpr (Opts.partial_read) {
 1804|       |               n = value.size();
 1805|       |            }
 1806|       |
 1807|       |            const auto num_bytes = (n + 7) / 8;
 1808|       |            if (uint64_t(end - it) < num_bytes) [[unlikely]] {
 1809|       |               ctx.error = error_code::invalid_length;
 1810|       |               return;
 1811|       |            }
 1812|       |            if constexpr (check_max_array_size(Opts) > 0) {
 1813|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 1814|       |                  ctx.error = error_code::invalid_length;
 1815|       |                  return;
 1816|       |               }
 1817|       |            }
 1818|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1819|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1820|       |                  ctx.error = error_code::invalid_length;
 1821|       |                  return;
 1822|       |               }
 1823|       |            }
 1824|       |
 1825|       |            if constexpr (resizable<T>) {
 1826|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1827|       |                  return;
 1828|       |               }
 1829|       |               value.resize(n);
 1830|       |
 1831|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1832|       |                  value.shrink_to_fit();
 1833|       |               }
 1834|       |            }
 1835|       |            else {
 1836|       |               if (n > value.size()) {
 1837|       |                  ctx.error = error_code::syntax_error;
 1838|       |                  return;
 1839|       |               }
 1840|       |            }
 1841|       |
 1842|       |            for (size_t byte_i{}, i{}; byte_i < num_bytes; ++byte_i, ++it) {
 1843|       |               if (invalid_end(ctx, it, end)) {
 1844|       |                  return;
 1845|       |               }
 1846|       |               uint8_t byte;
 1847|       |               std::memcpy(&byte, it, 1);
 1848|       |               for (size_t bit_i = 0; bit_i < 8 && i < n; ++bit_i, ++i) {
 1849|       |                  value[i] = byte >> bit_i & uint8_t(1);
 1850|       |               }
 1851|       |            }
 1852|       |         }
 1853|  4.88k|         else if constexpr (beve_num_array_t<V>) {
 1854|       |            // NV is the arithmetic wire type: V for plain numbers, the rep for chrono
 1855|       |            // durations / count-based time points (which are bit-compatible with it).
 1856|  4.88k|            using NV = beve_num_array_value_t<V>;
 1857|  4.88k|            constexpr uint8_t type = std::floating_point<NV> ? 0 : (std::is_signed_v<NV> ? 0b000'01'000 : 0b000'10'000);
  ------------------
  |  Branch (1857:38): [Folded, False: 4.88k]
  |  Branch (1857:69): [Folded, False: 4.88k]
  ------------------
 1858|  4.88k|            constexpr uint8_t header = tag::typed_array | type | (byte_count<NV> << 5);
 1859|       |
 1860|  4.88k|            auto validate_and_resize = [&](size_t n) -> bool {
 1861|  4.88k|               if constexpr (check_max_array_size(Opts) > 0) {
 1862|  4.88k|                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1863|  4.88k|                     ctx.error = error_code::invalid_length;
 1864|  4.88k|                     return false;
 1865|  4.88k|                  }
 1866|  4.88k|               }
 1867|  4.88k|               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1868|  4.88k|                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1869|  4.88k|                     ctx.error = error_code::invalid_length;
 1870|  4.88k|                     return false;
 1871|  4.88k|                  }
 1872|  4.88k|               }
 1873|       |
 1874|  4.88k|               if constexpr (resizable<T>) {
 1875|  4.88k|                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1876|  4.88k|                     return false;
 1877|  4.88k|                  }
 1878|  4.88k|                  value.resize(n);
 1879|       |
 1880|  4.88k|                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1881|  4.88k|                     value.shrink_to_fit();
 1882|  4.88k|                  }
 1883|  4.88k|               }
 1884|  4.88k|               else {
 1885|  4.88k|                  if (n > value.size()) {
 1886|  4.88k|                     ctx.error = error_code::syntax_error;
 1887|  4.88k|                     return false;
 1888|  4.88k|                  }
 1889|  4.88k|               }
 1890|  4.88k|               return true;
 1891|  4.88k|            };
 1892|       |
 1893|  4.88k|            auto prepare = [&](const size_t element_size) -> size_t {
 1894|  4.88k|               ++it;
 1895|  4.88k|               if (invalid_end(ctx, it, end)) {
 1896|  4.88k|                  return 0;
 1897|  4.88k|               }
 1898|       |
 1899|  4.88k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1900|  4.88k|               if (bool(ctx.error)) [[unlikely]] {
 1901|  4.88k|                  return 0;
 1902|  4.88k|               }
 1903|       |
 1904|  4.88k|               if constexpr (Opts.partial_read) {
 1905|  4.88k|                  n = value.size();
 1906|  4.88k|               }
 1907|       |
 1908|  4.88k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
 1909|  4.88k|               if (!validate_and_resize(n)) {
 1910|  4.88k|                  return 0;
 1911|  4.88k|               }
 1912|       |
 1913|  4.88k|               return n;
 1914|  4.88k|            };
 1915|       |
 1916|  4.88k|            size_t n = 0;
 1917|       |
 1918|  4.88k|            if (tag == tag::aligned_typed_array) {
  ------------------
  |  Branch (1918:17): [True: 2.26k, False: 2.62k]
  ------------------
 1919|       |               // Aligned typed array: ALIGNED_HEADER | NUMERIC_HEADER | SIZE | PADDING_LENGTH | PADDING | DATA
 1920|  2.26k|               ++it; // skip aligned header byte
 1921|  2.26k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1921:20): [True: 3, False: 2.26k]
  ------------------
 1922|      3|                  return;
 1923|      3|               }
 1924|  2.26k|               const auto numeric_tag = uint8_t(*it);
 1925|       |               // Verify bits 0-2 are typed_array tag
 1926|  2.26k|               if ((numeric_tag & 0b00000'111) != tag::typed_array) [[unlikely]] {
  ------------------
  |  Branch (1926:20): [True: 17, False: 2.24k]
  ------------------
 1927|     17|                  ctx.error = error_code::syntax_error;
 1928|     17|                  return;
 1929|     17|               }
 1930|       |               // Verify it's a numeric type (category 0, 1, or 2, not 3)
 1931|  2.24k|               if (((numeric_tag >> 3) & 0b11) == 3) [[unlikely]] {
  ------------------
  |  Branch (1931:20): [True: 2, False: 2.24k]
  ------------------
 1932|      2|                  ctx.error = error_code::syntax_error;
 1933|      2|                  return;
 1934|      2|               }
 1935|       |
 1936|  2.24k|               if (numeric_tag != header) {
  ------------------
  |  Branch (1936:20): [True: 1.64k, False: 598]
  ------------------
 1937|  1.64k|                  if constexpr (check_allow_conversions(Opts)) {
 1938|  1.64k|                     const uint8_t elem_byte_count = byte_count_lookup[numeric_tag >> 5];
 1939|  1.64k|                     ++it; // skip numeric header
 1940|  1.64k|                     std::conditional_t<Opts.partial_read, size_t, const size_t> count =
 1941|  1.64k|                        int_from_compressed(ctx, it, end);
 1942|  1.64k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1942:26): [True: 131, False: 1.51k]
  ------------------
 1943|    131|                        return;
 1944|    131|                     }
 1945|       |                     if constexpr (Opts.partial_read) {
 1946|       |                        count = value.size();
 1947|       |                     }
 1948|       |
 1949|       |                     // Read padding length byte and skip padding
 1950|  1.51k|                     if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1950:26): [True: 119, False: 1.39k]
  ------------------
 1951|    119|                        return;
 1952|    119|                     }
 1953|  1.39k|                     const uint8_t padding = uint8_t(*it);
 1954|  1.39k|                     ++it;
 1955|  1.39k|                     if (padding >= elem_byte_count) [[unlikely]] {
  ------------------
  |  Branch (1955:26): [True: 34, False: 1.36k]
  ------------------
 1956|     34|                        ctx.error = error_code::syntax_error;
 1957|     34|                        return;
 1958|     34|                     }
 1959|  1.36k|                     if (typed_array_out_of_bounds(ctx, it, end, count, elem_byte_count, padding)) return;
  ------------------
  |  Branch (1959:26): [True: 92, False: 1.27k]
  ------------------
 1960|  1.27k|                     it += padding;
 1961|       |
 1962|  1.27k|                     if (!validate_and_resize(count)) {
  ------------------
  |  Branch (1962:26): [True: 57, False: 1.21k]
  ------------------
 1963|     57|                        return;
 1964|     57|                     }
 1965|       |
 1966|  3.64k|                     for (auto&& x : value) {
  ------------------
  |  Branch (1966:36): [True: 3.64k, False: 1.21k]
  ------------------
 1967|  3.64k|                        const uint8_t number_tag = tag::number | (numeric_tag & 0b11111000);
 1968|  3.64k|                        parse<BEVE>::op<no_header_on<Opts>()>(x, number_tag, ctx, it, end);
 1969|  3.64k|                     }
 1970|  1.21k|                     return;
 1971|       |                  }
 1972|       |                  else {
 1973|       |                     ctx.error = error_code::syntax_error;
 1974|       |                     return;
 1975|       |                  }
 1976|  1.64k|               }
 1977|       |
 1978|      0|               ++it; // skip numeric header
 1979|  2.24k|               std::conditional_t<Opts.partial_read, size_t, const size_t> count = int_from_compressed(ctx, it, end);
 1980|  2.24k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1980:20): [True: 111, False: 2.13k]
  ------------------
 1981|    111|                  return;
 1982|    111|               }
 1983|       |               if constexpr (Opts.partial_read) {
 1984|       |                  count = value.size();
 1985|       |               }
 1986|       |
 1987|       |               // Read padding length byte and skip padding
 1988|  2.13k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1988:20): [True: 84, False: 2.05k]
  ------------------
 1989|     84|                  return;
 1990|     84|               }
 1991|  2.05k|               const uint8_t padding = uint8_t(*it);
 1992|  2.05k|               ++it;
 1993|  2.05k|               if (padding >= sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (1993:20): [True: 18, False: 2.03k]
  ------------------
 1994|     18|                  ctx.error = error_code::syntax_error;
 1995|     18|                  return;
 1996|     18|               }
 1997|       |
 1998|  2.03k|               if (typed_array_out_of_bounds(ctx, it, end, count, sizeof(V), padding)) return;
  ------------------
  |  Branch (1998:20): [True: 86, False: 1.94k]
  ------------------
 1999|  1.94k|               it += padding;
 2000|       |
 2001|  1.94k|               if (!validate_and_resize(count)) {
  ------------------
  |  Branch (2001:20): [True: 32, False: 1.91k]
  ------------------
 2002|     32|                  return;
 2003|     32|               }
 2004|  1.91k|               n = count;
 2005|  1.91k|            }
 2006|  2.62k|            else if (tag != header) {
  ------------------
  |  Branch (2006:22): [True: 1.74k, False: 876]
  ------------------
 2007|  1.74k|               if constexpr (check_allow_conversions(Opts)) {
 2008|  1.74k|                  if (tag != header) [[unlikely]] {
  ------------------
  |  Branch (2008:23): [True: 1.74k, False: 0]
  ------------------
 2009|  1.74k|                     if constexpr (check_allow_conversions(Opts)) {
 2010|  1.74k|                        if ((tag & 0b00000111) != tag::typed_array) {
  ------------------
  |  Branch (2010:29): [True: 28, False: 1.71k]
  ------------------
 2011|     28|                           ctx.error = error_code::syntax_error;
 2012|     28|                           return;
 2013|     28|                        }
 2014|       |
 2015|  1.71k|                        const uint8_t byte_count = byte_count_lookup[tag >> 5];
 2016|  1.71k|                        prepare(byte_count);
 2017|  1.71k|                        if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2017:29): [True: 304, False: 1.41k]
  ------------------
 2018|    304|                           return;
 2019|    304|                        }
 2020|       |
 2021|  4.23k|                        for (auto&& x : value) {
  ------------------
  |  Branch (2021:39): [True: 4.23k, False: 1.41k]
  ------------------
 2022|  4.23k|                           const uint8_t number_tag = tag::number | (tag & 0b11111000);
 2023|  4.23k|                           parse<BEVE>::op<no_header_on<Opts>()>(x, number_tag, ctx, it, end);
 2024|  4.23k|                        }
 2025|  1.41k|                        return;
 2026|       |                     }
 2027|       |                     else {
 2028|       |                        ctx.error = error_code::syntax_error;
 2029|       |                        return;
 2030|       |                     }
 2031|  1.74k|                  }
 2032|       |               }
 2033|       |               else {
 2034|       |                  ctx.error = error_code::syntax_error;
 2035|       |                  return;
 2036|       |               }
 2037|  1.74k|            }
 2038|    876|            else {
 2039|    876|               n = prepare(sizeof(V));
 2040|    876|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2040:20): [True: 291, False: 585]
  ------------------
 2041|    291|                  return;
 2042|    291|               }
 2043|    876|            }
 2044|       |
 2045|  4.24k|            if constexpr (contiguous<T>) {
 2046|  4.24k|               constexpr auto is_volatile =
 2047|  4.24k|                  std::is_volatile_v<std::remove_reference_t<std::remove_pointer_t<decltype(value.data())>>>;
 2048|       |
 2049|       |               if constexpr (is_volatile) {
 2050|       |                  for (size_t i = 0; i < n; ++i) {
 2051|       |                     if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2052|       |                        ctx.error = error_code::unexpected_end;
 2053|       |                        return;
 2054|       |                     }
 2055|       |
 2056|       |                     NV temp;
 2057|       |                     std::memcpy(&temp, it, sizeof(NV));
 2058|       |                     if constexpr (std::endian::native == std::endian::big) {
 2059|       |                        byteswap_le(temp);
 2060|       |                     }
 2061|       |                     value[i] = beve_num_array_construct<V>(temp);
 2062|       |                     it += sizeof(NV);
 2063|       |                  }
 2064|       |               }
 2065|       |               else if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
 2066|       |                  // On big endian, read and swap each element (through the rep so a chrono
 2067|       |                  // element is byteswapped as its underlying number).
 2068|       |                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2069|       |                  for (size_t i = 0; i < n; ++i) {
 2070|       |                     NV temp;
 2071|       |                     std::memcpy(&temp, it, sizeof(NV));
 2072|       |                     byteswap_le(temp);
 2073|       |                     value[i] = beve_num_array_construct<V>(temp);
 2074|       |                     it += sizeof(NV);
 2075|       |                  }
 2076|       |               }
 2077|  4.24k|               else {
 2078|       |                  // Little endian or single-byte: bulk memcpy. A chrono element is
 2079|       |                  // bit-identical to its rep, so the raw wire bytes populate it directly.
 2080|  4.24k|                  if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
  ------------------
  |  Branch (2080:23): [True: 0, False: 4.24k]
  ------------------
 2081|  4.24k|                  if (n) {
  ------------------
  |  Branch (2081:23): [True: 171, False: 4.07k]
  ------------------
 2082|    171|                     std::memcpy(value.data(), it, n * sizeof(V));
 2083|    171|                     it += n * sizeof(V);
 2084|    171|                  }
 2085|  4.24k|               }
 2086|       |            }
 2087|       |            else {
 2088|       |               for (auto&& x : value) {
 2089|       |                  if (size_t(end - it) < sizeof(V)) [[unlikely]] {
 2090|       |                     ctx.error = error_code::unexpected_end;
 2091|       |                     return;
 2092|       |                  }
 2093|       |
 2094|       |                  NV temp;
 2095|       |                  std::memcpy(&temp, it, sizeof(NV));
 2096|       |                  if constexpr (std::endian::native == std::endian::big) {
 2097|       |                     byteswap_le(temp);
 2098|       |                  }
 2099|       |                  x = beve_num_array_construct<V>(temp);
 2100|       |                  it += sizeof(NV);
 2101|       |               }
 2102|       |            }
 2103|       |         }
 2104|       |         else if constexpr (str_t<V>) {
 2105|       |            constexpr uint8_t type = uint8_t(3) << 3;
 2106|       |            constexpr uint8_t string_indicator = uint8_t(1) << 5;
 2107|       |            constexpr uint8_t header = tag::typed_array | type | string_indicator;
 2108|       |
 2109|       |            if (tag != header) [[unlikely]] {
 2110|       |               ctx.error = error_code::syntax_error;
 2111|       |               return;
 2112|       |            }
 2113|       |
 2114|       |            ++it;
 2115|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2116|       |            if (bool(ctx.error)) [[unlikely]] {
 2117|       |               return;
 2118|       |            }
 2119|       |
 2120|       |            if constexpr (Opts.partial_read) {
 2121|       |               n = value.size();
 2122|       |            }
 2123|       |
 2124|       |            // Each string needs at least 1 byte for length header
 2125|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2126|       |               ctx.error = error_code::invalid_length;
 2127|       |               return;
 2128|       |            }
 2129|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2130|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2131|       |                  ctx.error = error_code::invalid_length;
 2132|       |                  return;
 2133|       |               }
 2134|       |            }
 2135|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2136|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2137|       |                  ctx.error = error_code::invalid_length;
 2138|       |                  return;
 2139|       |               }
 2140|       |            }
 2141|       |
 2142|       |            if constexpr (resizable<T>) {
 2143|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2144|       |                  return;
 2145|       |               }
 2146|       |               value.resize(n);
 2147|       |
 2148|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2149|       |                  value.shrink_to_fit();
 2150|       |               }
 2151|       |            }
 2152|       |
 2153|       |            for (auto&& x : value) {
 2154|       |               const auto length = int_from_compressed(ctx, it, end);
 2155|       |               if (bool(ctx.error)) [[unlikely]] {
 2156|       |                  return;
 2157|       |               }
 2158|       |               if (uint64_t(end - it) < length) [[unlikely]] {
 2159|       |                  ctx.error = error_code::unexpected_end;
 2160|       |                  return;
 2161|       |               }
 2162|       |               if constexpr (check_max_string_length(Opts) > 0) {
 2163|       |                  if (length > check_max_string_length(Opts)) [[unlikely]] {
 2164|       |                     ctx.error = error_code::invalid_length;
 2165|       |                     return;
 2166|       |                  }
 2167|       |               }
 2168|       |               if constexpr (has_runtime_max_string_length<std::decay_t<decltype(ctx)>>) {
 2169|       |                  if (ctx.max_string_length > 0 && length > ctx.max_string_length) [[unlikely]] {
 2170|       |                     ctx.error = error_code::invalid_length;
 2171|       |                     return;
 2172|       |                  }
 2173|       |               }
 2174|       |
 2175|       |               x.resize(length);
 2176|       |
 2177|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<decltype(x)>) {
 2178|       |                  x.shrink_to_fit();
 2179|       |               }
 2180|       |
 2181|       |               std::memcpy(x.data(), it, length);
 2182|       |               it += length;
 2183|       |            }
 2184|       |         }
 2185|       |         else if constexpr (complex_t<V>) {
 2186|       |            constexpr uint8_t header = tag::extensions | 0b00011'000;
 2187|       |            if (tag != header) [[unlikely]] {
 2188|       |               ctx.error = error_code::syntax_error;
 2189|       |               return;
 2190|       |            }
 2191|       |            ++it;
 2192|       |            if (invalid_end(ctx, it, end)) {
 2193|       |               return;
 2194|       |            }
 2195|       |
 2196|       |            using X = typename V::value_type;
 2197|       |            constexpr uint8_t complex_array = 1;
 2198|       |            constexpr uint8_t type = std::floating_point<X> ? 0 : (std::is_signed_v<X> ? 0b000'01'000 : 0b000'10'000);
 2199|       |            constexpr uint8_t complex_header = complex_array | type | (byte_count<X> << 5);
 2200|       |            const auto complex_tag = uint8_t(*it);
 2201|       |            if (complex_tag != complex_header) [[unlikely]] {
 2202|       |               ctx.error = error_code::syntax_error;
 2203|       |               return;
 2204|       |            }
 2205|       |            ++it;
 2206|       |            std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2207|       |            if (bool(ctx.error)) [[unlikely]] {
 2208|       |               return;
 2209|       |            }
 2210|       |
 2211|       |            if constexpr (Opts.partial_read) {
 2212|       |               n = value.size();
 2213|       |            }
 2214|       |
 2215|       |            if (typed_array_out_of_bounds(ctx, it, end, n, sizeof(V))) return;
 2216|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2217|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2218|       |                  ctx.error = error_code::invalid_length;
 2219|       |                  return;
 2220|       |               }
 2221|       |            }
 2222|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2223|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2224|       |                  ctx.error = error_code::invalid_length;
 2225|       |                  return;
 2226|       |               }
 2227|       |            }
 2228|       |
 2229|       |            if constexpr (resizable<T>) {
 2230|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2231|       |                  return;
 2232|       |               }
 2233|       |               value.resize(n);
 2234|       |
 2235|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2236|       |                  value.shrink_to_fit();
 2237|       |               }
 2238|       |            }
 2239|       |            else {
 2240|       |               if (n > value.size()) {
 2241|       |                  ctx.error = error_code::syntax_error;
 2242|       |                  return;
 2243|       |               }
 2244|       |            }
 2245|       |
 2246|       |            if constexpr (contiguous<T>) {
 2247|       |               if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2248|       |                  // On big endian, read and swap each complex element's components
 2249|       |                  for (size_t i = 0; i < n; ++i) {
 2250|       |                     std::memcpy(&value[i], it, sizeof(V));
 2251|       |                     X real_part = value[i].real();
 2252|       |                     X imag_part = value[i].imag();
 2253|       |                     byteswap_le(real_part);
 2254|       |                     byteswap_le(imag_part);
 2255|       |                     value[i] = V(real_part, imag_part);
 2256|       |                     it += sizeof(V);
 2257|       |                  }
 2258|       |               }
 2259|       |               else {
 2260|       |                  // Little endian or single-byte: bulk memcpy
 2261|       |                  if (n) {
 2262|       |                     std::memcpy(value.data(), it, n * sizeof(V));
 2263|       |                     it += n * sizeof(V);
 2264|       |                  }
 2265|       |               }
 2266|       |            }
 2267|       |            else {
 2268|       |               for (auto&& x : value) {
 2269|       |                  std::memcpy(&x, it, sizeof(V));
 2270|       |                  if constexpr (std::endian::native == std::endian::big && sizeof(X) > 1) {
 2271|       |                     X real_part = x.real();
 2272|       |                     X imag_part = x.imag();
 2273|       |                     byteswap_le(real_part);
 2274|       |                     byteswap_le(imag_part);
 2275|       |                     x = V(real_part, imag_part);
 2276|       |                  }
 2277|       |                  it += sizeof(V);
 2278|       |               }
 2279|       |            }
 2280|       |         }
 2281|       |         else {
 2282|       |            if ((tag & 0b00000'111) != tag::generic_array) [[unlikely]] {
 2283|       |               ctx.error = error_code::syntax_error;
 2284|       |               return;
 2285|       |            }
 2286|       |
 2287|       |            depth_guard guard{ctx};
 2288|       |            if (!guard) [[unlikely]] {
 2289|       |               return;
 2290|       |            }
 2291|       |
 2292|       |            ++it;
 2293|       |            std::conditional_t<check_partial_read(Opts), size_t, const size_t> n = int_from_compressed(ctx, it, end);
 2294|       |            if (bool(ctx.error)) [[unlikely]] {
 2295|       |               return;
 2296|       |            }
 2297|       |
 2298|       |            if constexpr (Opts.partial_read) {
 2299|       |               n = value.size();
 2300|       |            }
 2301|       |
 2302|       |            // Each element needs at least 1 byte for its tag
 2303|       |            if (uint64_t(end - it) < n) [[unlikely]] {
 2304|       |               ctx.error = error_code::invalid_length;
 2305|       |               return;
 2306|       |            }
 2307|       |            if constexpr (check_max_array_size(Opts) > 0) {
 2308|       |               if (n > check_max_array_size(Opts)) [[unlikely]] {
 2309|       |                  ctx.error = error_code::invalid_length;
 2310|       |                  return;
 2311|       |               }
 2312|       |            }
 2313|       |            if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 2314|       |               if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 2315|       |                  ctx.error = error_code::invalid_length;
 2316|       |                  return;
 2317|       |               }
 2318|       |            }
 2319|       |
 2320|       |            if constexpr (resizable<T>) {
 2321|       |               if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 2322|       |                  return;
 2323|       |               }
 2324|       |               value.resize(n);
 2325|       |
 2326|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2327|       |                  value.shrink_to_fit();
 2328|       |               }
 2329|       |            }
 2330|       |
 2331|       |            for (auto&& item : value) {
 2332|       |               parse<BEVE>::op<Opts>(item, ctx, it, end);
 2333|       |            }
 2334|       |         }
 2335|  4.88k|      }
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE_clEm:
 1860|  3.58k|            auto validate_and_resize = [&](size_t n) -> bool {
 1861|       |               if constexpr (check_max_array_size(Opts) > 0) {
 1862|       |                  if (n > check_max_array_size(Opts)) [[unlikely]] {
 1863|       |                     ctx.error = error_code::invalid_length;
 1864|       |                     return false;
 1865|       |                  }
 1866|       |               }
 1867|       |               if constexpr (has_runtime_max_array_size<std::decay_t<decltype(ctx)>>) {
 1868|       |                  if (ctx.max_array_size > 0 && n > ctx.max_array_size) [[unlikely]] {
 1869|       |                     ctx.error = error_code::invalid_length;
 1870|       |                     return false;
 1871|       |                  }
 1872|       |               }
 1873|       |
 1874|       |               if constexpr (resizable<T>) {
 1875|       |                  if (exceeds_capacity(value, n, ctx)) [[unlikely]] {
 1876|       |                     return false;
 1877|       |                  }
 1878|       |                  value.resize(n);
 1879|       |
 1880|       |                  if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 1881|       |                     value.shrink_to_fit();
 1882|       |                  }
 1883|       |               }
 1884|  3.58k|               else {
 1885|  3.58k|                  if (n > value.size()) {
  ------------------
  |  Branch (1885:23): [True: 110, False: 3.47k]
  ------------------
 1886|    110|                     ctx.error = error_code::syntax_error;
 1887|    110|                     return false;
 1888|    110|                  }
 1889|  3.58k|               }
 1890|  3.47k|               return true;
 1891|  3.58k|            };
_ZN3glz5parseILj1EE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmRKhTkNS_10is_contextERNS_7contextERPKcSA_Qcl15check_no_headerT_EEEvOT0_OT1_OT2_OT3_T4_:
   37|  7.88k|      {
   38|       |         if constexpr (const_value_v<T>) {
   39|       |            if constexpr (check_error_on_const_read(Opts)) {
   40|       |               ctx.error = error_code::attempt_const_read;
   41|       |            }
   42|       |            else {
   43|       |               // do not read anything into the const value
   44|       |               skip_value<BEVE>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   45|       |            }
   46|       |         }
   47|  7.88k|         else {
   48|  7.88k|            using V = std::remove_cvref_t<T>;
   49|  7.88k|            from<BEVE, V>::template op<Opts>(std::forward<T>(value), std::forward<Tag>(tag), std::forward<Ctx>(ctx),
   50|  7.88k|                                             std::forward<It0>(it), end);
   51|  7.88k|         }
   52|  7.88k|      }
_ZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_:
  208|  7.88k|      {
  209|  7.88k|         if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (209:14): [True: 386, False: 7.49k]
  ------------------
  210|    386|            return;
  211|    386|         }
  212|       |
  213|  7.49k|         using V = std::decay_t<decltype(value)>;
  214|       |
  215|  7.49k|         constexpr auto is_volatile = std::is_volatile_v<std::remove_reference_t<decltype(value)>>;
  216|       |
  217|  7.49k|         if (tag != header) {
  ------------------
  |  Branch (217:14): [True: 7.49k, False: 0]
  ------------------
  218|  7.49k|            if constexpr (check_allow_conversions(Opts)) {
  219|  7.49k|               if constexpr (num_t<T>) {
  220|  7.49k|                  if ((tag & 0b00000111) != tag::number) {
  ------------------
  |  Branch (220:23): [True: 0, False: 7.49k]
  ------------------
  221|      0|                     ctx.error = error_code::syntax_error;
  222|      0|                     return;
  223|      0|                  }
  224|       |
  225|  7.49k|                  auto decode = [&](auto&& i) {
  226|  7.49k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  227|  7.49k|                        ctx.error = error_code::unexpected_end;
  228|  7.49k|                        return;
  229|  7.49k|                     }
  230|  7.49k|                     using I = std::decay_t<decltype(i)>;
  231|  7.49k|                     std::memcpy(&i, it, sizeof(I));
  232|  7.49k|                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|  7.49k|                        byteswap_le(i);
  234|  7.49k|                     }
  235|  7.49k|                     value = static_cast<V>(i);
  236|  7.49k|                     it += sizeof(i);
  237|  7.49k|                  };
  238|       |
  239|  7.49k|                  switch (tag) {
  240|     24|                  case tag::f32: {
  ------------------
  |  Branch (240:19): [True: 24, False: 7.47k]
  ------------------
  241|     24|                     if constexpr (std::integral<V>) {
  242|       |                        // We do not allow cross conversions from floats to integral types
  243|     24|                        ctx.error = error_code::syntax_error;
  244|       |                     }
  245|       |                     else {
  246|       |                        static_assert(sizeof(float) == 4);
  247|       |                        // TODO: use float32_t in C++23
  248|       |                        decode(float{});
  249|       |                     }
  250|     24|                     return;
  251|      0|                  }
  252|     18|                  case tag::f64: {
  ------------------
  |  Branch (252:19): [True: 18, False: 7.47k]
  ------------------
  253|     18|                     if constexpr (std::integral<V>) {
  254|       |                        // We do not allow cross conversions from floats to integral types
  255|     18|                        ctx.error = error_code::syntax_error;
  256|       |                     }
  257|       |                     else {
  258|       |                        static_assert(sizeof(double) == 8);
  259|       |                        // TODO: use float64_t in C++23
  260|       |                        decode(double{});
  261|       |                     }
  262|     18|                     return;
  263|      0|                  }
  264|  2.30k|                  case tag::i8: {
  ------------------
  |  Branch (264:19): [True: 2.30k, False: 5.19k]
  ------------------
  265|  2.30k|                     decode(int8_t{});
  266|  2.30k|                     return;
  267|      0|                  }
  268|  1.18k|                  case tag::i16: {
  ------------------
  |  Branch (268:19): [True: 1.18k, False: 6.31k]
  ------------------
  269|  1.18k|                     decode(int16_t{});
  270|  1.18k|                     return;
  271|      0|                  }
  272|    646|                  case tag::i32: {
  ------------------
  |  Branch (272:19): [True: 646, False: 6.84k]
  ------------------
  273|    646|                     decode(int32_t{});
  274|    646|                     return;
  275|      0|                  }
  276|    564|                  case tag::i64: {
  ------------------
  |  Branch (276:19): [True: 564, False: 6.93k]
  ------------------
  277|    564|                     decode(int64_t{});
  278|    564|                     return;
  279|      0|                  }
  280|  1.59k|                  case tag::u8: {
  ------------------
  |  Branch (280:19): [True: 1.59k, False: 5.90k]
  ------------------
  281|  1.59k|                     decode(uint8_t{});
  282|  1.59k|                     return;
  283|      0|                  }
  284|    429|                  case tag::u16: {
  ------------------
  |  Branch (284:19): [True: 429, False: 7.06k]
  ------------------
  285|    429|                     decode(uint16_t{});
  286|    429|                     return;
  287|      0|                  }
  288|    718|                  case tag::u32: {
  ------------------
  |  Branch (288:19): [True: 718, False: 6.77k]
  ------------------
  289|    718|                     decode(uint32_t{});
  290|    718|                     return;
  291|      0|                  }
  292|      0|                  case tag::u64: {
  ------------------
  |  Branch (292:19): [True: 0, False: 7.49k]
  ------------------
  293|      0|                     decode(uint64_t{});
  294|      0|                     return;
  295|      0|                  }
  296|     18|                  default: {
  ------------------
  |  Branch (296:19): [True: 18, False: 7.47k]
  ------------------
  297|     18|                     ctx.error = error_code::syntax_error;
  298|     18|                     return;
  299|      0|                  }
  300|  7.49k|                  }
  301|  7.49k|               }
  302|       |            }
  303|       |            else {
  304|       |               ctx.error = error_code::syntax_error;
  305|       |               return;
  306|       |            }
  307|  7.49k|         }
  308|       |
  309|  7.49k|         if (size_t(end - it) < sizeof(V)) [[unlikely]] {
  ------------------
  |  Branch (309:14): [True: 0, False: 7.49k]
  ------------------
  310|      0|            ctx.error = error_code::unexpected_end;
  311|      0|            return;
  312|      0|         }
  313|       |
  314|       |         if constexpr (is_volatile) {
  315|       |            V temp;
  316|       |            std::memcpy(&temp, it, sizeof(V));
  317|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  318|       |               byteswap_le(temp);
  319|       |            }
  320|       |            value = temp;
  321|       |         }
  322|  7.49k|         else {
  323|  7.49k|            std::memcpy(&value, it, sizeof(V));
  324|       |            if constexpr (std::endian::native == std::endian::big && sizeof(V) > 1) {
  325|       |               byteswap_le(value);
  326|       |            }
  327|  7.49k|         }
  328|  7.49k|         it += sizeof(V);
  329|  7.49k|      }
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIaEEDaSI_:
  225|  2.30k|                  auto decode = [&](auto&& i) {
  226|  2.30k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 2.30k]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|  2.30k|                     using I = std::decay_t<decltype(i)>;
  231|  2.30k|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|  2.30k|                     value = static_cast<V>(i);
  236|  2.30k|                     it += sizeof(i);
  237|  2.30k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIsEEDaSI_:
  225|  1.18k|                  auto decode = [&](auto&& i) {
  226|  1.18k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 39, False: 1.14k]
  ------------------
  227|     39|                        ctx.error = error_code::unexpected_end;
  228|     39|                        return;
  229|     39|                     }
  230|  1.14k|                     using I = std::decay_t<decltype(i)>;
  231|  1.14k|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|  1.14k|                     value = static_cast<V>(i);
  236|  1.14k|                     it += sizeof(i);
  237|  1.14k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIiEEDaSI_:
  225|    646|                  auto decode = [&](auto&& i) {
  226|    646|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 65, False: 581]
  ------------------
  227|     65|                        ctx.error = error_code::unexpected_end;
  228|     65|                        return;
  229|     65|                     }
  230|    581|                     using I = std::decay_t<decltype(i)>;
  231|    581|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    581|                     value = static_cast<V>(i);
  236|    581|                     it += sizeof(i);
  237|    581|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIlEEDaSI_:
  225|    564|                  auto decode = [&](auto&& i) {
  226|    564|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 59, False: 505]
  ------------------
  227|     59|                        ctx.error = error_code::unexpected_end;
  228|     59|                        return;
  229|     59|                     }
  230|    505|                     using I = std::decay_t<decltype(i)>;
  231|    505|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    505|                     value = static_cast<V>(i);
  236|    505|                     it += sizeof(i);
  237|    505|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIhEEDaSI_:
  225|  1.59k|                  auto decode = [&](auto&& i) {
  226|  1.59k|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 0, False: 1.59k]
  ------------------
  227|      0|                        ctx.error = error_code::unexpected_end;
  228|      0|                        return;
  229|      0|                     }
  230|  1.59k|                     using I = std::decay_t<decltype(i)>;
  231|  1.59k|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|  1.59k|                     value = static_cast<V>(i);
  236|  1.59k|                     it += sizeof(i);
  237|  1.59k|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clItEEDaSI_:
  225|    429|                  auto decode = [&](auto&& i) {
  226|    429|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 37, False: 392]
  ------------------
  227|     37|                        ctx.error = error_code::unexpected_end;
  228|     37|                        return;
  229|     37|                     }
  230|    392|                     using I = std::decay_t<decltype(i)>;
  231|    392|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    392|                     value = static_cast<V>(i);
  236|    392|                     it += sizeof(i);
  237|    392|                  };
_ZZN3glz4fromILj1EmE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj8EEERmTkNS_10is_contextERNS_7contextERPKcS8_Qcl15check_no_headerTL0__EEEvOT0_hOT1_OT2_T3_ENKUlOT_E_clIjEEDaSI_:
  225|    718|                  auto decode = [&](auto&& i) {
  226|    718|                     if (size_t(end - it) < sizeof(i)) [[unlikely]] {
  ------------------
  |  Branch (226:26): [True: 57, False: 661]
  ------------------
  227|     57|                        ctx.error = error_code::unexpected_end;
  228|     57|                        return;
  229|     57|                     }
  230|    661|                     using I = std::decay_t<decltype(i)>;
  231|    661|                     std::memcpy(&i, it, sizeof(I));
  232|       |                     if constexpr (std::endian::native == std::endian::big && sizeof(I) > 1) {
  233|       |                        byteswap_le(i);
  234|       |                     }
  235|    661|                     value = static_cast<V>(i);
  236|    661|                     it += sizeof(i);
  237|    661|                  };
_ZZN3glz4fromILj1ENSt3__15arrayImLm3EEEE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_ENKUlmE0_clEm:
 1893|  2.59k|            auto prepare = [&](const size_t element_size) -> size_t {
 1894|  2.59k|               ++it;
 1895|  2.59k|               if (invalid_end(ctx, it, end)) {
  ------------------
  |  Branch (1895:20): [True: 7, False: 2.58k]
  ------------------
 1896|      7|                  return 0;
 1897|      7|               }
 1898|       |
 1899|  2.58k|               std::conditional_t<Opts.partial_read, size_t, const size_t> n = int_from_compressed(ctx, it, end);
 1900|  2.58k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1900:20): [True: 272, False: 2.31k]
  ------------------
 1901|    272|                  return 0;
 1902|    272|               }
 1903|       |
 1904|       |               if constexpr (Opts.partial_read) {
 1905|       |                  n = value.size();
 1906|       |               }
 1907|       |
 1908|  2.31k|               if (typed_array_out_of_bounds(ctx, it, end, n, element_size)) return 0;
  ------------------
  |  Branch (1908:20): [True: 295, False: 2.01k]
  ------------------
 1909|  2.01k|               if (!validate_and_resize(n)) {
  ------------------
  |  Branch (1909:20): [True: 21, False: 1.99k]
  ------------------
 1910|     21|                  return 0;
 1911|     21|               }
 1912|       |
 1913|  1.99k|               return n;
 1914|  2.01k|            };

_ZN3glz12ensure_spaceINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_RT_m:
  181|   218M|   {
  182|   218M|      using Buffer = std::remove_cvref_t<B>;
  183|       |
  184|   218M|      if constexpr (vector_like<Buffer>) {
  185|   218M|         if (required > b.size()) [[unlikely]] {
  ------------------
  |  Branch (185:14): [True: 35.1k, False: 218M]
  ------------------
  186|       |            // 2× growth amortizes repeated reallocations to O(n) total cost.
  187|  35.1k|            b.resize(2 * required);
  188|  35.1k|         }
  189|   218M|         return true;
  190|       |      }
  191|       |      else if constexpr (has_bounded_capacity<Buffer>) {
  192|       |         if (required > buffer_traits<Buffer>::capacity(b)) [[unlikely]] {
  193|       |            ctx.error = error_code::buffer_overflow;
  194|       |            return false;
  195|       |         }
  196|       |         return true;
  197|       |      }
  198|       |      else {
  199|       |         return true; // Raw pointer or other - trust caller
  200|       |      }
  201|   218M|   }

_ZN3glz10get_memberIR9my_structRiEEDcOT_OT0_:
  616|  3.88k|   {
  617|  3.88k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  3.88k|      else {
  639|  3.88k|         return element;
  640|  3.88k|      }
  641|  3.88k|   }
_ZN3glz10get_memberIR9my_structRdEEDcOT_OT0_:
  616|  2.78k|   {
  617|  2.78k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  2.78k|      else {
  639|  2.78k|         return element;
  640|  2.78k|      }
  641|  2.78k|   }
_ZN3glz10get_memberIR9my_structRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEDcOT_OT0_:
  616|  1.93k|   {
  617|  1.93k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  1.93k|      else {
  639|  1.93k|         return element;
  640|  1.93k|      }
  641|  1.93k|   }
_ZN3glz10get_memberIR9my_structRNSt3__15arrayImLm3EEEEEDcOT_OT0_:
  616|  4.89k|   {
  617|  4.89k|      using V = std::decay_t<decltype(element)>;
  618|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  619|       |         return value.*element;
  620|       |      }
  621|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  622|       |         return element;
  623|       |      }
  624|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  625|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  626|       |         // matrix types and reject them from the invocable check
  627|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  628|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  629|       |      }
  630|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  631|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  632|       |            return std::invoke(*element, std::forward<Value>(value));
  633|       |         }
  634|       |         else {
  635|       |            return *element;
  636|       |         }
  637|       |      }
  638|  4.89k|      else {
  639|  4.89k|         return element;
  640|  4.89k|      }
  641|  4.89k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  288|   650k|   {
  289|   650k|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  290|   650k|         return value; // already the answer; rebuilding it from data() and size() costs instructions
  291|       |      }
  292|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  293|       |         return value ? std::string_view{value} : std::string_view{};
  294|       |      }
  295|       |      else if constexpr (has_data<T> && has_size<T>) {
  296|       |         return std::string_view{value.data(), value.size()};
  297|       |      }
  298|       |      else {
  299|       |         return std::string_view{value};
  300|       |      }
  301|   650k|   }

_ZN3glz11depth_guardINS_7contextEEC2ERS1_m:
  185|  4.38k|      depth_guard(Ctx& c, const size_t limit = max_recursive_depth_limit) noexcept : ctx(c)
  186|  4.38k|      {
  187|  4.38k|         if (ctx.depth >= limit) [[unlikely]] {
  ------------------
  |  Branch (187:14): [True: 0, False: 4.38k]
  ------------------
  188|      0|            ctx.error = error_code::exceeded_max_recursive_depth;
  189|      0|            return;
  190|      0|         }
  191|  4.38k|         ++ctx.depth;
  192|  4.38k|         entered = true;
  193|  4.38k|      }
_ZNK3glz11depth_guardINS_7contextEEcvbEv:
  198|  4.38k|      explicit operator bool() const noexcept { return entered; }
_ZN3glz11depth_guardINS_7contextEED2Ev:
  195|  4.38k|      {
  196|  4.38k|         if (entered) --ctx.depth;
  ------------------
  |  Branch (196:14): [True: 4.38k, False: 0]
  ------------------
  197|  4.38k|      }
_ZNK3glz9error_ctxcvbEv:
  136|  21.6k|      operator bool() const noexcept { return ec != error_code::none; }
_ZN3glz12indent_guardINS_7contextEEC2ERS1_m:
  211|  18.6M|      indent_guard(Ctx& c, const size_t indentation_step) noexcept : ctx(c), step(indentation_step)
  212|  18.6M|      {
  213|  18.6M|         ctx.depth += step;
  214|  18.6M|      }
_ZN3glz12indent_guardINS_7contextEED2Ev:
  215|  18.6M|      ~indent_guard() { ctx.depth -= step; }

_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  219|  21.6k|   {
  220|  21.6k|      format_context_t<Opts.format> ctx{};
  221|  21.6k|      return read<Opts>(value, buffer, ctx);
  222|  21.6k|   }
_ZN3glz4readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEE9my_structTkNS_10contiguousERKNSt3__16vectorIcNS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  136|  21.6k|   {
  137|  21.6k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  138|  21.6k|      using Buffer = std::remove_reference_t<decltype(buffer)>;
  139|       |
  140|  21.6k|      if constexpr (Opts.format != NDJSON) {
  141|  21.6k|         if (buffer.empty()) [[unlikely]] {
  ------------------
  |  Branch (141:14): [True: 0, False: 21.6k]
  ------------------
  142|      0|            ctx.error = error_code::no_read_input;
  143|      0|            return {0, ctx.error, ctx.custom_error_message};
  144|      0|         }
  145|  21.6k|      }
  146|       |
  147|  21.6k|      constexpr bool use_padded = resizable<Buffer> && non_const_buffer<Buffer> && !check_disable_padding(Opts);
  ------------------
  |  Branch (147:35): [Folded, False: 21.6k]
  |  Branch (147:56): [Folded, False: 0]
  |  Branch (147:84): [True: 0, Folded]
  ------------------
  148|       |
  149|  21.6k|      [[maybe_unused]] size_t original_size{};
  150|       |      if constexpr (use_padded) {
  151|       |         // Pad the buffer for SWAR
  152|       |         original_size = buffer.size();
  153|       |         buffer.resize(original_size + padding_bytes);
  154|       |      }
  155|       |
  156|  21.6k|      auto [it, end] = read_iterators<Opts, use_padded>(buffer);
  157|  21.6k|      auto start = it;
  158|  21.6k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (158:11): [True: 0, False: 21.6k]
  ------------------
  159|      0|         goto finish;
  160|      0|      }
  161|       |
  162|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  163|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  164|  21.6k|      if constexpr (requires { ctx.speculation_budget; }) {
  165|  21.6k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  166|  21.6k|         ctx.speculation_budget =
  167|  21.6k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (167:14): [True: 652, False: 21.0k]
  ------------------
  168|  21.6k|      }
  169|       |
  170|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  171|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  172|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  173|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  174|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  175|       |      if constexpr (requires { ctx.stream_begin; }) {
  176|       |         ctx.stream_begin = nullptr;
  177|       |      }
  178|       |
  179|       |      if constexpr (use_padded) {
  180|       |         parse<Opts.format>::template op<is_padded_on<Opts>()>(value, ctx, it, end);
  181|       |      }
  182|  21.6k|      else {
  183|  21.6k|         parse<Opts.format>::template op<is_padded_off<Opts>()>(value, ctx, it, end);
  184|  21.6k|      }
  185|       |
  186|  21.6k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (186:11): [True: 21.6k, False: 59]
  ------------------
  187|  21.6k|         goto finish;
  188|  21.6k|      }
  189|       |
  190|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  191|       |      // So, trailing whitespace is permitted and sometimes we want to
  192|       |      // validate this, even though this memory will not affect Glaze.
  193|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  194|       |         if (it < end) {
  195|       |            skip_ws<Opts>(ctx, it, end);
  196|       |            if (bool(ctx.error)) [[unlikely]] {
  197|       |               goto finish;
  198|       |            }
  199|       |            if (it != end) [[unlikely]] {
  200|       |               ctx.error = error_code::syntax_error;
  201|       |            }
  202|       |         }
  203|       |      }
  204|       |
  205|  21.6k|   finish:
  206|  21.6k|      finalize_top_level_read<Opts>(ctx, start, it, end);
  207|       |
  208|       |      if constexpr (use_padded) {
  209|       |         // Restore the original buffer state
  210|       |         buffer.resize(original_size);
  211|       |      }
  212|       |
  213|  21.6k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  214|     59|   }
_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEELb0ETkNS_10contiguousERKNSt3__16vectorIcNS2_9allocatorIcEEEEEEDaOT1_:
   40|  21.6k|   {
   41|  21.6k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|  21.6k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|  21.6k|      auto end = reinterpret_cast<const char*>(buffer.data()); // to be incremented
   45|       |
   46|       |      if constexpr (Padded) {
   47|       |         end += buffer.size() - padding_bytes;
   48|       |      }
   49|  21.6k|      else {
   50|  21.6k|         end += buffer.size();
   51|  21.6k|      }
   52|       |
   53|  21.6k|      return std::pair{it, end};
   54|  21.6k|   }
_ZN3glz16exceeds_capacityINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT_mRT0_:
   28|  1.64k|   {
   29|       |      if constexpr (fixed_capacity_container<decltype(value)>) {
   30|       |         if (n > value.max_size()) [[unlikely]] {
   31|       |            ctx.error = error_code::exceeded_static_array_size;
   32|       |            return true;
   33|       |         }
   34|       |      }
   35|  1.64k|      return false;
   36|  1.64k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS7_S7_:
  115|  21.6k|   {
  116|       |      if constexpr (Opts.format == JSON && !check_null_terminated(Opts)) {
  117|       |         // Deliberately not [[unlikely]]: a body that ends with the buffer lands here on every
  118|       |         // successful read, which is the ordinary case for a registry parsing a wire span.
  119|       |         // start < it, not !=, because a streaming origin can be empty or overshoot on an error
  120|       |         // path; neither is an absent value.
  121|       |         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  122|       |            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  123|       |            const char* consumed = start;
  124|       |            skip_ws<Opts>(ws_ctx, consumed, it);
  125|       |            if (consumed == it) {
  126|       |               ctx.error = error_code::no_read_input;
  127|       |            }
  128|       |         }
  129|       |      }
  130|  21.6k|      finalize_read_context<Opts>(ctx);
  131|  21.6k|   }
_ZN3glz21finalize_read_contextITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_:
   76|  21.6k|   {
   77|       |      // A partial read stops as soon as it has the fields it was asked for, so it unwinds through
   78|       |      // its enclosing containers on an error code rather than through their closing braces, and
   79|       |      // none of them decrement depth on the way out. Depth is left standing at whatever nesting the
   80|       |      // last field sat at.
   81|       |      //
   82|       |      // That has to be cleared here rather than left for the next read to trip over. This is the
   83|       |      // one path that reports success with depth still raised, and depth is what settle_end_reached
   84|       |      // reads to tell a completed parse from a truncated one -- so a context reused after a partial
   85|       |      // read would see a later well-formed buffer settle to unexpected_end. Reads that end any
   86|       |      // other way either return depth to zero themselves or carry an error, and a context holding
   87|       |      // an error short-circuits the next read before it parses anything.
   88|       |      if constexpr (check_partial_read(Opts)) {
   89|       |         if (ctx.error == error_code::partial_read_complete) [[likely]] {
   90|       |            ctx.error = error_code::none;
   91|       |            ctx.depth = 0;
   92|       |            return;
   93|       |         }
   94|       |      }
   95|  21.6k|      settle_end_reached(ctx);
   96|  21.6k|   }
_ZN3glz18settle_end_reachedITkNS_10is_contextERNS_7contextEEEvOT_:
   68|  21.6k|   {
   69|  21.6k|      if (ctx.error == error_code::end_reached) {
  ------------------
  |  Branch (69:11): [True: 0, False: 21.6k]
  ------------------
   70|      0|         ctx.error = (ctx.depth == 0) ? error_code::none : error_code::unexpected_end;
  ------------------
  |  Branch (70:22): [True: 0, False: 0]
  ------------------
   71|      0|      }
   72|  21.6k|   }

_ZN3glz21decode_hash_with_sizeILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2723|  14.1k|      {
 2724|  14.1k|         if (n < HashInfo.min_length || n > HashInfo.max_length) [[unlikely]] {
  ------------------
  |  Branch (2724:14): [True: 386, False: 13.8k]
  |  Branch (2724:41): [True: 54, False: 13.7k]
  ------------------
 2725|    440|            return N;
 2726|    440|         }
 2727|  13.7k|         return decode_hash_with_size_impl<Format, T, HashInfo, Type>::op(it, end, n);
 2728|  14.1k|      }
_ZN3glz26decode_hash_with_size_implILj1E9my_structXtlNS_11hash_info_tIS1_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh4ELh4ELh1ELh4ELh4ELh4ELh2ELh0ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm1ELm5EEELS4_1EE2opIRPKcSD_EEmOT_OT0_m:
 2776|  13.7k|      {
 2777|       |         // unique_index < min_length <= n, so it[unique_index] is within the key (the wrapper has
 2778|       |         // already rejected lengths outside [min_length, max_length]).
 2779|       |         if constexpr (HashInfo.sized_hash) {
 2780|       |            const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2781|       |            return HashInfo.table[h % bsize];
 2782|       |         }
 2783|  13.7k|         else {
 2784|       |            if constexpr (N == 2) {
 2785|       |               // Avoids using a hash table
 2786|       |               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2787|       |               return size_t(bool(it[uindex] ^ first_key_char));
 2788|       |            }
 2789|  13.7k|            else {
 2790|  13.7k|               return HashInfo.table[uint8_t(it[uindex])];
 2791|  13.7k|            }
 2792|  13.7k|         }
 2793|  13.7k|      }

_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  3.88k|   {
  117|  3.88k|      using D = std::remove_cvref_t<Tup>;
  118|  3.88k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  3.88k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  3.88k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  3.88k|         else {
  128|  3.88k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  3.88k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  3.88k|   }
_ZN3glz3tieIJidNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS1_5arrayImLm3EEEEEENS_5tupleIJDpRT_EEESD_:
  325|  13.4k|   {
  326|  13.4k|      return {{{ts}...}};
  327|  13.4k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  2.78k|   {
  117|  2.78k|      using D = std::remove_cvref_t<Tup>;
  118|  2.78k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  2.78k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  2.78k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  2.78k|         else {
  128|  2.78k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  2.78k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  2.78k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  1.93k|   {
  117|  1.93k|      using D = std::remove_cvref_t<Tup>;
  118|  1.93k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.93k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.93k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  1.93k|         else {
  128|  1.93k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.93k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.93k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableENS_5tupleIJRiRdRNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERNS5_5arrayImLm3EEEEEEEEDcOT0_:
  116|  4.89k|   {
  117|  4.89k|      using D = std::remove_cvref_t<Tup>;
  118|  4.89k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  4.89k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  4.89k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  4.89k|         else {
  128|  4.89k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  4.89k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  4.89k|   }

_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  2.09M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|  2.09M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|  2.09M|         if constexpr (std::floating_point<V>) {
  222|  2.09M|            using opts_type = std::decay_t<decltype(Opts)>;
  223|  2.09M|            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|  2.09M|            else if constexpr (is_any_of<V, float, double>) {
  319|  2.09M|               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|  2.09M|               const auto end = glz::to_chars(start, value);
  321|  2.09M|               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  2.09M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  1.49M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|  1.49M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|  1.49M|         if constexpr (std::floating_point<V>) {
  222|  1.49M|            using opts_type = std::decay_t<decltype(Opts)>;
  223|  1.49M|            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|  1.49M|            else if constexpr (is_any_of<V, float, double>) {
  319|  1.49M|               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|  1.49M|               const auto end = glz::to_chars(start, value);
  321|  1.49M|               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  1.49M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  1.68M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|  1.68M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|  1.68M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|  1.68M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|  1.68M|            const auto end = glz::to_chars(start, value);
  344|  1.68M|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  1.68M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  2.55M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|  2.55M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|  2.55M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|  2.55M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|  2.55M|            const auto end = glz::to_chars(start, value);
  344|  2.55M|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  2.55M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   731k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|   731k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   731k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   731k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   731k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   731k|               const auto end = glz::to_chars_40kb(start, value);
  356|   731k|               ix += size_t(end - start);
  357|   731k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   731k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   832k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|   832k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   832k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   832k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   832k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   832k|               const auto end = glz::to_chars_40kb(start, value);
  356|   832k|               ix += size_t(end - start);
  357|   832k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   832k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   487k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|   487k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|   487k|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|   487k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|   487k|            const auto end = glz::to_chars(start, value);
  344|   487k|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   487k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|  1.89M|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|  1.89M|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|  1.89M|         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|  1.89M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|  1.89M|            const auto end = glz::to_chars(start, value);
  344|  1.89M|            ix += size_t(end - start);
  345|       |         }
  346|       |         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|       |            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|       |               const auto end = glz::to_chars_40kb(start, value);
  356|       |               ix += size_t(end - start);
  357|       |            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|  1.89M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   494k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|   494k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   494k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   494k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   494k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   494k|               const auto end = glz::to_chars_40kb(start, value);
  356|   494k|               ix += size_t(end - start);
  357|   494k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   494k|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  205|   822k|      {
  206|       |         /*if constexpr (std::same_as<std::decay_t<B>, std::string>) {
  207|       |            // more efficient strings in C++23:
  208|       |          https://en.cppreference.com/w/cpp/string/basic_string/resize_and_overwrite
  209|       |          }*/
  210|       |
  211|       |         // https://stackoverflow.com/questions/1701055/what-is-the-maximum-length-in-chars-needed-to-represent-any-double-value
  212|       |         // maximum length for a double should be 24 chars, we use 64 to be sufficient for float128_t
  213|       |         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  214|       |            if (const auto k = ix + 64; k > b.size()) {
  215|       |               b.resize(2 * k);
  216|       |            }
  217|       |         }
  218|       |
  219|   822k|         using V = std::decay_t<decltype(value)>;
  220|       |
  221|       |         if constexpr (std::floating_point<V>) {
  222|       |            using opts_type = std::decay_t<decltype(Opts)>;
  223|       |            constexpr bool use_float_format = requires { opts_type::float_format; };
  224|       |
  225|       |            // User-specified float_format takes priority over all other options
  226|       |            if constexpr (use_float_format && is_any_of<V, float, double>) {
  227|       |#if GLZ_USE_STD_FORMAT_FLOAT
  228|       |               // Use std::format with user-provided format string (e.g., "{:.2f}")
  229|       |               // Format string is validated at compile-time via std::format_string
  230|       |               constexpr auto fmt = std::format_string<V>{opts_type::float_format};
  231|       |
  232|       |               if constexpr (check_write_unchecked(Opts)) {
  233|       |                  // Caller guarantees buffer has enough space
  234|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  235|       |                  auto result = std::format_to(start, fmt, V(value));
  236|       |                  ix += size_t(result - start);
  237|       |               }
  238|       |               else {
  239|       |                  // format_to_n writes up to 'available' chars and returns total size needed.
  240|       |                  // Common case: output fits in pre-allocated buffer (single pass).
  241|       |                  // Rare case: output exceeds buffer (e.g., "{:.100f}"), requires resize.
  242|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  243|       |                  const auto available = b.size() - ix;
  244|       |                  auto [out, size] = std::format_to_n(start, available, fmt, V(value));
  245|       |
  246|       |                  if (static_cast<size_t>(size) > available) {
  247|       |                     // Output was truncated - size tells us exactly how much space we need
  248|       |                     if constexpr (resizable<B>) {
  249|       |                        b.resize(2 * (ix + size));
  250|       |                        std::format_to(reinterpret_cast<char*>(&b[ix]), fmt, V(value));
  251|       |                     }
  252|       |                     else {
  253|       |                        ctx.error = error_code::unexpected_end;
  254|       |                        return;
  255|       |                     }
  256|       |                  }
  257|       |                  ix += size;
  258|       |               }
  259|       |#else
  260|       |               // snprintf fallback for platforms without std::format float support (e.g., iOS < 16.3)
  261|       |               // Convert std::format spec to printf format at compile time
  262|       |               constexpr auto printf_fmt = detail::to_printf_fmt(opts_type::float_format);
  263|       |
  264|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  265|       |               const auto available = check_write_unchecked(Opts) ? size_t(64) : (b.size() - ix);
  266|       |
  267|       |               // snprintf returns chars that would be written (excluding null), or negative on error
  268|       |               const int len = std::snprintf(start, available, printf_fmt.data, static_cast<double>(value));
  269|       |
  270|       |               if (len < 0) {
  271|       |                  ctx.error = error_code::unexpected_end;
  272|       |                  return;
  273|       |               }
  274|       |
  275|       |               if (static_cast<size_t>(len) >= available) {
  276|       |                  // Output was truncated, need to resize and retry
  277|       |                  if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  278|       |                     b.resize(2 * (ix + static_cast<size_t>(len) + 1));
  279|       |                     std::snprintf(reinterpret_cast<char*>(&b[ix]), static_cast<size_t>(len) + 1, printf_fmt.data,
  280|       |                                   static_cast<double>(value));
  281|       |                  }
  282|       |                  else {
  283|       |                     ctx.error = error_code::unexpected_end;
  284|       |                     return;
  285|       |                  }
  286|       |               }
  287|       |               ix += static_cast<size_t>(len);
  288|       |#endif
  289|       |            }
  290|       |            else if constexpr (uint8_t(check_float_max_write_precision(Opts)) > 0 &&
  291|       |                               uint8_t(check_float_max_write_precision(Opts)) < sizeof(V)) {
  292|       |               // we cast to a lower precision floating point value before writing out
  293|       |               if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 8) {
  294|       |                  const auto reduced = static_cast<double>(value);
  295|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  296|       |                  const auto end = glz::to_chars(start, reduced);
  297|       |                  ix += size_t(end - start);
  298|       |               }
  299|       |               else if constexpr (uint8_t(check_float_max_write_precision(Opts)) == 4) {
  300|       |                  const auto reduced = static_cast<float>(value);
  301|       |                  const auto start = reinterpret_cast<char*>(&b[ix]);
  302|       |                  const auto end = glz::to_chars(start, reduced);
  303|       |                  ix += size_t(end - start);
  304|       |               }
  305|       |               else {
  306|       |                  static_assert(false_v<V>, "invalid float_max_write_precision");
  307|       |               }
  308|       |            }
  309|       |            // Size optimization: pass OptSize=true so the ~17KB pow-10 lookup
  310|       |            // tables are dropped (recomputed on the fly). Much faster than the
  311|       |            // old simple_float::to_chars path at essentially the same footprint.
  312|       |            // See discussion #2519.
  313|       |            else if constexpr (is_size_optimized(Opts) && is_any_of<V, float, double>) {
  314|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  315|       |               const auto end = glz::to_chars<V, /*OptSize=*/true>(start, V(value));
  316|       |               ix += size_t(end - start);
  317|       |            }
  318|       |            else if constexpr (is_any_of<V, float, double>) {
  319|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  320|       |               const auto end = glz::to_chars(start, value);
  321|       |               ix += size_t(end - start);
  322|       |            }
  323|       |// float128_t requires std::to_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  324|       |#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  325|       |            else if constexpr (is_float128<V>) {
  326|       |               const auto start = reinterpret_cast<char*>(&b[ix]);
  327|       |               const auto [ptr, ec] = std::to_chars(start, &b[0] + b.size(), value, std::chars_format::general);
  328|       |               if (ec != std::errc()) {
  329|       |                  ctx.error = error_code::unexpected_end;
  330|       |                  return;
  331|       |               }
  332|       |               ix += size_t(ptr - start);
  333|       |            }
  334|       |#endif
  335|       |            else {
  336|       |               static_assert(false_v<V>, "type is not supported");
  337|       |            }
  338|       |         }
  339|       |         else if constexpr (is_any_of<V, int8_t, uint8_t, int16_t, uint16_t>) {
  340|       |            // Small integers: always use to_chars (400B tables)
  341|       |            // The 40KB digit_quads table doesn't help for these small ranges
  342|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  343|       |            const auto end = glz::to_chars(start, value);
  344|       |            ix += size_t(end - start);
  345|       |         }
  346|   822k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  347|   822k|            const auto start = reinterpret_cast<char*>(&b[ix]);
  348|       |            if constexpr (is_size_optimized(Opts)) {
  349|       |               // Size mode: use glz::to_chars (400B lookup tables)
  350|       |               const auto end = glz::to_chars(start, value);
  351|       |               ix += size_t(end - start);
  352|       |            }
  353|   822k|            else {
  354|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  355|   822k|               const auto end = glz::to_chars_40kb(start, value);
  356|   822k|               ix += size_t(end - start);
  357|   822k|            }
  358|       |         }
  359|       |         else if constexpr (std::integral<V>) {
  360|       |            // Handle other integral types (char, wchar_t, etc.) by casting to sized types
  361|       |            using X = std::decay_t<decltype(sized_integer_conversion<V>())>;
  362|       |            const auto start = reinterpret_cast<char*>(&b[ix]);
  363|       |            if constexpr (is_size_optimized(Opts)) {
  364|       |               // Size mode: use glz::to_chars (400B lookup tables)
  365|       |               const auto end = glz::to_chars(start, static_cast<X>(value));
  366|       |               ix += size_t(end - start);
  367|       |            }
  368|       |            else {
  369|       |               // Normal mode: use to_chars_40kb
  370|       |               const auto end = glz::to_chars_40kb(start, static_cast<X>(value));
  371|       |               ix += size_t(end - start);
  372|       |            }
  373|       |         }
  374|       |         else {
  375|       |            static_assert(false_v<V>, "type is not supported");
  376|       |         }
  377|   822k|      }

_ZN3glz6detail9emit_charINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_cRT_Rm:
 1154|   102M|      {
 1155|   102M|         if (!ensure_space(ctx, out, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (1155:14): [True: 0, False: 102M]
  ------------------
 1156|      0|            return false;
 1157|      0|         }
 1158|   102M|         dump<false>(c, out, ix);
 1159|   102M|         return true;
 1160|   102M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc116ELc114ELc117ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  1.98M|      {
 1165|  1.98M|         static constexpr auto s = str.sv();
 1166|  1.98M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 1.98M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  1.98M|         dump<false>(s, out, ix);
 1170|  1.98M|         return true;
 1171|  1.98M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm6EEEtlA6_cLc102ELc97ELc108ELc115ELc101EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  2.83M|      {
 1165|  2.83M|         static constexpr auto s = str.sv();
 1166|  2.83M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 2.83M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  2.83M|         dump<false>(s, out, ix);
 1170|  2.83M|         return true;
 1171|  2.83M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  22.9M|      {
 1165|  22.9M|         static constexpr auto s = str.sv();
 1166|  22.9M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 22.9M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  22.9M|         dump<false>(s, out, ix);
 1170|  22.9M|         return true;
 1171|  22.9M|      }
_ZN3glz2toILj10EfE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERfTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.09M|      {
  815|  2.09M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.09M|            static_assert(required_padding<T>());
  817|  2.09M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.09M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.09M|         }
  821|       |
  822|  2.09M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  2.09M|         else {
  832|  2.09M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.09M|         }
  834|  2.09M|      }
_ZN3glz16required_paddingIfEEmv:
  538|  2.09M|   {
  539|  2.09M|      constexpr auto value = []() -> size_t {
  540|  2.09M|         if constexpr (boolean_like<T>) {
  541|  2.09M|            return 8;
  542|  2.09M|         }
  543|  2.09M|         else if constexpr (num_t<T>) {
  544|  2.09M|            if constexpr (std::floating_point<T>) {
  545|  2.09M|               if constexpr (sizeof(T) > 8) {
  546|  2.09M|                  return 64;
  547|  2.09M|               }
  548|  2.09M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.09M|                  return zmij::double_buffer_size + 4;
  551|  2.09M|               }
  552|  2.09M|               else {
  553|  2.09M|                  return zmij::float_buffer_size + 4;
  554|  2.09M|               }
  555|  2.09M|            }
  556|  2.09M|            else if constexpr (sizeof(T) > 4) {
  557|  2.09M|               return 24;
  558|  2.09M|            }
  559|  2.09M|            else if constexpr (sizeof(T) > 2) {
  560|  2.09M|               return 16;
  561|  2.09M|            }
  562|  2.09M|            else {
  563|  2.09M|               return 8;
  564|  2.09M|            }
  565|  2.09M|         }
  566|  2.09M|         else if constexpr (nullable_like<T>) {
  567|  2.09M|            if constexpr (has_value_type<T>) {
  568|  2.09M|               return required_padding<typename T::value_type>();
  569|  2.09M|            }
  570|  2.09M|            else if constexpr (has_element_type<T>) {
  571|  2.09M|               return required_padding<typename T::element_type>();
  572|  2.09M|            }
  573|  2.09M|            else {
  574|  2.09M|               return 0;
  575|  2.09M|            }
  576|  2.09M|         }
  577|  2.09M|         else if constexpr (always_null_t<T>) {
  578|  2.09M|            return 8;
  579|  2.09M|         }
  580|  2.09M|         else {
  581|  2.09M|            return 0;
  582|  2.09M|         }
  583|  2.09M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  2.09M|      return value;
  591|  2.09M|   }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.49M|      {
  815|  1.49M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.49M|            static_assert(required_padding<T>());
  817|  1.49M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.49M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.49M|         }
  821|       |
  822|  1.49M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.49M|         else {
  832|  1.49M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.49M|         }
  834|  1.49M|      }
_ZN3glz16required_paddingIdEEmv:
  538|  1.49M|   {
  539|  1.49M|      constexpr auto value = []() -> size_t {
  540|  1.49M|         if constexpr (boolean_like<T>) {
  541|  1.49M|            return 8;
  542|  1.49M|         }
  543|  1.49M|         else if constexpr (num_t<T>) {
  544|  1.49M|            if constexpr (std::floating_point<T>) {
  545|  1.49M|               if constexpr (sizeof(T) > 8) {
  546|  1.49M|                  return 64;
  547|  1.49M|               }
  548|  1.49M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.49M|                  return zmij::double_buffer_size + 4;
  551|  1.49M|               }
  552|  1.49M|               else {
  553|  1.49M|                  return zmij::float_buffer_size + 4;
  554|  1.49M|               }
  555|  1.49M|            }
  556|  1.49M|            else if constexpr (sizeof(T) > 4) {
  557|  1.49M|               return 24;
  558|  1.49M|            }
  559|  1.49M|            else if constexpr (sizeof(T) > 2) {
  560|  1.49M|               return 16;
  561|  1.49M|            }
  562|  1.49M|            else {
  563|  1.49M|               return 8;
  564|  1.49M|            }
  565|  1.49M|         }
  566|  1.49M|         else if constexpr (nullable_like<T>) {
  567|  1.49M|            if constexpr (has_value_type<T>) {
  568|  1.49M|               return required_padding<typename T::value_type>();
  569|  1.49M|            }
  570|  1.49M|            else if constexpr (has_element_type<T>) {
  571|  1.49M|               return required_padding<typename T::element_type>();
  572|  1.49M|            }
  573|  1.49M|            else {
  574|  1.49M|               return 0;
  575|  1.49M|            }
  576|  1.49M|         }
  577|  1.49M|         else if constexpr (always_null_t<T>) {
  578|  1.49M|            return 8;
  579|  1.49M|         }
  580|  1.49M|         else {
  581|  1.49M|            return 0;
  582|  1.49M|         }
  583|  1.49M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.49M|      return value;
  591|  1.49M|   }
_ZN3glz2toILj10EaE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERaTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.68M|      {
  815|  1.68M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.68M|            static_assert(required_padding<T>());
  817|  1.68M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.68M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.68M|         }
  821|       |
  822|  1.68M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.68M|         else {
  832|  1.68M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.68M|         }
  834|  1.68M|      }
_ZN3glz16required_paddingIaEEmv:
  538|  1.68M|   {
  539|  1.68M|      constexpr auto value = []() -> size_t {
  540|  1.68M|         if constexpr (boolean_like<T>) {
  541|  1.68M|            return 8;
  542|  1.68M|         }
  543|  1.68M|         else if constexpr (num_t<T>) {
  544|  1.68M|            if constexpr (std::floating_point<T>) {
  545|  1.68M|               if constexpr (sizeof(T) > 8) {
  546|  1.68M|                  return 64;
  547|  1.68M|               }
  548|  1.68M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.68M|                  return zmij::double_buffer_size + 4;
  551|  1.68M|               }
  552|  1.68M|               else {
  553|  1.68M|                  return zmij::float_buffer_size + 4;
  554|  1.68M|               }
  555|  1.68M|            }
  556|  1.68M|            else if constexpr (sizeof(T) > 4) {
  557|  1.68M|               return 24;
  558|  1.68M|            }
  559|  1.68M|            else if constexpr (sizeof(T) > 2) {
  560|  1.68M|               return 16;
  561|  1.68M|            }
  562|  1.68M|            else {
  563|  1.68M|               return 8;
  564|  1.68M|            }
  565|  1.68M|         }
  566|  1.68M|         else if constexpr (nullable_like<T>) {
  567|  1.68M|            if constexpr (has_value_type<T>) {
  568|  1.68M|               return required_padding<typename T::value_type>();
  569|  1.68M|            }
  570|  1.68M|            else if constexpr (has_element_type<T>) {
  571|  1.68M|               return required_padding<typename T::element_type>();
  572|  1.68M|            }
  573|  1.68M|            else {
  574|  1.68M|               return 0;
  575|  1.68M|            }
  576|  1.68M|         }
  577|  1.68M|         else if constexpr (always_null_t<T>) {
  578|  1.68M|            return 8;
  579|  1.68M|         }
  580|  1.68M|         else {
  581|  1.68M|            return 0;
  582|  1.68M|         }
  583|  1.68M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.68M|      return value;
  591|  1.68M|   }
_ZN3glz2toILj10EsE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERsTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  2.55M|      {
  815|  2.55M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  2.55M|            static_assert(required_padding<T>());
  817|  2.55M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 2.55M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  2.55M|         }
  821|       |
  822|  2.55M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  2.55M|         else {
  832|  2.55M|            write_chars::op<O>(value, ctx, b, ix);
  833|  2.55M|         }
  834|  2.55M|      }
_ZN3glz16required_paddingIsEEmv:
  538|  2.55M|   {
  539|  2.55M|      constexpr auto value = []() -> size_t {
  540|  2.55M|         if constexpr (boolean_like<T>) {
  541|  2.55M|            return 8;
  542|  2.55M|         }
  543|  2.55M|         else if constexpr (num_t<T>) {
  544|  2.55M|            if constexpr (std::floating_point<T>) {
  545|  2.55M|               if constexpr (sizeof(T) > 8) {
  546|  2.55M|                  return 64;
  547|  2.55M|               }
  548|  2.55M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  2.55M|                  return zmij::double_buffer_size + 4;
  551|  2.55M|               }
  552|  2.55M|               else {
  553|  2.55M|                  return zmij::float_buffer_size + 4;
  554|  2.55M|               }
  555|  2.55M|            }
  556|  2.55M|            else if constexpr (sizeof(T) > 4) {
  557|  2.55M|               return 24;
  558|  2.55M|            }
  559|  2.55M|            else if constexpr (sizeof(T) > 2) {
  560|  2.55M|               return 16;
  561|  2.55M|            }
  562|  2.55M|            else {
  563|  2.55M|               return 8;
  564|  2.55M|            }
  565|  2.55M|         }
  566|  2.55M|         else if constexpr (nullable_like<T>) {
  567|  2.55M|            if constexpr (has_value_type<T>) {
  568|  2.55M|               return required_padding<typename T::value_type>();
  569|  2.55M|            }
  570|  2.55M|            else if constexpr (has_element_type<T>) {
  571|  2.55M|               return required_padding<typename T::element_type>();
  572|  2.55M|            }
  573|  2.55M|            else {
  574|  2.55M|               return 0;
  575|  2.55M|            }
  576|  2.55M|         }
  577|  2.55M|         else if constexpr (always_null_t<T>) {
  578|  2.55M|            return 8;
  579|  2.55M|         }
  580|  2.55M|         else {
  581|  2.55M|            return 0;
  582|  2.55M|         }
  583|  2.55M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  2.55M|      return value;
  591|  2.55M|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   731k|      {
  815|   731k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   731k|            static_assert(required_padding<T>());
  817|   731k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 731k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   731k|         }
  821|       |
  822|   731k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   731k|         else {
  832|   731k|            write_chars::op<O>(value, ctx, b, ix);
  833|   731k|         }
  834|   731k|      }
_ZN3glz16required_paddingIiEEmv:
  538|   731k|   {
  539|   731k|      constexpr auto value = []() -> size_t {
  540|   731k|         if constexpr (boolean_like<T>) {
  541|   731k|            return 8;
  542|   731k|         }
  543|   731k|         else if constexpr (num_t<T>) {
  544|   731k|            if constexpr (std::floating_point<T>) {
  545|   731k|               if constexpr (sizeof(T) > 8) {
  546|   731k|                  return 64;
  547|   731k|               }
  548|   731k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   731k|                  return zmij::double_buffer_size + 4;
  551|   731k|               }
  552|   731k|               else {
  553|   731k|                  return zmij::float_buffer_size + 4;
  554|   731k|               }
  555|   731k|            }
  556|   731k|            else if constexpr (sizeof(T) > 4) {
  557|   731k|               return 24;
  558|   731k|            }
  559|   731k|            else if constexpr (sizeof(T) > 2) {
  560|   731k|               return 16;
  561|   731k|            }
  562|   731k|            else {
  563|   731k|               return 8;
  564|   731k|            }
  565|   731k|         }
  566|   731k|         else if constexpr (nullable_like<T>) {
  567|   731k|            if constexpr (has_value_type<T>) {
  568|   731k|               return required_padding<typename T::value_type>();
  569|   731k|            }
  570|   731k|            else if constexpr (has_element_type<T>) {
  571|   731k|               return required_padding<typename T::element_type>();
  572|   731k|            }
  573|   731k|            else {
  574|   731k|               return 0;
  575|   731k|            }
  576|   731k|         }
  577|   731k|         else if constexpr (always_null_t<T>) {
  578|   731k|            return 8;
  579|   731k|         }
  580|   731k|         else {
  581|   731k|            return 0;
  582|   731k|         }
  583|   731k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   731k|      return value;
  591|   731k|   }
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   832k|      {
  815|   832k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   832k|            static_assert(required_padding<T>());
  817|   832k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 832k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   832k|         }
  821|       |
  822|   832k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   832k|         else {
  832|   832k|            write_chars::op<O>(value, ctx, b, ix);
  833|   832k|         }
  834|   832k|      }
_ZN3glz16required_paddingIlEEmv:
  538|   832k|   {
  539|   832k|      constexpr auto value = []() -> size_t {
  540|   832k|         if constexpr (boolean_like<T>) {
  541|   832k|            return 8;
  542|   832k|         }
  543|   832k|         else if constexpr (num_t<T>) {
  544|   832k|            if constexpr (std::floating_point<T>) {
  545|   832k|               if constexpr (sizeof(T) > 8) {
  546|   832k|                  return 64;
  547|   832k|               }
  548|   832k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   832k|                  return zmij::double_buffer_size + 4;
  551|   832k|               }
  552|   832k|               else {
  553|   832k|                  return zmij::float_buffer_size + 4;
  554|   832k|               }
  555|   832k|            }
  556|   832k|            else if constexpr (sizeof(T) > 4) {
  557|   832k|               return 24;
  558|   832k|            }
  559|   832k|            else if constexpr (sizeof(T) > 2) {
  560|   832k|               return 16;
  561|   832k|            }
  562|   832k|            else {
  563|   832k|               return 8;
  564|   832k|            }
  565|   832k|         }
  566|   832k|         else if constexpr (nullable_like<T>) {
  567|   832k|            if constexpr (has_value_type<T>) {
  568|   832k|               return required_padding<typename T::value_type>();
  569|   832k|            }
  570|   832k|            else if constexpr (has_element_type<T>) {
  571|   832k|               return required_padding<typename T::element_type>();
  572|   832k|            }
  573|   832k|            else {
  574|   832k|               return 0;
  575|   832k|            }
  576|   832k|         }
  577|   832k|         else if constexpr (always_null_t<T>) {
  578|   832k|            return 8;
  579|   832k|         }
  580|   832k|         else {
  581|   832k|            return 0;
  582|   832k|         }
  583|   832k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   832k|      return value;
  591|   832k|   }
_ZN3glz2toILj10EhE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERhTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   487k|      {
  815|   487k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   487k|            static_assert(required_padding<T>());
  817|   487k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 487k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   487k|         }
  821|       |
  822|   487k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   487k|         else {
  832|   487k|            write_chars::op<O>(value, ctx, b, ix);
  833|   487k|         }
  834|   487k|      }
_ZN3glz16required_paddingIhEEmv:
  538|   487k|   {
  539|   487k|      constexpr auto value = []() -> size_t {
  540|   487k|         if constexpr (boolean_like<T>) {
  541|   487k|            return 8;
  542|   487k|         }
  543|   487k|         else if constexpr (num_t<T>) {
  544|   487k|            if constexpr (std::floating_point<T>) {
  545|   487k|               if constexpr (sizeof(T) > 8) {
  546|   487k|                  return 64;
  547|   487k|               }
  548|   487k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   487k|                  return zmij::double_buffer_size + 4;
  551|   487k|               }
  552|   487k|               else {
  553|   487k|                  return zmij::float_buffer_size + 4;
  554|   487k|               }
  555|   487k|            }
  556|   487k|            else if constexpr (sizeof(T) > 4) {
  557|   487k|               return 24;
  558|   487k|            }
  559|   487k|            else if constexpr (sizeof(T) > 2) {
  560|   487k|               return 16;
  561|   487k|            }
  562|   487k|            else {
  563|   487k|               return 8;
  564|   487k|            }
  565|   487k|         }
  566|   487k|         else if constexpr (nullable_like<T>) {
  567|   487k|            if constexpr (has_value_type<T>) {
  568|   487k|               return required_padding<typename T::value_type>();
  569|   487k|            }
  570|   487k|            else if constexpr (has_element_type<T>) {
  571|   487k|               return required_padding<typename T::element_type>();
  572|   487k|            }
  573|   487k|            else {
  574|   487k|               return 0;
  575|   487k|            }
  576|   487k|         }
  577|   487k|         else if constexpr (always_null_t<T>) {
  578|   487k|            return 8;
  579|   487k|         }
  580|   487k|         else {
  581|   487k|            return 0;
  582|   487k|         }
  583|   487k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   487k|      return value;
  591|   487k|   }
_ZN3glz2toILj10EtE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERtTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.89M|      {
  815|  1.89M|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.89M|            static_assert(required_padding<T>());
  817|  1.89M|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.89M]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.89M|         }
  821|       |
  822|  1.89M|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.89M|         else {
  832|  1.89M|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.89M|         }
  834|  1.89M|      }
_ZN3glz16required_paddingItEEmv:
  538|  1.89M|   {
  539|  1.89M|      constexpr auto value = []() -> size_t {
  540|  1.89M|         if constexpr (boolean_like<T>) {
  541|  1.89M|            return 8;
  542|  1.89M|         }
  543|  1.89M|         else if constexpr (num_t<T>) {
  544|  1.89M|            if constexpr (std::floating_point<T>) {
  545|  1.89M|               if constexpr (sizeof(T) > 8) {
  546|  1.89M|                  return 64;
  547|  1.89M|               }
  548|  1.89M|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.89M|                  return zmij::double_buffer_size + 4;
  551|  1.89M|               }
  552|  1.89M|               else {
  553|  1.89M|                  return zmij::float_buffer_size + 4;
  554|  1.89M|               }
  555|  1.89M|            }
  556|  1.89M|            else if constexpr (sizeof(T) > 4) {
  557|  1.89M|               return 24;
  558|  1.89M|            }
  559|  1.89M|            else if constexpr (sizeof(T) > 2) {
  560|  1.89M|               return 16;
  561|  1.89M|            }
  562|  1.89M|            else {
  563|  1.89M|               return 8;
  564|  1.89M|            }
  565|  1.89M|         }
  566|  1.89M|         else if constexpr (nullable_like<T>) {
  567|  1.89M|            if constexpr (has_value_type<T>) {
  568|  1.89M|               return required_padding<typename T::value_type>();
  569|  1.89M|            }
  570|  1.89M|            else if constexpr (has_element_type<T>) {
  571|  1.89M|               return required_padding<typename T::element_type>();
  572|  1.89M|            }
  573|  1.89M|            else {
  574|  1.89M|               return 0;
  575|  1.89M|            }
  576|  1.89M|         }
  577|  1.89M|         else if constexpr (always_null_t<T>) {
  578|  1.89M|            return 8;
  579|  1.89M|         }
  580|  1.89M|         else {
  581|  1.89M|            return 0;
  582|  1.89M|         }
  583|  1.89M|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.89M|      return value;
  591|  1.89M|   }
_ZN3glz2toILj10EjE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERjTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   494k|      {
  815|   494k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   494k|            static_assert(required_padding<T>());
  817|   494k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 494k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   494k|         }
  821|       |
  822|   494k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   494k|         else {
  832|   494k|            write_chars::op<O>(value, ctx, b, ix);
  833|   494k|         }
  834|   494k|      }
_ZN3glz16required_paddingIjEEmv:
  538|   494k|   {
  539|   494k|      constexpr auto value = []() -> size_t {
  540|   494k|         if constexpr (boolean_like<T>) {
  541|   494k|            return 8;
  542|   494k|         }
  543|   494k|         else if constexpr (num_t<T>) {
  544|   494k|            if constexpr (std::floating_point<T>) {
  545|   494k|               if constexpr (sizeof(T) > 8) {
  546|   494k|                  return 64;
  547|   494k|               }
  548|   494k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   494k|                  return zmij::double_buffer_size + 4;
  551|   494k|               }
  552|   494k|               else {
  553|   494k|                  return zmij::float_buffer_size + 4;
  554|   494k|               }
  555|   494k|            }
  556|   494k|            else if constexpr (sizeof(T) > 4) {
  557|   494k|               return 24;
  558|   494k|            }
  559|   494k|            else if constexpr (sizeof(T) > 2) {
  560|   494k|               return 16;
  561|   494k|            }
  562|   494k|            else {
  563|   494k|               return 8;
  564|   494k|            }
  565|   494k|         }
  566|   494k|         else if constexpr (nullable_like<T>) {
  567|   494k|            if constexpr (has_value_type<T>) {
  568|   494k|               return required_padding<typename T::value_type>();
  569|   494k|            }
  570|   494k|            else if constexpr (has_element_type<T>) {
  571|   494k|               return required_padding<typename T::element_type>();
  572|   494k|            }
  573|   494k|            else {
  574|   494k|               return 0;
  575|   494k|            }
  576|   494k|         }
  577|   494k|         else if constexpr (always_null_t<T>) {
  578|   494k|            return 8;
  579|   494k|         }
  580|   494k|         else {
  581|   494k|            return 0;
  582|   494k|         }
  583|   494k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   494k|      return value;
  591|   494k|   }
_ZN3glz2toILj10EmE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|   822k|      {
  815|   822k|         if constexpr (not check_write_unchecked(Opts)) {
  816|   822k|            static_assert(required_padding<T>());
  817|   822k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 822k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|   822k|         }
  821|       |
  822|   822k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|   822k|         else {
  832|   822k|            write_chars::op<O>(value, ctx, b, ix);
  833|   822k|         }
  834|   822k|      }
_ZN3glz16required_paddingImEEmv:
  538|   822k|   {
  539|   822k|      constexpr auto value = []() -> size_t {
  540|   822k|         if constexpr (boolean_like<T>) {
  541|   822k|            return 8;
  542|   822k|         }
  543|   822k|         else if constexpr (num_t<T>) {
  544|   822k|            if constexpr (std::floating_point<T>) {
  545|   822k|               if constexpr (sizeof(T) > 8) {
  546|   822k|                  return 64;
  547|   822k|               }
  548|   822k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|   822k|                  return zmij::double_buffer_size + 4;
  551|   822k|               }
  552|   822k|               else {
  553|   822k|                  return zmij::float_buffer_size + 4;
  554|   822k|               }
  555|   822k|            }
  556|   822k|            else if constexpr (sizeof(T) > 4) {
  557|   822k|               return 24;
  558|   822k|            }
  559|   822k|            else if constexpr (sizeof(T) > 2) {
  560|   822k|               return 16;
  561|   822k|            }
  562|   822k|            else {
  563|   822k|               return 8;
  564|   822k|            }
  565|   822k|         }
  566|   822k|         else if constexpr (nullable_like<T>) {
  567|   822k|            if constexpr (has_value_type<T>) {
  568|   822k|               return required_padding<typename T::value_type>();
  569|   822k|            }
  570|   822k|            else if constexpr (has_element_type<T>) {
  571|   822k|               return required_padding<typename T::element_type>();
  572|   822k|            }
  573|   822k|            else {
  574|   822k|               return 0;
  575|   822k|            }
  576|   822k|         }
  577|   822k|         else if constexpr (always_null_t<T>) {
  578|   822k|            return 8;
  579|   822k|         }
  580|   822k|         else {
  581|   822k|            return 0;
  582|   822k|         }
  583|   822k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|   822k|      return value;
  591|   822k|   }
_ZN3glz6detail21emit_untrusted_stringITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEvRT1_NS3_17basic_string_viewIcS6_EERT0_Rm:
 1140|   650k|      {
 1141|   650k|         to<JSON, std::string_view>::template op<untrusted_string_emit_opts<Opts>>(s, ctx, out, ix);
 1142|   650k|      }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|   650k|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|   650k|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|   650k|            else {
  945|   650k|               const sv str = [&]() -> const sv {
  946|   650k|                  if constexpr (array_char_t<T>) {
  947|   650k|                     return sv{value.data(), value.size()};
  948|   650k|                  }
  949|   650k|                  else if constexpr (u8str_t<T>) {
  950|   650k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|   650k|                  }
  952|   650k|                  else {
  953|   650k|                     return str_view<T>(value);
  954|   650k|                  }
  955|   650k|               }();
  956|   650k|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|   650k|               else {
  988|       |                  // Using the original sizing
  989|   650k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 650k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|   650k|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|   650k|               else {
 1002|   650k|                  std::memcpy(&b[ix], "\"", 1);
 1003|   650k|                  ++ix;
 1004|       |
 1005|   650k|                  const auto* c = str.data();
 1006|   650k|                  const auto* const e = c + n;
 1007|   650k|                  const auto start = &b[ix];
 1008|   650k|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|   650k|                  auto write_escape = [&]() {
 1017|   650k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|   650k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|   650k|                           std::memcpy(data, &escaped, 2);
 1020|   650k|                           data += 2;
 1021|   650k|                        }
 1022|   650k|                        else {
 1023|   650k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|   650k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|   650k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|   650k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|   650k|                           std::memcpy(data, unicode_escape, 6);
 1028|   650k|                           data += 6;
 1029|   650k|                        }
 1030|   650k|                     }
 1031|   650k|                     else {
 1032|   650k|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|   650k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|   650k|                              ctx.error = error_code::invalid_control_character;
 1040|   650k|                           }
 1041|   650k|                        }
 1042|   650k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|   650k|                        data += 2;
 1044|   650k|                     }
 1045|   650k|                     ++c;
 1046|   650k|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|   650k|#if defined(GLZ_USE_SSE2)
 1055|   650k|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|   650k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 870, False: 649k]
  ------------------
 1062|  2.67k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 1.80k, False: 870]
  ------------------
 1063|  1.80k|                        std::memcpy(data, c, 8);
 1064|  1.80k|                        uint64_t swar;
 1065|  1.80k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  1.80k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  1.80k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  1.80k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  1.80k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  1.80k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  1.80k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  1.80k|                        next &= repeat_byte8(0b10000000);
 1078|  1.80k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 301, False: 1.50k]
  ------------------
 1079|    301|                           data += 8;
 1080|    301|                           c += 8;
 1081|    301|                           continue;
 1082|    301|                        }
 1083|       |
 1084|  1.50k|                        const auto length = (countr_zero(next) >> 3);
 1085|  1.50k|                        c += length;
 1086|  1.50k|                        data += length;
 1087|  1.50k|                        write_escape();
 1088|  1.50k|                     }
 1089|    870|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|   666k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 15.8k, False: 650k]
  ------------------
 1093|  15.8k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 1.77k, False: 14.0k]
  ------------------
 1094|  1.77k|                        std::memcpy(data, &escaped, 2);
 1095|  1.77k|                        data += 2;
 1096|  1.77k|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|  14.0k|                     else {
 1112|  14.0k|                        if constexpr (check_reject_control_characters(Opts)) {
 1113|  14.0k|                           if (uint8_t(*c) < 0x20) [[unlikely]] {
  ------------------
  |  Branch (1113:32): [True: 1.01k, False: 13.0k]
  ------------------
 1114|  1.01k|                              ctx.error = error_code::invalid_control_character;
 1115|  1.01k|                           }
 1116|  14.0k|                        }
 1117|  14.0k|                        std::memcpy(data, c, 1);
 1118|  14.0k|                        ++data;
 1119|  14.0k|                     }
 1120|  15.8k|                  }
 1121|       |
 1122|   650k|                  ix += size_t(data - start);
 1123|       |
 1124|   650k|                  std::memcpy(&b[ix], "\"", 1);
 1125|   650k|                  ++ix;
 1126|   650k|               }
 1127|   650k|            }
 1128|   650k|         }
 1129|   650k|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|   650k|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|   650k|                  else {
  953|   650k|                     return str_view<T>(value);
  954|   650k|                  }
  955|   650k|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  5.02M|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  5.02M|                     else {
 1032|  5.02M|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  5.02M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
  ------------------
  |  Branch (1038:32): [True: 4.76M, False: 255k]
  ------------------
 1039|  4.76M|                              ctx.error = error_code::invalid_control_character;
 1040|  4.76M|                           }
 1041|  5.02M|                        }
 1042|  5.02M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  5.02M|                        data += 2;
 1044|  5.02M|                     }
 1045|  5.02M|                     ++c;
 1046|  5.02M|                  };
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm10EEEtlA10_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  18.6M|      {
 1165|  18.6M|         static constexpr auto s = str.sv();
 1166|  18.6M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 18.6M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  18.6M|         dump<false>(s, out, ix);
 1170|  18.6M|         return true;
 1171|  18.6M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm15EEEtlA15_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc114ELc105ELc103ELc104ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|   591k|      {
 1165|   591k|         static constexpr auto s = str.sv();
 1166|   591k|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 591k]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|   591k|         dump<false>(s, out, ix);
 1170|   591k|         return true;
 1171|   591k|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm14EEEtlA14_cLc34ELc108ELc97ELc121ELc111ELc117ELc116ELc95ELc108ELc101ELc102ELc116ELc34EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  18.0M|      {
 1165|  18.0M|         static constexpr auto s = str.sv();
 1166|  18.0M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 18.0M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  18.0M|         dump<false>(s, out, ix);
 1170|  18.0M|         return true;
 1171|  18.0M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm11EEEtlA11_cLc34ELc101ELc120ELc116ELc101ELc110ELc116ELc115ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  18.6M|      {
 1165|  18.6M|         static constexpr auto s = str.sv();
 1166|  18.6M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 18.6M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  18.6M|         dump<false>(s, out, ix);
 1170|  18.6M|         return true;
 1171|  18.6M|      }
_ZN3glz6detail12emit_literalITnNS_14string_literalEXtlNS2_ILm9EEEtlA9_cLc34ELc118ELc97ELc108ELc117ELc101ELc34ELc58EEEENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT1_RT0_Rm:
 1164|  18.5M|      {
 1165|  18.5M|         static constexpr auto s = str.sv();
 1166|  18.5M|         if (!ensure_space(ctx, out, ix + s.size())) [[unlikely]] {
  ------------------
  |  Branch (1166:14): [True: 0, False: 18.5M]
  ------------------
 1167|      0|            return false;
 1168|      0|         }
 1169|  18.5M|         dump<false>(s, out, ix);
 1170|  18.5M|         return true;
 1171|  18.5M|      }

_ZN3glz6to_tieIR9my_structLm4EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  137|  13.4k|   {
  138|       |      if constexpr (N == 0) {
  139|       |         return tuple{};
  140|       |      }
  141|       |      else if constexpr (N == 1) {
  142|       |         auto& [p] = t;
  143|       |         return glz::tie(p);
  144|       |      }
  145|       |      else if constexpr (N == 2) {
  146|       |         auto& [p0, p1] = t;
  147|       |         return glz::tie(p0, p1);
  148|       |      }
  149|       |      else if constexpr (N == 3) {
  150|       |         auto& [p0, p1, p2] = t;
  151|       |         return glz::tie(p0, p1, p2);
  152|       |      }
  153|  13.4k|      else if constexpr (N == 4) {
  154|  13.4k|         auto& [p0, p1, p2, p3] = t;
  155|  13.4k|         return glz::tie(p0, p1, p2, p3);
  156|       |      }
  157|       |      else if constexpr (N == 5) {
  158|       |         auto& [p0, p1, p2, p3, p4] = t;
  159|       |         return glz::tie(p0, p1, p2, p3, p4);
  160|       |      }
  161|       |      else if constexpr (N == 6) {
  162|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  163|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  164|       |      }
  165|       |      else if constexpr (N == 7) {
  166|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  167|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  168|       |      }
  169|       |      else if constexpr (N == 8) {
  170|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  171|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  172|       |      }
  173|       |      else if constexpr (N == 9) {
  174|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  175|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  176|       |      }
  177|       |      else if constexpr (N == 10) {
  178|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  179|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  180|       |      }
  181|       |      else if constexpr (N == 11) {
  182|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  183|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  184|       |      }
  185|       |      else if constexpr (N == 12) {
  186|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  187|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  188|       |      }
  189|       |      else if constexpr (N == 13) {
  190|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  191|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  192|       |      }
  193|       |      else if constexpr (N == 14) {
  194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  195|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  196|       |      }
  197|       |      else if constexpr (N == 15) {
  198|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  199|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  200|       |      }
  201|       |      else if constexpr (N == 16) {
  202|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  203|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  204|       |      }
  205|       |      else if constexpr (N == 17) {
  206|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  207|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  208|       |      }
  209|       |      else if constexpr (N == 18) {
  210|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  211|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  212|       |      }
  213|       |      else if constexpr (N == 19) {
  214|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  216|       |      }
  217|       |      else if constexpr (N == 20) {
  218|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  219|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  220|       |      }
  221|       |      else if constexpr (N == 21) {
  222|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  223|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  224|       |      }
  225|       |      else if constexpr (N == 22) {
  226|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  227|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  228|       |                         p21);
  229|       |      }
  230|       |      else if constexpr (N == 23) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  232|       |                p22] = t;
  233|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  234|       |                         p21, p22);
  235|       |      }
  236|       |      else if constexpr (N == 24) {
  237|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  238|       |                p23] = t;
  239|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  240|       |                         p21, p22, p23);
  241|       |      }
  242|       |      else if constexpr (N == 25) {
  243|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  244|       |                p23, p24] = t;
  245|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  246|       |                         p21, p22, p23, p24);
  247|       |      }
  248|       |      else if constexpr (N == 26) {
  249|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  250|       |                p23, p24, p25] = t;
  251|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  252|       |                         p21, p22, p23, p24, p25);
  253|       |      }
  254|       |      else if constexpr (N == 27) {
  255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  256|       |                p23, p24, p25, p26] = t;
  257|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  258|       |                         p21, p22, p23, p24, p25, p26);
  259|       |      }
  260|       |      else if constexpr (N == 28) {
  261|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  262|       |                p23, p24, p25, p26, p27] = t;
  263|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  264|       |                         p21, p22, p23, p24, p25, p26, p27);
  265|       |      }
  266|       |      else if constexpr (N == 29) {
  267|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  268|       |                p23, p24, p25, p26, p27, p28] = t;
  269|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  270|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  271|       |      }
  272|       |      else if constexpr (N == 30) {
  273|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  274|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  275|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  276|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  277|       |      }
  278|       |      else if constexpr (N == 31) {
  279|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  280|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  281|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  282|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  283|       |      }
  284|       |      else if constexpr (N == 32) {
  285|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  286|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  287|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  288|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  289|       |      }
  290|       |      else if constexpr (N == 33) {
  291|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  292|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  293|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  294|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  295|       |      }
  296|       |      else if constexpr (N == 34) {
  297|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  298|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  299|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  300|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  301|       |      }
  302|       |      else if constexpr (N == 35) {
  303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  305|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  306|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  307|       |      }
  308|       |      else if constexpr (N == 36) {
  309|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  310|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  311|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  312|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  313|       |      }
  314|       |      else if constexpr (N == 37) {
  315|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  316|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  317|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  318|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  319|       |      }
  320|       |      else if constexpr (N == 38) {
  321|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  322|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  323|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  324|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  325|       |      }
  326|       |      else if constexpr (N == 39) {
  327|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  328|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  329|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  330|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  331|       |      }
  332|       |      else if constexpr (N == 40) {
  333|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  334|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  335|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  336|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  337|       |      }
  338|       |      else if constexpr (N == 41) {
  339|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  340|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  341|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  342|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  343|       |                         p40);
  344|       |      }
  345|       |      else if constexpr (N == 42) {
  346|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  347|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  348|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  349|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  350|       |                         p40, p41);
  351|       |      }
  352|       |      else if constexpr (N == 43) {
  353|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  354|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  355|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  356|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  357|       |                         p40, p41, p42);
  358|       |      }
  359|       |      else if constexpr (N == 44) {
  360|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  361|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  362|       |                p43] = t;
  363|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  364|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  365|       |                         p40, p41, p42, p43);
  366|       |      }
  367|       |      else if constexpr (N == 45) {
  368|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  369|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  370|       |                p44] = t;
  371|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  372|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  373|       |                         p40, p41, p42, p43, p44);
  374|       |      }
  375|       |      else if constexpr (N == 46) {
  376|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  377|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  378|       |                p44, p45] = t;
  379|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  380|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  381|       |                         p40, p41, p42, p43, p44, p45);
  382|       |      }
  383|       |      else if constexpr (N == 47) {
  384|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  385|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  386|       |                p44, p45, p46] = t;
  387|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  388|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  389|       |                         p40, p41, p42, p43, p44, p45, p46);
  390|       |      }
  391|       |      else if constexpr (N == 48) {
  392|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  393|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  394|       |                p44, p45, p46, p47] = t;
  395|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  396|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  397|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  398|       |      }
  399|       |      else if constexpr (N == 49) {
  400|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  401|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  402|       |                p44, p45, p46, p47, p48] = t;
  403|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  404|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  405|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  406|       |      }
  407|       |      else if constexpr (N == 50) {
  408|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  409|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  410|       |                p44, p45, p46, p47, p48, p49] = t;
  411|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  412|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  413|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  414|       |      }
  415|       |      else if constexpr (N == 51) {
  416|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  417|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  418|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  419|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  420|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  421|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  422|       |      }
  423|       |      else if constexpr (N == 52) {
  424|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  425|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  426|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  427|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  428|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  429|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  430|       |      }
  431|       |      else if constexpr (N == 53) {
  432|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  433|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  434|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  435|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  436|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  437|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  438|       |      }
  439|       |      else if constexpr (N == 54) {
  440|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  441|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  442|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  443|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  444|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  445|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  446|       |      }
  447|       |      else if constexpr (N == 55) {
  448|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  449|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  450|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  451|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  452|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  453|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  454|       |      }
  455|       |      else if constexpr (N == 56) {
  456|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  457|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  458|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  459|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  460|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  461|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  462|       |      }
  463|       |      else if constexpr (N == 57) {
  464|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  465|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  466|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  467|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  468|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  469|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  470|       |      }
  471|       |      else if constexpr (N == 58) {
  472|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  473|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  474|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  475|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  476|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  477|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  478|       |      }
  479|       |      else if constexpr (N == 59) {
  480|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  481|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  482|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  483|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  484|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  485|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  486|       |      }
  487|       |      else if constexpr (N == 60) {
  488|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  489|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  490|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  491|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  492|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  493|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  494|       |                         p59);
  495|       |      }
  496|       |      else if constexpr (N == 61) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59, p60);
  504|       |      }
  505|       |      else if constexpr (N == 62) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60, p61);
  513|       |      }
  514|       |      else if constexpr (N == 63) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61, p62);
  522|       |      }
  523|       |      else if constexpr (N == 64) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62, p63);
  531|       |      }
  532|       |      else if constexpr (N == 65) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  536|       |                p64] = t;
  537|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  538|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  539|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  540|       |                         p59, p60, p61, p62, p63, p64);
  541|       |      }
  542|       |      else if constexpr (N == 66) {
  543|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  544|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  545|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  546|       |                p65] = t;
  547|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  548|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  549|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  550|       |                         p59, p60, p61, p62, p63, p64, p65);
  551|       |      }
  552|       |      else if constexpr (N == 67) {
  553|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  554|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  555|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  556|       |                p65, p66] = t;
  557|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  558|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  559|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  560|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  561|       |      }
  562|       |      else if constexpr (N == 68) {
  563|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  564|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  565|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  566|       |                p65, p66, p67] = t;
  567|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  568|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  569|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  570|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  571|       |      }
  572|       |      else if constexpr (N == 69) {
  573|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  574|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  575|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  576|       |                p65, p66, p67, p68] = t;
  577|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  578|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  579|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  580|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  581|       |      }
  582|       |      else if constexpr (N == 70) {
  583|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  584|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  585|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  586|       |                p65, p66, p67, p68, p69] = t;
  587|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  588|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  589|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  590|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  591|       |      }
  592|       |      else if constexpr (N == 71) {
  593|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  594|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  595|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  596|       |                p65, p66, p67, p68, p69, p70] = t;
  597|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  598|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  599|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  600|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  601|       |      }
  602|       |      else if constexpr (N == 72) {
  603|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  604|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  605|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  606|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  607|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  608|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  609|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  610|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  611|       |      }
  612|       |      else if constexpr (N == 73) {
  613|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  614|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  615|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  616|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  617|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  618|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  619|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  620|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  621|       |      }
  622|       |      else if constexpr (N == 74) {
  623|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  624|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  625|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  626|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  627|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  628|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  629|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  630|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  631|       |      }
  632|       |      else if constexpr (N == 75) {
  633|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  634|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  635|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  636|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  637|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  638|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  639|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  640|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  641|       |      }
  642|       |      else if constexpr (N == 76) {
  643|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  644|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  645|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  646|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  647|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  648|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  649|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  650|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  651|       |      }
  652|       |      else if constexpr (N == 77) {
  653|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  654|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  655|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  656|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  657|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  658|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  659|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  660|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  661|       |      }
  662|       |      else if constexpr (N == 78) {
  663|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  664|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  665|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  666|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  667|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  668|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  669|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  670|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  671|       |      }
  672|       |      else if constexpr (N == 79) {
  673|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  674|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  675|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  676|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  677|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  678|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  679|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  680|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  681|       |                         p78);
  682|       |      }
  683|       |      else if constexpr (N == 80) {
  684|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  685|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  686|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  687|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  688|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  689|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  690|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  691|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  692|       |                         p78, p79);
  693|       |      }
  694|       |      else if constexpr (N == 81) {
  695|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  696|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  697|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  698|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  699|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  700|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  701|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  702|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  703|       |                         p78, p79, p80);
  704|       |      }
  705|       |      else if constexpr (N == 82) {
  706|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  707|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  708|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  709|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  710|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  711|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  712|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  713|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  714|       |                         p78, p79, p80, p81);
  715|       |      }
  716|       |      else if constexpr (N == 83) {
  717|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  718|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  719|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  720|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  721|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  722|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  723|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  724|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  725|       |                         p78, p79, p80, p81, p82);
  726|       |      }
  727|       |      else if constexpr (N == 84) {
  728|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  729|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  730|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  731|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  732|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  733|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  734|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  735|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  736|       |                         p78, p79, p80, p81, p82, p83);
  737|       |      }
  738|       |      else if constexpr (N == 85) {
  739|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  740|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  741|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  742|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  743|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  744|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  745|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  746|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  747|       |                         p78, p79, p80, p81, p82, p83, p84);
  748|       |      }
  749|       |      else if constexpr (N == 86) {
  750|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  751|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  752|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  753|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  754|       |                p85] = t;
  755|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  756|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  757|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  758|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  759|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  760|       |      }
  761|       |      else if constexpr (N == 87) {
  762|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  763|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  764|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  765|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  766|       |                p86] = t;
  767|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  768|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  769|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  770|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  771|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  772|       |      }
  773|       |      else if constexpr (N == 88) {
  774|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  775|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  776|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  777|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  778|       |                p86, p87] = t;
  779|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  780|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  781|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  782|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  783|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  784|       |      }
  785|       |      else if constexpr (N == 89) {
  786|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  787|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  788|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  789|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  790|       |                p86, p87, p88] = t;
  791|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  792|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  793|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  794|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  795|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  796|       |      }
  797|       |      else if constexpr (N == 90) {
  798|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  799|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  800|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  801|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  802|       |                p86, p87, p88, p89] = t;
  803|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  804|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  805|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  806|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  807|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  808|       |      }
  809|       |      else if constexpr (N == 91) {
  810|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  811|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  812|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  813|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  814|       |                p86, p87, p88, p89, p90] = t;
  815|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  816|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  817|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  818|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  819|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  820|       |      }
  821|       |      else if constexpr (N == 92) {
  822|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  823|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  824|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  825|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  826|       |                p86, p87, p88, p89, p90, p91] = t;
  827|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  828|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  829|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  830|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  831|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  832|       |      }
  833|       |      else if constexpr (N == 93) {
  834|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  835|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  836|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  837|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  838|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  839|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  840|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  841|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  842|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  843|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  844|       |      }
  845|       |      else if constexpr (N == 94) {
  846|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  847|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  848|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  849|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  850|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  851|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  852|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  853|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  854|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  855|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  856|       |      }
  857|       |      else if constexpr (N == 95) {
  858|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  859|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  860|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  861|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  862|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  863|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  864|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  865|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  866|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  867|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  868|       |      }
  869|       |      else if constexpr (N == 96) {
  870|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  871|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  872|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  873|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  874|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  875|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  876|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  877|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  878|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  879|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  880|       |      }
  881|       |      else if constexpr (N == 97) {
  882|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  883|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  884|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  885|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  886|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  887|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  888|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  889|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  890|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  891|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  892|       |      }
  893|       |      else if constexpr (N == 98) {
  894|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  895|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  896|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  897|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  898|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  899|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  900|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  901|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  902|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  903|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  904|       |                         p97);
  905|       |      }
  906|       |      else if constexpr (N == 99) {
  907|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  908|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  909|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  910|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  911|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  912|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  913|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  914|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  915|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  916|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  917|       |                         p97, p98);
  918|       |      }
  919|       |      else if constexpr (N == 100) {
  920|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  921|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  922|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  923|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  924|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  925|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  926|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  927|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  928|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  929|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  930|       |                         p97, p98, p99);
  931|       |      }
  932|       |      else if constexpr (N == 101) {
  933|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  934|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  935|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  936|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  937|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  938|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  939|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  940|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  941|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  942|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  943|       |                         p97, p98, p99, p100);
  944|       |      }
  945|       |      else if constexpr (N == 102) {
  946|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  947|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  948|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  949|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  950|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  951|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  952|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  953|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  954|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  955|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  956|       |                         p97, p98, p99, p100, p101);
  957|       |      }
  958|       |      else if constexpr (N == 103) {
  959|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  960|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  961|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  962|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  963|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  964|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  965|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  966|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  967|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  968|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  969|       |                         p97, p98, p99, p100, p101, p102);
  970|       |      }
  971|       |      else if constexpr (N == 104) {
  972|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  973|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  974|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  975|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  976|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  977|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  978|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  979|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  980|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  981|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  982|       |                         p97, p98, p99, p100, p101, p102, p103);
  983|       |      }
  984|       |      else if constexpr (N == 105) {
  985|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  986|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  987|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  988|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  989|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  990|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  991|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  992|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  993|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  994|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  995|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
  996|       |      }
  997|       |      else if constexpr (N == 106) {
  998|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  999|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1000|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1001|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1002|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1003|       |                p105] = t;
 1004|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1005|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1006|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1007|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1008|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1009|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1010|       |      }
 1011|       |      else if constexpr (N == 107) {
 1012|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1013|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1014|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1015|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1016|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1017|       |                p105, p106] = t;
 1018|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1019|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1020|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1021|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1022|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1023|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1024|       |      }
 1025|       |      else if constexpr (N == 108) {
 1026|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1027|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1028|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1029|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1030|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1031|       |                p105, p106, p107] = t;
 1032|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1033|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1034|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1035|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1036|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1037|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1038|       |      }
 1039|       |      else if constexpr (N == 109) {
 1040|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1041|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1042|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1043|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1044|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1045|       |                p105, p106, p107, p108] = t;
 1046|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1047|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1048|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1049|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1050|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1051|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1052|       |      }
 1053|       |      else if constexpr (N == 110) {
 1054|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1055|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1056|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1057|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1058|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1059|       |                p105, p106, p107, p108, p109] = t;
 1060|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1061|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1062|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1063|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1064|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1065|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1066|       |      }
 1067|       |      else if constexpr (N == 111) {
 1068|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1069|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1070|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1071|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1072|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1073|       |                p105, p106, p107, p108, p109, p110] = t;
 1074|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1075|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1076|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1077|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1078|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1079|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1080|       |      }
 1081|       |      else if constexpr (N == 112) {
 1082|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1083|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1084|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1085|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1086|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1087|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1088|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1089|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1090|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1091|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1092|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1093|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1094|       |      }
 1095|       |      else if constexpr (N == 113) {
 1096|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1097|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1098|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1099|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1100|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1101|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1102|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1103|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1104|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1105|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1106|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1107|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1108|       |      }
 1109|       |      else if constexpr (N == 114) {
 1110|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1111|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1112|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1113|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1114|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1115|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1116|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1117|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1118|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1119|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1120|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1121|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1122|       |                         p113);
 1123|       |      }
 1124|       |      else if constexpr (N == 115) {
 1125|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1126|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1127|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1128|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1129|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1130|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1131|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1132|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1133|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1134|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1135|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1136|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1137|       |                         p113, p114);
 1138|       |      }
 1139|       |      else if constexpr (N == 116) {
 1140|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1141|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1142|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1143|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1144|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1145|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1146|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1147|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1148|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1149|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1150|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1151|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1152|       |                         p113, p114, p115);
 1153|       |      }
 1154|       |      else if constexpr (N == 117) {
 1155|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1156|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1157|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1158|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1159|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1160|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1161|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1162|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1163|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1164|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1165|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1166|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1167|       |                         p113, p114, p115, p116);
 1168|       |      }
 1169|       |      else if constexpr (N == 118) {
 1170|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1171|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1172|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1173|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1174|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1175|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1177|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1178|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1179|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1180|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1181|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1182|       |                         p113, p114, p115, p116, p117);
 1183|       |      }
 1184|       |      else if constexpr (N == 119) {
 1185|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1186|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1187|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1188|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1189|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1190|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1191|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1192|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1193|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1194|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1195|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1196|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1197|       |                         p113, p114, p115, p116, p117, p118);
 1198|       |      }
 1199|       |      else if constexpr (N == 120) {
 1200|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1201|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1202|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1203|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1204|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1205|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1206|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1207|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1208|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1209|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1210|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1211|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1212|       |                         p113, p114, p115, p116, p117, p118, p119);
 1213|       |      }
 1214|       |      else if constexpr (N == 121) {
 1215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1216|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1217|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1218|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1219|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1220|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1221|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1222|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1223|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1224|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1225|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1226|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1227|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1228|       |      }
 1229|       |      else if constexpr (N == 122) {
 1230|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1231|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1232|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1233|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1234|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1235|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1236|       |            t;
 1237|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1238|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1239|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1240|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1241|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1242|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1243|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1244|       |      }
 1245|       |      else if constexpr (N == 123) {
 1246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1247|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1248|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1249|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1250|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1251|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1252|       |                p122] = t;
 1253|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1254|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1255|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1256|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1257|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1258|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1259|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1260|       |      }
 1261|       |      else if constexpr (N == 124) {
 1262|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1263|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1264|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1265|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1266|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1267|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1268|       |                p122, p123] = t;
 1269|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1270|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1271|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1272|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1273|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1274|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1275|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1276|       |      }
 1277|       |      else if constexpr (N == 125) {
 1278|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1279|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1280|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1281|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1282|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1283|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1284|       |                p122, p123, p124] = t;
 1285|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1286|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1287|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1288|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1289|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1290|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1291|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1292|       |      }
 1293|       |      else if constexpr (N == 126) {
 1294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1296|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1297|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1298|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1299|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1300|       |                p122, p123, p124, p125] = t;
 1301|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1302|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1303|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1304|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1305|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1306|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1307|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1308|       |      }
 1309|       |      else if constexpr (N == 127) {
 1310|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1311|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1312|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1313|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1314|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1315|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1316|       |                p122, p123, p124, p125, p126] = t;
 1317|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1318|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1319|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1320|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1321|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1322|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1323|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1324|       |      }
 1325|       |      else if constexpr (N == 128) {
 1326|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1327|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1328|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1329|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1330|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1331|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1332|       |                p122, p123, p124, p125, p126, p127] = t;
 1333|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1334|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1335|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1336|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1337|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1338|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1339|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1340|       |      }
 1341|  13.4k|   }

_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj256EEERNS3_12basic_stringIcS6_NS3_9allocatorIcEEEERKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSV_RPT_mSP_:
   17|   650k|   {
   18|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   19|   650k|      if (n > 15) {
  ------------------
  |  Branch (19:11): [True: 614, False: 649k]
  ------------------
   20|    614|         const __m128i quote_vec = _mm_set1_epi8('"');
   21|    614|         const __m128i bs_vec = _mm_set1_epi8('\\');
   22|    614|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   23|    614|         const __m128i zero = _mm_setzero_si128();
   24|       |
   25|  5.07M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (25:45): [True: 5.07M, False: 614]
  ------------------
   26|  5.07M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   27|  5.07M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   28|       |
   29|  5.07M|            const uint32_t mask = static_cast<uint32_t>(
   30|  5.07M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   31|  5.07M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   32|       |
   33|  5.07M|            if (mask == 0) {
  ------------------
  |  Branch (33:17): [True: 57.9k, False: 5.01M]
  ------------------
   34|  57.9k|               data += 16;
   35|  57.9k|               c += 16;
   36|  57.9k|               continue;
   37|  57.9k|            }
   38|       |
   39|  5.01M|            const uint32_t length = countr_zero(mask);
   40|  5.01M|            c += length;
   41|  5.01M|            data += length;
   42|  5.01M|            write_escape();
   43|  5.01M|         }
   44|    614|      }
   45|   650k|   }

_ZN3glz11countr_zeroEj:
   16|  5.01M|   {
   17|       |#ifdef _MSC_VER
   18|       |      return std::countr_zero(x);
   19|       |#else
   20|  5.01M|#if __has_builtin(__builtin_ctzl)
   21|  5.01M|      return __builtin_ctzl(x);
   22|       |#else
   23|       |      return std::countr_zero(x);
   24|       |#endif
   25|  5.01M|#endif
   26|  5.01M|   }
_ZN3glz11countr_zeroEm:
   29|  1.50k|   {
   30|       |#ifdef _MSC_VER
   31|       |      return std::countr_zero(x);
   32|       |#else
   33|  1.50k|#if __has_builtin(__builtin_ctzll)
   34|  1.50k|      return __builtin_ctzll(x);
   35|       |#else
   36|       |      return std::countr_zero(x);
   37|       |#endif
   38|  1.50k|#endif
   39|  1.50k|   }

_ZN3glz7compareILm1EcEEbPKT0_S3_:
  122|  6.66k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|       |      else if constexpr (Count == 5) {
  152|       |         uint32_t l, r;
  153|       |         std::memcpy(&l, lhs, 4);
  154|       |         std::memcpy(&r, rhs, 4);
  155|       |         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|       |      else if constexpr (Count == 3) {
  164|       |         uint16_t l, r;
  165|       |         std::memcpy(&l, lhs, 2);
  166|       |         std::memcpy(&r, rhs, 2);
  167|       |         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|  6.66k|      else if constexpr (Count == 1) {
  176|  6.66k|         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  6.66k|   }
_ZN3glz7compareILm5EcEEbPKT0_S3_:
  122|  2.00k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|  2.00k|      else if constexpr (Count == 5) {
  152|  2.00k|         uint32_t l, r;
  153|  2.00k|         std::memcpy(&l, lhs, 4);
  154|  2.00k|         std::memcpy(&r, rhs, 4);
  155|  2.00k|         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|       |      else if constexpr (Count == 3) {
  164|       |         uint16_t l, r;
  165|       |         std::memcpy(&l, lhs, 2);
  166|       |         std::memcpy(&r, rhs, 2);
  167|       |         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|       |      else if constexpr (Count == 1) {
  176|       |         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  2.00k|   }
_ZN3glz7compareILm3EcEEbPKT0_S3_:
  122|  4.95k|   {
  123|       |      if constexpr (Count > 8) {
  124|       |         return 0 == std::memcmp(lhs, rhs, Count);
  125|       |         // return internal_compare(lhs, rhs, Count);
  126|       |      }
  127|       |      else if constexpr (Count == 8) {
  128|       |         uint64_t l, r;
  129|       |         std::memcpy(&l, lhs, 8);
  130|       |         std::memcpy(&r, rhs, 8);
  131|       |         return l == r;
  132|       |      }
  133|       |      else if constexpr (Count == 7) {
  134|       |         uint32_t l, r;
  135|       |         std::memcpy(&l, lhs, 4);
  136|       |         std::memcpy(&r, rhs, 4);
  137|       |         uint32_t l2, r2;
  138|       |         std::memcpy(&l2, lhs + 3, 4);
  139|       |         std::memcpy(&r2, rhs + 3, 4);
  140|       |         return (l == r) & (l2 == r2);
  141|       |      }
  142|       |      else if constexpr (Count == 6) {
  143|       |         uint32_t l, r;
  144|       |         std::memcpy(&l, lhs, 4);
  145|       |         std::memcpy(&r, rhs, 4);
  146|       |         uint16_t l2, r2;
  147|       |         std::memcpy(&l2, lhs + 4, 2);
  148|       |         std::memcpy(&r2, rhs + 4, 2);
  149|       |         return (l == r) & (l2 == r2);
  150|       |      }
  151|       |      else if constexpr (Count == 5) {
  152|       |         uint32_t l, r;
  153|       |         std::memcpy(&l, lhs, 4);
  154|       |         std::memcpy(&r, rhs, 4);
  155|       |         return (l == r) & (lhs[4] == rhs[4]);
  156|       |      }
  157|       |      else if constexpr (Count == 4) {
  158|       |         uint32_t l, r;
  159|       |         std::memcpy(&l, lhs, 4);
  160|       |         std::memcpy(&r, rhs, 4);
  161|       |         return l == r;
  162|       |      }
  163|  4.95k|      else if constexpr (Count == 3) {
  164|  4.95k|         uint16_t l, r;
  165|  4.95k|         std::memcpy(&l, lhs, 2);
  166|  4.95k|         std::memcpy(&r, rhs, 2);
  167|  4.95k|         return (l == r) & (lhs[2] == rhs[2]);
  168|       |      }
  169|       |      else if constexpr (Count == 2) {
  170|       |         uint16_t l, r;
  171|       |         std::memcpy(&l, lhs, 2);
  172|       |         std::memcpy(&r, rhs, 2);
  173|       |         return l == r;
  174|       |      }
  175|       |      else if constexpr (Count == 1) {
  176|       |         return *lhs == *rhs;
  177|       |      }
  178|       |      else if constexpr (Count == 0) {
  179|       |         return true;
  180|       |      }
  181|  4.95k|   }

_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
   98|   102M|   {
   99|       |      if constexpr (Checked && vector_like<B>) {
  100|       |         if (ix == b.size()) [[unlikely]] {
  101|       |            b.resize(b.size() == 0 ? 128 : b.size() * 2);
  102|       |         }
  103|       |      }
  104|   102M|      assign_maybe_cast(c, b, ix);
  105|   102M|      ++ix;
  106|   102M|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   55|   102M|   {
   56|   102M|      using V = std::decay_t<decltype(b[0])>;
   57|   102M|      using C = std::decay_t<decltype(c)>;
   58|   102M|      if constexpr (std::same_as<V, C>) {
   59|   102M|         b[ix] = c;
   60|       |      }
   61|       |      else {
   62|       |         b[ix] = static_cast<V>(c);
   63|       |      }
   64|   102M|   }
_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  140|   102M|   {
  141|   102M|      const auto n = str.size();
  142|   102M|      if constexpr (vector_like<B>) {
  143|       |         if constexpr (Checked) {
  144|       |            const auto k = ix + n;
  145|       |            if (ix + n > b.size()) [[unlikely]] {
  146|       |               b.resize(2 * k);
  147|       |            }
  148|       |         }
  149|   102M|      }
  150|   102M|      std::memcpy(&b[ix], str.data(), n);
  151|   102M|      ix += n;
  152|   102M|   }

_ZN3glz5visitILm4EZNS_4fromILj1E9my_structE2opITnDaXtlNS_4optsELj1ELb1ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_Qeqcl23check_structs_as_arraysTL0__ELb0EEEvOT1_OT2_OT3_T4_EUlTnmvE_EEvOT0_m:
   81|  13.6k|   {
   82|  13.6k|      if constexpr (N > 0) {
   83|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   84|       |         if constexpr (N == 1) {
   85|       |            (void)index;
   86|       |            (void)(lambda.template operator()<0>());
   87|       |         }
   88|       |         else if constexpr (N == 2) {
   89|       |            switch (index) {
   90|       |            case 0:
   91|       |               lambda.template operator()<0>();
   92|       |               break;
   93|       |            case 1:
   94|       |               lambda.template operator()<1>();
   95|       |               break;
   96|       |            default:
   97|       |               std::unreachable();
   98|       |            }
   99|       |         }
  100|       |         else if constexpr (N == 3) {
  101|       |            switch (index) {
  102|       |            case 0:
  103|       |               lambda.template operator()<0>();
  104|       |               break;
  105|       |            case 1:
  106|       |               lambda.template operator()<1>();
  107|       |               break;
  108|       |            case 2:
  109|       |               lambda.template operator()<2>();
  110|       |               break;
  111|       |            default:
  112|       |               std::unreachable();
  113|       |            }
  114|       |         }
  115|  13.6k|         else if constexpr (N == 4) {
  116|  13.6k|            switch (index) {
  117|  3.88k|            case 0:
  ------------------
  |  Branch (117:13): [True: 3.88k, False: 9.77k]
  ------------------
  118|  3.88k|               lambda.template operator()<0>();
  119|  3.88k|               break;
  120|  2.79k|            case 1:
  ------------------
  |  Branch (120:13): [True: 2.79k, False: 10.8k]
  ------------------
  121|  2.79k|               lambda.template operator()<1>();
  122|  2.79k|               break;
  123|  2.01k|            case 2:
  ------------------
  |  Branch (123:13): [True: 2.01k, False: 11.6k]
  ------------------
  124|  2.01k|               lambda.template operator()<2>();
  125|  2.01k|               break;
  126|  4.95k|            case 3:
  ------------------
  |  Branch (126:13): [True: 4.95k, False: 8.70k]
  ------------------
  127|  4.95k|               lambda.template operator()<3>();
  128|  4.95k|               break;
  129|      0|            default:
  ------------------
  |  Branch (129:13): [True: 0, False: 13.6k]
  ------------------
  130|      0|               std::unreachable();
  131|  13.6k|            }
  132|       |         }
  133|       |         else if constexpr (N == 5) {
  134|       |            switch (index) {
  135|       |            case 0:
  136|       |               lambda.template operator()<0>();
  137|       |               break;
  138|       |            case 1:
  139|       |               lambda.template operator()<1>();
  140|       |               break;
  141|       |            case 2:
  142|       |               lambda.template operator()<2>();
  143|       |               break;
  144|       |            case 3:
  145|       |               lambda.template operator()<3>();
  146|       |               break;
  147|       |            case 4:
  148|       |               lambda.template operator()<4>();
  149|       |               break;
  150|       |            default:
  151|       |               std::unreachable();
  152|       |            }
  153|       |         }
  154|       |         else if constexpr (N == 6) {
  155|       |            switch (index) {
  156|       |            case 0:
  157|       |               lambda.template operator()<0>();
  158|       |               break;
  159|       |            case 1:
  160|       |               lambda.template operator()<1>();
  161|       |               break;
  162|       |            case 2:
  163|       |               lambda.template operator()<2>();
  164|       |               break;
  165|       |            case 3:
  166|       |               lambda.template operator()<3>();
  167|       |               break;
  168|       |            case 4:
  169|       |               lambda.template operator()<4>();
  170|       |               break;
  171|       |            case 5:
  172|       |               lambda.template operator()<5>();
  173|       |               break;
  174|       |            default:
  175|       |               std::unreachable();
  176|       |            }
  177|       |         }
  178|       |         else if constexpr (N == 7) {
  179|       |            switch (index) {
  180|       |            case 0:
  181|       |               lambda.template operator()<0>();
  182|       |               break;
  183|       |            case 1:
  184|       |               lambda.template operator()<1>();
  185|       |               break;
  186|       |            case 2:
  187|       |               lambda.template operator()<2>();
  188|       |               break;
  189|       |            case 3:
  190|       |               lambda.template operator()<3>();
  191|       |               break;
  192|       |            case 4:
  193|       |               lambda.template operator()<4>();
  194|       |               break;
  195|       |            case 5:
  196|       |               lambda.template operator()<5>();
  197|       |               break;
  198|       |            case 6:
  199|       |               lambda.template operator()<6>();
  200|       |               break;
  201|       |            default:
  202|       |               std::unreachable();
  203|       |            }
  204|       |         }
  205|       |         else if constexpr (N == 8) {
  206|       |            switch (index) {
  207|       |            case 0:
  208|       |               lambda.template operator()<0>();
  209|       |               break;
  210|       |            case 1:
  211|       |               lambda.template operator()<1>();
  212|       |               break;
  213|       |            case 2:
  214|       |               lambda.template operator()<2>();
  215|       |               break;
  216|       |            case 3:
  217|       |               lambda.template operator()<3>();
  218|       |               break;
  219|       |            case 4:
  220|       |               lambda.template operator()<4>();
  221|       |               break;
  222|       |            case 5:
  223|       |               lambda.template operator()<5>();
  224|       |               break;
  225|       |            case 6:
  226|       |               lambda.template operator()<6>();
  227|       |               break;
  228|       |            case 7:
  229|       |               lambda.template operator()<7>();
  230|       |               break;
  231|       |            default:
  232|       |               std::unreachable();
  233|       |            }
  234|       |         }
  235|       |         else if constexpr (N == 9) {
  236|       |            switch (index) {
  237|       |            case 0:
  238|       |               lambda.template operator()<0>();
  239|       |               break;
  240|       |            case 1:
  241|       |               lambda.template operator()<1>();
  242|       |               break;
  243|       |            case 2:
  244|       |               lambda.template operator()<2>();
  245|       |               break;
  246|       |            case 3:
  247|       |               lambda.template operator()<3>();
  248|       |               break;
  249|       |            case 4:
  250|       |               lambda.template operator()<4>();
  251|       |               break;
  252|       |            case 5:
  253|       |               lambda.template operator()<5>();
  254|       |               break;
  255|       |            case 6:
  256|       |               lambda.template operator()<6>();
  257|       |               break;
  258|       |            case 7:
  259|       |               lambda.template operator()<7>();
  260|       |               break;
  261|       |            case 8:
  262|       |               lambda.template operator()<8>();
  263|       |               break;
  264|       |            default:
  265|       |               std::unreachable();
  266|       |            }
  267|       |         }
  268|       |         else if constexpr (N == 10) {
  269|       |            switch (index) {
  270|       |            case 0:
  271|       |               lambda.template operator()<0>();
  272|       |               break;
  273|       |            case 1:
  274|       |               lambda.template operator()<1>();
  275|       |               break;
  276|       |            case 2:
  277|       |               lambda.template operator()<2>();
  278|       |               break;
  279|       |            case 3:
  280|       |               lambda.template operator()<3>();
  281|       |               break;
  282|       |            case 4:
  283|       |               lambda.template operator()<4>();
  284|       |               break;
  285|       |            case 5:
  286|       |               lambda.template operator()<5>();
  287|       |               break;
  288|       |            case 6:
  289|       |               lambda.template operator()<6>();
  290|       |               break;
  291|       |            case 7:
  292|       |               lambda.template operator()<7>();
  293|       |               break;
  294|       |            case 8:
  295|       |               lambda.template operator()<8>();
  296|       |               break;
  297|       |            case 9:
  298|       |               lambda.template operator()<9>();
  299|       |               break;
  300|       |            default:
  301|       |               std::unreachable();
  302|       |            }
  303|       |         }
  304|       |         else {
  305|       |#ifdef _MSC_VER
  306|       |            using Lambda = std::decay_t<decltype(lambda)>;
  307|       |            static const auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  308|       |               return std::array{make_jump_function<I, Lambda>()...};
  309|       |            }(std::make_index_sequence<N>{});
  310|       |#else
  311|       |            static constexpr auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  312|       |               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
  313|       |            }(std::make_index_sequence<N>{});
  314|       |#endif
  315|       |
  316|       |#if defined(__clang_major__) && (__clang_major__ >= 19)
  317|       |            [[assume(index < N)]];
  318|       |#endif
  319|       |            jump_table[index](lambda);
  320|       |
  321|       |            // This code runs significantly slower on Clang
  322|       |            // Simple tests with assembly show that this should be faster,
  323|       |            // but full Glaze assembly need to be looked into
  324|       |            /*[&, index]<size_t... I>(std::index_sequence<I...>) {
  325|       |               (void)((index == I ? lambda.template operator()<I>() : void()), ...);
  326|       |            }(std::make_index_sequence<N>{});*/
  327|       |         }
  328|  13.6k|      }
  329|  13.6k|   }

_ZN3glz8to_charsIaQsr3stdE7same_asIu14__remove_cvrefIT_EaEEEPcS3_S1_:
  277|  1.68M|   {
  278|  1.68M|      *buf = '-';
  279|  1.68M|      return to_chars(buf + (val < 0), uint8_t(val ^ (val >> 7)) - (val >> 7));
  280|  1.68M|   }
_ZN3glz8to_charsIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  213|  4.24M|   {
  214|  4.24M|      *buf = '-';
  215|  4.24M|      return to_chars(buf + (val < 0), uint32_t(val ^ (val >> 31)) - (val >> 31));
  216|  4.24M|   }
_ZN3glz8to_charsIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  191|  4.24M|   {
  192|  4.24M|      using namespace itoa_impl;
  193|  4.24M|      if (val < 100) {
  ------------------
  |  Branch (193:11): [True: 2.38M, False: 1.86M]
  ------------------
  194|  2.38M|         return u32_2(buf, val);
  195|  2.38M|      }
  196|  1.86M|      else if (val < 10000) {
  ------------------
  |  Branch (196:16): [True: 1.16M, False: 699k]
  ------------------
  197|  1.16M|         return u32_4(buf, val);
  198|  1.16M|      }
  199|   699k|      else if (val < 1000000) {
  ------------------
  |  Branch (199:16): [True: 699k, False: 0]
  ------------------
  200|   699k|         return u32_6(buf, val);
  201|   699k|      }
  202|      0|      else if (val < 100000000) {
  ------------------
  |  Branch (202:16): [True: 0, False: 0]
  ------------------
  203|      0|         return u32_8(buf, val);
  204|      0|      }
  205|      0|      else {
  206|      0|         return u32_10(buf, val);
  207|      0|      }
  208|  4.24M|   }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  3.58M|      {
   75|  3.58M|         const uint32_t lz = val < 10;
   76|  3.58M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  3.58M|         return buf + 2 - lz;
   78|  3.58M|      }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  1.48M|      {
   82|  1.48M|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  1.48M|         const uint32_t lz = aa < 10;
   84|  1.48M|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  1.48M|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  1.48M|         return buf + 4 - lz;
   87|  1.48M|      }
_ZN3glz9itoa_impl5u32_6EPcj:
   90|   699k|      {
   91|   699k|         const uint32_t aa = uint32_t((uint64_t(val) * 429497) >> 32); // val / 10000
   92|   699k|         const uint32_t bbcc = val - aa * 10000;
   93|   699k|         const uint32_t bb = (bbcc * 5243) >> 19; // bbcc / 100
   94|   699k|         const uint32_t lz = aa < 10;
   95|   699k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   96|   699k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
   97|   699k|         std::memcpy(buf + 4 - lz, &digit_pairs[bbcc - bb * 100], 2);
   98|   699k|         return buf + 6 - lz;
   99|   699k|      }
_ZN3glz8to_charsIsQsr3stdE7same_asIu14__remove_cvrefIT_EsEEEPcS3_S1_:
  306|  2.55M|   {
  307|  2.55M|      *buf = '-';
  308|  2.55M|      return to_chars(buf + (val < 0), uint16_t(val ^ (val >> 15)) - (val >> 15));
  309|  2.55M|   }
_ZN3glz8to_charsIhQsr3stdE7same_asIu14__remove_cvrefIT_EhEEEPcS3_S1_:
  259|   487k|   {
  260|   487k|      using namespace itoa_impl;
  261|   487k|      if (val < 100) {
  ------------------
  |  Branch (261:11): [True: 411k, False: 75.8k]
  ------------------
  262|   411k|         return u32_2(buf, val);
  263|   411k|      }
  264|  75.8k|      else {
  265|       |         // 100-255: 3 digits
  266|  75.8k|         const uint32_t q = val / 100;
  267|  75.8k|         *buf = char('0' + q);
  268|  75.8k|         std::memcpy(buf + 1, &digit_pairs[val - q * 100], 2);
  269|  75.8k|         return buf + 3;
  270|  75.8k|      }
  271|   487k|   }
_ZN3glz8to_charsItQsr3stdE7same_asIu14__remove_cvrefIT_EtEEEPcS3_S1_:
  286|  1.89M|   {
  287|  1.89M|      using namespace itoa_impl;
  288|  1.89M|      if (val < 100) {
  ------------------
  |  Branch (288:11): [True: 787k, False: 1.10M]
  ------------------
  289|   787k|         return u32_2(buf, val);
  290|   787k|      }
  291|  1.10M|      else if (val < 10000) {
  ------------------
  |  Branch (291:16): [True: 320k, False: 781k]
  ------------------
  292|   320k|         return u32_4(buf, val);
  293|   320k|      }
  294|   781k|      else {
  295|       |         // 10000-65535: 5 digits
  296|   781k|         const uint32_t q = val / 10000;
  297|   781k|         *buf = char('0' + q);
  298|   781k|         return u64_len_4(buf + 1, val - q * 10000);
  299|   781k|      }
  300|  1.89M|   }
_ZN3glz9itoa_impl9u64_len_4EPcj:
  148|   781k|      {
  149|   781k|         const uint32_t aa = (val * 5243) >> 19;
  150|   781k|         std::memcpy(buf, &digit_pairs[aa], 2);
  151|   781k|         std::memcpy(buf + 2, &digit_pairs[val - aa * 100], 2);
  152|   781k|         return buf + 4;
  153|   781k|      }

_ZN3glz13to_chars_40kbIiQsr3stdE7same_asIu14__remove_cvrefIT_EiEEEPcS3_S1_:
  282|   731k|   {
  283|   731k|      *buf = '-';
  284|   731k|      return to_chars_40kb(buf + (val < 0),
  285|   731k|                           static_cast<uint32_t>((static_cast<uint32_t>(val) ^ (val >> 31)) - (val >> 31)));
  286|   731k|   }
_ZN3glz13to_chars_40kbIjQsr3stdE7same_asIu14__remove_cvrefIT_EjEEEPcS3_S1_:
  260|  1.22M|   {
  261|  1.22M|      using namespace itoa_40kb_impl;
  262|  1.22M|      if (val < 10000) {
  ------------------
  |  Branch (262:11): [True: 428k, False: 797k]
  ------------------
  263|   428k|         if (val < 100)
  ------------------
  |  Branch (263:14): [True: 415k, False: 12.4k]
  ------------------
  264|   415k|            return u32_2(buf, val);
  265|  12.4k|         else
  266|  12.4k|            return u32_4(buf, val);
  267|   428k|      }
  268|   797k|      else if (val < 100000000) {
  ------------------
  |  Branch (268:16): [True: 119k, False: 677k]
  ------------------
  269|   119k|         if (val < 1000000)
  ------------------
  |  Branch (269:14): [True: 34.0k, False: 85.6k]
  ------------------
  270|  34.0k|            return u32_6(buf, val);
  271|  85.6k|         else
  272|  85.6k|            return u32_8(buf, val);
  273|   119k|      }
  274|   677k|      else {
  275|   677k|         return u32_10(buf, val);
  276|   677k|      }
  277|  1.22M|   }
_ZN3glz14itoa_40kb_impl5u32_2EPcj:
   62|   415k|      {
   63|   415k|         const uint64_t lz = val < 10;
   64|       |         // Use OR since val*2 is always even (bit 0 is 0)
   65|   415k|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   66|   415k|         return buf + 2 - lz;
   67|   415k|      }
_ZN3glz14itoa_40kb_impl5u32_4EPcj:
   70|  12.4k|      {
   71|  12.4k|         const uint32_t aa = (val * 5243) >> 19;
   72|  12.4k|         const uint64_t lz = val < 1000;
   73|  12.4k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   74|  12.4k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   75|  12.4k|         return buf + 4 - lz;
   76|  12.4k|      }
_ZN3glz14itoa_40kb_impl5u32_6EPcj:
   79|  34.0k|      {
   80|  34.0k|         const uint32_t aa = static_cast<uint32_t>((static_cast<uint64_t>(val) * 429497ULL) >> 32);
   81|  34.0k|         const uint64_t lz = val < 100000;
   82|  34.0k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   83|  34.0k|         std::memcpy(buf + 2 - lz, &digit_quads[val - aa * 10000], 4);
   84|  34.0k|         return buf + 6 - lz;
   85|  34.0k|      }
_ZN3glz14itoa_40kb_impl5u32_8EPcj:
   88|  85.6k|      {
   89|  85.6k|         const uint64_t aabb = (static_cast<uint64_t>(val) * 109951163ULL) >> 40;
   90|  85.6k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
   91|  85.6k|         const uint64_t lz = val < 10000000;
   92|  85.6k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   93|  85.6k|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
   94|  85.6k|         std::memcpy(buf + 4 - lz, &digit_quads[val - aabb * 10000], 4);
   95|  85.6k|         return buf + 8 - lz;
   96|  85.6k|      }
_ZN3glz14itoa_40kb_impl6u32_10EPcj:
   99|   677k|      {
  100|   677k|         const uint64_t high = div_1e8(val);
  101|   677k|         const uint64_t low = val - high * 100000000;
  102|   677k|         const uint64_t lz = high < 10;
  103|   677k|         std::memcpy(buf, char_table + ((high * 2) | lz), 2);
  104|   677k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  105|   677k|         const uint64_t ccdd = low - aabb * 10000;
  106|   677k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  107|   677k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  108|   677k|         return buf + 10 - lz;
  109|   677k|      }
_ZN3glz14itoa_40kb_impl7div_1e8Em:
   50|  2.34M|      {
   51|  2.34M|         constexpr __uint128_t multiplier = 0xabcc77118461cefdULL;
   52|  2.34M|         constexpr uint64_t shift = 90;
   53|  2.34M|         return static_cast<uint64_t>((static_cast<__uint128_t>(value) * multiplier) >> shift);
   54|  2.34M|      }
_ZN3glz13to_chars_40kbIlQsr3stdE7same_asIu14__remove_cvrefIT_ElEEEPcS3_S1_:
  328|   832k|   {
  329|   832k|      *buf = '-';
  330|   832k|      return to_chars_40kb(buf + (val < 0),
  331|   832k|                           static_cast<uint64_t>((static_cast<uint64_t>(val) ^ (val >> 63)) - (val >> 63)));
  332|   832k|   }
_ZN3glz13to_chars_40kbImQsr3stdE7same_asIu14__remove_cvrefIT_EmEEEPcS3_S1_:
  291|  1.65M|   {
  292|  1.65M|      using namespace itoa_40kb_impl;
  293|  1.65M|      if (val < 10000) {
  ------------------
  |  Branch (293:11): [True: 767k, False: 887k]
  ------------------
  294|   767k|         if (val < 100)
  ------------------
  |  Branch (294:14): [True: 758k, False: 9.71k]
  ------------------
  295|   758k|            return u64_2(buf, val);
  296|  9.71k|         else
  297|  9.71k|            return u64_4(buf, val);
  298|   767k|      }
  299|   887k|      else if (val < 100000000) {
  ------------------
  |  Branch (299:16): [True: 17.5k, False: 870k]
  ------------------
  300|  17.5k|         if (val < 1000000)
  ------------------
  |  Branch (300:14): [True: 7.18k, False: 10.3k]
  ------------------
  301|  7.18k|            return u64_6(buf, val);
  302|  10.3k|         else
  303|  10.3k|            return u64_8(buf, val);
  304|  17.5k|      }
  305|   870k|      else if (val < 1000000000000ULL) {
  ------------------
  |  Branch (305:16): [True: 28.7k, False: 841k]
  ------------------
  306|  28.7k|         if (val < 10000000000ULL)
  ------------------
  |  Branch (306:14): [True: 12.6k, False: 16.1k]
  ------------------
  307|  12.6k|            return u64_10(buf, val);
  308|  16.1k|         else
  309|  16.1k|            return u64_12(buf, val);
  310|  28.7k|      }
  311|   841k|      else if (val < 10000000000000000ULL) {
  ------------------
  |  Branch (311:16): [True: 46.6k, False: 794k]
  ------------------
  312|  46.6k|         if (val < 100000000000000ULL)
  ------------------
  |  Branch (312:14): [True: 15.6k, False: 30.9k]
  ------------------
  313|  15.6k|            return u64_14(buf, val);
  314|  30.9k|         else
  315|  30.9k|            return u64_16(buf, val);
  316|  46.6k|      }
  317|   794k|      else if (val < 1000000000000000000ULL) {
  ------------------
  |  Branch (317:16): [True: 96.9k, False: 697k]
  ------------------
  318|  96.9k|         return u64_18(buf, val);
  319|  96.9k|      }
  320|   697k|      else {
  321|   697k|         return u64_20(buf, val);
  322|   697k|      }
  323|  1.65M|   }
_ZN3glz14itoa_40kb_impl5u64_2EPcm:
  114|   758k|      {
  115|   758k|         const uint64_t lz = val < 10;
  116|   758k|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
  117|   758k|         return buf + 2 - lz;
  118|   758k|      }
_ZN3glz14itoa_40kb_impl5u64_4EPcm:
  121|  9.71k|      {
  122|  9.71k|         const uint64_t aa = (val * 5243ULL) >> 19;
  123|  9.71k|         const uint64_t lz = val < 1000;
  124|  9.71k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  125|  9.71k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
  126|  9.71k|         return buf + 4 - lz;
  127|  9.71k|      }
_ZN3glz14itoa_40kb_impl5u64_6EPcm:
  130|  7.18k|      {
  131|  7.18k|         const uint64_t aa = (val * 429497ULL) >> 32;
  132|  7.18k|         const uint64_t lz = val < 100000;
  133|  7.18k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  134|  7.18k|         std::memcpy(buf + 2 - lz, &digit_quads[val - aa * 10000], 4);
  135|  7.18k|         return buf + 6 - lz;
  136|  7.18k|      }
_ZN3glz14itoa_40kb_impl5u64_8EPcm:
  139|  10.3k|      {
  140|  10.3k|         const uint64_t aabb = (val * 109951163ULL) >> 40;
  141|  10.3k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
  142|  10.3k|         const uint64_t lz = val < 10000000;
  143|  10.3k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  144|  10.3k|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
  145|  10.3k|         std::memcpy(buf + 4 - lz, &digit_quads[val - aabb * 10000], 4);
  146|  10.3k|         return buf + 8 - lz;
  147|  10.3k|      }
_ZN3glz14itoa_40kb_impl6u64_10EPcm:
  150|  12.6k|      {
  151|  12.6k|         const uint64_t high = div_1e8(val);
  152|  12.6k|         const uint64_t low = val - high * 100000000;
  153|  12.6k|         const uint64_t lz = high < 10;
  154|  12.6k|         std::memcpy(buf, char_table + ((high * 2) | lz), 2);
  155|  12.6k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  156|  12.6k|         const uint64_t ccdd = low - aabb * 10000;
  157|  12.6k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  158|  12.6k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  159|  12.6k|         return buf + 10 - lz;
  160|  12.6k|      }
_ZN3glz14itoa_40kb_impl6u64_12EPcm:
  163|  16.1k|      {
  164|  16.1k|         const uint64_t high = div_1e8(val);
  165|  16.1k|         const uint64_t low = val - high * 100000000;
  166|  16.1k|         const uint64_t aa = (high * 5243ULL) >> 19;
  167|  16.1k|         const uint64_t lz = aa < 10;
  168|  16.1k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  169|  16.1k|         std::memcpy(buf + 2 - lz, &digit_pairs[high - aa * 100], 2);
  170|  16.1k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  171|  16.1k|         const uint64_t ccdd = low - aabb * 10000;
  172|  16.1k|         std::memcpy(buf + 4 - lz, &digit_quads[aabb], 4);
  173|  16.1k|         std::memcpy(buf + 8 - lz, &digit_quads[ccdd], 4);
  174|  16.1k|         return buf + 12 - lz;
  175|  16.1k|      }
_ZN3glz14itoa_40kb_impl6u64_14EPcm:
  178|  15.6k|      {
  179|  15.6k|         const uint64_t high = div_1e8(val);
  180|  15.6k|         const uint64_t low = val - high * 100000000;
  181|  15.6k|         const uint64_t aa = (high * 429497ULL) >> 32;
  182|  15.6k|         const uint64_t lz = aa < 10;
  183|  15.6k|         const uint64_t bbcc = high - aa * 10000;
  184|  15.6k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  185|  15.6k|         std::memcpy(buf + 2 - lz, &digit_quads[bbcc], 4);
  186|  15.6k|         const uint64_t aabb = (low * 109951163ULL) >> 40;
  187|  15.6k|         const uint64_t ccdd = low - aabb * 10000;
  188|  15.6k|         std::memcpy(buf + 6 - lz, &digit_quads[aabb], 4);
  189|  15.6k|         std::memcpy(buf + 10 - lz, &digit_quads[ccdd], 4);
  190|  15.6k|         return buf + 14 - lz;
  191|  15.6k|      }
_ZN3glz14itoa_40kb_impl6u64_16EPcm:
  194|  30.9k|      {
  195|  30.9k|         const uint64_t high = div_1e8(val);
  196|  30.9k|         const uint64_t low = val - high * 100000000;
  197|  30.9k|         uint64_t aabb = (high * 109951163ULL) >> 40;
  198|  30.9k|         uint64_t ccdd = high - aabb * 10000;
  199|  30.9k|         const uint64_t aa = (aabb * 5243ULL) >> 19;
  200|  30.9k|         const uint64_t lz = aa < 10;
  201|  30.9k|         const uint64_t bb = aabb - aa * 100;
  202|  30.9k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  203|  30.9k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
  204|  30.9k|         std::memcpy(buf + 4 - lz, &digit_quads[ccdd], 4);
  205|  30.9k|         aabb = (low * 109951163ULL) >> 40;
  206|  30.9k|         ccdd = low - aabb * 10000;
  207|  30.9k|         std::memcpy(buf + 8 - lz, &digit_quads[aabb], 4);
  208|  30.9k|         std::memcpy(buf + 12 - lz, &digit_quads[ccdd], 4);
  209|  30.9k|         return buf + 16 - lz;
  210|  30.9k|      }
_ZN3glz14itoa_40kb_impl6u64_18EPcm:
  213|  96.9k|      {
  214|  96.9k|         const uint64_t high = div_1e8(val);
  215|  96.9k|         const uint64_t low = val - high * 100000000;
  216|  96.9k|         const uint64_t high10 = div_1e8(high);
  217|  96.9k|         const uint64_t low10 = high - high10 * 100000000;
  218|  96.9k|         const uint64_t lz = high10 < 10;
  219|  96.9k|         std::memcpy(buf, char_table + ((high10 * 2) | lz), 2);
  220|  96.9k|         uint64_t aabb = (low10 * 109951163ULL) >> 40;
  221|  96.9k|         uint64_t ccdd = low10 - aabb * 10000;
  222|  96.9k|         std::memcpy(buf + 2 - lz, &digit_quads[aabb], 4);
  223|  96.9k|         std::memcpy(buf + 6 - lz, &digit_quads[ccdd], 4);
  224|  96.9k|         aabb = (low * 109951163ULL) >> 40;
  225|  96.9k|         ccdd = low - aabb * 10000;
  226|  96.9k|         std::memcpy(buf + 10 - lz, &digit_quads[aabb], 4);
  227|  96.9k|         std::memcpy(buf + 14 - lz, &digit_quads[ccdd], 4);
  228|  96.9k|         return buf + 18 - lz;
  229|  96.9k|      }
_ZN3glz14itoa_40kb_impl6u64_20EPcm:
  232|   697k|      {
  233|   697k|         const uint64_t high = div_1e8(val);
  234|   697k|         const uint64_t low = val - high * 100000000;
  235|   697k|         const uint64_t high12 = div_1e8(high);
  236|   697k|         const uint64_t low12 = high - high12 * 100000000;
  237|   697k|         const uint64_t aa = (high12 * 5243ULL) >> 19;
  238|   697k|         const uint64_t lz = aa < 10;
  239|   697k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  240|   697k|         std::memcpy(buf + 2 - lz, &digit_pairs[high12 - aa * 100], 2);
  241|   697k|         uint64_t aabb = (low12 * 109951163ULL) >> 40;
  242|   697k|         uint64_t ccdd = low12 - aabb * 10000;
  243|   697k|         std::memcpy(buf + 4 - lz, &digit_quads[aabb], 4);
  244|   697k|         std::memcpy(buf + 8 - lz, &digit_quads[ccdd], 4);
  245|   697k|         aabb = (low * 109951163ULL) >> 40;
  246|   697k|         ccdd = low - aabb * 10000;
  247|   697k|         std::memcpy(buf + 12 - lz, &digit_quads[aabb], 4);
  248|   697k|         std::memcpy(buf + 16 - lz, &digit_quads[ccdd], 4);
  249|   697k|         return buf + 20 - lz;
  250|   697k|      }

_ZN3glz8to_charsITkNSt3__114floating_pointEfLb0EEEPcS2_T_:
 1118|  2.09M|   {
 1119|  2.09M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  2.09M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  2.09M|   }
_ZN3glz4zmij6detail5writeIfLb0EEEPcT_S3_:
  975|  2.09M|      {
  976|  2.09M|         using namespace detail_impl;
  977|  2.09M|         using traits = float_traits<Float>;
  978|  2.09M|         auto bits = traits::to_bits(value);
  979|  2.09M|         auto bin_exp = traits::get_exp(bits);
  980|  2.09M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  2.09M|         *buffer = '-';
  983|  2.09M|         buffer += traits::is_negative(bits);
  984|       |
  985|  2.09M|         const auto* c = &consts_v<OptSize>;
  986|  2.09M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  2.09M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  2.09M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [Folded, False: 2.09M]
  ------------------
  988|       |
  989|  2.09M|         to_decimal_result dec;
  990|  2.09M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  2.09M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 529k, False: 1.56M]
  ------------------
  992|   529k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 4.48k, False: 524k]
  ------------------
  993|       |#if GLZ_ZMIJ_EMIT_INF_NAN
  994|       |               memcpy(buffer, bin_sig == 0 ? "inf" : "nan", 4);
  995|       |               return buffer + 3;
  996|       |#else
  997|       |               // Undo the speculative '-' for sign-bit-set NaN/Inf: JSON "null"
  998|       |               // never carries a sign.
  999|  4.48k|               buffer -= traits::is_negative(bits);
 1000|  4.48k|               memcpy(buffer, "null", 4);
 1001|  4.48k|               return buffer + 4;
 1002|  4.48k|#endif
 1003|  4.48k|            }
 1004|   524k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 493k, False: 31.4k]
  ------------------
 1005|   493k|               memcpy(buffer, "0", 2);
 1006|   493k|               return buffer + 1;
 1007|   493k|            }
 1008|  31.4k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|  31.4k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 28.7k, False: 2.73k]
  ------------------
 1010|  31.4k|            int32_t dec_exp = dec.exp;
 1011|   111k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 80.3k, False: 31.4k]
  ------------------
 1012|  80.3k|               dec_sig *= 10;
 1013|  80.3k|               --dec_exp;
 1014|  80.3k|            }
 1015|  31.4k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|  31.4k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|  31.4k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|  31.4k|         }
 1019|  1.56M|         else {
 1020|  1.56M|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.56M|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.56M|         }
 1023|  1.59M|         bool extra_digit = dec.sig >= threshold;
 1024|  1.59M|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  1.59M|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [True: 1.59M, Folded]
  |  Branch (1025:40): [True: 5.54k, False: 1.58M]
  ------------------
 1026|  5.54k|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 4.79k, False: 744]
  ------------------
 1027|  5.54k|            dec.has_last_digit = false;
 1028|  5.54k|            --dec_exp;
 1029|  5.54k|         }
 1030|       |
 1031|  1.59M|         char* start = buffer;
 1032|  1.59M|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  1.59M|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [Folded, False: 1.59M]
  ------------------
 1034|  1.59M|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 644k, False: 950k]
  |  Branch (1034:54): [True: 108k, False: 535k]
  ------------------
 1035|   108k|            memcpy(start, &zeros_v, 8);
 1036|   108k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|   108k|            buffer += fmt.start_pos;
 1038|   108k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|   108k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|   108k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 62.7k, False: 46.2k]
  ------------------
 1041|   108k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|   108k|            start[fmt.point_pos] = '.';
 1043|   108k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 62.7k, False: 46.2k]
  ------------------
 1044|   108k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|   108k|         }
 1046|  1.48M|         buffer += extra_digit;
 1047|  1.48M|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.48M|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.48M|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 628k, False: 857k]
  ------------------
 1050|  1.48M|         start[0] = start[1];
 1051|  1.48M|         start[1] = '.';
 1052|  1.48M|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.48M|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.48M|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.48M|            int len = int(exp_data >> 48);
 1057|  1.48M|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.48M]
  ------------------
 1058|  1.48M|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [Folded, False: 1.48M]
  ------------------
 1059|  1.48M|            return buffer + len;
 1060|  1.48M|         }
 1061|       |         // Glaze emits uppercase 'E', omits '+' on positive exponents, and
 1062|       |         // drops the leading zero on single-digit exponents (E7, not E07).
 1063|       |         // Branchless: write "E-" always, then advance past the '-' only when
 1064|       |         // the exponent is negative.
 1065|      0|         bool neg = dec_exp < 0;
 1066|  1.48M|         buffer[0] = 'E';
 1067|  1.48M|         buffer[1] = '-';
 1068|  1.48M|         buffer += 1 + unsigned(neg);
 1069|  1.48M|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.48M]
  ------------------
 1070|  1.48M|         unsigned hundreds_written = 0;
 1071|       |         if constexpr (traits::max_exponent10 >= 100) {
 1072|       |            int32_t digit = 0;
 1073|       |            if constexpr (use_umul128_hi64) {
 1074|       |               digit = static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(dec_exp), 0x290000000000000ull));
 1075|       |            }
 1076|       |            else {
 1077|       |               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|       |            }
 1079|       |            *buffer = static_cast<char>('0' + digit);
 1080|       |            hundreds_written = unsigned(dec_exp >= 100);
 1081|       |            buffer += hundreds_written;
 1082|       |            dec_exp -= digit * 100;
 1083|       |         }
 1084|       |         // dec_exp now in [0, 99]. Skip the tens digit only when no higher
 1085|       |         // digit has been written (i.e. true leading zero, not interior).
 1086|  1.48M|         const char* d2 = digits2(dec_exp);
 1087|  1.48M|         *buffer = d2[0];
 1088|  1.48M|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.48M|         *buffer = d2[1];
 1090|  1.48M|         return buffer + 1;
 1091|  1.59M|      }
_ZN3glz4zmij11detail_impl12float_traitsIfE7to_bitsEf:
  358|  2.09M|         {
  359|  2.09M|            sig_type bits;
  360|  2.09M|            memcpy(&bits, &value, sizeof(value));
  361|  2.09M|            return bits;
  362|  2.09M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_expEj:
  367|  2.09M|         {
  368|  2.09M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  2.09M|         }
_ZN3glz4zmij11detail_impl12float_traitsIfE7get_sigEj:
  365|  2.09M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIfE11is_negativeEj:
  364|  2.09M|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIfjLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|  1.59M|      {
  869|  1.59M|         using traits = float_traits<Float>;
  870|  1.59M|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  1.59M|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  1.59M|         constexpr uint64_t log10_2_sig = 78'913;
  874|  1.59M|         constexpr int32_t log10_2_exp = 18;
  875|  1.59M|         int32_t dec_exp = 0;
  876|       |         if constexpr (use_umul128_hi64) {
  877|       |            dec_exp =
  878|       |               static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(bin_exp), log10_2_sig << (64 - log10_2_exp)));
  879|       |         }
  880|  1.59M|         else {
  881|  1.59M|            dec_exp = compute_dec_exp(bin_exp);
  882|  1.59M|         }
  883|  1.59M|         uint64_t even = 1 - (bin_sig & 1);
  884|  1.59M|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  1.59M|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 6.71k, False: 1.58M]
  ------------------
  887|  6.71k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  6.71k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  6.71k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  6.71k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  6.71k|            int64_t integral = p.hi >> extra_shift;
  893|  6.71k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  6.71k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  6.71k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  6.71k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  6.71k|            integral += round_up;
  899|       |
  900|  6.71k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  6.71k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  6.71k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 1.03k, False: 5.67k]
  ------------------
  903|  6.71k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  6.71k|         }
  905|       |
  906|  1.58M|         if constexpr (num_bits == 32) {
  907|  1.58M|            constexpr int32_t float_extra_shift = 34;
  908|  1.58M|            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|  1.58M|            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|  1.58M|            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|  1.58M|            int64_t integral = p >> float_extra_shift;
  913|  1.58M|            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|  1.58M|            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|  1.58M|            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|  1.58M|            bool round_down = half_ulp > fractional;
  918|  1.58M|            integral += round_up;
  919|       |
  920|  1.58M|            uint64_t prod = fractional * 10;
  921|  1.58M|            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|  1.58M|            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|  1.58M|            digit +=
  924|  1.58M|               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  ------------------
  |  Branch (924:16): [True: 562k, False: 1.02M]
  |  Branch (924:60): [True: 3.90k, False: 1.02M]
  |  Branch (924:104): [True: 1.91k, False: 1.98k]
  ------------------
  925|  1.58M|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  926|       |         }
  927|       |         else {
  928|       |            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  929|       |                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|       |            ZMIJ_ASM(("" : "+r"(dec_exp)));
  931|       |            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|       |            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|       |            int64_t integral = p.hi >> extra_shift;
  934|       |            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|       |            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|       |            bool round_up = fractional + half_ulp < fractional;
  937|       |            bool round_down = half_ulp > fractional;
  938|       |            integral += round_up;
  939|       |
  940|       |            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|       |            if (fractional == (1ull << 62)) [[unlikely]] {
  942|       |               digit = 2;
  943|       |            }
  944|       |            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|       |         }
  946|  1.58M|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  2.91M|      {
  334|  2.91M|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 2.91M, False: 0]
  |  Branch (334:10): [True: 2.91M, False: 0]
  |  Branch (334:10): [True: 2.91M, False: 0]
  ------------------
  335|  2.91M|         constexpr int log10_3_over_4_sig = 131'072;
  336|  2.91M|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  2.91M|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  2.91M|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|  1.61M|      {
  458|  1.61M|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 1.61M, False: 0]
  |  Branch (458:10): [True: 1.61M, False: 0]
  |  Branch (458:10): [True: 1.61M, False: 0]
  ------------------
  459|  1.61M|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|  1.61M|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|  1.61M|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|  1.61M|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  2.89M|         {
  441|  2.89M|            constexpr int dec_exp_min = -293;
  442|  2.89M|            int i = dec_exp - dec_exp_min;
  443|  2.89M|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 2.89M]
  ------------------
  444|  2.89M|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 2.89M, Folded]
  ------------------
  445|       |
  446|      0|            const uint64_t* hi = data + num_pow10s + dec_exp_min - 1;
  447|      0|            const uint64_t* lo = hi + num_pow10s;
  448|       |
  449|      0|            if !consteval {
  450|      0|               ZMIJ_ASM(volatile("" : "+r"(hi), "+r"(lo)));
  ------------------
  |  |  126|      0|#define ZMIJ_ASM(x) asm x
  ------------------
  451|      0|            }
  452|      0|            return {hi[-dec_exp], lo[-dec_exp]};
  453|  2.89M|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|  1.30M|      {
  309|  1.30M|         uint128_t p = umul128(x_hi, y);
  310|  1.30M|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|  1.30M|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|  1.30M|      }
_ZN3glz4zmij11detail_impl7umul128Emm:
  265|  4.36M|      {
  266|  4.36M|#if ZMIJ_USE_INT128
  267|  4.36M|         return uint128_t(x) * y;
  268|       |#else
  269|       |#if defined(_M_AMD64)
  270|       |         if !consteval {
  271|       |            uint64_t hi = 0;
  272|       |            uint64_t lo = _umul128(x, y, &hi);
  273|       |            return {hi, lo};
  274|       |         }
  275|       |#elif defined(_M_ARM64)
  276|       |         if !consteval {
  277|       |            return {__umulh(x, y), x * y};
  278|       |         }
  279|       |#endif
  280|       |         uint64_t a = x >> 32;
  281|       |         uint64_t b = uint32_t(x);
  282|       |         uint64_t c = y >> 32;
  283|       |         uint64_t d = uint32_t(y);
  284|       |
  285|       |         uint64_t ac = a * c;
  286|       |         uint64_t bc = b * c;
  287|       |         uint64_t ad = a * d;
  288|       |         uint64_t bd = b * d;
  289|       |
  290|       |         uint64_t cs = (bd >> 32) + uint32_t(ad) + uint32_t(bc);
  291|       |         return {ac + (ad >> 32) + (bc >> 32) + (cs >> 32), (cs << 32) + uint32_t(bd)};
  292|       |#endif
  293|  4.36M|      }
_ZN3glz4zmij11detail_impl16umul128_add_hi64Emmm:
  298|  1.32M|      {
  299|  1.32M|#if ZMIJ_USE_INT128
  300|  1.32M|         return uint64_t((uint128_t(x) * y + c) >> 64);
  301|       |#else
  302|       |         auto p = umul128(x, y);
  303|       |         return p.hi + (p.lo + c < p.lo);
  304|       |#endif
  305|  1.32M|      }
_ZN3glz4zmij11detail_impl12umul128_hi64Emm:
  295|  1.75M|      constexpr auto umul128_hi64(uint64_t x, uint64_t y) noexcept -> uint64_t { return uint64_t(umul128(x, y) >> 64); }
_ZN3glz4zmij11detail_impl5div10Em:
  326|   169k|      {
  327|   169k|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 169k, False: 0]
  ------------------
  328|   169k|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|   169k|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|   169k|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 169k, Folded]
  |  |  ------------------
  ------------------
  330|   169k|      }
_ZN3glz4zmij11detail_impl9to_digitsILi32ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  1.59M|      {
  810|  1.59M|         if constexpr (num_bits == 32) {
  811|  1.59M|            auto result = to_bcd8<OptSize>(value);
  812|  1.59M|            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|       |         else {
  815|       |#if !ZMIJ_USE_NEON && !ZMIJ_USE_SSE
  816|       |            uint32_t bbccddee = uint32_t(value / 100'000'000);
  817|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  818|       |            auto hi = to_bcd8<OptSize>(bbccddee);
  819|       |            if (ffgghhii == 0) return {{hi.bcd + zeros_v, zeros_v}, hi.len};
  820|       |            auto lo = to_bcd8<OptSize>(ffgghhii);
  821|       |            return {{hi.bcd + zeros_v, lo.bcd + zeros_v}, 8 + lo.len};
  822|       |#elif ZMIJ_USE_NEON
  823|       |            auto unshuffled_digits = to_unshuffled_digits(value, c);
  824|       |            uint8x16_t digits = vrev64q_u8(unshuffled_digits);
  825|       |            uint16x8_t str = vaddq_u16(vreinterpretq_u16_u8(digits), vreinterpretq_u16_s8(vdupq_n_s8('0')));
  826|       |
  827|       |            // vcgtzq_s8 is AArch64-only; the portable spelling (ARMv7 NEON and
  828|       |            // up) is "compare greater-than against a zero vector".
  829|       |            uint16x8_t is_not_zero = vreinterpretq_u16_u8(vcgtq_s8(vreinterpretq_s8_u8(digits), vdupq_n_s8(0)));
  830|       |            uint64_t zeroes = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(is_not_zero, 4)), 0);
  831|       |            return {str, 16 - (clz(zeroes) >> 2)};
  832|       |#else
  833|       |            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|       |            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|       |            auto unshuffled_bcd = to_unshuffled_digits(abbccddee, ffgghhii, c);
  838|       |#if ZMIJ_USE_SSE4_1
  839|       |            const __m128i bswap = _mm_load_si128(m128ptr(&c.bswap));
  840|       |            auto bcd = _mm_shuffle_epi8(unshuffled_bcd, bswap);
  841|       |#else
  842|       |            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|       |#endif
  844|       |
  845|       |            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|       |            uint64_t mask = _mm_movemask_epi8(mask128);
  847|       |#if defined(__LZCNT__) && !defined(ZMIJ_NO_BUILTINS)
  848|       |            int len = 32 - _lzcnt_u32(mask);
  849|       |#else
  850|       |            int len = 63 - clz((mask << 1) | 1);
  851|       |#endif
  852|       |            return {_mm_or_si128(bcd, zeros), len};
  853|       |#endif
  854|       |         }
  855|  1.59M|      }
_ZN3glz4zmij11detail_impl7to_bcd8ILb0EEENS1_10bcd_resultEm:
  753|  1.59M|      {
  754|  1.59M|         if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   63|  1.59M|#define ZMIJ_USE_SSE ZMIJ_USE_SIMD
  |  |  ------------------
  |  |  |  |   41|  3.19M|#define ZMIJ_USE_SIMD 1
  |  |  ------------------
  ------------------
                       if (!ZMIJ_USE_SSE && !ZMIJ_USE_NEON) {
  ------------------
  |  |   55|      0|#define ZMIJ_USE_NEON 0
  ------------------
  |  Branch (754:14): [Folded, False: 1.59M]
  |  Branch (754:31): [True: 0, Folded]
  ------------------
  755|      0|            uint64_t abcd_efgh = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  756|      0|            uint64_t ab_cd_ef_gh = abcd_efgh + neg100_v * (((abcd_efgh * div100_sig) >> div100_exp) & 0x7f0000007f);
  757|      0|            uint64_t a_b_c_d_e_f_g_h =
  758|      0|               ab_cd_ef_gh + neg10_v * (((ab_cd_ef_gh * div10_sig) >> div10_exp) & 0xf000f000f000f);
  759|      0|            uint64_t bcd = is_big_endian ? a_b_c_d_e_f_g_h : bswap64(a_b_c_d_e_f_g_h);
  ------------------
  |  Branch (759:28): [Folded, False: 0]
  ------------------
  760|      0|            return {bcd, count_trailing_nonzeros(bcd)};
  761|      0|         }
  762|       |
  763|  1.59M|         const auto* c = &consts_v<OptSize>;
  764|  1.59M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.59M|#define ZMIJ_ASM(x) asm x
  ------------------
  765|       |
  766|       |#if ZMIJ_USE_NEON
  767|       |         uint64_t abcd_efgh_64 = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  768|       |         int32x4_t abcd_efgh = vcombine_s32(vreinterpret_s32_u64(vcreate_u64(abcd_efgh_64)), vdup_n_s32(0));
  769|       |         uint8x16_t digits_128 = to_bcd_4x4(abcd_efgh, *c);
  770|       |         uint8x8_t digits = vget_low_u8(digits_128);
  771|       |         uint64_t bcd = vget_lane_u64(vreinterpret_u64_u8(vrev64_u8(digits)), 0);
  772|       |         return {bcd, count_trailing_nonzeros(bcd)};
  773|       |#elif ZMIJ_USE_SSE4_1
  774|       |         uint64_t abcd_efgh = abcdefgh + neg10k_v * ((abcdefgh * div10k_sig) >> div10k_exp);
  775|       |         uint64_t unshuffled_bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  776|       |         int len = unshuffled_bcd ? 8 - ctz(unshuffled_bcd) / 8 : 0;
  777|       |         return {bswap64(unshuffled_bcd), len};
  778|       |#elif ZMIJ_USE_SSE
  779|       |         uint64_t abcd_efgh =
  780|  1.59M|            (abcdefgh << 32) - uint64_t((10000ull << 32) - 1) * ((abcdefgh * div10k_sig) >> div10k_exp);
  781|  1.59M|         uint64_t bcd = lo_u64(to_bcd_4x4(_mm_set_epi64x(0, abcd_efgh), *c));
  782|  1.59M|         return {bcd, count_trailing_nonzeros(bcd)};
  783|  1.59M|#endif
  784|  1.59M|      }
_ZN3glz4zmij11detail_impl6lo_u64EDv2_x:
  700|  1.59M|      {
  701|  1.59M|#if defined(__x86_64__) || defined(_M_X64)
  702|  1.59M|         return uint64_t(_mm_cvtsi128_si64(x));
  703|       |#else
  704|       |         uint64_t result;
  705|       |         _mm_storel_epi64(reinterpret_cast<__m128i*>(&result), x);
  706|       |         return result;
  707|       |#endif
  708|  1.59M|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  2.89M|      {
  713|  2.89M|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  2.89M|         const __m128i div10 = _mm_load_si128(m128ptr(&c.div10));
  715|       |#if ZMIJ_USE_SSE4_1
  716|       |         const __m128i neg100 = _mm_load_si128(m128ptr(&c.neg100));
  717|       |         const __m128i neg10 = _mm_load_si128(m128ptr(&c.neg10));
  718|       |
  719|       |         __m128i z = _mm_add_epi64(y, _mm_mullo_epi32(neg100, _mm_srli_epi32(_mm_mulhi_epu16(y, div100), 3)));
  720|       |         return _mm_add_epi16(z, _mm_mullo_epi16(neg10, _mm_mulhi_epu16(z, div10)));
  721|       |#else
  722|  2.89M|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  2.89M|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  2.89M|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  2.89M|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  2.89M|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  2.89M|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  2.89M|#endif
  730|  2.89M|      }
_ZN3glz4zmij11detail_impl23count_trailing_nonzerosEm:
  568|  1.59M|      {
  569|  1.59M|         if (is_big_endian) x = bswap64(x);
  ------------------
  |  Branch (569:14): [Folded, False: 1.59M]
  ------------------
  570|  1.59M|         return (size_t(70) - clz((x << 1) | 1)) / 8;
  571|  1.59M|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  2.89M|      {
  188|  2.89M|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 2.89M, False: 0]
  ------------------
  189|  2.89M|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  2.89M|         return __builtin_clzll(x);
  191|       |#elif defined(_M_AMD64) && defined(__AVX2__)
  192|       |         return __lzcnt64(x);
  193|       |#elif defined(_M_AMD64) || defined(_M_ARM64)
  194|       |         unsigned long idx;
  195|       |         _BitScanReverse64(&idx, x);
  196|       |         return 63 - idx;
  197|       |#elif ZMIJ_MSC_VER
  198|       |         unsigned long idx;
  199|       |         if (_BitScanReverse(&idx, uint32_t(x >> 32))) return 31 - idx;
  200|       |         _BitScanReverse(&idx, uint32_t(x));
  201|       |         return 63 - idx;
  202|       |#else
  203|       |         int n = 64;
  204|       |         for (; x > 0; x >>= 1) --n;
  205|       |         return n;
  206|       |#endif
  207|  2.89M|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIfEEEERKNS2_5entryEi:
  559|   108k|         {
  560|   108k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|   108k|            unsigned i = unsigned(dec_exp - min);
  562|   108k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 108k, False: 0]
  ------------------
  563|   108k|         }
_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|  1.49M|   {
 1119|  1.49M|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  1.49M|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  1.49M|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|  1.49M|      {
  976|  1.49M|         using namespace detail_impl;
  977|  1.49M|         using traits = float_traits<Float>;
  978|  1.49M|         auto bits = traits::to_bits(value);
  979|  1.49M|         auto bin_exp = traits::get_exp(bits);
  980|  1.49M|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  1.49M|         *buffer = '-';
  983|  1.49M|         buffer += traits::is_negative(bits);
  984|       |
  985|  1.49M|         const auto* c = &consts_v<OptSize>;
  986|  1.49M|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  1.49M|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  1.49M|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 1.49M, Folded]
  ------------------
  988|       |
  989|  1.49M|         to_decimal_result dec;
  990|  1.49M|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  1.49M|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 340k, False: 1.15M]
  ------------------
  992|   340k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 7.62k, False: 333k]
  ------------------
  993|       |#if GLZ_ZMIJ_EMIT_INF_NAN
  994|       |               memcpy(buffer, bin_sig == 0 ? "inf" : "nan", 4);
  995|       |               return buffer + 3;
  996|       |#else
  997|       |               // Undo the speculative '-' for sign-bit-set NaN/Inf: JSON "null"
  998|       |               // never carries a sign.
  999|  7.62k|               buffer -= traits::is_negative(bits);
 1000|  7.62k|               memcpy(buffer, "null", 4);
 1001|  7.62k|               return buffer + 4;
 1002|  7.62k|#endif
 1003|  7.62k|            }
 1004|   333k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 194k, False: 138k]
  ------------------
 1005|   194k|               memcpy(buffer, "0", 2);
 1006|   194k|               return buffer + 1;
 1007|   194k|            }
 1008|   138k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|   138k|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 73.9k, False: 64.3k]
  ------------------
 1010|   138k|            int32_t dec_exp = dec.exp;
 1011|   663k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 525k, False: 138k]
  ------------------
 1012|   525k|               dec_sig *= 10;
 1013|   525k|               --dec_exp;
 1014|   525k|            }
 1015|   138k|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|   138k|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|   138k|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|   138k|         }
 1019|  1.15M|         else {
 1020|  1.15M|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.15M|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.15M|         }
 1023|  1.29M|         bool extra_digit = dec.sig >= threshold;
 1024|  1.29M|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  1.29M|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 1.29M]
  |  Branch (1025:40): [True: 0, False: 0]
  ------------------
 1026|      0|            dec.sig = 10 * dec.sig + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1026:39): [True: 0, False: 0]
  ------------------
 1027|      0|            dec.has_last_digit = false;
 1028|      0|            --dec_exp;
 1029|      0|         }
 1030|       |
 1031|  1.29M|         char* start = buffer;
 1032|  1.29M|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  1.29M|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|  1.29M|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 710k, False: 585k]
  |  Branch (1034:54): [True: 9.25k, False: 700k]
  ------------------
 1035|  9.25k|            memcpy(start, &zeros_v, 8);
 1036|  9.25k|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|  9.25k|            buffer += fmt.start_pos;
 1038|  9.25k|            memcpy(buffer, &dig.digits, bcd_size);
 1039|  9.25k|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|  9.25k|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 4.82k, False: 4.43k]
  ------------------
 1041|  9.25k|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|  9.25k|            start[fmt.point_pos] = '.';
 1043|  9.25k|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 4.82k, False: 4.43k]
  ------------------
 1044|  9.25k|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|  9.25k|         }
 1046|  1.28M|         buffer += extra_digit;
 1047|  1.28M|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.28M|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.28M|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 916k, False: 369k]
  ------------------
 1050|  1.28M|         start[0] = start[1];
 1051|  1.28M|         start[1] = '.';
 1052|  1.28M|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.28M|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.28M|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.28M|            int len = int(exp_data >> 48);
 1057|  1.28M|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.28M]
  ------------------
 1058|  1.28M|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 1.28M, Folded]
  ------------------
 1059|  1.28M|            return buffer + len;
 1060|  1.28M|         }
 1061|       |         // Glaze emits uppercase 'E', omits '+' on positive exponents, and
 1062|       |         // drops the leading zero on single-digit exponents (E7, not E07).
 1063|       |         // Branchless: write "E-" always, then advance past the '-' only when
 1064|       |         // the exponent is negative.
 1065|      0|         bool neg = dec_exp < 0;
 1066|  1.28M|         buffer[0] = 'E';
 1067|  1.28M|         buffer[1] = '-';
 1068|  1.28M|         buffer += 1 + unsigned(neg);
 1069|  1.28M|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.28M]
  ------------------
 1070|  1.28M|         unsigned hundreds_written = 0;
 1071|  1.28M|         if constexpr (traits::max_exponent10 >= 100) {
 1072|  1.28M|            int32_t digit = 0;
 1073|       |            if constexpr (use_umul128_hi64) {
 1074|       |               digit = static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(dec_exp), 0x290000000000000ull));
 1075|       |            }
 1076|  1.28M|            else {
 1077|  1.28M|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|  1.28M|            }
 1079|  1.28M|            *buffer = static_cast<char>('0' + digit);
 1080|  1.28M|            hundreds_written = unsigned(dec_exp >= 100);
 1081|  1.28M|            buffer += hundreds_written;
 1082|  1.28M|            dec_exp -= digit * 100;
 1083|  1.28M|         }
 1084|       |         // dec_exp now in [0, 99]. Skip the tens digit only when no higher
 1085|       |         // digit has been written (i.e. true leading zero, not interior).
 1086|  1.28M|         const char* d2 = digits2(dec_exp);
 1087|  1.28M|         *buffer = d2[0];
 1088|  1.28M|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.28M|         *buffer = d2[1];
 1090|  1.28M|         return buffer + 1;
 1091|  1.29M|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|  1.49M|         {
  359|  1.49M|            sig_type bits;
  360|  1.49M|            memcpy(&bits, &value, sizeof(value));
  361|  1.49M|            return bits;
  362|  1.49M|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|  1.49M|         {
  368|  1.49M|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  1.49M|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|  1.49M|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|  1.50M|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|  1.29M|      {
  869|  1.29M|         using traits = float_traits<Float>;
  870|  1.29M|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  1.29M|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  1.29M|         constexpr uint64_t log10_2_sig = 78'913;
  874|  1.29M|         constexpr int32_t log10_2_exp = 18;
  875|  1.29M|         int32_t dec_exp = 0;
  876|       |         if constexpr (use_umul128_hi64) {
  877|       |            dec_exp =
  878|       |               static_cast<int32_t>(umul128_hi64(static_cast<uint64_t>(bin_exp), log10_2_sig << (64 - log10_2_exp)));
  879|       |         }
  880|  1.29M|         else {
  881|  1.29M|            dec_exp = compute_dec_exp(bin_exp);
  882|  1.29M|         }
  883|  1.29M|         uint64_t even = 1 - (bin_sig & 1);
  884|  1.29M|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  1.29M|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 15.4k, False: 1.28M]
  ------------------
  887|  15.4k|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|  15.4k|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|  15.4k|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|  15.4k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|  15.4k|            int64_t integral = p.hi >> extra_shift;
  893|  15.4k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|  15.4k|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|  15.4k|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|  15.4k|            bool round_down = (half_ulp >> 1) > fractional;
  898|  15.4k|            integral += round_up;
  899|       |
  900|  15.4k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|  15.4k|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|  15.4k|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 1.93k, False: 13.5k]
  ------------------
  903|  15.4k|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|  15.4k|         }
  905|       |
  906|       |         if constexpr (num_bits == 32) {
  907|       |            constexpr int32_t float_extra_shift = 34;
  908|       |            int32_t shift = compute_exp_shift(bin_exp, dec_exp + 1) + float_extra_shift;
  909|       |            uint64_t pow10_hi = c.pow10_significands[-dec_exp - 1].hi;
  910|       |            uint64_t p = umul128_hi64(pow10_hi + 1, uint64_t(bin_sig) << shift);
  911|       |
  912|       |            int64_t integral = p >> float_extra_shift;
  913|       |            uint64_t fractional = p & ((1ull << float_extra_shift) - 1);
  914|       |
  915|       |            uint64_t half_ulp = (pow10_hi >> (65 - shift)) + even;
  916|       |            bool round_up = (fractional + half_ulp) >> float_extra_shift;
  917|       |            bool round_down = half_ulp > fractional;
  918|       |            integral += round_up;
  919|       |
  920|       |            uint64_t prod = fractional * 10;
  921|       |            int32_t digit = static_cast<int32_t>(prod >> float_extra_shift);
  922|       |            uint64_t rem = prod & ((1ull << float_extra_shift) - 1);
  923|       |            digit +=
  924|       |               rem > (1ull << (float_extra_shift - 1)) || (rem == (1ull << (float_extra_shift - 1)) && (digit & 1));
  925|       |            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  926|       |         }
  927|  1.28M|         else {
  928|  1.28M|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 1.28M, Folded]
  ------------------
  929|  1.28M|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|  1.28M|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|  1.28M|#define ZMIJ_ASM(x) asm x
  ------------------
  931|  1.28M|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|  1.28M|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|  1.28M|            int64_t integral = p.hi >> extra_shift;
  934|  1.28M|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|  1.28M|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|  1.28M|            bool round_up = fractional + half_ulp < fractional;
  937|  1.28M|            bool round_down = half_ulp > fractional;
  938|  1.28M|            integral += round_up;
  939|       |
  940|  1.28M|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|  1.28M|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 233, False: 1.28M]
  ------------------
  942|    233|               digit = 2;
  943|    233|            }
  944|  1.28M|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|  1.28M|         }
  946|  1.28M|      }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  1.29M|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|  1.29M|         else {
  815|       |#if !ZMIJ_USE_NEON && !ZMIJ_USE_SSE
  816|       |            uint32_t bbccddee = uint32_t(value / 100'000'000);
  817|       |            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  818|       |            auto hi = to_bcd8<OptSize>(bbccddee);
  819|       |            if (ffgghhii == 0) return {{hi.bcd + zeros_v, zeros_v}, hi.len};
  820|       |            auto lo = to_bcd8<OptSize>(ffgghhii);
  821|       |            return {{hi.bcd + zeros_v, lo.bcd + zeros_v}, 8 + lo.len};
  822|       |#elif ZMIJ_USE_NEON
  823|       |            auto unshuffled_digits = to_unshuffled_digits(value, c);
  824|       |            uint8x16_t digits = vrev64q_u8(unshuffled_digits);
  825|       |            uint16x8_t str = vaddq_u16(vreinterpretq_u16_u8(digits), vreinterpretq_u16_s8(vdupq_n_s8('0')));
  826|       |
  827|       |            // vcgtzq_s8 is AArch64-only; the portable spelling (ARMv7 NEON and
  828|       |            // up) is "compare greater-than against a zero vector".
  829|       |            uint16x8_t is_not_zero = vreinterpretq_u16_u8(vcgtq_s8(vreinterpretq_s8_u8(digits), vdupq_n_s8(0)));
  830|       |            uint64_t zeroes = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(is_not_zero, 4)), 0);
  831|       |            return {str, 16 - (clz(zeroes) >> 2)};
  832|       |#else
  833|  1.29M|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|  1.29M|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|  1.29M|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|  1.29M|            auto unshuffled_bcd = to_unshuffled_digits(abbccddee, ffgghhii, c);
  838|       |#if ZMIJ_USE_SSE4_1
  839|       |            const __m128i bswap = _mm_load_si128(m128ptr(&c.bswap));
  840|       |            auto bcd = _mm_shuffle_epi8(unshuffled_bcd, bswap);
  841|       |#else
  842|  1.29M|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|  1.29M|#endif
  844|       |
  845|  1.29M|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|  1.29M|            uint64_t mask = _mm_movemask_epi8(mask128);
  847|       |#if defined(__LZCNT__) && !defined(ZMIJ_NO_BUILTINS)
  848|       |            int len = 32 - _lzcnt_u32(mask);
  849|       |#else
  850|  1.29M|            int len = 63 - clz((mask << 1) | 1);
  851|  1.29M|#endif
  852|  1.29M|            return {_mm_or_si128(bcd, zeros), len};
  853|  1.29M|#endif
  854|  1.29M|         }
  855|  1.29M|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|  1.29M|      {
  736|  1.29M|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|  1.29M|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|  1.29M|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|  1.29M|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|  1.29M|         return to_bcd_4x4(y, c);
  741|  1.29M|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|  9.25k|         {
  560|  9.25k|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|  9.25k|            unsigned i = unsigned(dec_exp - min);
  562|  9.25k|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 9.25k, False: 0]
  ------------------
  563|  9.25k|         }

